/* ============================================================
   PEDRO HACES LAGO — #ElGalloDeTlalpan
   Design system Kommun · base arquitectónica TC adaptada
   ============================================================ */

:root {
  --guinda-950: #33030d;
  --guinda-900: #500617;
  --guinda-800: #640a1f;
  --guinda-700: #770522;
  --guinda-600: #8f1230;
  --gold-600: #b08949;
  --gold-500: #c9a567;
  --gold-400: #d9be8c;
  --gold-300: #e4d1b0;
  --cream-50: #fcf9f2;
  --cream-100: #f3ede1;
  --cream-200: #eae0cc;
  --ink-900: #211714;
  --ink-700: #54443e;
  --ink-500: #84726b;
  --line: rgba(80, 6, 23, 0.14);
  --shadow-soft: 0 18px 60px rgba(51, 3, 13, 0.1);
  --shadow-strong: 0 28px 90px rgba(51, 3, 13, 0.2);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Anton", "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(201, 165, 103, 0.16), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(119, 5, 34, 0.08), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream-100) 26%, #fdfaf3 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--guinda-700); }

/* ===== View Transitions (progressive enhancement) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.34s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ===== Utilidades ===== */
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--guinda-700);
}
.section-kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--gold-500);
  transform-origin: left; transform: scaleX(0); transition: transform 0.8s var(--ease) 0.15s;
}
.is-visible .section-kicker::before, .section-kicker.is-visible::before { transform: scaleX(1); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04; letter-spacing: 0.01em;
  text-transform: uppercase; font-weight: 400;
  margin: 14px 0 18px; color: var(--ink-900);
}
.section-title .accent { color: var(--guinda-700); }
.section-lead { max-width: 640px; color: var(--ink-700); font-size: 17px; }

