:root {
  /* Color Palette */
  --primary-color: #2563eb;
  /* Vivid Blue */
  --secondary-color: #f97316;
  /* Vivid Orange */
  --accent-color: #fbbf24;
  /* Bright Amber */
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --white: #ffffff;

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: 100px 5%;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Navbar & Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
  background-color: #eff6ff;
  border-bottom: 1px solid #e2e8f0;
  height: 65px;
  display: flex;
  align-items: center;
}

.header-top-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: stretch;
  height: 100%;
}

.header-top-left {
  display: flex;
  height: 100%;
}

.top-tab {
  display: flex;
  align-items: center;
  padding: 0 25px;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  border-right: 1px solid #e2e8f0;
  transition: var(--transition);
}

.top-tab:first-child {
  border-left: 1px solid #e2e8f0;
}

.top-tab.active {
  background-color: var(--white);
  color: #f97316;
  /* Orange text for Adultos */
}

.kids-tab {
  color: #f43f5e;
  /* Red text for KIDS */
  font-family: 'Fredoka', sans-serif;
  gap: 8px;
}

.tab-icon {
  height: 18px;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.top-link {
  color: var(--primary-color);
  font-weight: 500;
}

.divider {
  color: #cbd5e1;
}

.header-main {
  background-color: var(--white);
  padding: 15px 0;
}

.header-main-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
}

.nav-main .nav-links {
  display: flex;
  gap: 40px;
}

.nav-main .nav-links a {
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.nav-main .nav-links a:hover {
  color: var(--secondary-color);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 10px 0 20px;
}

.header-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.access-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
  color: white;
}

.off2class-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.off2class-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
  color: white;
}

.header-contact {
  display: none;
}

.header-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  /* WhatsApp Green */
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  text-decoration: none;
}

.header-whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
}

.whatsapp-text {
  white-space: nowrap;
}

.icon-blue {
  color: #3b82f6;
}

.icon-red {
  color: #f43f5e;
}

/* Scroll behavior */
.main-header {
  transition: transform 0.3s ease, background 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Removed: .main-header.scrolled .header-top { display: none; } */

/* Kids Nav Link */
.nav-kids {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
  color: #ff6b6b !important;
  /* Playful coral/red */
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-kids:hover {
  transform: scale(1.1) rotate(-2deg);
  color: #ff8e8e !important;
}

.kids-small-icon {
  height: 24px;
  width: auto;
}

/* Layout & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Video Hero Section */
.video-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 125px;
  /* Offset for fixed header */
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  /* Attenuated background */
  z-index: 0;
}

.video-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--primary-color);
  display: flex;
  justify-content: flex-start;
  /* Align box to left/center as needed */
  padding-left: 0;
}

.glass-hero-box {
  background: url('fondoprinci.png');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 60px;
  max-width: 1100px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(250, 250, 250, 0.1);
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-hero-box h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 800;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.glass-hero-box p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-dark);
  margin-bottom: 40px;
  opacity: 0.8;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-outline-white:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .glass-hero-box {
    padding: 40px 30px;
    text-align: center;
  }

  .hero-btn-group {
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(12, 27, 51, 0.03) 0%, rgba(255, 255, 255, 1) 90%);
  padding-top: 0;
  /* Removed fixed padding */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-color);
  margin-bottom: 25px;
}

