:root {
  --bg: #f8f6f2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #1e1f23;
  --muted: #5b5b5b;
  --line: rgba(22, 22, 22, 0.1);
  --accent: #111111;
  --accent-2: #003cff;
  --whatsapp: rgba(0, 60, 255, 0.7);
  --radius: 26px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 60, 255, 0.2), transparent 16%),
    radial-gradient(circle at 100% 18%, rgba(0, 0, 0, 0.05), transparent 26%),
    var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section { padding: 5rem 0; }
.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(244, 240, 234, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.section-heading,
.studio-grid,
.services-grid,
.hero-grid,
.intro-strip-inner {
  display: grid;
  gap: 1.5rem;
}

.header-inner {
  grid-template-columns: auto auto 1fr;
  align-items: center;
  min-height: 82px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  height: 34px;
  width: auto;
}

.main-nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a,
.nav-link-plain,
.lang-btn {
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.lang-btn:hover,
.lang-btn:focus-visible,
.nav-link-plain:hover,
.nav-link-plain:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.social-link:hover,
.social-link:focus-visible {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.25rem;
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.lang-btn.is-active {
  color: var(--text);
  font-weight: 700;
}

.nav-cta {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--whatsapp);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero { padding-top: 4.5rem; }
.hero-grid { grid-template-columns: 1.15fr 0.95fr; align-items: start; }
.hero-copy h1, .section h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  max-width: 11ch;
}

.hero-text,
.studio-grid p,
.contact-box p,
.project-content p,
.news-card p,
.service-item p {
  color: var(--muted);
}

.hero-text {
  max-width: 48rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { border-color: var(--line); background: var(--whatsapp); }

.hero-panel { display: grid; gap: 1.3rem; }
.word-ticker,
.hero-card,
.project-card,
.news-card,
.contact-box,
.service-item,
.intro-strip-inner,
.nav-cta,
.social-link { box-shadow: var(--shadow); }

.word-ticker {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1rem 0;
}

.ticker-track {
  display: inline-flex;
  gap: 1rem;
  white-space: nowrap;
  min-width: max-content;
  animation: marquee 22s linear infinite;
}

.ticker-track span {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  padding-left: 1rem;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.hero-card {
  min-height: 180px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero-card.large {
  grid-row: span 2;
  min-height: 100%;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  overflow: hidden;
}

.hero-card.accent {
  background: linear-gradient(135deg, #003cff, #333333);
  color: white;
}

.hero-card.accent span {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

/* =========================
   AQUI SE AJUSTA EL SLIDER DEL HERO
========================== */
.hero-case-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #d8d8d8, #f4f4f4);
}

.hero-case-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-case-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-case-slide img,
.hero-case-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-case-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-case-prev { left: 12px; }
.hero-case-next { right: 12px; }

.hero-case-slider:hover .hero-case-arrow,
.hero-case-slider:focus-within .hero-case-arrow,
.hero-case-slider.is-touching .hero-case-arrow {
  opacity: 1;
}

.hero-case-arrow:hover,
.hero-case-arrow:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.intro-strip { padding-top: 0; }
.intro-strip-inner {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}

.intro-strip p {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 12ch;
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter:hover,
.filter.is-active {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.projects-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card,
.news-card,
.contact-box {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.project-card {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-card:hover { transform: translateY(-6px); }
.project-card[hidden] { display: none !important; }

/* =========================
   AQUI SE AJUSTAN LOS CARRUSELES DE PROYECTOS
========================== */
.project-carousel {
  position: relative;
  aspect-ratio: 4 / 3.15;
  overflow: hidden;
  background: #ddd;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.project-placeholder,
.carousel-slide img,
.carousel-slide video,
.carousel-slide picture {
  width: 100%;
  height: 100%;
}

.project-placeholder {
  display: flex;
  align-items: end;
  justify-content: start;
}

.carousel-slide img,
.carousel-slide video,
.carousel-slide picture {
  object-fit: cover;
}

.slide-label {
  margin: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.78);
  color: #111;
  backdrop-filter: blur(10px);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(17, 17, 17, 0.62);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.project-carousel:hover .carousel-arrow,
.project-carousel:focus-within .carousel-arrow,
.project-carousel.is-touching .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(17, 17, 17, 0.82);
}

.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }

.gradient-a { background: linear-gradient(135deg, #0d0d0d, #c4ff1a 70%, #f4f0ea); }
.gradient-b { background: linear-gradient(135deg, #173b71, #7db6ff, #eff6ff); }
.gradient-c { background: linear-gradient(135deg, #28114d, #f277ff, #ffd6f4); }
.gradient-d { background: linear-gradient(135deg, #ffb36a, #fff0b8, #fffdf7); }
.gradient-e { background: linear-gradient(135deg, #093d2b, #4be0a7, #ebfff6); }
.gradient-f { background: linear-gradient(135deg, #1e1e1e, #f85757, #ffe0e0); }
.gradient-g { background: linear-gradient(135deg, #0b1a3d, #51b7ff, #dff6ff); }
.gradient-h { background: linear-gradient(135deg, #171717, #777777, #efefef); }
.gradient-i { background: linear-gradient(135deg, #14261d, #d7ff3f, #fcfff2); }

.project-content,
.news-card { padding: 1.3rem; }
.project-meta,
.news-date {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-content h3,
.news-card h3,
.service-item h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.section-dark {
  background: #121212;
  color: white;
}

.section-dark .eyebrow,
.section-dark p,
.section-dark .service-item span {
  color: rgba(255, 255, 255, 0.7);
}

.services-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
.services-list { display: grid; gap: 1rem; }
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
}

.service-item span { font-weight: 700; }
.studio-grid { grid-template-columns: 0.95fr 1.05fr; }
.news-section .text-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.contact-section { padding-top: 1rem; }
.contact-box {
  padding: 2.75rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.contact-box .eyebrow,
.contact-box h2,
.contact-box p {
  margin-inline: auto;
}

.contact-box h2 {
  max-width: 11ch;
  text-align: center;
}

.contact-box > p:not(.eyebrow) {
  max-width: 50rem;
}

.contact-actions {
  justify-content: center;
}

.site-footer { padding: 1.6rem 0 2rem; }
.footer-inner {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  gap: 1rem;
}

.footer-inner p,
.footer-inner a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links,
.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.72);
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.cursor-glow {
  position: fixed;
  inset: 0 auto auto 0;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,60,255,0.2), rgba(0,60,255,0.00));
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .hero-grid,
  .projects-grid,
  .news-grid,
  .services-grid,
  .studio-grid,
  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-card.large { grid-column: span 2; }
  .menu-toggle { display: inline-flex; justify-self: end; }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }
  .lang-switch { padding-left: 0; }
  .footer-branding,
  .footer-links,
  .footer-socials { justify-content: center; }
}

@media (max-width: 680px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 3rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card.large { grid-column: auto; }
  .intro-strip-inner,
  .contact-box,
  .hero-card,
  .project-content,
  .news-card,
  .service-item { padding: 1.2rem; }
  .carousel-arrow,
  .hero-case-arrow {
    opacity: 1;
    pointer-events: auto;
    width: 40px;
    height: 40px;
  }
  .logo { height: 28px; }
  .contact-box { min-height: auto; }
  .social-link span:last-child { display: none; }
}

@media (max-width: 768px) {
  .hero-case-slider {
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .hero-case-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .hero-case-prev { left: 10px; }
  .hero-case-next { right: 10px; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
}


