:root {
  --navy-950: #08121f;
  --navy-900: #0b1728;
  --navy-800: #13243a;
  --ink: #162133;
  --muted: #667184;
  --paper: #f5f2eb;
  --paper-soft: #fbfaf7;
  --white: #ffffff;
  --gold: #c7a25d;
  --gold-soft: #ead4a8;
  --line: rgba(22, 33, 51, 0.12);
  --shadow: 0 20px 55px rgba(8, 18, 31, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 100px 0; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-fixed {
  position: fixed;
  background: rgba(8,18,31,0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; min-width: 0; }
.brand-seal {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234,212,168,.58);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
  letter-spacing: .08em;
}
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy span { font-size: .84rem; font-weight: 700; }
.brand-copy strong { margin-top: 4px; color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; font-weight: 500; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { color: rgba(255,255,255,.82); font-size: .92rem; }
.desktop-nav a:hover { color: var(--gold-soft); }
.mobile-nav { display: none; position: relative; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 150px 0 94px;
  color: white;
  background:
    radial-gradient(circle at 88% 30%, rgba(199,162,93,.15), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 58%, #18304e);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
}
.hero-decor { position: absolute; border-radius: 50%; pointer-events: none; }
.decor-one { width: 420px; height: 420px; right: -220px; top: 210px; border: 1px solid rgba(234,212,168,.15); }
.decor-two { width: 220px; height: 220px; left: -100px; bottom: 30px; border: 1px solid rgba(255,255,255,.08); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 72px; align-items: center; }
.kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.kicker-dark { color: #8a6b33; }
.hero h1 {
  margin: 20px 0 24px;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.05em;
}
.hero h1 span { display: block; color: var(--gold-soft); }
.hero-intro { max-width: 690px; margin: 0; color: rgba(255,255,255,.74); font-size: clamp(1.06rem,2vw,1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 13px;
  font-size: .94rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 12px 30px rgba(199,162,93,.20); }
.button-gold:hover { box-shadow: 0 16px 34px rgba(199,162,93,.28); }
.button-outline { color: white; border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.03); }
.button-outline:hover { border-color: rgba(234,212,168,.58); }
.button-full { width: 100%; }
.hero-info { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.11); }
.hero-info div { display: grid; gap: 4px; }
.hero-info span { color: rgba(255,255,255,.47); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-info a, .hero-info strong { color: white; font-size: .96rem; font-weight: 700; }

.practice-panel {
  padding: 29px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
}
.panel-label { margin: 0 0 14px; color: rgba(255,255,255,.53); font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; }
.practice-panel > a { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.practice-panel > a:last-child { border-bottom: 0; }
.practice-panel > a span { color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif; }
.practice-panel > a strong { font-size: 1rem; font-weight: 700; }

.services { background: linear-gradient(180deg, var(--paper-soft), #efede7); }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading h2, .expertise-copy h2, .contact-copy h2, .schedule-box h2 {
  margin: 14px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem,5vw,4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.section-heading > p:last-child, .expertise-copy > p:last-child, .contact-copy > p:last-child { color: var(--muted); font-size: 1.03rem; }
.service-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 20px; }
.service-card {
  grid-column: span 4;
  min-height: 330px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(8,18,31,.045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(199,162,93,.38); box-shadow: var(--shadow); }
.service-card::after { content: ""; position: absolute; right: -48px; bottom: -48px; width: 148px; height: 148px; border: 1px solid rgba(199,162,93,.20); border-radius: 50%; pointer-events: none; }
.service-card-wide { grid-column: span 6; min-height: 278px; }
.accent-card { background: linear-gradient(140deg,#fff,#f7efe0); }
.service-index { color: #90713b; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; letter-spacing: .1em; }
.service-card h3 { margin: 18px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 1.62rem; font-weight: 500; }
.service-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.service-card li { position: relative; padding-left: 20px; color: #465163; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.service-card p { color: #465163; }

.expertise { background: white; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.expertise-copy > p:last-child { max-width: 620px; }
.degree-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.degree-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 22px;
  background: var(--navy-900);
  color: white;
  box-shadow: 0 18px 44px rgba(8,18,31,.15);
}
.degree-card::before { content: ""; position: absolute; width: 140px; height: 140px; top: -50px; right: -40px; border: 1px solid rgba(234,212,168,.25); border-radius: 50%; }
.degree-card span { color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.degree-card strong { margin-top: 7px; color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }

.schedule { padding: 0 0 100px; background: white; }
.schedule-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 46px 50px; border-radius: 26px; color: white; background: linear-gradient(135deg,var(--navy-950),var(--navy-800)); box-shadow: 0 22px 60px rgba(8,18,31,.15); }
.schedule-box h2 { margin-top: 12px; font-size: clamp(2rem,4vw,3.5rem); }
.schedule-box > div > p:last-child { margin: 0; color: rgba(255,255,255,.72); }

.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(340px,.72fr); gap: 72px; align-items: center; }
.contact-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.contact-card > span { color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-card .phone { display: block; margin: 10px 0 6px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,4vw,3.1rem); }
.contact-card p { margin: 0 0 24px; color: var(--muted); }
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); }
.footer-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .9rem; }
.footer-inner a { color: var(--gold-soft); }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; box-shadow: 0 14px 36px rgba(0,0,0,.24); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 30px; fill: white; }

/* El contenido es visible por defecto. JavaScript solo añade movimiento; nunca es necesario para mostrar la página. */
.js-animate { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .section { padding: 82px 0; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 9px; cursor: pointer; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; height: 2px; background: white; border-radius: 999px; }
  .mobile-nav nav { position: absolute; top: 56px; right: 0; width: min(300px, calc(100vw - 28px)); padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: #0b1728; box-shadow: 0 18px 44px rgba(0,0,0,.24); }
  .mobile-nav nav a { display: block; padding: 13px 12px; border-radius: 10px; color: rgba(255,255,255,.86); }
  .mobile-nav nav a:hover { background: rgba(255,255,255,.05); }
  .hero { min-height: auto; padding: 132px 0 82px; }
  .hero-grid, .expertise-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .practice-panel { max-width: 650px; }
  .service-card { grid-column: span 6; }
  .service-card:nth-child(5) { grid-column: span 12; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px,1160px); }
  .header-inner { min-height: 72px; }
  .brand-seal { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy span { font-size: .76rem; }
  .brand-copy strong { font-size: .94rem; }
  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(2.85rem,14.5vw,4.7rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-info { display: grid; gap: 18px; }
  .practice-panel { padding: 22px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 34px; }
  .service-card, .service-card-wide, .service-card:nth-child(5) { grid-column: 1 / -1; min-height: 0; padding: 26px; }
  .degree-grid { grid-template-columns: 1fr; }
  .degree-card { min-height: 180px; }
  .schedule { padding-bottom: 68px; }
  .schedule-box { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .schedule-box .button { width: 100%; }
  .contact-card { padding: 26px; }
  .footer-inner { min-height: 120px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
