/* ============================================================
   Ciudadanía Croata por Descendencia — Landing
   Variante A "Clásico" (claro)  ·  Variante B "Adriático" (azul)
   Se alternan con [data-theme] en <html>.
   ============================================================ */

/* ---------- VARIANTE A · CLÁSICO (claro) ---------- */
:root,
:root[data-theme="light"] {
  --page:        #ffffff;   /* fondo principal          */
  --alt:         #f6f3ee;   /* secciones alternas       */
  --panel:       #ffffff;   /* tarjetas                 */
  --band:        #16273f;   /* bandas oscuras (navy)    */
  --band-2:      #0f1d31;   /* footer                   */

  --text:        #263349;
  --text-dim:    #5c6675;
  --head:        #1c2a3f;
  --on-band:     #f4f0e8;   /* texto sobre banda oscura */
  --on-band-dim: #9aa8bb;

  --gold:        #bf9b5f;
  --gold-strong: #a9863f;
  --line:        #e9e6e0;
  --panel-line:  #e9e6e0;

  --hero-img:    url("assets/hero-dubrovnik.jpg");
  --hero-scrim:  linear-gradient(90deg, rgba(16,29,49,.96) 0%, rgba(16,29,49,.86) 34%, rgba(16,29,49,.55) 62%, rgba(16,29,49,.15) 100%);
  --card-shadow: 0 22px 44px -28px rgba(22,39,63,.35);
}

