/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: #f0f1f8;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
  background: #4845f7;
  box-shadow: 0 2px 12px rgba(72,69,247,.3);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.25rem; color: #fff;
  text-decoration: none;
}
.nav { display: flex; gap: .25rem; }
.nav-link {
  color: rgba(255,255,255,.85); text-decoration: none;
  padding: .4rem .75rem; border-radius: 6px;
  font-size: .85rem; font-weight: 500; transition: all .2s;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.15); color: #fff; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: #000;
  overflow: hidden; padding-top: 60px;
}
.video-background {
  position: absolute; inset: 0;
  z-index: 1; overflow: hidden;
  pointer-events: none;
}
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cambiado de cover a contain para que se vea todo el video sin recortar */
  object-position: center center; /* Centrar el video */
  position: absolute;
  top: 0; left: 0;
  background: #0a111a; /* Fondo oscuro para los bordes si el video es vertical */
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 52, 96, 0.4);
  z-index: 2;
}
.hero-content { position: relative; z-index: 3; padding: 3rem; max-width: 700px; }
.hero-subtitle {
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  color: #a8b4ff; letter-spacing: 3px; margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem); color: #fff;
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-text { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: .85rem 2rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: all .25s ease; cursor: pointer; border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: #4845f7; color: #fff; }
.btn-primary:hover { background: #3532d4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(72,69,247,.4); }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-secondary:hover { background: rgba(255,255,255,.2); }
.btn-white { background: #fff; color: #4845f7; }
.btn-white:hover { background: #f0f0ff; transform: translateY(-2px); }
.btn-small { padding: .55rem 1.2rem; font-size: .85rem; background: #4845f7; color: #fff; border-radius: 6px; }
.btn-small:hover { background: #3532d4; }
.btn-full { width: 100%; }

/* FIX HIGHLIGHT — resalta los elementos corregidos */
.btn-primary[href="#services"] {
  position: relative;
  box-shadow: 0 0 0 3px #00ff88, 0 0 15px rgba(0,255,136,.3);
}
.fix-highlight {
  box-shadow: 0 0 0 3px #00ff88, 0 0 15px rgba(0,255,136,.3) !important;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; text-align: center; }
.section-light { background: #f0f1f8; }
.section-lavender { background: #ddddf7; }
.section-blue { background: linear-gradient(135deg, #4845f7, #6c63ff); }
.section-dark { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.section-title {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem;
}
.section-title.light, .section-desc.light { color: #fff; }
.section-desc { color: #555; max-width: 700px; margin: 0 auto 2rem; font-size: 1rem; }
.section-desc.light { color: rgba(255,255,255,.8); }

/* ===== CARDS ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto; padding-top: 1rem;
}
.card {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(72,69,247,.12); }
.card-icon { font-size: 2.2rem; color: #4845f7; margin-bottom: 1rem; }
.card-img { width: 100%; border-radius: 8px; margin-bottom: 1.5rem; display: block; object-fit: cover; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: .75rem; }
.card p { color: #666; font-size: .9rem; margin-bottom: 1.25rem; line-height: 1.5; }

/* ===== TESTIMONIAL ===== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.testimonial-card {
  background: #fff; border-radius: 16px;
  padding: 3rem; box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.testimonial-card blockquote {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-style: italic; line-height: 1.6; color: #1a1a2e;
}
.testimonial-author { margin-top: 1.5rem; font-weight: 700; color: #4845f7; font-size: 1rem; }
.testimonial-author small { color: #666; font-weight: normal; font-size: 0.85rem; display: block; margin-top: 0.3rem; line-height: 1.4; }

/* ===== MISSION ===== */
.mission-content { max-width: 800px; margin: 0 auto; }
.mission-text { font-size: 1.05rem; color: #444; line-height: 1.8; margin-bottom: 2rem; }

/* ===== CONTACT FORM ===== */
.contact-email { margin-bottom: 2rem; font-size: 1rem; }
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .4rem; margin-top: 1.25rem; font-size: .9rem; }
.required { color: #e74c3c; margin-left: 2px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid #ccc;
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #4845f7; }
.contact-form .btn { margin-top: 1.5rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; text-align: left; }
.faq-item {
  background: #fff; border-radius: 12px; margin-bottom: 1rem;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(72,69,247,.1); }
.faq-question {
  padding: 1.2rem 1.5rem; font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { font-size: 1.4rem; color: #4845f7; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
  padding: 0 1.5rem; color: #555; font-size: .9rem; line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 1.5rem 1.2rem; }

/* ===== FOOTER ===== */
.footer {
  background: #e4e5f0; padding: 3rem 2rem; text-align: center;
}
.footer-brand {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: 1.4rem; margin-bottom: 1.5rem;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.footer-nav a { color: #555; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: #4845f7; }
.social-links { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.social-icon {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid #888;
  display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 1.1rem; text-decoration: none;
  transition: all .25s;
}
.social-icon:hover { background: #4845f7; border-color: #4845f7; color: #fff; transform: scale(1.1); }
.footer-copy { font-size: .8rem; color: #888; }

/* ===== FIXES BANNER ===== */
.fixes-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff; padding: 1rem 2rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  animation: slideUp .5s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.fixes-banner-content { max-width: 800px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.fixes-banner h3 { font-size: 1rem; white-space: nowrap; }
.fixes-banner p { font-size: .85rem; color: rgba(255,255,255,.8); flex: 1; }
.fixes-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  padding: .4rem 1rem; border-radius: 6px; cursor: pointer; font-size: .85rem;
  transition: background .2s;
}
.fixes-close:hover { background: rgba(255,255,255,.25); }

/* ===== PAYPAL SECTION ===== */
.section-paypal {
  background: linear-gradient(135deg, #003087 0%, #001f5c 40%, #0070ba 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.section-paypal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0,112,186,.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(0,48,135,.15) 0%, transparent 50%);
  animation: paypalGlow 8s ease-in-out infinite alternate;
}
@keyframes paypalGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 5%) scale(1.1); }
}
.paypal-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.paypal-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #fff;
  border: 2px solid rgba(255,255,255,.2);
  animation: paypalPulse 3s ease-in-out infinite;
}
@keyframes paypalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,112,186,.4); }
  50% { box-shadow: 0 0 0 15px rgba(0,112,186,0); }
}
.section-paypal .section-title {
  color: #fff;
  margin-bottom: 1rem;
}
.section-paypal .section-desc {
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
}
.btn-paypal {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ffc439, #ffb347);
  color: #003087;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(255,196,57,.3);
}
.btn-paypal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,196,57,.5);
  background: linear-gradient(135deg, #ffce5c, #ffc060);
}
.btn-paypal i {
  font-size: 1.3rem;
}
.paypal-secure {
  margin-top: 1.5rem;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.paypal-secure i {
  font-size: .75rem;
}

/* PayPal social icon in footer */
.social-paypal {
  border-color: #0070ba !important;
  color: #0070ba !important;
}
.social-paypal:hover {
  background: #0070ba !important;
  border-color: #0070ba !important;
  color: #fff !important;
}

/* YouTube social icon in footer */
.social-youtube {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
}
.social-youtube:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #fff !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header { padding: 0 1rem; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 60px; left: 0; right: 0;
    background: #4845f7; flex-direction: column; padding: 1rem;
    transform: translateY(-120%); transition: transform .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
  }
  .nav.open { transform: translateY(0); }
  .hero-content { padding: 2rem 1.5rem; }
  .hero-title { font-size: 2rem; }
  .section { padding: 3rem 1.5rem; }
  .fixes-banner-content { flex-direction: column; text-align: center; gap: .75rem; }
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

/* ===== PROGRAM DETAILS (ACCORDION) ===== */
.program-details {
  margin-bottom: 1.5rem;
  text-align: left;
}
.program-details summary {
  list-style: none; /* Hide default arrow */
  cursor: pointer;
  margin-bottom: 1rem;
}
.program-details summary::-webkit-details-marker {
  display: none;
}
.program-content {
  background: #f8f9fc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e4f5;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.program-content h4 {
  color: #4845f7;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.program-content h4:first-child {
  margin-top: 0;
}
.program-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.program-content p {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: #fff;
  padding: 4rem 2rem;
}
.stats-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 250px;
  background: #f8f9fc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .3s;
}
.stat-item:hover {
  transform: translateY(-5px);
}
.stat-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: #4845f7;
  margin-bottom: 0.5rem;
}
.stat-plus {
  font-size: 2.5rem;
  margin-right: 4px;
  color: #6c63ff;
}
.stat-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  font-weight: 500;
}
