/* ═══════════════════════════════════════════════════════════
   ZFLC — Shared Stylesheet
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --navy: #0d1f3c;
  --navy-deep: #0a1628;
  --navy-mid: #122444;
  --gold: #c8a94a;
  --gold-light: #dfc06a;
  --white: #ffffff;
  --off-white: #f5f4f0;
  --gray: #8a9ab0;
  --gray-light: #e8edf3;
  --text-dark: #1a2a42;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 22px !important;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ─── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  margin-top: 72px;
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.45) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 5% 3.5rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  max-width: 700px;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-top: 0.8rem;
  max-width: 560px;
}

/* ─── SECTION HELPERS ─────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-eyebrow::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold); opacity: 0.6;
}
.section-eyebrow.center { justify-content: center; }
.section-eyebrow.center::after { display: none; }

.section-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}
h2.section-title.light { color: var(--white); }
h2.section-title.center { text-align: center; }

.section-lead {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.75;
  max-width: 600px;
}
.section-lead.center { text-align: center; margin: 0 auto; }
.section-lead.light { color: rgba(255,255,255,0.65); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 2px solid var(--gold);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 0;
}
.btn-primary:hover { background: transparent; color: var(--gold); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 34px;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

.btn-outline-white {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 30px;
  transition: border-color 0.3s, background 0.3s;
}
.btn-outline-white:hover { border-color: var(--gold); background: rgba(200,169,74,0.1); }

/* ─── CARDS ───────────────────────────────────────────────── */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(13,31,60,0.08);
  border: 1.5px solid rgba(13,31,60,0.08);
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(13,31,60,0.08);
  border: 1.5px solid rgba(13,31,60,0.08);
}

.card-base {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-base:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,31,60,0.1); }
.card-base::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.card-base:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  background: rgba(13,31,60,0.05);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}
.card-base:hover .card-icon { background: rgba(200,169,74,0.12); }
.card-icon svg {
  width: 26px; height: 26px;
  stroke: var(--navy); fill: none; stroke-width: 1.5;
  transition: stroke 0.3s;
}
.card-base:hover .card-icon svg { stroke: var(--gold); }

.card-base h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.card-base p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.72;
  font-weight: 300;
}

/* ─── TABLE ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.data-table th:first-child { color: var(--gold); }
.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text-dark);
  font-weight: 300;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(200,169,74,0.04); }
.data-table td.highlight { color: #2a7a4b; font-weight: 600; }
.data-table td.dim { color: var(--gray); }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 3rem 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .footer-logo {
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: 0.82rem; color: rgba(255,255,255,0.4); font-weight: 300; line-height: 1.5; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
}
.footer-social { display: flex; gap: 0.8rem; }
.social-btn {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.social-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── FADE-UP ANIMATION ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s, transform 0.7s;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── UTILITY ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Navbar */
  nav { height: 64px; padding: 0 4%; }
  .nav-logo img { height: 38px; }

  /* Hamburger — área de toque mínima 44×44px */
  .nav-toggle {
    display: flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    padding: 0;
    margin-right: -8px;
  }

  /* Menú desplegable */
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    transform: translateY(-110%);
    transition: transform 0.38s cubic-bezier(0.77,0,0.175,1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    border-top: 2px solid rgba(200,169,74,0.4);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }

  /* Items del menú */
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child { border-bottom: none; padding: 1rem 5%; }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 5%;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }
  .nav-links a.active {
    color: var(--gold);
    background: rgba(200,169,74,0.06);
  }

  /* Botón Contacto en mobile */
  .nav-cta {
    display: block !important;
    text-align: center;
    padding: 14px 5% !important;
    border-radius: 2px;
    letter-spacing: 0.1em !important;
  }

  /* Ajustes de contenido */
  .page-hero { margin-top: 64px; height: 300px; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  nav { height: 60px; padding: 0 4%; }
  .nav-logo img { height: 34px; }
  .nav-links { top: 60px; max-height: calc(100vh - 60px); }
  .nav-links a { padding: 15px 5%; font-size: 0.8rem; }
  .page-hero { margin-top: 60px; height: 260px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

@media (max-width: 640px) {
  .card-grid-4, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
