/* Reset */
* { box-sizing: border-box; }
html { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
body { 
  margin: 0; padding: 0; width: 100%; 
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif; 
  background: var(--custom-bg-light); 
  color: var(--custom-gray-dark); 
}

/* Navbar */
.navbar-bel { box-shadow: 0 2px 10px var(--custom-shadow-light); }
.navbar-bel .navbar-brand img { max-height: 3rem; height: auto; width: auto; }
@media (max-width: 768px) { .navbar-bel .navbar-brand img { max-height: 44px; } }
@media (max-width: 480px) { .navbar-bel .navbar-brand img { max-height: 36px; } }
.navbar-bel .navbar-nav .nav-link.active { font-weight: bold; color: var(--custom-teal) !important; }
.navbar-bel .navbar-nav .nav-link:hover { color: var(--custom-teal) !important; }

/* Hero - Full viewport, responsive */
.hero-bel { 
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%); 
  max-height: 80vh;
  background: url('../img/resources/hero01.jpg') center/cover no-repeat; 
  display: flex; align-items: center; text-align: left; 
}
.hero-bel::before { 
  content: ''; position: absolute; inset: 0; 
  background: rgba(0,0,0,0.45); z-index: 1; 
}
.hero-content { 
  position: relative; z-index: 2; color: var(--custom-white); 
  width: 100%; padding: 2rem 0; 
}

/* Hero inner - NO fixed width, usa container de Bootstrap */
.hero-inner { 
  width: 100%; max-width: 1320px; margin: 0 auto; 
  padding: 1.5rem 1rem; display: flex; align-items: center; 
  justify-content: space-between; gap: 2.5rem; 
}

.hero-text { flex: 1 1 auto; }
.hero-text h1 { 
  font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1rem; 
  line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); 
}
.hero-text p { 
  font-size: 1.2rem; margin-bottom: 0; max-width: 32rem; 
  text-shadow: 0 1px 3px rgba(0,0,0,0.7); 
}

/* Responsive Hero */
@media (max-width: 992px) { 
  .hero-bel { min-height: 65vh; } 
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 1rem; }
  .hero-text h1 { font-size: 2.3rem; }
}
@media (max-width: 576px) { 
  .hero-bel { min-height: 60vh; } 
  .hero-text h1 { font-size: 2rem; }
}

/* Buttons */
.btn-teal {
  background-color: var(--custom-teal);
  color: var(--custom-white);
  border-radius: 8px;
  border: none;
  padding: 0.9em 2.3em;
  font-size: 1.05rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-teal:hover,
.btn-teal:focus,
.custom-teal-bg:hover,
.custom-teal-bg:focus {
  background-color: var(--custom-teal-dark) !important; /* azul vibrante */
  color: var(--custom-white) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}





/* ========Banner Duolingo English Test========== */

.duolingo-banner {
  background: #f7fff2; /* fondo claro tipo Duolingo */
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Logo DET */
.duolingo-logo {
  max-height: 52px;
  width: auto;
  display: block;
}

/* Usa la misma fuente global del sitio */
.duolingo-banner .duolingo-tagline,
.duolingo-banner .duolingo-brand,
.duolingo-banner .duolingo-btn {
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

/* Texto superior: frase explicativa */
.duolingo-tagline {
  font-size: 1.2rem;
  color: #444444;
}

/* Texto de marca: más grande y en verde Duolingo */
.duolingo-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #58cc02;
}

/* Botón estilo Duolingo */
.duolingo-btn {
  background-color: #58cc02;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1.9rem;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.12s ease,
              box-shadow 0.15s ease,
              background-color 0.15s ease;
  white-space: nowrap;
}

.duolingo-btn:hover,
.duolingo-btn:focus {
  background-color: #4bb102;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Responsive */
@media (min-width: 768px) {
  .duolingo-banner .container {
    min-height: 80px;
  }
}

@media (max-width: 767.98px) {
  .duolingo-logo {
    max-height: 44px;
  }

  .duolingo-tagline {
    font-size: 0.9rem;
  }

  .duolingo-brand {
    font-size: 1.05rem;
  }

  .duolingo-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
/*----Fin banner duolingo----*/


/* Routes section - Dynamic height based on content */

#cursos .row {
  align-items: stretch;
}

/* Tarjeta contenedora */
#cursos .col-12 > div {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  padding: 2rem 1.5rem !important;
}

/* Icono + título alineados a la izquierda */
#cursos .route-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
}

#cursos h2 {
  flex-shrink: 0;
  margin-bottom: 0 !important;
  font-size: 1.25rem !important;
}

/* Acordeones dentro de cada tarjeta */
#cursos .accordion {
  margin-top: 1.5rem;
}

/* Botón del acordeón: look similar a los “chips” que tenías antes */
#cursos .accordion-button {
  background-color: var(--custom-bg-step);
  color: var(--custom-gray-dark);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  box-shadow: none;
}

#cursos .accordion-button:not(.collapsed) {
  background-color: var(--custom-teal);
  color: var(--custom-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

#cursos .accordion-button:focus {
  box-shadow: 0 0 0 0.1rem rgba(47,127,196,0.35);
}

/* Cuerpo del acordeón */
#cursos .accordion-body {
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 0.75rem 0.9rem 0.9rem;
}

/* Limpiar bordes por defecto del acordeón Bootstrap */
#cursos .accordion-item {
  border: none;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  #cursos .col-12 > div {
    padding: 1.5rem 1rem !important;
  }
  #cursos .accordion-button {
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
  }
  #cursos .accordion-body {
    font-size: 0.9rem;
  }
}

/* CARDS
   Art direction: institucional + tecnológico + sobrio
   Objetivo: parecer academia confiable, no landing genérica */

.highlights-grid {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f4f8fb 100%);
}

/* 2-column layout for the section */
.highlight-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Shared min-width rule */
.highlight-card,
.highlights-subgrid,
.feature-box {
  min-width: 0;
}

/* === GENERIC CARD === */
.highlight-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(25, 60, 92, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

/* Colorful top border for ALL highlight cards */
.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #5aa9e6 0%, #58cc02 100%);
  opacity: 0.9;
}

/* Generic label (pill) used across cards */
.highlight-card .label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #eaf4ff;
  color: #2f6ea5;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Titles and body text */
.highlight-card h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.05;
  color: #16324a;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.05rem;
  color: #16324a;
  margin-bottom: 0.55rem;
}

.highlight-card p {
  margin: 0;
  color: #56687b;
  line-height: 1.7;
  font-size: 0.94rem;
}

/* === MAIN CARD: subtle difference === */
.highlight-card-main {
  padding: 1.5rem 1.25rem 1.25rem;  /* un poco más de padding */
  box-shadow: 0 18px 40px rgba(30, 41, 59, 0.06); /* algo más de elevación */
  background:
    radial-gradient(circle at top right, rgba(88, 204, 2, 0.10), transparent 34%),
    radial-gradient(circle at bottom left, rgba(90, 169, 230, 0.10), transparent 30%),
    #ffffff;
}

/* Sticky behavior as a reusable class */
.highlight-card-sticky {
  position: sticky;
  top: 90px;
}

/* Lead paragraph inside main card */
.lead {
  font-size: 1rem;
  line-height: 1.75;
  color: #4c5f72;
  margin-bottom: 1.25rem;
}

/* Statement block */
.statement {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(25, 60, 92, 0.08);
}

.line {
  width: 4px;
  min-height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5aa9e6 0%, #58cc02 100%);
}

.statement p {
  margin: 0;
  color: #27445e;
  font-weight: 600;
  line-height: 1.7;
}

/* Highlights subgrid (right column) */
.highlights-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subgrid-main-card {
  grid-column: 1 / -1;
  padding: 1.5rem;
}

/* Feature box band */
.feature-box {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, #18354e 0%, #234967 58%, #28587a 100%);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.highlighted-panel {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.highlighted-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.feature-box h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.feature-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.feature-box-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.strip-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
}

.strip-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: #58cc02;
  box-shadow: 0 0 0 6px rgba(88, 204, 2, 0.12);
}

.strip-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.96rem;
}

.strip-item small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .highlight-card-container {
    grid-template-columns: 1fr;
  }

  .highlight-card-sticky {
    position: static;
  }

  .highlights-subgrid {
    grid-template-columns: 1fr;
  }

  .subgrid-main-card {
    grid-column: auto;
  }

  .feature-box-strip {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
.site-footer {
  background: #16324a;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 2.8rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-col {
  min-width: 0;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.footer-favicon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.footer-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-text {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #58cc02;
}

.footer-bottom {
  padding: 1rem 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.64);
}

/* Tablet y más grande */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr;
  }
}

/* Ajuste opcional para móviles */
@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 2.2rem;
  }
}

/*====Animations and transitions====*/
/* Fade simple */
.fade-seq {
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform;
  transition-timing-function: ease;
  will-change: opacity, transform;
}

.fade-seq--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade + scale para elementos que arrancan al 80% */
.fade-scale {
  opacity: 0;
  transform: scale(0.8);
  transform-origin: center center;
  transition-property: opacity, transform;
  transition-timing-function: ease;
  will-change: opacity, transform;
}

.fade-scale--visible {
  opacity: 1;
  transform: scale(1);
}

/* Modal base para móviles / tablets vertical */
#heroEnrollModal {
  z-index: 1500 !important;
}

#heroEnrollModal .modal-dialog {
  max-width: 560px;
  margin: 1rem auto;
}

.hero-enroll-modal-content {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 12px 35px var(--custom-shadow-medium);
  overflow: hidden;
}

#heroEnrollModal .modal-header {
  background: var(--custom-white);
  border-bottom: 1px solid var(--custom-gray-light);
}

#heroEnrollModal .modal-body {
  background: var(--custom-bg-light);
  padding: 1rem;
}

#heroEnrollModal .hero-enroll-form {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
}

/* Modal quiz final */
#enrollQuizModal {
  z-index: 1600 !important;
}

.enroll-quiz-modal-content {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.enroll-quiz-step-text {
  display: inline-block;
  font-weight: 700;
  color: var(--custom-gray-medium);
  font-size: 1rem;
}

.enroll-quiz-progress {
  width: min(100%, 520px);
  height: 10px;
  margin: 0 auto;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
}

.enroll-quiz-progress-bar {
  height: 100%;
  background: var(--brand-mint);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.enroll-quiz-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
}

.enroll-quiz-subtitle {
  font-size: 1rem;
  color: #222;
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 auto;
}

.enroll-quiz-question-wrap {
  margin-bottom: 1.5rem;
}

.enroll-quiz-question {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--custom-gray-medium);
  margin-bottom: 0.25rem;
}

.enroll-quiz-helper {
  margin: 0;
  color: #666;
  font-size: 0.98rem;
}

.enroll-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.enroll-quiz-option {
  position: relative;
  display: flex;
  min-height: 140px;
  padding: 1.2rem 1rem;
  border: 1.5px solid #2f9ae8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  align-items: flex-start;
}

.enroll-quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.enroll-quiz-option span {
  font-size: 1rem;
  line-height: 1.45;
  color: #444;
  font-weight: 500;
  max-width: 18ch;
}

.enroll-quiz-option:has(input:checked) {
  border-color: var(--custom-teal);
  box-shadow: 0 0 0 3px rgba(66, 153, 222, 0.12);
  background: #9de3f1;
}

.enroll-quiz-option:has(input:checked) span{
  color: white;
  text-shadow: 1px 1px 3px black;
}

.enroll-quiz-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.enroll-quiz-back-btn {
  color: var(--brand-lightblue);
  font-weight: 700;
}

.enroll-quiz-next-btn,
.enroll-quiz-submit-btn {
  min-width: 220px;
}

.enroll-quiz-next-btn:disabled,
.enroll-quiz-submit-btn:disabled,
.hero-form-submit:disabled,
.hero-form-submit.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 767.98px) {
  .enroll-quiz-options {
    grid-template-columns: 1fr;
  }

  .enroll-quiz-option {
    min-height: 110px;
  }

  .enroll-quiz-actions {
    flex-direction: column;
  }

  .enroll-quiz-next-btn,
  .enroll-quiz-submit-btn,
  .enroll-quiz-back-btn {
    width: 100%;
  }
}