/* ========================================
   LAYOUT — Sicut Lex Estudio
   Structure: page wrap, top-bar, nav, hero, stats, footer
   ======================================== */

/* ===== PAGE WRAPPER ===== */
.page-wrap {
  width: 100%;
  background: var(--white);
  position: relative;
}

/* Decorative bottom bar on top-bar — gold gradient, full width */
.top-bar {
  position: relative;
}
.top-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 30%, var(--gold) 60%, var(--navy) 100%);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.4);
  padding: 0.6rem 3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar i {
  margin-right: 6px;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(10,22,40,0.04);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
}
.logo .gold { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 60%, #0F2040 100%);
  padding: 5rem 3rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, var(--gold) 2px, var(--gold) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, var(--gold) 2px, var(--gold) 3px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(193,162,122,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

/* ===== HERO SLIDE IMAGE (right side blend) ===== */
.hero-slide-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  /* Sin overlay — el hero bg gradient se ve a través del mask
     y coincide exactamente porque es el mismo fondo */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 15%,
    black 38%,
    black 65%,
    black 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 15%,
    black 38%,
    black 65%,
    black 100%
  );
}

/* Sin overlay — eliminado intencionalmente.
   El hero background gradient es el único fondo, no hay dos azules peleándose. */

/* ===== HERO DECORATIVE (replaced by image, keep hidden as fallback) ===== */
.hero-decorative {
  display: none;
}

/* ===== FRASE BAR (reemplaza stats) ===== */
.frase-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--cream);
  padding: 3rem 2rem;
}
.frase-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.frase-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  text-align: center;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  padding: 3rem 3rem 1.5rem;
  color: rgba(255,255,255,0.3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 2;
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom i { margin-right: 4px; }

/* ===== CONTENT CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION COMMON ===== */
section { padding: var(--section-padding); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .overline {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--navy);
}
.section-header p {
  font-size: 0.9rem;
  color: var(--text-body);
  max-width: 500px;
  margin: 1rem auto 0;
}

/* ===== SOCIAL LINKS IN FOOTER ===== */
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}
