/* ═══════════════════════════════════════════════════════════
   LA ISLA — Predio para eventos · José de la Quintana, Córdoba
   Demo + pitch · Proyecto digital de Fran Demoli

   Sistema visual: negro cálido profundo + rojo (acción) + ámbar (acento)
   Base tomada del sistema de frandemoli.com, con marca propia de La Isla.
   Tipografías: Archivo (display) + Inter (body)
   ═══════════════════════════════════════════════════════════ */


/* ═══ DESIGN TOKENS ═══ */
:root {
  /* Fondos cálidos oscuros */
  --bg:            #0D0C0B;
  --surface:       #141312;
  --surface-2:     #1A1816;
  --surface-3:     #211E1B;

  /* Bordes (hueso translúcido) */
  --border:        rgba(236,231,221,0.09);
  --border-md:     rgba(236,231,221,0.16);
  --border-strong: rgba(236,231,221,0.28);

  /* Texto */
  --text:          #ECE7DD;   /* hueso */
  --hi:            #FBF8F1;   /* hueso brillante = énfasis */
  --text-muted:    #9C9388;
  --text-subtle:   #6B645B;

  /* Acentos de La Isla */
  --accent:        #E52D27;   /* rojo — botones y acciones */
  --accent-strong: #C21D18;
  --accent-soft:   rgba(229,45,39,0.14);
  --amber:         #E0A03C;   /* ámbar — acento secundario, detalles */
  --amber-soft:    rgba(224,160,60,0.16);

  /* Tipografías */
  --f-display:     'Archivo', system-ui, sans-serif;
  --f-body:        'Inter', system-ui, sans-serif;

  /* Layout */
  --container:     1180px;
  --container-narrow: 760px;
  --pad-x:         24px;
  --pad-x-md:      48px;
  --pad-y-section: clamp(72px, 10vw, 132px);

  /* Radios */
  --r-sm:          6px;
  --r:             10px;
  --r-lg:          16px;

  /* Sombras */
  --shadow:        0 12px 32px rgba(0,0,0,0.5);
  --shadow-lg:     0 24px 64px rgba(0,0,0,0.65);

  /* Transiciones */
  --t-fast:        180ms ease;
  --t:             260ms ease;
  --t-slow:        500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:      cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Escalas tipográficas */
  --size-eyebrow:  12px;
  --size-body:     16px;
  --size-body-lg:  18px;
  --size-h3:       clamp(21px, 2.6vw, 26px);
  --size-h2:       clamp(30px, 4.6vw, 50px);
  --size-h1:       clamp(37px, 6.4vw, 78px);
}


/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  font-family: var(--f-body);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--accent); color: var(--hi); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2A2520; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4A433B; }


/* ═══ TIPOGRAFÍA ═══ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

p { line-height: 1.65; }
strong { color: var(--hi); font-weight: 600; }

/* Énfasis: hueso brillante + subrayado ámbar que se dibuja al revelar */
.hl {
  position: relative;
  color: var(--hi);
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms var(--ease-out) 480ms;
}
.reveal.is-visible .hl::after { transform: scaleX(1); }


/* ═══ LAYOUT ═══ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--pad-x-md); }
}
.container--narrow { max-width: var(--container-narrow); }


/* ═══ EYEBROW / LABEL ═══ */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--size-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}


/* ═══ BOTONES ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }

/* Primario: rojo (acción) */
.btn--accent {
  background: var(--accent);
  color: var(--hi);
  box-shadow: 0 10px 26px rgba(229,45,39,0.24);
}
.btn--accent:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(229,45,39,0.32);
}
.btn--accent:active { transform: translateY(0); }

/* Claro sobre oscuro (alternativa premium sin color) */
.btn--solid {
  background: var(--hi);
  color: #100F0E;
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.btn--solid:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-muted); }

.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--lg svg { width: 18px; height: 18px; }


/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 760ms ease,
    transform 760ms var(--ease-out),
    filter 760ms ease;
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }


/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,12,11,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13,12,11,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (min-width: 768px) {
  .nav__inner { padding-inline: var(--pad-x-md); padding-block: 18px; }
}
/* Wordmark tipográfico de La Isla (sin logo) */
.nav__brand { margin-right: auto; }
.nav__name {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hi);
}
.nav__name .dot { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--t-fast); }
.nav__link:hover { color: var(--hi); }
@media (max-width: 620px) { .nav__link--hide { display: none; } }


/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 132px 64px;
  overflow: hidden;
}