/* Subrayado que se dibuja */
.draw-underline { position: relative; display: inline-block; }
.draw-underline::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.35s;
  border-radius: 2px;
}
.is-visible .draw-underline::after { transform: scaleX(1); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.btn i { transition: transform 0.24s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn-primary { background: var(--guinda-700); color: var(--cream-50); box-shadow: 0 14px 34px rgba(119, 5, 34, 0.32); }
.btn-primary:hover { background: var(--guinda-600); transform: translateY(-2px); box-shadow: 0 20px 44px rgba(119, 5, 34, 0.4); }
.btn-outline { background: transparent; color: var(--guinda-700); border-color: var(--guinda-700); }
.btn-outline:hover { background: var(--guinda-700); color: var(--cream-50); transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--guinda-950); box-shadow: 0 14px 34px rgba(176, 137, 73, 0.4); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(176, 137, 73, 0.45); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 18px 0 auto; z-index: 60;
  transition: transform 0.4s var(--ease);
}
.header-inner {
  width: min(1280px, calc(100% - 32px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(252, 249, 242, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px; padding: 12px 14px 12px 24px;
  box-shadow: 0 14px 40px rgba(51, 3, 13, 0.12);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner { box-shadow: 0 18px 50px rgba(51, 3, 13, 0.2); background: rgba(252, 249, 242, 0.96); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-desktop a {
  position: relative; padding: 10px 16px; text-decoration: none;
  color: var(--ink-900); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  transition: color 0.24s var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-desktop a:hover { color: var(--guinda-700); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--guinda-700); }
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--cream-200); color: var(--guinda-900);
  font-size: 18px; cursor: pointer; align-items: center; justify-content: center;
}

/* Drawer móvil */
.nav-overlay { position: fixed; inset: 0; background: rgba(33, 23, 20, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 70; }
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 80;
  background: linear-gradient(170deg, var(--cream-50), var(--cream-100));
  padding: 28px 26px; transform: translateX(100%); transition: transform 0.38s var(--ease);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(51, 3, 13, 0.25);
}
.nav-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.drawer-head img { height: 48px; }
.drawer-close { border: none; background: var(--cream-200); width: 44px; height: 44px; border-radius: 50%; font-size: 17px; color: var(--guinda-900); cursor: pointer; }
.nav-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.nav-drawer nav a {
  text-decoration: none; color: var(--ink-900); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 14px; padding: 15px 10px;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-drawer nav a:hover, .nav-drawer nav a.is-active { color: var(--guinda-700); padding-left: 16px; }
.drawer-cta { margin-top: auto; }
.drawer-cta .btn { width: 100%; justify-content: center; }
body.menu-open { overflow: hidden; }

/* ============================================================
   HERO — capas parallax
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: stretch; overflow: hidden;
  isolation: isolate;
}
.hero-bg, .hero-pedro { position: absolute; will-change: transform; }
.hero-bg {
  inset: -6% 0; z-index: 1;
  background-size: cover; background-position: center;
  background-image: url("assets/hero-bg-desktop.webp");
  animation: hero-bg-in 1.6s var(--ease) both;
}
@keyframes hero-bg-in { from { transform: scale(1.07); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }

.hero-pedro {
  z-index: 3; pointer-events: none;
  left: 3.1%; bottom: 0; width: 47.8%;
  animation: hero-pedro-in 1.2s var(--ease) 0.25s both;
}
@keyframes hero-pedro-in { from { transform: translateY(46px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hero-card {
  position: relative; z-index: 4; align-self: center;
  margin-left: auto; margin-right: 6.5%;
  width: min(560px, 46vw);
  background: rgba(252, 249, 242, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: var(--shadow-strong);
  animation: hero-card-in 1s var(--ease) 0.5s both;
}
@keyframes hero-card-in { from { transform: translateY(34px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.hero-card img.lockup { width: 100%; height: auto; }
.hero-card .hero-claim {
  margin: 20px 0 24px; color: var(--ink-700); font-size: 15.5px; line-height: 1.65;
}
.hero-card .hero-claim strong { color: var(--guinda-700); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-pleca {
  position: absolute; z-index: 5; bottom: 0; right: 0; height: 12px; width: 54%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  clip-path: polygon(2.5% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-scroll {
  position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: var(--cream-50); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(33, 3, 13, 0.6); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.9;
}
.hero-scroll i { animation: bounce-y 1.8s ease-in-out infinite; }
@keyframes bounce-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Hero interior (páginas secundarias) */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 92px) 0 74px; overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 165, 103, 0.22), transparent 34%),
    linear-gradient(160deg, var(--guinda-950), var(--guinda-800) 68%, var(--guinda-700));
  color: var(--cream-50);
}
.page-hero::after {
  content: ""; position: absolute; right: -6%; top: -12%; width: 460px; height: 460px;
  background: url("assets/gallo-marca-agua.png") no-repeat center / contain; opacity: 0.9;
  pointer-events: none;
}
.page-hero .section-kicker { color: var(--gold-400); }
.page-hero .section-kicker::before { background: var(--gold-500); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; margin: 14px 0 16px; letter-spacing: 0.01em;
}
.page-hero p { max-width: 620px; color: var(--gold-300); font-size: 17px; }
.page-hero .pleca { position: absolute; left: 0; bottom: 0; height: 10px; width: 46%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); clip-path: polygon(0 0, 97.5% 0, 100% 100%, 0 100%); }

/* ============================================================
   MARQUEE #ElGalloDeTlalpan
   ============================================================ */
