:root {
  --primary: rgb(19, 51, 145);
  --secondary: rgb(183, 61, 61);
  --yellow: rgb(229, 198, 85);
  --light: rgb(239, 241, 240);
  --pink: rgb(206, 142, 145);
  --grayblue: rgb(118, 132, 162);
  --accent: rgb(99, 184, 255);
  --dark: rgb(15, 30, 80);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fc 0%, #f0f3f9 100%);
  color: var(--primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* HEADER / MENU */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 51, 145, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s ease;
}

.img-logo {
  width: 50px;
  height: auto;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover .logo-bird::before {
  left: 100%;
}

.menu-btn {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 184, 255, 0.15), rgba(19, 51, 145, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(19, 51, 145, 0.1);
  position: relative;
  z-index: 1001;
}

.menu-btn:hover {
  background: linear-gradient(135deg, rgba(99, 184, 255, 0.25), rgba(19, 51, 145, 0.15));
  transform: translateY(-2px);
}

.menu-btn span {
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  position: relative;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  left: 0;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.menu-btn span::before {
  top: -8px;
}

.menu-btn span::after {
  top: 8px;
}

/* Burger Animation */
.menu-btn.active span {
  background: transparent;
}

.menu-btn.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* NAV MENU */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
}

.nav-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.nav-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nav-menu ul li a {
  text-decoration: none;
  color: var(--dark);
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.nav-menu ul li a:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    transition: none;
    display: block;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .nav-menu ul {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-menu ul li a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
  }

  .nav-menu ul li a::after {
    height: 3px;
    background: var(--secondary);
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 2rem 1.2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow: hidden;
  /* Prevent horizontal scroll from elements peaking out */
}

.hero-text small {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(99, 184, 255, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  width: fit-content;
}

.hero-text h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--secondary), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--grayblue);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 15px 35px rgba(19, 51, 145, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(19, 51, 145, 0.4);
}

.cta-btn:hover::before {
  left: 100%;
}

/* IMAGE */
.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

.image-dashed {
  width: 280px;
  height: 360px;
  border-radius: 50% / 55%;
  border: 4px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 60px rgba(99, 184, 255, 0.15),
    inset 0 0 40px rgba(99, 184, 255, 0.05);
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.image-inner {
  width: 450px;
  height: 330px;
  border-radius: 50% / 55%;
  background: linear-gradient(135deg, #dbe3f7, #e8f0ff);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 20px 40px rgba(19, 51, 145, 0.1);
}

.image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* MEMPHIS ELEMENTS */
.shape {
  position: absolute;
  opacity: 0.85;
  z-index: 0;
  animation: drift 6s ease-in-out infinite;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10px, -10px) rotate(5deg);
  }

  50% {
    transform: translate(0, -20px) rotate(-3deg);
  }

  75% {
    transform: translate(-10px, -10px) rotate(-5deg);
  }
}

.shape.circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--yellow), rgb(255, 215, 100));
  border-radius: 50%;
  top: 40px;
  right: 15px;
  box-shadow: 0 15px 35px rgba(229, 198, 85, 0.3);
}

.shape.circle::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 10px;
  left: 10px;
}

.shape.triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid var(--pink);
  bottom: 100px;
  left: 20px;
  filter: drop-shadow(0 10px 20px rgba(206, 142, 145, 0.3));
}

.shape.wave {
  width: 100px;
  height: 50px;
  border: 4px solid var(--secondary);
  border-color: var(--secondary) transparent transparent transparent;
  border-radius: 50% 50% 0 0;
  top: 150px;
  left: 5px;
  filter: drop-shadow(0 10px 20px rgba(183, 61, 61, 0.2));
}

.hero-owl-3d {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.hero-owl-3d img {
  height: auto;
  filter: blur(1px);
  /* Slight depth effect */
}

/* Hide or adjust on small mobile to avoid layout shifts */
@media (max-width: 480px) {
  .hero-owl-3d {
    opacity: 0.3;
  }
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 4rem 5rem;
    gap: 4rem;
  }

  .hero-image {
    flex: 1;
    min-height: 500px;
  }

  .image-dashed {
    width: 480px;
    height: 420px;
  }

  .image-inner {
    width: 450px;
    height: 390px;
  }

  .hero-text {
    flex: 1;
  }
}



