/* ============================================================
   GLOBAL CSS — Eric Salomone 25 Sitios Premium
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a3a6c;
  --blue-light: #2a4f8f;
  --blue-dark: #0f2244;
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --gold-dark: #a07830;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 2px 8px rgba(26,58,108,.08);
  --shadow-md: 0 4px 20px rgba(26,58,108,.12);
  --shadow-lg: 0 8px 40px rgba(26,58,108,.18);
  --radius: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--blue-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p { margin-bottom: 1rem; color: var(--gray-800); }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .5rem; }
strong { color: var(--blue-dark); font-weight: 600; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,58,108,.1);
  padding: .75rem 0;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
}
.nav-brand span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--blue);
  border-bottom-color: var(--gold);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  opacity: .35;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,22,44,.85) 0%,
    rgba(26,58,108,.7) 50%,
    rgba(10,22,44,.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem 1.5rem;
  animation: fadeInUp .9s ease both;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.2);
  border: 1px solid rgba(201,168,76,.5);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  font-weight: 300;
  letter-spacing: .02em;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 2rem;
  border-radius: 3rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,.35);
}
.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,.45);
  color: var(--blue-dark);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content:'';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

/* ── WAVE SEPARATOR ── */
.wave-sep { display: block; line-height: 0; }
.wave-sep svg { width: 100%; height: auto; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--blue);
  padding: 3rem 1.5rem;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── SECTIONS ── */
.section { padding: 5rem 1.5rem; }
.section:nth-child(even) { background: var(--gray-50); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content:'';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Content Card */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26,58,108,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: .75rem;
}

/* 2-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* Profile image */
.profile-img-wrap {
  position: relative;
}
.profile-img-wrap::before {
  content:'';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.profile-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

/* Gradient section */
.gradient-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
}
.gradient-section h2, .gradient-section h3 { color: var(--white); }
.gradient-section p { color: rgba(255,255,255,.82); }
.gradient-section strong { color: var(--gold-light); }

/* Quote block */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(201,168,76,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--blue-dark);
  margin: 0;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content:'';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--blue));
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.timeline-item::before {
  content:'';
  position: absolute;
  left: -2rem;
  top: .4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline-date {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.timeline-content h4 { margin-bottom: .5rem; font-size: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: .875rem; line-height: 1.7; }
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── KEYFRAMES ── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}
@keyframes scrollDot {
  0%   { opacity:1; top:6px; }
  100% { opacity:0; top:20px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { gap: 1rem; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 1rem; }
  .stats-bar { padding: 2rem 1rem; }
  .hero { min-height: 80vh; }
  .content-card { padding: 1.5rem; }
  .nav-links { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── UTILITY ── */
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

/* ============================================================
   EXTENDED COMPONENTS — Added by ArtDirector
   ============================================================ */

/* ── SECTION VARIANTS ── */
.section-dark {
  background: var(--blue);
  color: var(--white);
}
.section-white { background: var(--white); }
.section-light { background: var(--gray-50); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.82); }
.section-dark strong { color: var(--gold-light); }
.section-dark .section-label { color: var(--gold-light); }

/* ── WAVE WRAPPER ── */
.wave-wrap { overflow: hidden; line-height: 0; display: block; }
.wave-wrap svg { display: block; width: 100%; }

/* ── ALTERNATIVE STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}
.stat {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.stat.visible { opacity: 1; transform: translateY(0); }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-lbl {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── ALTERNATIVE TIMELINE ── */
.tl-item {
  position: relative;
  padding: 0 0 2.5rem 3.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }
.tl-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-year {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}
.tl-item h3 { font-size: 1rem; color: var(--blue-dark); margin-bottom: .5rem; }
.section-dark .tl-item::before { border-color: var(--blue); }
.section-dark .tl-year { color: var(--gold-light); }
.section-dark .tl-item h3 { color: var(--white); }

/* ── QUOTE SECTION ── */
.quote-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
  position: relative;
  padding: 0 1rem;
}
.quote-text::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  opacity: .35;
  position: absolute;
  left: -.25rem;
  top: -1.5rem;
  font-style: normal;
  line-height: 1;
}
.quote-author {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ── FOOTER ALTERNATIVE LAYOUT (footer-top / footer-col) ── */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; }

/* ── BUTTON PRIMARY ── */
.btn-primary {
  display: inline-block;
  padding: .85rem 2.5rem;
  background: var(--gold);
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.45);
  color: var(--blue-dark);
}

/* ── HERO EYEBROW ── */
.hero-eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeInUp 1s .2s both;
}

/* ── NAVBAR-BRAND / NAVBAR-NAV (alias selectors for legacy sites) ── */
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .5px;
}
.navbar-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.navbar-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar-nav a:hover { color: var(--gold); }

/* ── PROFILE WRAP ── */
.profile-wrap { position: relative; }

/* ── MOBILE NAVIGATION TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 1px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column !important;
    gap: .5rem !important;
    border-bottom: 1px solid rgba(26,58,108,.1);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .navbar.nav-open .nav-links {
    display: flex !important;
  }
  .nav-links a {
    padding: .6rem 0;
    font-size: .95rem;
    border-bottom: 1px solid rgba(26,58,108,.06);
  }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ── CARD SCROLL ANIMATIONS ── */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease, box-shadow var(--transition);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card.visible:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ── STAT-ITEM SCROLL ANIMATION ── */
.stat-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }

/* ── CONTENT-CARD SCROLL ── */
.content-card.reveal { opacity: 0; transform: translateY(20px); }
.content-card.reveal.visible { opacity: 1; transform: translateY(0); }
