/* ============================================
   ENGLISH PRO ACADEMY — Hoja de estilos
   Fuentes: Playfair Display + DM Sans
   ============================================ */

/* --- Variables globales --- */
:root {
  --navy:      #101A57;
  --navy-mid:  #1A3557;
  --blue:      #18257D;
  --blue-lt:   #E6F1FB;
  --gold:      #C9963A;
  --gold-lt:   #FAF0DC;
  --cream:     #F9F6F0;
  --white:     #FFFFFF;
  --gray-100:  #F4F4F2;
  --gray-400:  #bbbbab;
  --gray-700:  #4A4A42;
  --text:      #1A1A16;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11,31,58,0.08);
  --shadow-md: 0 8px 32px rgba(11,31,58,0.12);
  --shadow-lg: 0 20px 60px rgba(11,31,58,0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   ETIQUETAS DE SECCIÓN
   ============================================ */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-lt);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-tag-light {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-header p {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,31,58,0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:nth-child(1):hover,
.nav-links a:nth-child(2):hover,
.nav-links a:nth-child(3):hover {
  color: var(--blue);
}

.nav-cta {
  padding: 9px 22px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 14px !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
}

/* ============================================
   SECCIÓN 1: INTRODUCCIÓN
   ============================================ */
.section-intro {
  background: var(--cream);
  overflow: hidden;
}

.intro-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.intro-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.intro-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

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

.intro-text p {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2rem;
}

.intro-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.intro-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.stat span {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(11,31,58,0.15);
}

/* Imágenes del hero */
.intro-images {
  display: flex;
  gap: 1rem;
  height: 480px;
}

.img-main {
  flex: 1.4;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.img-secondary-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.img-sm {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.img-accent {
  border: 3px solid var(--gold);
}

/* Marquee */
.intro-marquee {
  background: var(--navy);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 1.5rem;
}

.marquee-track .dot {
  color: var(--gold);
  margin: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SECCIÓN 2: DEMOSTRACIÓN
   ============================================ */
.section-demo {
  padding: 6rem 0;
  background: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.course-card {
  background: var(--white);
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Tarjeta destacada */
.course-featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
}

.course-featured:hover {
  border-color: var(--navy);
}

.featured-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 1;
  letter-spacing: 0.04em;
}

.course-img {
  position: relative;
  height: 200px;
}

.course-level {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

.level-basic  { background: var(--gold-lt);  color: var(--gold); }
.level-mid    { background: var(--blue-lt);  color: var(--blue); }
.level-adv    { background: #EEF0FE;          color: #4A4AB7;     }

.course-body {
  padding: 1.5rem;
}

.course-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.course-body > p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.course-features li {
  font-size: 13px;
  color: var(--gray-700);
  padding-left: 1.25rem;
  position: relative;
}

.course-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.course-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.course-price em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
}

.btn-card {
  padding: 8px 18px;
  background: var(--gray-100);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

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

.btn-card-featured {
  background: var(--blue);
  color: var(--white);
}

.btn-card-featured:hover {
  background: var(--navy);
}

/* Modalidades */
.modalities {
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  gap: 1.1rem;
}

.modality-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.modality-icon {
  font-size: 30px;
  margin-bottom: 0.75rem;
}

.modality-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.modality-card p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ============================================
   SECCIÓN 3: INFORMACIÓN
   ============================================ */
.section-info {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0;
}

.info-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.info-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

.info-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.info-text strong {
  color: var(--white);
  font-weight: 500;
}

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

.info-text .btn-primary:hover {
  background: #B8862E;
}

.info-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
}

.info-img-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.4rem 1rem 1.20rem;
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.1;
}

.info-img-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.6;
}

.info-img-badge span {
  font-size: 12px;
  font-weight: 500;
}

/* Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.pillar {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.pillar h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* Testimonios */
.testimonials h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition);
}

.testimonial:hover {
  background: rgba(255,255,255,0.1);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial > p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--white);
}

.testimonial-author span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   SECCIÓN 4: FORMULARIO
   ============================================ */
.section-form {
  background: var(--cream);
  padding: 6rem 0;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.form-left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.form-left p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.form-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.form-benefits li {
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

.form-contact p {
  font-size: 13px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.form-contact a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  transition: color var(--transition);
}

.form-contact a:hover {
  color: var(--navy);
}

/* Tarjeta del formulario */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.required {
  color: #C0392B;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

/* Pseudo-clases en el formulario */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  background: #EEEEE8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24,95,165,0.12);
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: #2E7D32;
}

.form-group input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #C62828;
}

.form-group input[type="text"]:invalid:not(:placeholder-shown) {
  border-color: #C62828;
}

.form-group input[type="tel"]:invalid:not(:placeholder-shown) {
  border-color: #C62828;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-check label {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
}

.footer-logo span {
  color: var(--gold);
}

.footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .courses-grid     { grid-template-columns: 1fr 1fr; }
  .modalities       { grid-template-columns: 1fr 1fr; }
  .pillars-grid     { grid-template-columns: 1fr 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 13px; }

  .intro-hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem;
    gap: 2.5rem;
  }

  .intro-images { height: 300px; }

  .section-demo,
  .section-info,
  .section-form { padding: 4rem 0; }

  .courses-grid      { grid-template-columns: 1fr; }
  .info-top          { grid-template-columns: 1fr; gap: 2rem; }
  .form-layout       { grid-template-columns: 1fr; gap: 3rem; }
  .form-row          { grid-template-columns: 1fr; }
  .pillars-grid      { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .modalities        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .intro-text h1 { font-size: 36px; }
  .intro-btns    { flex-direction: column; }
  .intro-stats   { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stat-divider  { width: 40px; height: 1px; }
  .modalities    { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
}
