/* ==========================================================================
   MAIPI ESTUDIO GRÁFICO — hoja de estilos principal
   Paleta (de colores.pdf):
     --beige   #F0F0E7  fondo principal
     --taupe   #D7CABB  fondo suave / tarjetas
     --terra   #BE9274  acento — detalles, hover
     --salvia  #A3A586  acento — detalles, tags
     --verde   #37402A  verde oscuro — texto, secciones de contraste
     --white   #FFFFFF
   Tipografía:
     Display  → PP Editorial New (fallback Bodoni Moda)
     Cuerpo   → Montserrat
     Acento   → Symphony (fallback Beau Rivage)
   ========================================================================== */

:root {
  --beige: #f0f0e7;
  --beige-2: #e8e7da;
  --taupe: #d7cabb;
  --terra: #be9274;
  --terra-dark: #a97b5d;
  --salvia: #a3a586;
  --verde: #37402a;
  --verde-2: #454f34;
  --white: #ffffff;

  --text-onlight: var(--verde);
  --text-ondark: var(--beige);

  --font-display: "PP Editorial New", "Forum", serif;
  --font-body: "Montserrat", sans-serif;
  --font-script: "Symphony", "Beau Rivage", cursive;

  --container: 1220px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 3px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--text-onlight);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
}

em, .script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--terra-dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terra-dark);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--terra-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--beige);
}
.btn-primary:hover { background: var(--verde-2); border-color: var(--verde-2); transform: translateY(-2px); }
.btn-ghost-dark { color: var(--text-ondark); }
.btn-ghost-dark:hover { background: var(--text-ondark); color: var(--verde); transform: translateY(-2px); }
.btn-ghost-light { color: var(--verde); }
.btn-ghost-light:hover { background: var(--verde); color: var(--beige); transform: translateY(-2px); }
.btn-whatsapp { background: #3f5a3a; border-color: #3f5a3a; color: var(--beige); }
.btn-whatsapp:hover { background: #2f4630; border-color: #2f4630; transform: translateY(-2px); }
.btn-accent { background: var(--terra); border-color: var(--terra); color: var(--verde); }
.btn-accent:hover { background: var(--terra-dark); border-color: var(--terra-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.is-scrolled {
  padding: 0.9rem 0;
  background: rgba(240, 240, 231, 0.9);
  backdrop-filter: blur(10px);
  border-color: rgba(55, 64, 42, 0.1);
}

.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.main-nav { display: flex; gap: 2.2rem; }
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--verde);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--terra-dark);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px; height: 24px;
  position: relative;
  z-index: 200;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--verde);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Secciones ---------- */
section[data-theme="dark"] { background: var(--verde); color: var(--text-ondark); }
section[data-theme="light"] { background: var(--beige); color: var(--text-onlight); }
section[data-theme="soft"] { background: var(--taupe); color: var(--text-onlight); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ---------- Hero editorial ---------- */
.hero {
  padding: clamp(7.8rem, 13vw, 10rem) 0 clamp(1.4rem, 3.5vw, 2.6rem);
  overflow: hidden;
}
.hero-stage {
  position: relative;
  min-height: clamp(530px, 53vw, 680px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #d7cabb 0%, #e9e2d8 100%);
  box-shadow: 0 24px 54px rgba(55, 64, 42, 0.09);
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
  z-index: 0;
  clip-path: inset(0 0 100% 0);
  animation: heroImageReveal 1.25s var(--ease) 0.1s forwards;
}
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(215, 202, 187, 0.45) 0%, transparent 22%);
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  will-change: transform;
}
.hero-card {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 4vw, 3.2rem);
  bottom: clamp(1rem, 4vw, 3.2rem);
  left: clamp(1rem, 5vw, 4.1rem);
  width: min(56%, 640px);
  padding: clamp(2rem, 5vw, 4.35rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(240, 240, 231, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 52px rgba(55, 64, 42, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(-30px);
  animation: heroCardIn 0.9s var(--ease) 0.5s forwards;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(55, 64, 42, 0.18);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .eyebrow { margin-bottom: 1.5rem; }
.hero-card h1 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  max-width: none;
  color: var(--verde);
  line-height: 1.04;
}
.hero-title-lg {
  display: block;
  font-size: 1em;
  line-height: 0.98;
  max-width: 16ch;
}
.hero-title-sm {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 1.25vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.42;
  max-width: 100%;
  text-wrap: pretty;
}
.hero-copy-line { display: block; }
.hero-title-sm mark {
  background: var(--taupe);
  color: var(--verde);
  padding: 0.03em 0.2em;
  border-radius: 2px;
  font-weight: 700;
}
.hero-card .stat-pill {
  margin: clamp(1.1rem, 2vw, 1.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.9rem clamp(0.8rem, 2vw, 1.3rem);
  gap: clamp(0.4rem, 1.5vw, 1rem);
  background: rgba(240, 240, 231, 0.34);
  align-self: stretch;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}
.hero-card .stat-pill .sp { min-width: 0; }
.hero-card .stat-pill b { font-size: clamp(0.95rem, 1.7vw, 1.3rem); line-height: 1.1; white-space: nowrap; }
.hero-card .stat-pill span { font-size: clamp(0.46rem, 0.85vw, 0.56rem); line-height: 1.2; margin-top: 0.2rem; letter-spacing: 0.03em; white-space: nowrap; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: flex-start; flex-wrap: wrap; }
.hero-card-item {
  opacity: 0;
  transform: translateY(16px);
  animation: heroContentIn 0.72s var(--ease) var(--delay, 0.76s) forwards;
}
.hero-cutout {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(22px);
  animation: heroCutoutIn 0.9s var(--ease) 0.62s forwards;
}
.hero-cutout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}
@keyframes heroImageReveal { to { clip-path: inset(0); } }
@keyframes heroCardIn { to { opacity: 1; transform: translateX(0); } }
@keyframes heroContentIn { to { opacity: 1; transform: translateY(0); } }
@keyframes heroCutoutIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-card, .hero-card-item, .hero-cutout { animation: none; opacity: 1; transform: none; clip-path: none; }
}

@media (max-width: 760px) {
  .hero { padding-top: 7.3rem; padding-bottom: 1rem; }
  .hero-stage { min-height: 0; padding-bottom: 1rem; }
  .hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 1.026 / 1; }
  .hero-photo img { object-position: center 50%; transform: none; }
  .hero-cutout { display: none; }
  .hero-card {
    position: relative;
    z-index: 2;
    top: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 2rem);
    margin: -3.2rem 1rem 0;
    padding: 2.45rem 1.65rem;
  }
  .hero-card h1 { font-size: clamp(2.3rem, 11vw, 3.45rem); }
  .hero-card .stat-pill {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0.25rem;
    padding-inline: 0.45rem;
  }
  .hero-card .stat-pill .sp { min-width: 0; }
  .hero-card .stat-pill b { font-size: clamp(1.05rem, 4.6vw, 1.35rem); line-height: 1; white-space: normal; }
  .hero-card .stat-pill span {
    display: block;
    margin-top: 0.32rem;
    font-size: clamp(0.42rem, 1.55vw, 0.55rem);
    line-height: 1.22;
    letter-spacing: 0.035em;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .hero-copy-line { display: inline; }
}

@media (max-width: 420px) {
  .hero-card .stat-pill { border-radius: 14px; padding: 0.85rem 0.35rem; }
  .hero-card .stat-pill span { font-size: 0.43rem; letter-spacing: 0.02em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Intro / marca ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.intro-text p { font-size: 1.05rem; max-width: 46ch; opacity: 0.82; }
.stat-row { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.2rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 2.2rem; display: block; color: var(--terra-dark); font-weight: 500; }
.stat span { font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }

/* ---------- Quiénes somos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); }
.about-media .tag-float {
  position: absolute;
  bottom: -1.2rem; left: -1.2rem;
  background: var(--terra);
  color: var(--verde);
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  max-width: 200px;
  border-radius: var(--radius);
}
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.about-copy p { opacity: 0.85; max-width: 48ch; }
.about-list { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.about-list li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.95rem; }
.about-list li::before { content: "—"; color: var(--terra-dark); flex-shrink: 0; }

/* ---------- Equipo ---------- */
.team-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.team-heading {
  margin: 0 auto clamp(2rem, 5vw, 3.4rem);
  color: var(--beige);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  text-align: center;
}
.team-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.team-card {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(240, 240, 231, 0.1);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.team-card:first-child img { object-position: center center; }
.team-card:nth-child(2) img { object-position: center 45%; }
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 25, 15, 0.76) 100%);
  pointer-events: none;
}
.team-card figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  color: var(--beige);
}
.team-card figcaption span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}
.team-card figcaption small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  opacity: 0.8;
}
.team-card:hover img { transform: scale(1.045); filter: saturate(1.04); }
.team-video-link { margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; }
@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; max-width: 440px; }
  .team-card { aspect-ratio: 4 / 4.65; }
}