.marquee {
  background: var(--guinda-900); color: var(--cream-100);
  padding: 16px 0; overflow: hidden; position: relative;
  border-top: 3px solid var(--gold-500); border-bottom: 3px solid var(--gold-500);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 18px; white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px;
}
.marquee-track span::after { content: ""; width: 30px; height: 34px; background: url("assets/gallo-dorado.png") no-repeat center / contain; }
.marquee-track .alt { color: var(--gold-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   TARJETAS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); border-color: rgba(201, 165, 103, 0.5); }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--guinda-700), var(--guinda-900));
  color: var(--gold-300); font-size: 20px; margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(119, 5, 34, 0.3);
}
.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--guinda-900); }
.card p { margin: 0; color: var(--ink-700); font-size: 14.5px; }
.card-photo { margin: -30px -30px 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.card-photo img.pos-top { object-position: 50% 8%; }
.card:hover .card-photo img { transform: scale(1.05); }
.card.has-photo .icon { margin-top: -27px; position: relative; z-index: 2; border: 3px solid #fffdf9; }
.card .meta { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); display: flex; align-items: center; gap: 8px; }

/* Stats con contador */
.stats-band { background: linear-gradient(160deg, var(--guinda-950), var(--guinda-800)); color: var(--cream-50); border-radius: var(--radius-xl); padding: clamp(34px, 4vw, 56px); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; right: -70px; bottom: -90px; width: 380px; height: 380px; background: url("assets/gallo-marca-agua.png") no-repeat center / contain; opacity: 0.85; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.stat .num { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 58px); color: var(--gold-400); line-height: 1; }
.stat .num sup { font-size: 0.5em; }
.stat .label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-100); margin-top: 8px; opacity: 0.85; }

/* Split conóceme */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.portrait-frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-strong); background: linear-gradient(150deg, var(--gold-300), var(--cream-200)); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(201, 165, 103, 0.55); border-radius: var(--radius-xl); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame .badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(252, 249, 242, 0.92);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 18px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--guinda-800);
  box-shadow: var(--shadow-soft);
}

/* Timeline iniciativas */
.timeline { position: relative; margin: 40px 0 0; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold-500), var(--guinda-700)); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream-50); border: 4px solid var(--guinda-700); box-shadow: 0 0 0 5px rgba(201, 165, 103, 0.25);
}
.timeline-item .when { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-600); }
.timeline-item h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 800; color: var(--guinda-900); }
.timeline-item p { margin: 0; color: var(--ink-700); font-size: 14.5px; max-width: 640px; }
.timeline-item .tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--guinda-700); background: rgba(119, 5, 34, 0.08); border: 1px solid rgba(119, 5, 34, 0.18); padding: 5px 12px; border-radius: 999px; }