/* BACKGROUND DECORATIVE CIRCLES */
.bg-circle {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.bg-circle.top-left {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(99, 184, 255, 0.12), rgba(206, 142, 145, 0.08));
  top: -200px;
  left: -200px;
  filter: blur(40px);
}

.bg-circle.bottom-right {
  width: 900px;
  height: 900px;
  background: linear-gradient(135deg, rgba(99, 184, 255, 0.08), rgba(229, 198, 85, 0.06));
  bottom: -300px;
  right: -300px;
  filter: blur(50px);
}

/* SPEECH BUBBLE */
.speech-bubble {
  position: absolute;
  background: var(--primary);
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 30px 30px 30px 5px;
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  box-shadow: 0 12px 30px rgba(19, 51, 145, 0.25);
  text-align: center;
  line-height: 1.1;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid rgba(255, 255, 255, 0.15);
  top: -25px;
  right: -100px;
  z-index: 10;
  white-space: nowrap;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--primary);
}

.speech-bubble:hover {
  transform: translateY(-5px) scale(1.05) rotate(-2deg);
  box-shadow: 0 18px 40px rgba(19, 51, 145, 0.35);
}

.speech-bubble span {
  color: var(--yellow);
  display: inline;
  text-transform: uppercase;
}

/* EGG/PEAR SHAPE */
.egg-shape {
  position: absolute;
  background: var(--primary);
  border-radius: 50% 50% 50% 50% / 70% 70% 40% 40%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 2rem 1.5rem;
  min-width: 260px;
  min-height: 200px;
  box-shadow: 0 12px 30px rgba(183, 61, 61, 0.25);
  line-height: 1.2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid rgba(255, 255, 255, 0.15);
  bottom: -50px;
  left: 50px;
  z-index: 10;
  pointer-events: auto;
}

.egg-shape:hover {
  transform: translateY(-5px) scale(1.1) rotate(5deg);
  border-radius: 40% 40% 60% 60% / 60% 60% 40% 40%;
  box-shadow: 0 18px 40px rgba(183, 61, 61, 0.35);
}

.egg-shape span {
  display: block;
  color: var(--yellow);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  margin-top: 0.3rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .egg-shape {
    left: 0;
    bottom: 10px;
    padding: 2.5rem 2rem;
  }
}

