:root {
  /* Paleta "Elegancia Cálida" */
  --bg: #FAF7F2;           /* Fondo principal — blanco cálido */
  --primary: #C9A05C;      /* Dorado champán — CTAs, íconos, acentos */
  --secondary: #3D4A3D;    /* Verde salvia oscuro — textos, detalles */
  --accent: #B87455;       /* Terracota suave — promociones, decorativo */
  --text: #2B2B2B;         /* Texto principal — gris carbón */
  --text-secondary: #8A8580; /* Texto secundario / bordes — gris piedra */

  --bg-tint: color-mix(in srgb, var(--primary) 12%, var(--bg));

  /* Curvas de easing (ver skill emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- placeholder (replaces image-slot / real assets) ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: color-mix(in srgb, var(--text-secondary) 12%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--text-secondary) 55%, transparent);
  border-radius: 14px;
  box-sizing: border-box;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: color-mix(in srgb, var(--text) 55%, transparent);
}
.placeholder--dark {
  background: color-mix(in srgb, var(--bg) 10%, transparent);
  border-color: color-mix(in srgb, var(--bg) 30%, transparent);
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}

/* ---------- real photos ---------- */
.img-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- scroll reveal (fade-in + slide-up) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.servicios__cards .card:nth-child(1) { transition-delay: 0ms; }
.servicios__cards .card:nth-child(2) { transition-delay: 60ms; }
.servicios__cards .card:nth-child(3) { transition-delay: 120ms; }
.servicios__cards .card:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 300ms ease;
    transform: none;
  }
  .hero__title, .hero__subtitle, .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ 1. HERO ============ */
.hero {
  position: relative;
  width: 100%;
  background: var(--secondary);
  line-height: 0;
}
.hero .img-cover {
  border-radius: 0;
  height: auto;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--secondary) 78%, black) 0%,
    color-mix(in srgb, var(--secondary) 20%, transparent) 65%,
    transparent 100%);
}
.hero__content {
  max-width: 620px;
  padding: 0 64px;
  line-height: normal;
}
.hero__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.08;
  color: var(--bg);
  margin: 0 0 24px;
  letter-spacing: -.5px;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 700ms var(--ease-out) 80ms forwards;
}
.hero__subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  margin: 0 0 34px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 700ms var(--ease-out) 180ms forwards;
}
.hero__cta {
  display: inline-block;
  text-decoration: none;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  opacity: 0;
  animation: hero-cta-in 700ms var(--ease-out) 280ms forwards;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  }
}
.hero__cta:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Opacity-only entrance for the CTA: keeps `transform` free for the
   hover/active transition below (an animation that touches the same
   property as a transition always wins, even after it finishes). */
@keyframes hero-cta-in {
  to { opacity: 1; }
}

/* ============ 2. ABOUT ============ */
.about {
  width: 100%;
  background: var(--bg);
  padding: 120px 0;
}
.about__grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
  box-sizing: border-box;
}
.about__copy {
  max-width: 560px;
}
.about__eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--primary);
  margin: 0 0 14px;
}
.about__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 30px;
  letter-spacing: -.5px;
}
.about__divider {
  height: 2px;
  width: 100%;
  max-width: 640px;
  background: var(--primary);
  margin: 0 0 44px;
}
.about__body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.85;
  color: var(--secondary);
  margin: 0;
}

/* ============ 3. SERVICIOS ============ */
.servicios {
  width: 100%;
  background: var(--bg-tint);
  padding: 96px 0 110px;
}
.servicios__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}
.servicios__header {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 72px;
}
.servicios__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 66px;
  line-height: 1.02;
  color: var(--text);
  margin: 0;
  letter-spacing: -.5px;
}
.servicios__lead {
  font-family: 'Figtree', sans-serif;
  font-size: 23px;
  line-height: 1.5;
  color: var(--secondary);
  margin: 12px 0 0;
  max-width: 520px;
}
.servicios__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card {
  border: 2px solid var(--secondary);
  border-radius: 20px;
  background: var(--bg);
  padding: 34px 30px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--secondary) 12%, transparent);
  box-sizing: border-box;
  margin: 0;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 0 color-mix(in srgb, var(--secondary) 12%, transparent);
  }
}
.card__num {
  align-self: flex-start;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 36px;
}
.card__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 20px;
}
.card__body {
  font-family: 'Figtree', sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--secondary);
  margin: 0;
}