/* ============================================================
   VIDEOS
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-item { margin: 0; }
.video-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 440 / 782; background: var(--guinda-950);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.video-card:hover img { transform: scale(1.04); }
.video-card .play {
  position: absolute; right: 16px; top: 16px;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(51, 3, 13, 0.55); border: 1.5px solid rgba(228, 209, 176, 0.65);
  backdrop-filter: blur(6px); color: var(--gold-300); font-size: 17px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.video-card:hover .play { transform: scale(1.12); background: var(--guinda-700); }
.video-item figcaption { padding: 16px 6px 0; }
.video-item .net { font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-600); display: inline-flex; align-items: center; gap: 8px; }
.video-item h3 { margin: 8px 0 0; font-size: 15.5px; line-height: 1.4; font-weight: 700; color: var(--ink-900); }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 20px; }
.gallery-item { margin: 0; position: relative; grid-column: span 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-item.g-wide { grid-column: span 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(252, 249, 242, 0.92); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 9px 15px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--guinda-800);
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote-section { position: relative; padding: 130px 0; overflow: hidden; background: var(--guinda-950); }
.quote-bg { position: absolute; inset: -10% 0; background: url("assets/hero-bg-mobile.webp") center 30% / cover no-repeat; opacity: 0.32; will-change: transform; }
.quote-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51, 3, 13, 0.55), rgba(51, 3, 13, 0.82)); }
.quote-inner { position: relative; z-index: 2; text-align: center; }
.quote-inner blockquote {
  margin: 0 auto; max-width: 880px; color: var(--cream-50);
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.16; letter-spacing: 0.01em;
}
.quote-inner blockquote .gold { color: var(--gold-400); }
.quote-inner cite { display: block; margin-top: 24px; font-style: normal; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-300); }

/* ============================================================
   CTA SÚMATE band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--guinda-800), var(--guinda-600)); color: var(--cream-50); padding: clamp(38px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; box-shadow: var(--shadow-strong); }
.cta-band::before { content: ""; position: absolute; z-index: 0; right: 18%; top: -60px; bottom: -60px; width: 240px; background: url("assets/gallo-marca-agua.png") no-repeat center / contain; opacity: 0.9; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 10px; line-height: 1.06; }
.cta-band p { margin: 0; color: var(--gold-300); max-width: 520px; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-card { background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-strong); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--guinda-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink-900);
  background: var(--cream-50); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201, 165, 103, 0.2);
}
.form-consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-700); }
.form-consent input { margin-top: 3px; accent-color: var(--guinda-700); }
.form-submit { grid-column: 1 / -1; justify-content: center; position: relative; }
.form-submit .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(252, 249, 242, 0.4); border-top-color: var(--cream-50); border-radius: 50%; animation: spin 0.8s linear infinite; }
.form-submit.is-loading .spinner { display: inline-block; }
.form-submit.is-loading .fa-arrow-right { display: none; }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { grid-column: 1 / -1; display: none; border-radius: 14px; padding: 16px 18px; font-size: 14px; font-weight: 600; }
.form-status.ok { display: block; background: rgba(38, 120, 66, 0.1); color: #1d5c34; border: 1px solid rgba(38, 120, 66, 0.3); }
.form-status.err { display: block; background: rgba(160, 24, 24, 0.08); color: #8c1616; border: 1px solid rgba(160, 24, 24, 0.28); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Tarjetas de contacto */
.contact-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.contact-card .value { font-size: 18px; font-weight: 800; color: var(--guinda-900); word-break: break-word; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--cream-50); color: var(--guinda-700); border-radius: 999px; padding: 8px 16px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: all 0.22s var(--ease); margin-top: 8px; }
.copy-btn:hover, .copy-btn.is-copied { background: var(--guinda-700); color: var(--cream-50); border-color: var(--guinda-700); }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: #fffdf9; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; color: var(--ink-900); font-weight: 700; font-size: 14px; transition: all 0.24s var(--ease); box-shadow: var(--shadow-soft); }
.social-chip i { color: var(--guinda-700); font-size: 17px; }
.social-chip:hover { transform: translateY(-3px); border-color: var(--gold-500); box-shadow: var(--shadow-strong); }

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--guinda-800), var(--guinda-600)); position: relative; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.news-card .thumb .ph img { width: 120px; height: auto; opacity: 0.35; object-fit: contain; }
.news-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .date { font-size: 11.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-600); }
.news-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.news-card a.more { margin-top: auto; text-decoration: none; font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--guinda-700); display: inline-flex; align-items: center; gap: 8px; }
.news-card a.more i { transition: transform 0.24s var(--ease); }
.news-card a.more:hover i { transform: translateX(5px); }

/* ============================================================
   PORTADA LIBRO
   ============================================================ */
.book-cover { position: relative; max-width: 400px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-strong); transition: transform 0.4s var(--ease); }
.book-cover::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 6px 0 18px rgba(0,0,0,0.18), inset 1px 0 0 rgba(255,255,255,0.25); pointer-events: none; }
.book-cover img { width: 100%; height: auto; display: block; }
.book-cover:hover { transform: translateY(-6px) rotate(-0.6deg); }