.text-accent {
  color: var(--secondary-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: linear-gradient(135deg, #ff9f43 0%, #ff4757 100%);
  color: white;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats-card {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--white);
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Promotional Hero Styles */
.promotional-hero {
  padding: 80px 0 0 0;
  /* No bottom padding */
  margin-top: 0;
  /* Removed fixed margin */
  background-color: #f0f7ff;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  /* Text gets more space, form is narrower */
  gap: 40px;
  align-items: center;
  /* Center the form card vertically */
}

.promo-content {
  display: flex;
  align-items: flex-start;
  /* Move contents to top by default */
  gap: 30px;
  height: 100%;
}

.promo-text-block {
  text-align: center;
  align-self: flex-start;
  padding-top: 40px;
  /* Give some breathing room at the top */
}

.promo-center-img {
  max-width: 350px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  align-self: flex-end;
  /* Keep image at the bottom */
}

@media (max-width: 992px) {
  .promo-content {
    flex-direction: column;
    text-align: center;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }
}

.promo-main-title {
  font-size: 2.22rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.online-badge {
  color: #3b82f6;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.promo-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.promo-bullets li {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
}

.bullet-icon {
  color: #22c55e;
  font-weight: 900;
}

/* Form Card Styling */
.promo-form-wrapper {
  display: flex;
  justify-content: flex-end;
}

.promo-form-card {
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 360px;
  border: 1px solid #f1f5f9;
}

.form-title {
  text-align: center;
  color: #1d4ed8;
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.discount-text {
  font-size: 2rem;
  font-weight: 900;
}

.promo-form-card input,
.promo-form-card select {
  width: 100%;
  padding: 12px 0;
  margin-bottom: 20px;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.form-row {
  display: flex;
  gap: 20px;
}

.toggle-group {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.toggle-btn {
  flex: 1;
  padding: 12px;
  background: #f8fafc;
  border: none;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.toggle-btn.active {
  background: white;
  color: #334155;
}

.required-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.btn-comienza {
  width: 100%;
  padding: 16px;
  background: linear-gradient(to right, #ff6a00, #ff8e00);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
  transition: transform 0.2s;
}

.btn-comienza:hover {
  transform: translateY(-2px);
}

/* Benefits Grid Styles */
.benefits-grid {
  padding: 80px 0;
  background: white;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.benefit-item {
  text-align: left;
}

.benefit-img-wrapper {
  width: 100%;
  height: 160px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.benefit-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-img-wrapper img {
  transform: scale(1.05);
}

.benefit-item h4 {
  color: #1d4ed8;
  font-size: 1.2rem;
  margin-bottom: 12px;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.benefit-item p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.highlight {
  color: #f97316;
  font-weight: 700;
}

/* Philosophy Section (Lego Style) */
.philosophy-lego {
  padding: 40px 0 80px 0;
  background-color: var(--white);
}

.lego-header {
  background: #0f172a;
  /* Dark navy from image */
  background-image:
    linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, transparent 100%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.03) 40px, rgba(255, 255, 255, 0.03) 80px);
  color: white;
  padding: 40px 60px;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  gap: 50px;
  overflow: hidden;
}

.lego-header-content {
  flex: 1;
  text-align: left;
}

.lego-header-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.lego-header-content h2 span {
  color: #ff9f43;
  /* Accent color from logo/gradient */
}

.lego-header-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

.lego-header-image {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lego-header-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
  /* Slightly "organic" jaunty angle */
}

@media (max-width: 992px) {
  .lego-header {
    flex-direction: column;
    padding: 60px 40px;
    text-align: center;
  }

  .lego-header-content {
    text-align: center;
  }

  .lego-header-image {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 30px;
  }

  .lego-header-image img {
    max-width: 250px;
    transform: none;
  }
}

.lego-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.lego-card {
  background: white;
  border: 1px solid #e1e7f0;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 240px;
}

.lego-card:hover {
  background-color: #f8fafc;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lego-icon-container {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lego-icon {
  width: 50px;
  height: 50px;
}

.lego-text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0d4a4d;
  font-size: 0.9rem;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .lego-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lego-grid {
    grid-template-columns: 1fr;
  }
}

/* Programs Section */
.programs {
  padding: 80px 0;
}

.programs-intro {
  background: #0f172a;
  /* Same as lego-header */
  background-image:
    linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, transparent 100%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.03) 40px, rgba(255, 255, 255, 0.03) 80px);
  color: white;
  padding: 60px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  text-align: left;
  overflow: hidden;
}

.programs-intro-text {
  flex: 1;
}

.programs-intro h2 {
  font-size: 2.5rem;
  color: white;
  /* Title is now white */
  margin-bottom: 25px;
  line-height: 1.2;
}

.programs-intro h2 span {
  color: #ff9f43;
  /* Accent for "Inglés" or chosen word if I add span */
}

.programs-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.programs-intro-image {
  flex: 0 0 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.programs-intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  /* Organic slight tilt opposite to the lego model */
  transition: transform 0.3s ease;
}

.programs-intro-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

@media (max-width: 992px) {
  .programs-intro {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .programs-intro-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }

  .programs-intro-image img {
    transform: none;
  }
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.program-flip-card {
  height: 420px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.program-flip-card:hover .card-inner,
.program-flip-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-front {
  background-color: #f8fafc;
}

.card-back {
  background-color: #1e293b;
  color: white;
  transform: rotateY(180deg);
  padding: 30px;
  justify-content: center;
  align-items: center;
}

.card-back h4 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.card-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Level Specific Colors - VIVID UPGRADE */
.level-a1 .card-front,
.level-a2 .card-front {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.level-a1 .card-footer,
.level-a2 .card-footer {
  background-color: #1d4ed8;
}

.level-b1 .card-front,
.level-b2 .card-front {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
}

.level-b1 .card-footer,
.level-b2 .card-footer {
  background-color: #b45309;
}

.level-c1 .card-front {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

.level-c1 .card-footer {
  background-color: #5b21b6;
}

.level-c1 .card-back {
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
}

.program-flip-card:hover .card-inner {
  transform: rotateY(180deg) scale(1.02);
}

.card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.card-header {
  padding: 40px 20px 20px;
}

.card-header h3 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.card-header h3 span {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 5px;
}

.card-body {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.stat strong {
  font-size: 1.1rem;
}

.divider {
  width: 40px;
  height: 2px;
  background-color: white;
  opacity: 0.5;
  margin: 0 auto;
}

.card-footer {
  padding: 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-footer p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* Courses */
.bg-gray {
  background-color: var(--bg-gray);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.course-img {
  height: 250px;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-img img {
  transform: scale(1.1);
}

.course-info {
  padding: 30px;
}

.category {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-info h3 {
  font-size: 1.8rem;
  margin: 10px 0 15px;
  color: var(--primary-color);
}

.btn-full {
  width: 100%;
  margin-top: 20px;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-details {
  margin-top: 30px;
}

.contact-details li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(12, 27, 51, 0.1);
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about img {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  opacity: 0.8;
  transition: var(--transition);
}

.social-link:hover {
  opacity: 1;
  transform: translateX(5px);
  color: var(--secondary-color);
}

.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: rotate(10deg) scale(1.1);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Hamburger & Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

@media (max-width: 992px) {

  .hero-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-card {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .main-header {
    position: relative;
    /* Stop being sticky on mobile */
    height: auto;
  }

  .header-top {
    height: auto;
    padding: 5px 0;
  }

  .header-top-flex {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .header-top-left, .header-top-right {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-tab {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.8rem;
  }

  .top-tab:first-child {
    border-left: 1px solid #e2e8f0;
  }

  .header-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .whatsapp-text {
    display: none;
    /* Only show icon */
  }

  .header-whatsapp-btn {
    padding: 8px 12px;
  }

  .logo img {
    height: 40px;
    /* Slightly smaller logo */
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-mobile-only {
    display: block !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.nav-mobile-only {
  display: none;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.video-modal.active {
  display: flex;
}

.video-modal .modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.video-modal .video-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  background: black;
}

.video-modal video {
  width: 100%;
  display: block;
}

.video-modal .close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-modal .close-modal:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .video-modal .modal-content {
    max-width: 100%;
  }
}

/* Logo Carousel */
.logo-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  position: relative;
  background: white;
}

.logo-carousel-container::before,
.logo-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.logo-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.logo-carousel {
  display: flex;
  width: calc(350px * 32);
  /* 16 logos * 2 sets */
  animation: scroll 60s linear infinite;
}

.logo-item {
  width: 350px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 35px 40px 0;
  flex-shrink: 0;
  gap: 20px;
}

.logo-item img {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.3s ease;
}

.logo-desc {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.logo-item:hover .logo-desc {
  opacity: 1;
  color: var(--secondary-color);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-350px * 16));
  }
}

@media (max-width: 768px) {
  .logo-item {
    width: 250px;
    padding: 30px 20px 0;
  }

  .logo-item img {
    height: 100px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-250px * 16));
    }
  }
}


/* Mother's Day Popup Styles */
.md-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.md-popup.active {
  display: flex;
}

.md-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.md-popup-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 900px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: popupScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.md-popup-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  color: #64748b;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  line-height: 1;
}

.md-popup-close:hover {
  color: #f43f5e;
  transform: rotate(90deg);
}

.md-popup-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 500px;
}

.md-popup-image {
  background: #fff1f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.md-popup-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(244, 63, 94, 0.2);
}

.md-popup-text {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.md-tag {
  color: #f43f5e;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
}

.md-popup-text h2 {
  font-size: 2.8rem;
  color: #1e293b;
  line-height: 1.1;
  margin-bottom: 20px;
}

.md-popup-text h2 span {
  color: #f43f5e;
}

.md-popup-text p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 25px;
}

.md-offer-box {
  background: #fff5f5;
  padding: 20px 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 4px solid #f43f5e;
}

.md-offer-text {
  font-size: 0.9rem;
  color: #64748b;
}

.md-offer-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: #f43f5e;
  line-height: 1;
  margin: 5px 0;
}

.md-offer-target {
  font-weight: 700;
  color: #1e293b;
}

.md-banner-btn {
  width: 100%;
}

@media (max-width: 768px) {
  .md-popup-grid {
    grid-template-columns: 1fr;
  }
  
  .md-popup-image {
    display: none; /* Hide image on mobile for space */
  }
  
  .md-popup-text {
    padding: 50px 30px;
    text-align: center;
  }
  
  .md-popup-text h2 {
    font-size: 2.2rem;
  }
}

.promotional-hero {
  background-color: #f0f7ff;
  padding: 100px 0;
}

.hero-carousel {
  display: none;
}

@media (max-width: 992px) {
  .carousel-wrapper {
    height: auto;
    min-height: 850px;
  }
  
  .mothers-day-banner, .promotional-hero {
    padding: 60px 0 !important;
  }
  
  .md-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .md-side-img {
    width: 200px;
  }

  .carousel-controls-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .carousel-dots {
    display: none;
  }
}

/* Landing Page: promocion-mama.html */
.md-landing-hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
  text-align: center;
}

.md-landing-content {
  padding: 80px 0;
}

.md-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.md-promo-info h3 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.md-promo-info p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #475569;
}

.md-form-card {
  background: white;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
}

.md-form-card h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #f43f5e;
}

.md-form-card .form-subtitle {
  color: #64748b;
  margin-bottom: 35px;
  font-size: 1rem;
}

.md-input-group {
  margin-bottom: 25px;
}

.md-input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 0.9rem;
}

.md-input-group input,
.md-input-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.md-input-group input:focus,
.md-input-group textarea:focus {
  border-color: #f43f5e;
  outline: none;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.btn-md-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(to right, #f43f5e, #fb7185);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
}

.btn-md-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(244, 63, 94, 0.4);
}

@media (max-width: 992px) {
  .md-banner-grid, .md-promo-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .md-banner-text, .md-promo-info {
    text-align: center;
  }
  
  .md-banner-text h2 {
    font-size: 2.5rem;
  }
  
  .md-banner-image {
    order: -1;
  }
  
  .md-banner-image img {
    transform: none;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .md-banner-text p {
    margin: 0 auto 30px;
  }
}

/* ==========================================================================
   Portuguese Campaign Theme Overrides
   ========================================================================== */
.portuguese-theme .md-tag {
  color: #10b981;
}

.portuguese-theme .md-popup-text h2 span,
.portuguese-theme .text-accent {
  color: #10b981;
}

.portuguese-theme .md-offer-box {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
}

.portuguese-theme .md-offer-value {
  color: #10b981;
}

.portuguese-theme .md-popup-image {
  background: #ffffff;
}

.portuguese-theme .md-popup-image img {
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
}

.portuguese-theme.md-landing-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.portuguese-theme .md-form-card h4 {
  color: #10b981;
}

.portuguese-theme .md-input-group input:focus,
.portuguese-theme .md-input-group textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.portuguese-theme .btn-md-submit {
  background: linear-gradient(to right, #10b981, #34d399);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.portuguese-theme .btn-md-submit:hover {
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.portuguese-theme .btn-primary.md-banner-btn {
  background: #10b981;
  border-color: #10b981;
}

.portuguese-theme .btn-primary.md-banner-btn:hover {
  background: #059669;
  border-color: #059669;
}

.portuguese-theme .bullet-icon {
  color: #10b981;
  font-weight: bold;
}

/* ==========================================================================
   Cyber Neon Black Campaign Theme Overrides
   ========================================================================== */
.black-theme .md-popup-content {
  background: #0b0f19;
  color: #ecf0f1;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 240, 255, 0.25);
}

.black-theme .md-popup-close {
  color: #94a3b8;
}

.black-theme .md-popup-close:hover {
  color: #00f0ff;
  transform: rotate(90deg);
}

.black-theme .md-popup-text h2 {
  color: #ffffff;
}

.black-theme .md-tag {
  color: #a2ff00;
  text-shadow: 0 0 10px rgba(162, 255, 0, 0.3);
}

.black-theme .md-popup-text h2 span,
.black-theme .text-accent {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.black-theme .md-popup-text p {
  color: #94a3b8;
}

.black-theme .md-offer-box {
  background: rgba(0, 240, 255, 0.05);
  border-left: 4px solid #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  margin-bottom: 30px;
  padding: 20px 25px;
  border-radius: 15px;
}

.black-theme .md-offer-text {
  color: #00f0ff;
  font-size: 0.9rem;
}

.black-theme .md-offer-value {
  color: #a2ff00;
  text-shadow: 0 0 15px rgba(162, 255, 0, 0.4);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin: 5px 0;
}

.black-theme .md-offer-target {
  color: #ffffff;
  font-weight: 700;
}

.black-theme .md-popup-image {
  background: #070a12;
}

.black-theme .md-popup-image img {
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.2);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.black-theme .btn-primary.md-banner-btn {
  background: linear-gradient(to right, #00f0ff, #0077ff);
  border: none;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.black-theme .btn-primary.md-banner-btn:hover {
  background: linear-gradient(to right, #00d2ff, #0055ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

/* Landing Page Overrides for promocion-black.html */
body.black-theme {
  background-color: #090d16;
  color: #94a3b8;
}

.black-theme .main-header {
  background-color: rgba(9, 13, 22, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.black-theme .header-top {
  background-color: #0d1527;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.black-theme .top-tab {
  color: #64748b;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.black-theme .top-tab.active {
  background-color: #090d16;
  color: #00f0ff;
}

.black-theme .header-main {
  background-color: transparent;
}

.black-theme .nav-main .nav-links a {
  color: #ffffff;
}

.black-theme .nav-main .nav-links a:hover {
  color: #00f0ff;
}

.black-theme.md-landing-hero {
  background: radial-gradient(circle at top, rgba(0, 240, 255, 0.1) 0%, rgba(9, 13, 22, 1) 70%);
  padding: 180px 0 80px;
}

.black-theme.md-landing-hero h1 {
  color: #ffffff;
}

.black-theme .organic-index-section {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.black-theme .organic-index-section:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.08);
}

.black-theme .index-section-header h4 {
  color: #ffffff;
}

.black-theme .index-icon-wrapper {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

.black-theme .index-check {
  background: rgba(162, 255, 0, 0.15);
  color: #a2ff00;
}

.black-theme .index-item-content strong {
  color: #ffffff;
}

.black-theme .index-item-content span {
  color: #94a3b8;
}

.black-theme .premium-offer-box {
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-left: 5px solid #00f0ff;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.black-theme .premium-offer-box .md-offer-text {
  color: #00f0ff;
}

.black-theme .premium-offer-box .md-offer-value {
  color: #a2ff00;
  text-shadow: 0 0 10px rgba(162, 255, 0, 0.4);
}

.black-theme .premium-offer-box .md-offer-target {
  color: #cbd5e1;
}

.black-theme .md-form-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.black-theme .md-form-card h4 {
  color: #ffffff;
}

.black-theme .md-form-card .form-subtitle {
  color: #94a3b8;
}

.black-theme .md-input-group label {
  color: #cbd5e1;
}

.black-theme .md-input-group input,
.black-theme .md-input-group textarea {
  background: #070a13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
}

.black-theme .md-input-group input:focus,
.black-theme .md-input-group textarea:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.15);
}

.black-theme .btn-md-submit {
  background: linear-gradient(to right, #00f0ff, #0077ff);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
  color: #ffffff;
}

.black-theme .btn-md-submit:hover {
  background: linear-gradient(to right, #00d2ff, #0055ff);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.black-theme footer {
  background-color: #070a12;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.black-theme .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #04060b;
}