/* ---------- Video presentación ---------- */
.studio-film-section { overflow: hidden; }
.studio-film-head { max-width: 600px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.studio-film-head .eyebrow { justify-content: center; }
.studio-film-head h2 { margin-top: 1rem; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.studio-film-media {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(0.35rem, 1.2vw, 0.7rem);
  background: var(--verde);
  border: 1px solid rgba(240, 240, 231, 0.56);
  box-shadow: 0 26px 60px rgba(55, 64, 42, 0.2);
}
.studio-film-media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #12180e; }

/* ---------- Packaging ---------- */
.packaging-section { overflow: hidden; }
.packaging-head { max-width: 600px; margin: 0 auto clamp(2.1rem, 5vw, 3.8rem); text-align: center; }
.packaging-head .eyebrow { justify-content: center; }
.packaging-head h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.packaging-head p { max-width: 35ch; margin: 1rem auto 0; opacity: 0.76; }
.phones-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.85rem, 3vw, 2rem);
  max-width: 900px;
  margin: 0 auto;
  padding: 0.8rem 0 clamp(1rem, 3vw, 2rem);
}
.phone-frame { width: clamp(104px, 19vw, 220px); margin: 0; flex: 0 1 220px; }
.phone-device {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border: 1px solid rgba(240, 240, 231, 0.56);
  border-radius: clamp(18px, 3.4vw, 32px);
  background: linear-gradient(135deg, #272d22 0%, #050705 45%, #42483b 100%);
  box-shadow: 0 18px 34px rgba(55, 64, 42, 0.3), inset 0 0 0 1px rgba(255,255,255,0.13);
}
.phone-device::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 2px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: inherit;
  pointer-events: none;
}
.phone-screen { position: absolute; inset: clamp(4px, 0.55vw, 7px); overflow: hidden; border-radius: clamp(14px, 2.6vw, 26px); background: #151a12; }
.phone-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-speaker {
  position: absolute;
  z-index: 3;
  top: clamp(7px, 1.2vw, 11px);
  left: 50%;
  width: 28%;
  height: clamp(3px, 0.42vw, 5px);
  border-radius: 999px;
  background: rgba(7, 9, 6, 0.8);
  transform: translateX(-50%);
}
.phone-frame--one { transform: rotate(-5deg) translateY(1rem); }
.phone-frame--two { z-index: 1; transform: translateY(-0.8rem); }
.phone-frame--three { transform: rotate(5deg) translateY(1rem); }
@media (max-width: 620px) {
  .phones-stage { gap: 0.4rem; padding-inline: 0.15rem; }
  .phone-frame { width: clamp(84px, 27vw, 160px); }
  .phone-frame--one { transform: rotate(-4deg) translateY(0.45rem); }
  .phone-frame--two { transform: translateY(-0.3rem); }
  .phone-frame--three { transform: rotate(4deg) translateY(0.45rem); }
  .team-video-link .btn { white-space: normal; justify-content: center; }
}

/* ---------- Head de sección ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 20ch; }
.section-head p { max-width: 34ch; opacity: 0.72; font-size: 0.95rem; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(55,64,42,0.14);
  border: 1px solid rgba(55,64,42,0.14);
}
.service-card {
  background: var(--beige);
  padding: 2.3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.4s var(--ease);
  min-height: 280px;
}
.service-card:hover { background: var(--taupe); }
.service-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--terra-dark); }
.service-card h3 { font-size: 1.35rem; margin-top: 0.2rem; }
.service-card p { opacity: 0.75; font-size: 0.92rem; flex: 1; }
.service-card .btn { align-self: flex-start; font-size: 0.7rem; padding: 0.7em 1.2em; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.portfolio-item a { display: block; }
.p-media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--taupe); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.p-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 45%, rgba(55,64,42,0.75) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.p-media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(240,240,231,0.55);
  margin: 14px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.p-view {
  position: absolute; left: 50%; bottom: 1.5rem;
  transform: translate(-50%, 12px);
  opacity: 0;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--beige);
  font-family: var(--font-body); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.p-view svg { width: 13px; height: 13px; transition: transform 0.5s var(--ease); }
.portfolio-item:hover .p-media img { transform: scale(1.07); }
.portfolio-item:hover .p-media::before { opacity: 1; }
.portfolio-item:hover .p-media::after { opacity: 1; transform: scale(1); }
.portfolio-item:hover .p-view { opacity: 1; transform: translate(-50%, 0); }
.portfolio-item:hover .p-view svg { transform: translateX(3px); }
.p-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; }
.p-meta h3 { font-size: 1.15rem; }
.p-meta span { font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: .04em; text-transform: uppercase; opacity: 0.55; }

/* ---------- Branding & Diseño (universos de marca) ---------- */
.branding-head { text-align: center; max-width: 640px; margin: 0 auto; }
.branding-head .eyebrow { justify-content: center; display: inline-flex; }
.branding-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 1rem; }
.branding-sub { font-size: 1.05rem; opacity: 0.7; margin-top: 0.6rem; }