/* ============ 4. CREATIVE SPACE ============ */
.creative {
  position: relative;
  width: 100%;
  height: 1180px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 22% 38%,
    color-mix(in srgb, var(--secondary) 85%, black) 0%,
    var(--secondary) 45%,
    color-mix(in srgb, var(--secondary) 70%, black) 100%);
}
.creative__badge {
  position: absolute;
  top: -22px;
  left: 34px;
  z-index: 30;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
}
.creative__badge span {
  text-align: center;
  font-family: 'Anton', sans-serif;
  color: var(--bg);
  line-height: .98;
  letter-spacing: .5px;
  font-size: 16px;
  text-transform: uppercase;
}
.creative__inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
}
.creative__copy {
  flex: 0 0 46%;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 40px 88px;
  box-sizing: border-box;
  overflow: hidden;
}
.creative__tabs {
  display: flex;
  gap: 34px;
  align-items: center;
  margin-bottom: 26px;
}
.creative__tab {
  position: relative;
  color: color-mix(in srgb, var(--bg) 50%, transparent);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  padding-bottom: 8px;
}
.creative__tab--active {
  color: var(--bg);
  font-weight: 600;
}
.creative__tab--active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.creative__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--bg);
  font-size: clamp(44px, 4.4vw, 62px);
  line-height: .95;
  letter-spacing: .5px;
  margin: 0 0 22px;
  max-width: 12ch;
}
.creative__body {
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  max-width: 400px;
  margin: 0 0 30px;
}
.creative__cta {
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .creative__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  }
}
.creative__cta:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}
.creative__note {
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  margin: 28px 0 0;
}
.creative__gallery {
  flex: 1 1 auto;
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 0 40px 0 8px;
  box-sizing: border-box;
  display: flex;
  gap: 22px;
}
.creative__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 44px;
  animation: creative-scroll 46s linear infinite;
}
.creative__col--b {
  padding-top: 0;
  animation-duration: 60s;
}
.creative__frame {
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.creative__frame--1 { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.creative__frame--2 { background: linear-gradient(135deg, var(--accent), var(--secondary)); }
.creative__frame--3 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.creative__frame--4 { background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.creative__frame--5 { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.creative__tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.creative__fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--secondary) 85%, black), transparent);
  pointer-events: none;
  z-index: 5;
}
.creative__notification {
  position: absolute;
  bottom: 44px;
  left: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 20px 14px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  max-width: 440px;
}
.creative__notification-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.creative__notification-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.creative__notification-body {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}
@keyframes creative-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* ============ 5. EXPERTISE ============ */
.expertise {
  width: 100%;
  background: var(--bg);
  padding: 150px 56px 170px;
  position: relative;
  box-sizing: border-box;
}
.expertise__wrap {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.expertise__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 8px;
  position: relative;
}
.expertise__dot {
  position: absolute;
  left: 8%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
}
.expertise__paren {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  letter-spacing: .2em;
  color: var(--primary);
}
.expertise__years {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  letter-spacing: .35em;
  color: var(--primary);
}
.expertise__title {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 200px;
  line-height: 1;
  color: var(--primary);
  margin: 0 0 56px;
  letter-spacing: -2px;
}
.expertise__body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 auto;
  max-width: 720px;
}

/* ============ 6. CTA FINAL ============ */
.cta-final {
  width: 100%;
  background: var(--secondary);
  padding: 120px 56px;
  box-sizing: border-box;
  text-align: center;
}
.cta-final__wrap {
  max-width: 720px;
  margin: 0 auto;
}
.cta-final__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  color: var(--bg);
  margin: 0 0 22px;
  letter-spacing: -.5px;
}
.cta-final__body {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  margin: 0 0 36px;
}
.cta-final__cta {
  display: inline-block;
  text-decoration: none;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta-final__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  }
}
.cta-final__cta:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

/* Placed last so it wins the cascade over .creative__col's own animation rule. */
@media (prefers-reduced-motion: reduce) {
  .creative__col {
    animation: none;
  }
}

/* OIBA v2 · corrección móvil: la hoja original no tenía reglas por debajo de escritorio
   y el contenido del hero (absoluto) se desbordaba sobre la imagen de 2744/1014. */
@media (max-width: 760px) {
  .hero { display: grid; }
  .hero .img-cover { grid-area: 1 / 1; height: 100%; min-height: 560px; object-fit: cover; aspect-ratio: auto !important; }
  .hero__overlay { position: relative; grid-area: 1 / 1; align-items: flex-end;
    background: linear-gradient(180deg, transparent 10%, color-mix(in srgb, var(--secondary) 88%, black) 72%); }
  .hero__content { padding: 140px 22px 36px; }
  .hero__title { font-size: 34px; }
  .hero__subtitle { font-size: 16px; }

  .about { padding: 72px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; padding: 0 22px; }
  .about__title { font-size: 36px; }
  .servicios { padding: 64px 0 72px; }
  .servicios__wrap { padding: 0 22px; }
  .servicios__header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  .servicios__title { font-size: 38px; }
  .servicios__lead { font-size: 18px; }
  .servicios__cards { grid-template-columns: 1fr; gap: 16px; }
  .creative { height: auto; }
  .creative__inner { flex-direction: column; }
  .creative__copy { flex: none; max-width: none; padding: 72px 22px 28px; }
  .creative__tabs { gap: 18px; flex-wrap: wrap; }
  .creative__gallery { height: 520px; padding: 0 22px; }
  .creative__col--b { display: none; }
  .expertise { padding: 80px 22px 90px; }
  .expertise__title { font-size: clamp(52px, 17vw, 96px); margin-bottom: 28px; letter-spacing: -1px; }
  .expertise__body { font-size: 18px; }
  .expertise__dot { left: 2%; }
  .cta-final { padding: 72px 22px; }
  .cta-final__title { font-size: 34px; }
}
