:root {
  --navy: #0a1a2e;
  --blue: #2b6ff3;
  --gold: #d1a74c;
  --light: #f2f5fb;
  --text: #0f172a;
  --muted: #5b687a;
  --card-bg: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.3);
  --shadow-lg: 0 30px 70px rgba(10, 20, 45, 0.18);
  --shadow-md: 0 18px 40px rgba(10, 20, 45, 0.12);
  --radius-xl: 24px;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #edf2fb 100%);
  line-height: 1.6;
}

.section,
.hero {
  width: 100%;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.promo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20000;
}

.promo-modal.is-open {
  display: flex;
}

.promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 22, 0.7);
  backdrop-filter: blur(6px);
}

.promo-card {
  position: relative;
  max-width: 560px;
  width: min(92vw, 560px);
  background: #0a1a2e;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(6, 12, 22, 0.55);
  overflow: hidden;
  animation: promoIn 0.6s ease;
  z-index: 1;
}

.promo-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.promo-content {
  padding: 20px 24px 24px;
  color: white;
  display: grid;
  gap: 10px;
}

.promo-badge {
  align-self: start;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.promo-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2b45a, #c69a3f);
  color: #1b1f24;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.promo-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  animation: pulse 1.4s ease-in-out infinite;
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 26, 46, 0.8);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

@keyframes promoIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(226, 180, 90, 0.6);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(226, 180, 90, 0);
  }
  100% {
    transform: scale(1);
  }
}

.hero {
  background: linear-gradient(120deg, rgba(10, 26, 46, 0.88) 0%, rgba(14, 38, 70, 0.88) 50%, rgba(43, 111, 243, 0.85) 100%),
    url("../images/imagen1.jpeg") center/cover no-repeat;
  color: white;
  padding: 40px 8%;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(209, 167, 76, 0.28), transparent 55%);
  pointer-events: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
  transition: 0.3s ease;
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.logo span {
  font-size: 28px;
  letter-spacing: 2px;
}

.logo small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.nav-links a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: 0.3s ease;
}

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

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 20px 0;
  letter-spacing: -0.5px;
}

.pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  gap: 8px;
  position: relative;
}