/* ---------- VARIANTE B · ADRIÁTICO (azul oscuro) ---------- */
:root[data-theme="blue"] {
  --page:        #0a1730;   /* azul Adriático profundo  */
  --alt:         #0d1f3d;
  --panel:       #122a4e;
  --band:        #081124;   /* bandas aún más profundas */
  --band-2:      #060d1c;

  --text:        #d7e1f0;
  --text-dim:    #9db0cc;
  --head:        #f1f5fc;
  --on-band:     #eef3fb;
  --on-band-dim: #93a6c4;

  --gold:        #ceac72;
  --gold-strong: #d8bd8b;
  --line:        rgba(206,172,114,.20);
  --panel-line:  rgba(206,172,114,.16);

  --hero-img:    url("assets/hero-fort-blue.jpg");
  --hero-scrim:  linear-gradient(90deg, rgba(6,14,30,.96) 0%, rgba(7,17,36,.88) 34%, rgba(8,23,48,.55) 64%, rgba(8,23,48,.12) 100%);
  --card-shadow: 0 24px 46px -26px rgba(0,0,0,.6);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--head); margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* -------- Eyebrows / section heads -------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.eyebrow-line::before {
  content: ""; display: inline-block;
  width: 34px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -0.01em; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.center h2 { margin-inline: auto; }
h2.on-band { color: var(--on-band); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  padding: 15px 26px; border-radius: 6px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.22s ease; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #1c1206; box-shadow: 0 8px 22px -10px rgba(191,155,95,.7); }
.btn-gold:hover { background: var(--gold-strong); transform: translateY(-1px); }
.btn-outline-light { color: #f3efe7; border-color: rgba(243,239,231,.5); }
.btn-outline-light:hover { border-color: #f3efe7; background: rgba(255,255,255,.08); }
.btn-outline-dark { color: var(--text); border-color: var(--line); background: transparent; }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold-strong); }
.btn-sm { padding: 11px 18px; font-size: 13px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: var(--band); position: sticky; top: 0; z-index: 100; transition: background-color .4s ease; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.brand-crest svg { width: 30px; height: 38px; display: block; }
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-family: "Playfair Display", serif; font-size: 15px; letter-spacing: 0.06em; color: #f3efe7; }
.brand-text small { display: block; font-size: 8.5px; letter-spacing: 0.34em; color: var(--gold); margin-top: 2px; }

.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { font-size: 13.5px; color: #cdd4de; font-weight: 500; transition: color 0.18s; }
.main-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-header { padding: 11px 20px; font-size: 13px; }

/* Toggle Variante A / B */
.theme-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(206,172,114,.4);
  border-radius: 999px; padding: 3px; gap: 2px;
  background: rgba(255,255,255,.04);
}
.theme-switch button {
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; color: #b7c0cd;
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; transition: all .2s ease;
}
.theme-switch button.active { background: var(--gold); color: #1c1206; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; background: var(--band-2); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 15px 28px; color: #cdd4de; border-top: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.theme-switch-mobile { margin: 16px 28px 22px; align-self: flex-start; }

/* ============================================================
   HERO — imagen full-bleed + scrim
   ============================================================ */
.hero { position: relative; overflow: hidden; color: #e9edf3; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
  transform: scale(1.03);
}
.hero-scrim { position: absolute; inset: 0; background: var(--hero-scrim); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 620px; padding: 80px 0; }
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04;
  color: #f6f2ea; letter-spacing: -0.015em; margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead { font-size: 16.5px; color: #d3dae4; max-width: 470px; margin-bottom: 34px; }

.hero-features { list-style: none; padding: 0; margin: 0 0 38px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hero-features li { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.35; color: #d6dde7; }
.hf-ico { width: 40px; height: 40px; border: 1px solid rgba(206,172,114,.6); border-radius: 8px; display: grid; place-items: center; color: var(--gold); background: rgba(8,17,36,.25); backdrop-filter: blur(2px); }
.hf-ico svg { width: 20px; height: 20px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 88px 0; background: var(--page); transition: background-color .4s ease; }
.section-cream { background: var(--alt); }
.section-band { background: var(--band); }

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.benefit {
  border: 1px solid var(--panel-line); border-radius: 10px;
  padding: 34px 22px; text-align: center; background: var(--panel);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); border-color: var(--gold); }
.benefit-ico { width: 58px; height: 58px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--gold); }
.benefit-ico svg { width: 42px; height: 42px; }
.benefit h3 { font-size: 17px; margin-bottom: 10px; }
.benefit p { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   QUIÉN PUEDE APLICAR
   ============================================================ */
.apply-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.apply-copy h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.apply-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.apply-card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px;
  padding: 26px 14px; text-align: center; transition: transform 0.22s, box-shadow 0.22s, border-color .22s;
}
.apply-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); border-color: var(--gold); }
.apply-ico { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--gold); }
.apply-ico svg { width: 34px; height: 34px; }
.apply-card h3 { font-size: 14.5px; line-height: 1.3; }

.apply-note { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 40px; font-size: 13.5px; color: var(--text-dim); text-align: center; }
.apply-note .ico { color: var(--gold); width: 17px; height: 17px; }

/* ============================================================
   CÓMO FUNCIONA (steps)
   ============================================================ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 10%; right: 10%; border-top: 1.5px dashed rgba(206,172,114,.45); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-ring { position: relative; width: 76px; height: 76px; margin: 0 auto 22px; border: 1.5px solid rgba(206,172,114,.6); border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--band); }
.step-ring svg { width: 30px; height: 30px; }
.step-num { position: absolute; bottom: -6px; right: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #0f1d31; font-size: 12px; font-weight: 700; display: grid; place-items: center; font-family: "Inter", sans-serif; }
.step h3 { color: var(--on-band); font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 12.5px; color: var(--on-band-dim); padding: 0 6px; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.why { text-align: center; }
.why-ico { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--gold); }
.why-ico svg { width: 30px; height: 30px; }
.why p { font-size: 13px; color: var(--text); line-height: 1.4; }

/* ============================================================
   SOBRE LA ASESORA
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.portrait {
  width: 260px; height: 260px; border-radius: 50%; margin: 0 auto;
  border: 3px solid var(--gold); background: linear-gradient(160deg, #dfd6c6, #c9bda6);
  color: rgba(22,39,63,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--card-shadow);
}
.portrait svg { width: 96px; height: 96px; }
.portrait .photo-note { color: rgba(22,39,63,.5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.about-copy h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.about-copy > p { font-size: 15px; color: var(--text-dim); max-width: 560px; margin-bottom: 30px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-stat { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: var(--text); line-height: 1.35; }
.stat-ico { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); }
.stat-ico svg { width: 26px; height: 26px; }

/* ============================================================
   GALERÍA (bento)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 230px 230px;
  gap: 16px;
}
.g { position: relative; margin: 0; border-radius: 12px; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.g:hover img { transform: scale(1.06); }
.g::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,15,28,.72) 100%); }
.g figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: #f4efe6; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.g figcaption::before { content: ""; display: inline-block; width: 16px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.g1 { grid-column: 1 / 3; grid-row: 1 / 2; }
.g2 { grid-column: 3 / 4; grid-row: 1 / 3; }   /* Stradun vertical, ocupa 2 filas */
.g3 { grid-column: 1 / 2; grid-row: 2 / 3; }
.g4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.g5 { display: none; }                          /* reserva para móvil */

/* ============================================================
   FAQ
   ============================================================ */
.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.faq-head .section-head { margin: 0; }
.faq-head h2 { font-size: clamp(26px, 3vw, 34px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.faq-col { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--panel-line); border-radius: 8px; background: var(--panel); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--gold); }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 20px; font-size: 14.5px; font-weight: 500; color: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; border-right: 1.6px solid var(--text-dim); border-bottom: 1.6px solid var(--text-dim); transform: rotate(45deg); transition: transform 0.25s; flex: 0 0 auto; margin-top: -3px; }
.faq-item[open] .chev { transform: rotate(-135deg); margin-top: 3px; border-color: var(--gold-strong); }
.faq-item p { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-dim); }