/* SERVICES SECTION */
.services {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header small {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(183, 61, 61, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 35px;
  box-shadow: 0 15px 40px rgba(19, 51, 145, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(19, 51, 145, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 35px 35px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(19, 51, 145, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--grayblue);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-tag {
  display: inline-block;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 700;
  color: var(--primary);
  background: rgba(19, 51, 145, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-top: auto;
  border: 1px solid rgba(19, 51, 145, 0.05);
}

.service-card.featured {
  background: linear-gradient(135deg, white 0%, #f0f4ff 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 20px 45px rgba(99, 184, 255, 0.2);
}

.service-card.featured::after {
  content: '★ DESTACADO';
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 1px;
}

.service-card .badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 5px;
  text-transform: uppercase;
}

.services-footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 3.5rem 2rem;
  border-radius: 40px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 45px rgba(15, 30, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.services-footer::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.services-footer p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-weight: 500;
}

.secondary-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(229, 198, 85, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secondary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(229, 198, 85, 0.5);
  background: rgb(240, 210, 100);
}

@media (max-width: 768px) {
  .services {
    margin-top: 4rem;
  }
}

@media (min-width: 768px) {
  .services {
    padding: 6rem 5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-footer {
    padding: 5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ABOUT US / NUESTRA ESENCIA */
.about-us {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(19, 51, 145, 0.05);
  border: 1px solid rgba(19, 51, 145, 0.03);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(19, 51, 145, 0.1);
}

.about-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.about-card p {
  color: var(--grayblue);
  line-height: 1.7;
  font-size: 1.1rem;
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card.mision {
  border-left: 8px solid var(--accent);
}

.about-card.vision {
  border-left: 8px solid var(--secondary);
}

.values-container {
  margin-top: 5rem;
  text-align: center;
}

.values-container h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-item {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 30px;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.value-item:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(19, 51, 145, 0.05);
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.value-item h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.value-item p {
  color: var(--grayblue);
  font-size: 0.95rem;
  line-height: 1.5;
}

.identity-phrase {
  margin-top: 5rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  border-radius: 50px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 30, 80, 0.2);
}

.identity-phrase::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 12rem;
  font-weight: 900;
  opacity: 0.1;
  font-family: 'Nunito', sans-serif;
  color: var(--yellow);
}

.phrase-content p {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .mision-vision-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-us {
    padding: 6rem 5rem;
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promotions {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  background: linear-gradient(135deg, #f0f3f9 0%, #e8ecf5 100%);
  position: relative;
  overflow: visible;
  /* Changed from hidden to allow owl to be seen */
}

.promo-container {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 30px;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 30px 70px rgba(19, 51, 145, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
}

.promo-badge {
  background: var(--secondary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-content h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.promo-content h2 span {
  color: var(--secondary);
  text-decoration: underline wavy var(--yellow);
  text-underline-offset: 8px;
}

.promo-content p {
  color: var(--grayblue);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(99, 184, 255, 0.05);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 184, 255, 0.1);
}

.promo-icon {
  font-size: 2rem;
  background: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(19, 51, 145, 0.05);
}

.promo-item strong {
  display: block;
  color: var(--dark);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.promo-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--grayblue);
}

.promo-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.promo-btn {
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1.2rem 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(19, 51, 145, 0.25);
}

.promo-btn:hover {
  background: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(19, 51, 145, 0.35);
}

.promo-cta small {
  color: var(--grayblue);
  font-style: italic;
}

.promo-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 200px;
}

.promo-circle {
  width: clamp(160px, 40vw, 200px);
  height: clamp(160px, 40vw, 200px);
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(229, 198, 85, 0.4);
  border: 6px solid white;
  transform: rotate(-10deg);
  animation: pulse-promo 2s ease-in-out infinite;
}

@keyframes pulse-promo {

  0%,
  100% {
    transform: rotate(-10deg) scale(1);
  }

  50% {
    transform: rotate(-5deg) scale(1.05);
  }
}

.promo-circle .percent {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

.promo-circle .off {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--secondary);
}

.f-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.f-shape.s1 {
  width: 80px;
  height: 80px;
  background: var(--pink);
  top: 0;
  right: 20px;
  opacity: 0.3;
}

.f-shape.s2 {
  width: 120px;
  height: 120px;
  background: var(--accent);
  bottom: 0;
  left: 20px;
  opacity: 0.2;
}

.f-shape.s3 {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  top: 50%;
  left: 10px;
  opacity: 0.1;
}

@media (min-width: 768px) {
  .promotions {
    padding: 6rem 5rem;
    margin-top: 0;
  }

  .promo-container {
    flex-direction: row;
    padding: 5rem;
    align-items: center;
  }

  .promo-content {
    flex: 1.5;
  }

  .promo-visual {
    flex: 1;
  }

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


  .promo-circle {
    width: 280px;
    height: 280px;
  }

}

/* FOOTER SECTION */
.main-footer {
  background: white;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(19, 51, 145, 0.08);
  position: relative;
  z-index: 10;
  margin-top: clamp(2rem, 8vw, 5rem);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -15px 40px rgba(19, 51, 145, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
}

.footer-desc {
  color: var(--grayblue);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  transition: all 0.3s ease;
  background: rgba(19, 51, 145, 0.05);
  padding: 0.8rem 1.2rem;
  border-radius: 15px;
  width: fit-content;
}

.footer-social .social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-contact h3,
.footer-map h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list li .icon {
  font-size: 1.5rem;
  background: rgba(99, 184, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-list li strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.contact-list li p,
.contact-list li a {
  font-size: 0.95rem;
  color: var(--grayblue);
  text-decoration: none;
  line-height: 1.4;
}

.contact-list li a:hover {
  color: var(--primary);
}

.map-wrapper {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(19, 51, 145, 0.08);
  border: 4px solid white;
}

.footer-bottom {
  border-top: 1px solid rgba(19, 51, 145, 0.05);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--grayblue);
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .promotions {
    margin-top: 4rem;
  }

  .main-footer {
    margin-top: 5rem !important;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr 1.5fr;
  }

  .main-footer {
    padding: 6rem 5rem 3rem;
  }
}


/* SECTION SEPARATOR (OWL RESTING) */
.peeking-owl {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  left: 50%;
  transform: translate(-50%, 0);
}

/* Base positions (Desktop) */
.services-owl {
  top: -10px;
}

.about-owl {
  top: -10px;
}

.promos-owl {
  top: -10px;
}

.footer-owl {
  top: -100px;
}

@media (max-width: 768px) {
  .services-owl {
    top: -40px;
  }

  .about-owl {
    top: -40px;
  }

  .promos-owl {
    top: -70px;
  }

  /* footer-owl is fine at -100px */
}

.peeking-owl img {
  width: 100px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.1));
  transform-origin: bottom center;
}

.peeking-owl.reverse img {
  transform: scaleX(-1);
  /* Flipped for variety */
}

.peeking-owl:hover img {
  transform: translateY(-5px) scale(1.05);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #20ba5a;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 80px;
  background: var(--dark);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.whatsapp-float .tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--dark);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 90px;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float .tooltip {
    display: none;
    /* Hide tooltip on mobile to save space */
  }
}

/* TESTIMONIALS SECTION */
.testimonials {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(19, 51, 145, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(19, 51, 145, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(19, 51, 145, 0.1);
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--grayblue);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info strong {
  display: block;
  color: var(--dark);
  font-size: 1.1rem;
}

.user-info span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* CULTURAL HUB SECTION */
.cultural-hub {
  padding: 6rem 1.5rem;
  background: white;
  border-radius: 60px;
  margin: 4rem auto;
  max-width: 1200px;
  box-shadow: 0 30px 60px rgba(19, 51, 145, 0.05);
  position: relative;
  overflow: hidden;
}

.cultural-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--yellow), var(--secondary), var(--accent));
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.culture-card {
  padding: 3rem 2rem;
  border-radius: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.culture-card:hover {
  transform: translateY(-10px) rotate(1deg);
}

.card-label {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--dark);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.culture-card.curiosity {
  background: #fff8e1;
  border: 2px solid #ffe082;
}

.culture-card.curiosity h3 {
  color: #f57f17;
}

.culture-card.idiom {
  background: #fce4ec;
  border: 2px solid #f8bbd0;
}

.culture-card.idiom h3 {
  color: #c2185b;
}

.idiom-example {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.8rem;
  border-radius: 12px;
  font-style: italic;
  font-weight: 600;
  color: var(--dark);
  border-left: 4px solid var(--secondary);
}

.culture-card.meme-card {
  background: #e1f5fe;
  border: 2px solid #b3e5fc;
  padding: 2rem 1.5rem;
}

.meme-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 4px solid white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.meme-container img {
  width: 100%;
  height: auto;
  display: block;
}

.meme-caption {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
}

.culture-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.culture-card p {
  color: var(--grayblue);
  line-height: 1.6;
  font-size: 1.05rem;
}

.culture-icon {
  font-size: 3rem;
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.2;
}

@media (max-width: 768px) {
  .cultural-hub {
    margin: 2rem 1rem;
    padding: 4rem 1.5rem;
    border-radius: 40px;
  }

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

/* GAME SECTION */
.game-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* GAME SECTION TABS */
.game-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  /* Allows wrapping on small screens */
  padding: 0 1rem;
}

.tab-btn {
  background: white;
  border: 2px solid var(--accent);
  color: var(--primary);
  padding: 0.7rem 1.2rem;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  flex: 1 1 auto;
  /* Allows buttons to grow on mobile */
  max-width: 200px;
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 184, 255, 0.3);
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 184, 255, 0.2);
}

/* MATCHING GAME STYLES */
.matching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

/* IFRAME HELPER */
.iframe-container {
  position: relative;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: white;
  /* Aspect ratio trick could go here but iframe height is fixed by source */
}

.iframe-container iframe {
  width: 100%;
  max-width: 100%;
}



.game-container {
  background: white;
  border-radius: 50px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(19, 51, 145, 0.1);
  border: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.game-status {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  height: 1.5rem;
}

.game-display-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 3vw, 1.5rem);
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.game-box {
  background: var(--light);
  border-radius: 20px;
  padding: clamp(1rem, 4vw, 2rem) 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: clamp(140px, 25vh, 180px);
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05);
}

.game-box.active {
  background: white;
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(99, 184, 255, 0.25);
  z-index: 2;
}

.game-box .emoji {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  line-height: 1;
}

.game-box .word {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 900;
  color: var(--dark);
  text-transform: uppercase;
  word-break: break-all;
}

@media (min-width: 768px) {
  .game-display-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-box {
    border-radius: 25px;
    min-height: 180px;
  }

  .game-box.active {
    transform: scale(1.08);
  }
}

.winner-image {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 20px;
  animation: float 2s ease-in-out infinite;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(19, 51, 145, 0.2);
}

.game-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(19, 51, 145, 0.3);
}

.game-btn.secondary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 10px 25px rgba(229, 198, 85, 0.3);
}

.game-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.game-round-info {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--grayblue);
  font-size: 1rem;
}

/* Pulse animation for the active beat */
@keyframes game-beat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.game-active {
  animation: game-beat 0.3s ease-out;
}

/* GAME SECTION TABS */
.game-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: white;
  border: 2px solid var(--accent);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--accent);
  color: white;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 184, 255, 0.2);
}

/* MATCHING GAME STYLES */
.matching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.matching-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-item {
  background: var(--light);
  padding: 1.2rem;
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  text-align: center;
  user-select: none;
}

.match-item:hover {
  background: white;
  border-color: var(--accent);
  transform: scale(1.02);
}

.match-item.selected {
  background: var(--accent);
  color: white;
  border-color: var(--primary);
}

.match-item.matched {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
  cursor: default;
  opacity: 0.7;
}

.match-item.error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

@media (max-width: 600px) {
  .matching-grid {
    gap: 1rem;
  }

  .match-item {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* SENTENCE GAME STYLES */
.sentence-display {
  background: var(--light);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--grayblue);
}

.sentence-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.sentence-words-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  min-height: 80px;
  padding: 1rem;
}

.word-block {
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.word-block:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(99, 184, 255, 0.2);
}

.word-block.used {
  opacity: 0.3;
  pointer-events: none;
  transform: none;
}

.word-block.in-sentence {
  background: var(--accent);
  color: white;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.placeholder-text {
  color: var(--grayblue);
  font-style: italic;
  opacity: 0.6;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .word-block {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* PLACEMENT TEST SECTION */
.placement-test {
  padding: 6rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 600px;
}

.test-container {
  background: white;
  border-radius: 50px;
  padding: 4rem 2rem;
  box-shadow: 0 30px 70px rgba(19, 51, 145, 0.1);
  border: 1px solid rgba(19, 51, 145, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.test-intro h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.test-intro p {
  color: var(--grayblue);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.test-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--light);
  border-radius: 999px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.4s ease;
}

.current-step {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}

.question-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.option-btn {
  background: white;
  border: 2px solid var(--light);
  padding: 1.2rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: inherit;
}

.option-btn:hover {
  border-color: var(--accent);
  background: rgba(99, 184, 255, 0.05);
  transform: translateY(-2px);
}

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

.result-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.level-result {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

.result-desc {
  color: var(--grayblue);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-container {
    padding: 5rem 4rem;
  }
}

/* GAME SECTION RESPONSIVE OVERRIDES */
@media (max-width: 600px) {
  .game-section {
    padding: 2.5rem 0.5rem;
  }

  .game-tabs {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .game-container {
    padding: 2rem 0.6rem;
    border-radius: 25px;
    border-width: 2px;
  }

  .iframe-container {
    height: 700px;
    /* Increased height for Monster Phrases on mobile */
    border-radius: 20px;
  }

  .iframe-container iframe {
    height: 100% !important;
  }

  /* Adjust other games for small space */
  .game-display-wrapper {
    gap: 0.5rem;
  }

  .game-box {
    min-height: 120px;
    padding: 1rem 0.2rem;
  }

  .matching-grid,
  .sentence-display {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 390px) {
  .iframe-container {
    height: 550px;
  }

  .game-container {
    padding: 1.5rem 0.5rem;
  }
}