.btn:disabled,
.btn.loading {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.primary {
  background: linear-gradient(135deg, #e2b45a, #c69a3f);
  color: #1b1f24;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(209, 167, 76, 0.35);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.accent {
  background: linear-gradient(135deg, #2b6ff3, #1c4bb8);
  color: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.hero-stats h3 {
  font-size: 20px;
  font-family: "Poppins", sans-serif;
}

.hero-card {
  background: rgba(10, 26, 46, 0.92);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 50px rgba(7, 18, 34, 0.4);
  transition: 0.35s ease;
  transform-style: preserve-3d;
}

.hero-card-image {
  margin-bottom: 16px;
  border-radius: 18px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 18px 36px rgba(7, 18, 34, 0.35);
}

.hero-card:hover .hero-card-image {
  transform: scale(1.04);
  box-shadow: 0 24px 50px rgba(7, 18, 34, 0.45);
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(7, 18, 34, 0.5);
}

@media (hover: none) {
  .hero-card:hover .hero-card-image,
  .hero-card:hover {
    transform: none;
  }
}

.hero-card ul {
  list-style: none;
  margin: 16px 0 24px;
}

.hero-card li {
  margin-bottom: 8px;
}

.section {
  padding: 80px 8%;
}

.section-title span {
  color: #2b6ff3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.section-title h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  margin-top: 12px;
  max-width: 720px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}

.about-grid > p {
  font-size: 16px;
  color: #233042;
  background: linear-gradient(135deg, #ffffff, #f6f9ff);
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(12, 24, 44, 0.12);
  border: 1px solid rgba(28, 109, 208, 0.14);
  position: relative;
}

.about-grid > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}

.about-cards {
  display: grid;
  gap: 18px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: 0.3s ease;
}

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

.glass {
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.about .glass.card {
  background: white;
  border: 1px solid rgba(28, 109, 208, 0.12);
  backdrop-filter: none;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.about .glass.card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.about .glass.card p {
  color: var(--muted);
}

.about .glass.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28, 109, 208, 0.08), rgba(201, 162, 39, 0.08));
  opacity: 0;
  transition: 0.3s ease;
}

.about .glass.card:hover::after {
  opacity: 1;
}

.hero-card.glass {
  background: rgba(10, 28, 54, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
}

.offer-grid,
.events-grid,
.benefits-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.events .card,
.instructor-card {
  color: white;
  background: linear-gradient(140deg, rgba(11, 31, 58, 0.9), rgba(28, 109, 208, 0.8));
}

.carousel-section {
  background: white;
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-item {
  display: none;
  position: relative;
}

.carousel-item.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 26, 46, 0.8);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
}

.carousel-btn {
  background: linear-gradient(135deg, #2b6ff3, #1c4bb8);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  transition: 0.3s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
}

.benefits {
  background: linear-gradient(120deg, rgba(28, 109, 208, 0.06), rgba(201, 162, 39, 0.08));
}

.instructor-card {
  margin-top: 28px;
  padding: 32px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.form-section {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.form-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.form-info {
  background: linear-gradient(135deg, #0a1a2e 0%, #234c9f 55%, #2b6ff3 100%);
  color: white;
  padding: 30px;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.32);
  position: relative;
  overflow: hidden;
}

.form-info h3 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 12px;
}

.form-info ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.form-info li::before {
  content: "•";
  margin-right: 10px;
  color: var(--gold);
}

.form-info::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35), transparent 60%);
  opacity: 0.8;
}

.form-info::before {
  content: "";
  position: absolute;
  inset: auto auto -60% -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
}

.inscription-form {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  background: white;
  padding: 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(28, 109, 208, 0.12);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inscription-form input,
.inscription-form select,
.inscription-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(28, 109, 208, 0.2);
  font-family: inherit;
  background: #f8fbff;
  transition: 0.2s ease;
}

.inscription-form input:focus,
.inscription-form select:focus,
.inscription-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 109, 208, 0.2);
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.inscription-form .btn.primary {
  width: 100%;
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 14px 30px rgba(201, 162, 39, 0.35);
}

.contact {
  background: linear-gradient(135deg, #0a1a2e 0%, #1f4796 55%, #2b6ff3 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.4), transparent 60%);
  opacity: 0.8;
}

.contact::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 60%);
}

.contact .section-title,
.contact-grid {
  position: relative;
  z-index: 1;
}

.contact-grid > div:first-child {
  background: rgba(10, 26, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 45px rgba(7, 18, 34, 0.25);
}

.contact-grid h3 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 12px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-cards .card {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 30px rgba(7, 18, 34, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-cards .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(201, 162, 39, 0.18), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: 0.3s ease;
}

.contact-cards .card:hover::after {
  opacity: 1;
}


.footer {
  text-align: center;
  padding: 28px 8%;
  background: #0a1a2e;
  color: rgba(255, 255, 255, 0.75);
}

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 81px;
  height: 81px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(10, 20, 45, 0.35);
  z-index: 20000;
  animation: whatsappFloat 2.6s ease-in-out infinite;
}

.whatsapp-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    right: 16px;
    background: rgba(11, 31, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    box-shadow: 0 18px 40px rgba(5, 12, 24, 0.35);
    backdrop-filter: blur(10px);
    z-index: 10001;
    pointer-events: auto;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 10000;
  }

  .nav-cta {
    display: none;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  .hero-card {
    order: 2;
  }

  .hero-text {
    order: 1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 6%;
  }

  .section {
    padding: 64px 6%;
  }

  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    justify-self: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .about-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .instructor-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 28px 5%;
  }

  .section {
    padding: 56px 5%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    left: 0;
    right: auto;
    width: 100%;
  }
}