/* ============================================================
   LEGAL
   ============================================================ */
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--guinda-900); margin: 42px 0 12px; }
.legal-body p, .legal-body li { color: var(--ink-700); font-size: 15px; }
.legal-body .updated { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); }
.pendiente { background: rgba(201, 165, 103, 0.25); border-bottom: 2px dashed var(--gold-600); padding: 0 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 96px; background: linear-gradient(170deg, var(--guinda-950), var(--guinda-900)); color: var(--cream-100); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: -60px; bottom: -80px; width: 340px; height: 340px; background: url("assets/gallo-marca-agua.png") no-repeat center / contain; opacity: 0.8; }
.footer-pleca { height: 8px; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; position: relative; }
.footer-inner img.flogo { height: 52px; width: auto; margin-bottom: 18px; }
.footer-inner p { color: var(--gold-300); font-size: 14px; max-width: 340px; }
.footer-col h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--cream-100); text-decoration: none; padding: 6px 0; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-col a:hover { color: var(--gold-300); padding-left: 6px; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(252, 249, 242, 0.08); border: 1px solid rgba(228, 209, 176, 0.25); color: var(--gold-300); font-size: 16px; transition: all 0.24s var(--ease); padding: 0; }
.footer-social a:hover { background: var(--gold-500); color: var(--guinda-950); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(228, 209, 176, 0.18); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(243, 237, 225, 0.7); position: relative; }
.footer-bottom a { color: var(--gold-300); text-decoration: none; }

/* ============================================================
   WHATSAPP flotante
   ============================================================ */