/* ============================================================
   CTA FINAL — foto atardecer + scrim
   ============================================================ */
.final-cta { position: relative; overflow: hidden; color: #ecf0f5; padding: 84px 0; }
.final-bg { position: absolute; inset: 0; background: url("assets/sunset-harbor.jpg") center/cover; }
.final-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,32,.92) 0%, rgba(9,17,32,.8) 45%, rgba(9,17,32,.5) 100%); }
.final-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 34px; }
.final-crest { color: var(--gold); flex: 0 0 auto; }
.final-crest svg { width: 74px; height: 92px; }
.final-copy h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; max-width: 620px; color: #f6f2ea; }
.final-copy > p { color: #cdd5df; margin: 14px 0 26px; font-size: 15.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--band-2); color: #9aa6b5; padding: 46px 0; transition: background-color .4s ease; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.brand-footer { color: var(--gold); }
.brand-footer .brand-text strong { font-size: 14px; letter-spacing: 0.08em; }
.footer-note { max-width: 520px; font-size: 13px; }
.footer-copy { font-size: 12px; color: #6c7889; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 12.5px; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
}

@media (max-width: 900px) {
  .main-nav, .header-actions .btn-header, .header-actions .theme-switch { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { min-height: 0; padding: 64px 0; }
  .hero-scrim { background: linear-gradient(180deg, rgba(9,17,32,.72), rgba(9,17,32,.9)); }
  .apply-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .about-copy > p { margin-inline: auto; }
  .about-stats { grid-template-columns: repeat(2, 1fr); text-align: left; max-width: 460px; margin: 0 auto; }
  .gallery { grid-template-rows: 200px 200px; }
  .final-inner { flex-direction: column; text-align: center; }
  .final-scrim { background: linear-gradient(180deg, rgba(9,17,32,.78), rgba(9,17,32,.9)); }
  .final-crest svg { width: 60px; height: 74px; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .apply-cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .about-stats { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .final-copy .btn { flex: 1; justify-content: center; }
  /* Galería apilada en móvil: se muestran las 5 */
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .g1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .g2 { grid-column: 1 / 2; grid-row: 2 / 4; }
  .g3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .g4 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .g5 { display: block; grid-column: 1 / 3; grid-row: 4 / 5; }
}
