@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0B1F3A;
  --navy-mid: #152D52;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #F7F3EC;
  --white: #FFFFFF;
  --text-dark: #0B1F3A;
  --text-mid: #3D5A80;
  --text-soft: #7A8FA6;
  --border: rgba(201,168,76,0.25);
  --shadow: 0 8px 40px rgba(11,31,58,0.12);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.2);
  --radius: 12px;
  --wa-green: #25D366;
  --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--navy);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold-light); background: rgba(201,168,76,0.1); }
.nav-links a.active { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-btn {
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
}

.lang-btn:hover { background: var(--gold); color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold-light); }

/* ── FLOATING SOCIAL BUTTONS ── */
.float-buttons {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 998;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1.4rem;
}

.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.35); }

.float-wa { background: var(--wa-green); }
.float-ig { background: #E1306C; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a6e 100%);
  display: flex;
  align-items: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before { content: '✦'; font-size: 0.6rem; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeIn 0.8s ease 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
  display: block;
}

.credenciales {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeUp 0.7s ease 0.5s both;
}

.credencial-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.credencial-icon {
  width: 32px;
  height: 32px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
}

.btn-wa {
  background: var(--wa-green);
  color: white;
}

.btn-wa:hover {
  background: #1eb854;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.btn-navy {
  background: var(--navy);
  color: white;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── SECTIONS ── */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-alt { background: white; }

.section-dark {
  background: var(--navy);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 580px;
  line-height: 1.8;
}

.section-dark .section-sub { color: rgba(255,255,255,0.65); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(11,31,58,0.15); }

.card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

.card-dark::before { background: var(--gold); }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card-dark h3 { color: white; }

.card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.card-dark p { color: rgba(255,255,255,0.65); }

/* ── CURSO CARD ── */
.curso-card {
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: 16px;
  overflow: visible;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.curso-card:hover { transform: translateY(-5px); }

.curso-header {
  background: var(--navy);
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.curso-header::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
}

.curso-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.curso-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.curso-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.curso-body {
  padding: 2rem;
}

.curso-precio {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.precio-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
}

.precio-period {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.curso-features {
  list-style: none;
  margin-bottom: 2rem;
}

.curso-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(11,31,58,0.06);
}

.curso-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.65rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: rgba(201,168,76,0.2);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ── NOSOTROS ── */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-visual {
  background: var(--navy);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.nosotros-visual::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}

.nosotros-big {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.nosotros-visual h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.badge {
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── CONTACT / CTA ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--gold); }

.contact-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  background: #060F1E;
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── DIVIDER ── */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem 0 2rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── PROCESS STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .credenciales { align-items: center; }
  .cards-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-logo-text { font-size: 0.9rem; }
  .nav-inner { padding: 0 1rem; }

  /* Promo banner */
  #promo-banner {
    font-size: 0.75rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    gap: 0.35rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  #promo-banner strong { font-size: 0.8rem; }

  /* Hero */
  .hero { padding: 5.5rem 1.25rem 3.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-ctas .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 0.75rem; padding: 1.25rem; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.68rem; }
  .credenciales { align-items: flex-start; max-width: 280px; margin: 1.5rem auto 0; }

  /* Sections */
  .section { padding: 3.5rem 1.25rem; }
  .section-title { font-size: 1.6rem; }

  /* Courses */
  .curso-card { margin-top: 1rem; }
  .curso-header h3 { font-size: 1.25rem; }
  .precio-num { font-size: 2rem; }

  /* Nosotros */
  .nosotros-big { font-size: 3rem; }
  .nosotros-visual { padding: 2rem 1.5rem; }
  .badge-list { justify-content: flex-start; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card .btn { width: 100%; justify-content: center; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 0.5rem; }
  .step { padding: 1.25rem; }

  /* Float buttons */
  .float-buttons { bottom: 1rem; right: 0.75rem; }
  .float-btn { width: 46px; height: 46px; font-size: 1.2rem; }

  /* Footer */
  .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat-item:last-child { grid-column: span 2; }
  .section-title { font-size: 1.4rem; }
  .cards-grid { grid-template-columns: 1fr; }

  /* Promo banner stack on very small screens */
  #promo-banner { flex-direction: column; align-items: flex-start; padding: 0.6rem 2.5rem 0.6rem 0.75rem; gap: 0.3rem; }

  /* Curso cards full width */
  .cards-grid { max-width: 100%; }
  .curso-header h3 { font-size: 1.1rem; }
  .btn { font-size: 0.85rem; padding: 0.75rem 1.25rem; }

  /* Additional courses - stack horizontally on mobile */
  [style*="grid-template-columns:repeat(auto-fit,minmax(240px"] {
    grid-template-columns: 1fr !important;
  }

  .nosotros-visual { padding: 1.5rem; }
  .nosotros-big { font-size: 2.5rem; }
}