.wa-btn { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: #25d366; color: #fff; font-size: 27px; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(18, 90, 50, 0.4); transition: transform 0.24s var(--ease); }
.wa-btn:hover { transform: translateY(-3px) scale(1.05); }

/* Burbuja teaser (auto-aparece, ligera) */
.wa-teaser {
  position: fixed; right: 90px; bottom: 28px; z-index: 56;
  display: none; align-items: flex-start;
  filter: drop-shadow(0 10px 26px rgba(20, 40, 30, 0.28));
}
.wa-teaser.is-visible { display: flex; animation: wa-teaser-in 0.4s var(--ease) both; }
@keyframes wa-teaser-in { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wa-teaser-body {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: none; cursor: pointer;
  border-radius: 16px 16px 4px 16px; padding: 10px 14px;
  font-family: var(--font-body); text-align: left; max-width: 240px;
}
.wa-teaser-body img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.wa-teaser-body span { font-size: 12.5px; line-height: 1.35; color: #1d2a26; }
.wa-teaser-body span strong { display: block; font-size: 11px; color: #075e54; letter-spacing: 0.02em; }
.wa-teaser-close {
  order: -1; align-self: flex-start; margin: -6px 4px 0 0;
  width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(33, 23, 20, 0.55); color: #fff; font-size: 10px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.wa-teaser-close:hover { background: rgba(33, 23, 20, 0.8); }
@media (max-width: 560px) { .wa-teaser { right: 16px; bottom: 96px; } .wa-teaser-body { max-width: min(240px, calc(100vw - 90px)); } }

/* Chat estilo WhatsApp */
.wa-chat {
  position: fixed; right: 22px; bottom: 96px; z-index: 56;
  width: min(340px, calc(100vw - 32px));
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(20, 40, 30, 0.35);
  background: #efe7dd;
  opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.wa-chat.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #075e54; color: #fff; }
.wa-chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.35); }
.wa-chat-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wa-chat-id strong { font-size: 14.5px; }
.wa-chat-id span { font-size: 11px; opacity: 0.8; }
.wa-chat-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; padding: 6px; opacity: 0.85; }
.wa-chat-close:hover { opacity: 1; }
.wa-chat-body {
  padding: 18px 14px; min-height: 110px;
  background: #efe7dd url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d9cfc2' fill-opacity='0.35'%3E%3Ccircle cx='10' cy='10' r='1.6'/%3E%3Ccircle cx='40' cy='30' r='1.2'/%3E%3Ccircle cx='20' cy='48' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
}
.wa-bubble {
  position: relative; background: #fff; border-radius: 4px 14px 14px 14px;
  padding: 10px 12px 8px; max-width: 86%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  animation: wa-bubble-in 0.35s var(--ease) 0.15s both;
}
@keyframes wa-bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wa-bubble p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #1d2a26; }
.wa-time { display: block; text-align: right; font-size: 10px; color: #8a9b95; margin-top: 4px; }
.wa-chat-input { display: flex; gap: 8px; padding: 10px 12px; background: #f6f3ee; border-top: 1px solid rgba(0,0,0,0.06); }
.wa-chat-input input {
  flex: 1; border: none; border-radius: 999px; padding: 11px 16px;
  font-family: var(--font-body); font-size: 13.5px; background: #fff; outline: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.wa-chat-input input:focus { box-shadow: inset 0 0 0 1.5px #25d366; }
.wa-chat-input button {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: #25d366; color: #fff; font-size: 15px; display: grid; place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.wa-chat-input button:hover { background: #1fb658; transform: scale(1.06); }

@media (max-width: 560px) {
  .wa-chat { right: 16px; bottom: 92px; }
}

/* ============================================================
   COOKIES/* ============================================================
   COOKIES
   ============================================================ */
.cookie-banner { position: fixed; left: 14px; bottom: 14px; z-index: 90; background: rgba(33, 23, 20, 0.95); color: var(--cream-100); border-radius: 14px; padding: 13px 15px; display: none; gap: 10px; flex-direction: column; box-shadow: var(--shadow-strong); max-width: 330px; backdrop-filter: blur(8px); }
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 11.5px; line-height: 1.45; }
.cookie-banner p a { color: var(--gold-300); }
.cookie-banner .actions { display: flex; gap: 8px; }
.cookie-banner button { flex: 1; border-radius: 999px; padding: 8px 12px; font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.cookie-short { display: none; }
@media (max-width: 560px) {
  /* misma altura que el botón de WhatsApp (60px alto, bottom 22px): banner centrado a esa franja */
  .cookie-banner { left: 12px; right: 96px; bottom: 29px; max-width: none; padding: 9px 12px; border-radius: 12px; gap: 8px; flex-direction: row; align-items: center; }
  .cookie-banner p { font-size: 10px; line-height: 1.3; flex: 1; }
  .cookie-long { display: none; }
  .cookie-short { display: inline; }
  .cookie-banner .actions { flex: 0 0 auto; gap: 6px; }
  .cookie-banner button { flex: 0 0 auto; padding: 7px 10px; font-size: 9.5px; letter-spacing: 0.06em; }
}
.cookie-accept { background: var(--gold-500); border: none; color: var(--guinda-950); }
.cookie-reject { background: transparent; border: 1.5px solid rgba(243, 237, 225, 0.4); color: var(--cream-100); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { width: min(520px, 52vw); margin-right: 4%; }
}

@media (max-width: 880px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .split { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 240px; }
  .gallery-item, .gallery-item.g-wide { grid-column: span 3; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* HERO móvil fiel al PSD: lockup flotando arriba, Súmate, Pedro abajo en flujo */
  .hero { min-height: 100svh; flex-direction: column; }
  .hero-bg { background-image: url("assets/hero-bg-mobile.webp"); }
  .hero picture { display: contents; }
  .hero-pedro {
    position: relative; left: auto; right: auto; bottom: auto;
    order: 2; align-self: flex-end; margin: 30px 0 0 auto;
    width: 93.6%; z-index: 3;
  }
  .hero-card {
    order: 1;
    margin: calc(var(--header-h) + 40px) auto 0; align-self: center;
    width: min(430px, calc(100% - 56px));
    background: none; border: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 0; text-align: center;
  }
  .hero-card .hero-claim { display: none; }
  .hero-card .hero-actions { justify-content: center; margin-top: 26px; }
  .hero-card .btn-outline { display: none; }
  .hero-pleca { width: 70%; }
  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .video-grid, .form-grid, .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 260px; }
  .gallery-item, .gallery-item.g-wide { grid-column: span 6; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .brand img { height: 44px; }
  .container { width: calc(100% - 40px); }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-bg, .hero-pedro, .quote-bg { transform: none !important; }
}