.stat-pill {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1.6rem, 5vw, 3.4rem);
  border: 1px solid rgba(55,64,42,0.16);
  border-radius: 999px;
  padding: 1.1rem clamp(1.6rem, 5vw, 3rem);
  width: fit-content;
  margin: 2.6rem auto;
}
.stat-pill .sp { text-align: center; }
.stat-pill b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--terra-dark); display: block; line-height: 1.15; }
.stat-pill span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; opacity: 0.6; display: block; line-height: 1.25; margin-top: 0.25rem; }

.branding-copy { max-width: 58ch; margin: 0 auto 3rem; text-align: center; font-size: 1.06rem; line-height: 1.65; opacity: 0.88; }
.branding-copy mark {
  background: var(--taupe); color: var(--verde);
  padding: 0.05em 0.35em; border-radius: 3px; font-weight: 600;
}

#branding.section { padding-top: clamp(3rem, 5vw, 4.5rem); }

.bu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 1.8rem); }
.bu-card { border-radius: var(--radius); overflow: hidden; background: var(--beige-2); border: 1px solid rgba(55,64,42,0.1); }
.bu-top {
  aspect-ratio: 4/3.1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.bu-top img { max-width: 74%; max-height: 62%; object-fit: contain; }
.bu-card--legui .bu-top { padding: 0; }
.bu-card--legui .bu-top img { max-width: 100%; max-height: 100%; }

.bu-gallery-wrap { overflow: hidden; border-top: 1px solid rgba(55,64,42,0.1); }
.bu-gallery-track { display: flex; width: max-content; padding: 0.9rem; gap: 0.6rem; animation: buScroll 16s linear infinite; }
.bu-gallery-wrap:hover .bu-gallery-track { animation-play-state: paused; }
.bu-gallery-track img { width: 128px; height: 160px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.bu-card--rolity .bu-gallery-track img { width: 130px; height: 173px; }
@keyframes buScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bu-gallery-track { animation: none; } }

.bu-soon {
  padding: 1.1rem 1.3rem;
  border-top: 1px solid rgba(55,64,42,0.1);
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.5;
  margin: 0;
}

@media (max-width: 900px) {
  .bu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bu-grid { grid-template-columns: 1fr; }
  .stat-pill { border-radius: 20px; }
}

/* ---------- Redes Sociales (lluvia de historias) ---------- */
.redes-showcase { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--gap); align-items: center; }
.redes-fall {
  position: relative;
  height: clamp(390px, 47vw, 560px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--verde);
  display: flex;
  gap: 0.7rem;
  padding: 0 0.7rem;
}
.redes-fall-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: fallDown var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.redes-fall-col img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
@keyframes fallDown { from { transform: translateY(-50%); } to { transform: translateY(0%); } }
@media (prefers-reduced-motion: reduce) { .redes-fall-col { animation: none; } }
.redes-fall-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--beige);
  border-radius: 50%;
  width: clamp(110px, 20vw, 160px);
  height: clamp(110px, 20vw, 160px);
  padding: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}
.redes-fall-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.redes-photos { display: flex; flex-direction: column; gap: var(--gap); }
.redes-photos img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--radius); }
.redes-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  color: var(--verde);
}
.redes-links > span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.58;
}
.redes-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid rgba(55, 64, 42, 0.35);
  font-family: var(--font-display);
  font-size: 1.15rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.redes-links a::after { content: "↗"; font-family: var(--font-body); font-size: 0.66em; }
.redes-links a:hover { color: var(--terra-dark); border-color: var(--terra-dark); transform: translateY(-2px); }

@media (max-width: 900px) {
  .redes-showcase { grid-template-columns: 1fr; }
  .redes-photos { flex-direction: row; }
}
@media (max-width: 560px) {
  .redes-photos { flex-direction: column; }
  .redes-fall { gap: 0.45rem; padding: 0 0.45rem; height: 440px; }
  .redes-fall-col { gap: 0.45rem; }
  .redes-fall-logo { width: 104px; height: 104px; }
  .redes-links { gap: 0.65rem 0.9rem; }
}

/* ---------- Marcas by Maipi (logofolio) ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem 1.75rem;
}
.brand-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-avatar {
  width: 100%; max-width: 10.5rem; aspect-ratio: 1/1;
  border-radius: 50%; overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(55,64,42,0.14);
  box-shadow: 0 8px 20px rgba(55,64,42,0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card:hover .brand-avatar {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 18px 30px rgba(55,64,42,0.14);
  border-color: var(--terra);
}
.brand-name { margin-top: 1.1rem; font-weight: 600; font-size: 0.96rem; line-height: 1.3; }
.brand-rubro { margin-top: 0.2rem; font-size: 0.78rem; color: var(--terra-dark); font-weight: 600; }
.brand-lugar {
  margin-top: 0.3rem; font-size: 0.75rem; color: var(--verde); opacity: 0.55;
  display: inline-flex; align-items: center; gap: 0.28rem;
}
.brand-lugar svg { width: 0.7rem; height: 0.7rem; flex-shrink: 0; }

@media (max-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
  .brand-avatar { max-width: 8rem; }
}

/* ---------- Testimonios ---------- */
.testi-wrap { position: relative; max-width: 740px; margin: 0 auto; text-align: center; }
.testi-mark { font-family: var(--font-script); font-size: 3.2rem; color: var(--terra-dark); display: block; margin-bottom: -1rem; }
.testi-slide { display: none; }
.testi-slide.is-active { display: block; animation: fadein 0.6s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.testi-slide p.quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.4; font-weight: 500; }
.testi-slide .who { margin-top: 1.4rem; font-family: var(--font-body); font-weight: 600; font-size: 0.76rem; letter-spacing: .03em; text-transform: uppercase; opacity: 0.6; }
.testi-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2.2rem; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(55,64,42,0.25); padding: 0; }
.testi-dots button.is-active { background: var(--terra-dark); }

/* ---------- Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.benefit .n { font-family: var(--font-display); font-size: 1.15rem; color: var(--terra-dark); }
.benefit h3 { font-size: 1.1rem; margin: 0.6rem 0 0.5rem; }
.benefit p { font-size: 0.88rem; opacity: 0.72; }

/* ---------- CTA contacto ---------- */
.cta-block { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--gap); align-items: center; }
.cta-block h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
.cta-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.cta-actions .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde); color: var(--text-ondark); padding: 4.5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); padding-bottom: 3rem; border-bottom: 1px solid rgba(240,240,231,0.14); }
.footer-brand .logo img { height: 42px; }
.footer-brand p { opacity: 0.65; max-width: 30ch; font-size: 0.92rem; margin-top: 1.1rem; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; opacity: 0.55; margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--terra); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.6rem; font-family: var(--font-body); font-size: 0.72rem; opacity: 0.5; flex-wrap: wrap; gap: 1rem; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; opacity: 0.6; }
input, textarea, select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(55,64,42,0.25);
  padding: 0.7rem 0.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: inherit;
}
input:focus, textarea:focus, select:focus { border-bottom-color: var(--terra-dark); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; opacity: 0.55; margin-top: 1rem; }
.form-success { display: none; margin-top: 1.2rem; padding: 1rem; border-left: 2px solid var(--terra-dark); font-size: 0.9rem; background: var(--taupe); }
.form-success.is-visible { display: block; }

/* ---------- Utilidades de revelado ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Página interior: hero simple ---------- */
.page-hero { padding: 9rem 0 2.5rem; text-align: center; }
.page-hero + .section-tight { padding-top: clamp(1rem, 3vw, 2rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 20ch; margin: 0 auto; }
.page-hero p { max-width: 46ch; opacity: 0.75; margin: 1.1rem auto 0; font-size: 1.02rem; }

/* ---------- Proyecto individual ---------- */
.project-hero-media { aspect-ratio: 16/8; overflow: hidden; border-radius: var(--radius); margin-top: 2.5rem; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(55,64,42,0.12); text-align: left; }
.project-meta-row .m label { display: block; }
.project-meta-row .m span { font-family: var(--font-display); font-size: 1.1rem; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 1rem; }
.project-gallery .wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.project-gallery figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }
.project-next { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .intro-grid, .about-grid, .cta-block { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-meta-row { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 150;
    background: var(--verde);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.6rem; padding: 0 8vw;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav a { color: var(--beige) !important; font-size: 1.5rem; font-family: var(--font-display); text-transform: none; }
  .nav-toggle { display: block; }
  .header-cta.btn { display: none; }
  .services-grid, .portfolio-grid, .benefits-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .section { padding: 3.5rem 0; }
  .project-meta-row { grid-template-columns: 1fr 1fr; }
  .cta-actions .btn { width: 100%; }
}