/* Foto de fondo (placeholder de sierras/campo cordobés, se reemplaza por
   el material real del predio). Tratamiento cálido y oscuro para que lea
   nocturno y no compita con el texto. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* foto arriba, gradiente cálido de fallback detrás (se ve si la foto no carga) */
  background-color: #0D0C0B;
  background-image: var(--hero-img, none), linear-gradient(160deg, #241a12 0%, #0D0C0B 55%, #080706 100%);
  background-size: cover, cover;
  background-position: center 58%, center;
  background-repeat: no-repeat, no-repeat;
  /* la foto es un campo verde diurno: la caliento y bajo un poco para leer atardecer */
  filter: brightness(0.98) contrast(1.05) saturate(1.12) sepia(0.14);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(720px 440px at 86% 20%, rgba(224,160,60,0.18), transparent 52%),
    linear-gradient(96deg, rgba(13,12,11,0.9) 0%, rgba(13,12,11,0.6) 34%, rgba(13,12,11,0.22) 62%, rgba(13,12,11,0.05) 100%),
    linear-gradient(180deg, rgba(13,12,11,0.55) 0%, rgba(13,12,11,0) 17%, rgba(13,12,11,0) 46%, rgba(13,12,11,0.46) 74%, rgba(13,12,11,0.9) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
  font-size: var(--size-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.03;
  max-width: 17ch;
  margin-bottom: 24px;
  color: var(--hi);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero__sub {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text);
  max-width: 56ch;
  margin-bottom: 38px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }


/* ═══ FRANJA DE DATOS DEL PREDIO ═══ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 9px; font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }


/* ═══ SECCIÓN BASE ═══ */
.sect { padding-block: var(--pad-y-section); position: relative; }
.sect--surface { background: var(--surface); }
.sect__head { margin-bottom: clamp(40px, 6vw, 60px); max-width: 34ch; }
.sect__label { display: block; margin-bottom: 18px; }
.sect__title { font-size: var(--size-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; color: var(--hi); }
.sect__intro {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}


/* ═══ VIDEOS ═══ */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  /* horizontal grande + reel vertical al costado */
  .videos-grid { grid-template-columns: 1.62fr 0.72fr; gap: 32px; }
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video--reel .video__frame { aspect-ratio: 9 / 16; }
@media (max-width: 899px) {
  .video--reel .video__frame { max-width: 340px; margin-inline: auto; }
}
.video__frame iframe { width: 100%; height: 100%; border: 0; }

/* Estado "próximamente": placeholder listo para pegar el iframe de YouTube */
.video__soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(224,160,60,0.10), transparent 60%),
    linear-gradient(160deg, #1b1815, #0f0e0d);
}
.video__play {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(229,45,39,0.4);
  color: var(--accent);
}
.video__play svg { width: 24px; height: 24px; margin-left: 3px; }
.video__badge {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.video__caption { display: block; margin-top: 16px; }
.video__caption strong { color: var(--hi); font-weight: 600; font-family: var(--f-display); font-size: 16px; }
.video__caption span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-muted); }


/* ═══ CRITERIOS / DIRECTIVAS (grid de tarjetas) ═══ */
.layers-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 680px) { .layers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 980px) { .layers-grid { grid-template-columns: repeat(3, 1fr); } }

.layer-card {
  padding: 34px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.sect--surface .layer-card { background: var(--surface-3); }
.layer-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.layer-card:hover { border-color: var(--border-md); transform: translateY(-4px); }
.layer-card:hover::before { transform: scaleX(1); }
.layer-card__num {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.16em;
  display: block; margin-bottom: 18px;
}
.layer-card__title { font-size: var(--size-h3); font-weight: 700; line-height: 1.15; margin-bottom: 12px; color: var(--hi); }
.layer-card__body { font-size: 15px; color: var(--text-muted); line-height: 1.65; }


/* ═══ FAQ ═══ */
.faq { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--text);
  transition: color var(--t-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--hi); }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -6px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
  transition: transform var(--t);
}
.faq__item[open] summary { color: var(--hi); }
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__answer {
  padding: 0 44px 24px 0;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 68ch;
}
.faq__answer p + p { margin-top: 10px; }


/* ═══ CTA / CONTACTO ═══ */
.contact { text-align: center; }
.contact__title { font-size: var(--size-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; max-width: 22ch; margin-inline: auto; color: var(--hi); }
.contact__sub { margin: 22px auto 38px; font-size: clamp(15px, 1.6vw, 18px); color: var(--text-muted); max-width: 52ch; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact__note { margin-top: 22px; font-size: 13px; color: var(--text-subtle); }


/* ═══ FOOTER (con firma de Fran, como autor) ═══ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 56px 30px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 44px; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr; gap: 48px; }
  .footer__contact { align-items: flex-end; text-align: right; }
}
.footer__predio {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hi);
}
.footer__predio .dot { color: var(--accent); }
.footer__place { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.footer__contact { display: flex; flex-direction: column; gap: 13px; }
.footer__link { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; color: var(--text-muted); transition: color var(--t-fast); width: fit-content; }
.footer__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer__link:hover { color: var(--hi); }

/* Firma de autor (Fran) */
.footer__author {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .footer__author { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer__signature { display: inline-flex; align-items: center; gap: 13px; }
.footer__signature img { width: 40px; height: 40px; object-fit: contain; opacity: 0.9; }
.footer__signature-text { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.footer__signature-text strong { color: var(--text); font-weight: 600; }
.footer__year { font-size: 12.5px; color: var(--text-subtle); letter-spacing: 0.01em; }


/* ═══ WHATSAPP FLOTANTE ═══ */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  width: 54px; height: 54px;
  background: var(--accent);
  color: var(--hi);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.wa-float svg { width: 27px; height: 27px; }
.wa-float:hover { background: var(--accent-strong); transform: scale(1.07) translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.55); }
@media (min-width: 1024px) {
  .wa-float { bottom: 30px; right: 30px; width: 58px; height: 58px; }
  .wa-float svg { width: 29px; height: 29px; }
}


/* ═══ FOCUS / A11Y ═══ */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }
