/* ============================================
   VARIABLES GLOBALES
============================================ */
:root {
  --primary: #f3b607;
  --primary-hover: #e0a906;
  --primary-light: #fdf3d7;
  --secondary: #E2412A;
  --secondary-hover: #c73722;
  --gray-light: #f8f9fa;
  --gray: #ddd;
  --gray-dark: #666;
  --white: #fff;
  --black: #333;
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 28px rgba(0,0,0,0.1);
  --border-radius: 12px;
  --border-radius-sm: 6px;
}

/* ============================================
   UTILIDADES Y RESET
============================================ */
.bg-body-tertiary.fixed-top {
  top: 0 !important;
}

#form-advisor {
  scroll-margin-top: 160px;
}

.line-space {
  border-bottom: 1px solid #9a9a9a;
  max-width: 258px;
  margin: 15px auto;
}

/* ============================================
   COMPONENTES REUTILIZABLES
============================================ */
/* Botón principal */
.btn-advisor,
.advisor-btn,
.solutions-btn,
.contact-submit {
  background-color: #6faf2f;
  border: none;
  padding: 14px 30px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  color: var(--white) !important;
  transition: all 0.3s ease;
}

.btn-advisor:hover,
.advisor-btn:hover,
.solutions-btn:hover,
.contact-submit:hover {
  background-color: var(--secondary-hover);
}

.btn-advisor {
  padding: 13px 50px;
  border-radius: 10px;
}

.btn-advisor:hover {
  background: linear-gradient(124deg, #ffc1079c, #ff5722b5);
}

/* Botón final */
.final-btn {
  background-color: var(--white);
  color: var(--secondary);
  padding: 16px 34px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
}

.final-btn:hover {
  background-color: #f8f8f8;
  color: var(--secondary);
}

/* Títulos */
.section-title,
.section-2-advisor h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-4-testimonials p {
    font-size: 1.2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #6faf2f;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

/* Texto gradiente */
.text-gradient-h1 {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ============================================
   SECTION 1 – HERO
============================================ */
.section-1-hero {
  position: relative;
  padding: 9rem 0 2rem;
  min-height: 65vh;
  margin-top: -25px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-1-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.23);
  z-index: 1;
}

.section-1-hero .container {
  position: relative;
  z-index: 2;
}

.box-content {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 65px;
}

.hero-text p {
  font-size: clamp(2rem, 1.9vw, 1.9rem);
  margin-bottom: 30px;
  color: var(--black);
  font-family: "Playfair", serif !important;
  font-weight: 700;
  line-height: normal;
}

/* Imagen asesora */
.advisor-image-wrapper {
  position: relative;
  max-width: 360px;
}

.advisor-image-wrapper img {
  width: 100%;
  height: 430px;
  border-radius: var(--border-radius);
  object-fit: cover;
  box-shadow: 0 8px 45px 4px rgba(0, 0, 0, 0.39);
}

.advisor-note {
  position: absolute;
  bottom: 11px;
  right: 11px;
  background: var(--white);
  padding: 7px 18px 8px 18px;
  border-radius: 8px;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.advisor-note span {
  font-size: 1rem;
  color: #777;
}

.hero-image-mobile {
  margin: 25px;
}

.advisor-note small{
    width: 10px;
    height: 10px;
    border-radius: 20px;
    margin-right: 10px;
}

/* ============================================
   SECTION 2 – ADVISOR
============================================ */
.section-2-advisor {
  padding: 60px 0;
  background: linear-gradient(180deg, #FFFDF7, #FFFDF7);
  box-shadow: 0 0 62px -37px rgba(0, 0, 0, 0.39);
}

.advisor-quote {
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 22px;
  line-height: 1.6;
}

.advisor-avatar {
  width: 290px;
  height: 290px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.advisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
  font-size: 1.2rem;
}

.tittle-bullets{
    width: 100%;
    font-size: 1.5rem;
}

.advisor-features span {
  background: var(--white);
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.advisor-features .more {
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  color: #575757;
}

/* ============================================
   SECTION 3 – SOLUTIONS
============================================ */
.section-3-solutions {
  padding: 100px 0;
}

.solution-card {
  height: 100%;
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.solution-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.solution-problem {
  font-size: 1.3rem;
  color: #a5a5a5;
  margin-bottom: 10px;
}

.solution-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0;
}

/* ============================================
   SECTION 4 – TESTIMONIALS
============================================ */
.section-4-testimonials {
  padding: 100px 0;
  background: linear-gradient(180deg, #FFF7E0, var(--white));
}

.section-4-testimonials .video-card {
  min-height: 200px;
}

.section-4-testimonials .video-card img,
.section-4-testimonials .video-card iframe {
  height: 553px;
  border-radius: 25px;
  object-fit: cover;
  width: 100%;
}

/* ============================================
   SECTION 5 – CONTACT
============================================ */
.section-5-contact {
  padding: 120px 0;
  background: linear-gradient(180deg, #FFF7E0, var(--white));
}

.container-form {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  background-color: var(--white);
  border-radius: 24px;
}

/* Lado izquierdo */
.parent-left {
  background: linear-gradient(124deg, #ffc1074f, #ff57224d);
  border-radius: 24px 0 0 24px;
}

.contact-left {
  padding: 20px;
  border-radius: 24px 0 0 24px;
}

.contact-left h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  font-family: "Playfair", serif !important;
  line-height: normal;
}

.contact-side-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.side-action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  border: none;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-color: #FFF9E9;
  color: #000;
  box-shadow: 0 7px 9px 0 rgba(0, 0, 0, 0.18);
}

.side-action-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.side-action-icon {
  font-size: 1.8rem;
}

.side-action-text strong {
  display: block;
  font-size: 1rem;
}

.side-action-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Lado derecho */
.contact-main {
  background: var(--white);
  padding: 50px;
}

.contact-intro {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 35px;
  max-width: 520px;
}

.contact-main .form-control {
  border-radius: 8px;
  padding: 12px 14px 12px 50px !important;
}

/* ============================================
   SECTION 6 – FINAL
============================================ */
.section-6-final {
  background: url('/static/img/webinar/bg_banner_end_gradient.png');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  position: relative;
  padding: 50px 0;
  color: var(--white);
}

.final-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.final-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.95;
  color: var(--white);
}

.final-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ============================================
   MODAL CALENDAR (Optimizado)
============================================ */
.calendar-modal {
  max-width: 80vw;
}

.calendar-modal .modal-content {
  height: 80vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.calendar-modal .modal-body {
  padding: 0;
  height: 100%;
  flex-grow: 1;
  overflow: hidden;
}

.modal-header {
  background: var(--white);
  z-index: 1030;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.educator-photo {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  width: 60px;
  height: 60px;
}

.educator-label {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 0.25rem;
}

.educator-name {
  font-size: 1rem;
  color: var(--black);
  font-weight: 600;
}

/* Calendario */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  min-height: 300px;
}

.calendar-day-header {
  text-align: center;
  padding: 10px 4px;
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  background: var(--gray-light);
  border-radius: 4px;
  height: 42px;
}

.calendar-day {
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background: var(--white);
  font-size: 0.9rem;
  min-height: 40px;
  max-height: 50px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 600;
  transform: scale(1.05);
}

.calendar-day.disabled {
  color: var(--gray);
  cursor: not-allowed;
  background: var(--gray-light);
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.today {
  background: var(--primary-light);
  font-weight: 600;
}

/* Horarios */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.time-slot {
  padding: 8px 6px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  color: var(--black);
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 38px;
}

.time-slot:hover:not(.disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 600;
}

.time-slot.disabled {
  background: var(--gray-light);
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Botones del modal */
.btn-next {
  background: var(--primary);
  color: var(--black);
  border: 1px solid var(--primary);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: var(--border-radius-sm);
}

.btn-next:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-next:disabled {
  background: #e0e0e0;
  border-color: #d0d0d0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-outline-secondary {
  border-color: var(--gray);
  color: var(--gray-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}

.btn-outline-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--black);
}

/* Alertas */
.alert-info {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--black);
  padding: 10px 15px;
  border-radius: 10px;
}

/* Scroll personalizado */
.steps-content::-webkit-scrollbar,
.time-slots-container::-webkit-scrollbar,
.form-container::-webkit-scrollbar {
  width: 6px;
}

.steps-content::-webkit-scrollbar-track,
.time-slots-container::-webkit-scrollbar-track,
.form-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.steps-content::-webkit-scrollbar-thumb,
.time-slots-container::-webkit-scrollbar-thumb,
.form-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#phone_prefix{
        width: 30%!important;
        padding-left: 20px!important;
    }

/* ============================================
   RESPONSIVE - TABLET (≤ 768px)
============================================ */
@media (max-width: 768px) {
  .col-lg-6.order-1.order-lg-1.hero-text{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .section-3-solutions,
  .section-4-testimonials,
  .section-5-contact,
  .section-6-final {
    padding: 55px 0;
  }

  .hero-text h1,
  .section-title,
  .section-2-advisor h2,
  .contact-main h2,
  .final-title {
    font-size: 2rem;
  }

  .advisor-avatar {
    width: 200px;
    height: 200px;
  }

  .contact-main {
    padding: 35px 28px;
  }

  .parent-card-review {
        width: 45%!important;
    }
    .input-mobile svg{
    display: none;
  }
  #phone_number {
    padding-left: 15px!important;
}
}

/* ============================================
   RESPONSIVE - MOBILE (≤ 525px)
============================================ */
@media (max-width: 525px) {
  .navbar {
    box-shadow: 0 7px 14px 0 rgba(0, 0, 0, 0.05);
  }

  a.navbar-brand img {
    width: 80px !important;
    height: 80px !important;
  }

  nav.navbar.navbar-expand-lg.fixed-top.bg-body-tertiary {
    height: 85px !important;
  }

  .btn-advisor {
    width: -webkit-fill-available;
  }

  .section-1-hero {
    margin-top: 69px;
    padding: 0;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 30px;
  }

  .hero-text p {
    font-size: 2rem;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    line-height: 35px;
  }

  .advisor-image-wrapper img {
    height: 210px;
    box-shadow: 0 8px 45px 4px rgba(0, 0, 0, 0.14);
  }

  .advisor-quote,
  .final-text {
    font-size: 1.1rem;
  }

  .section-2-advisor {
    padding: 25px 0;
  }

  .advisor-content {
    text-align: center;
  }

  .advisor-features {
    justify-content: center;
    margin-bottom: 20px;
  }

  .advisor-features .more {
    padding-left: 14px;
  }

  .advisor-avatar {
    width: 180px;
    height: 180px;
  }

  /* Soluciones */
  .solution-card {
    display: flex;
    padding: 0;
    background: transparent;
    box-shadow: none;
    gap: 30px;
  }

  .solution-card:hover {
    transform: none;
    box-shadow: none;
  }

  .solution-problem,
  .solution-text {
    font-size: 1.1rem;
  }

  /* Contacto */
  .side-action-btn {
    padding: 22px 20px;
  }

  #prevBtnReview,
  #nextBtnReview {
    display: none;
  }

  .contact-left {
    padding: 20px 10px;
  }

  .contact-main {
    padding: 0 5px 40px;
  }

  .parent-left {
    border-radius: 24px 24px 0 0;
  }

  .row-inputs {
    width: 100% !important;
  }

  .input-box {
    margin: 0 0 10px !important;
  }

  .input-box .input-label {
    left: 8px !important;
  }

  .fix-width {
    width: 52.86%;
  }

  .input-mobile{
    width: 80%;
  }

  .input-mobile svg{
    display: none;
  }

  #phone_prefix{
        width: 36%!important;
        padding-left: 15px!important;
    }

  #phone_number{
    padding-left: 15px!important;
  }

  /* Botones full width */
  .hero-btn,
  .advisor-btn,
  .solutions-btn,
  .contact-submit,
  .final-btn,
  .btn-advisor {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE - MODAL (Breaks específicos)
============================================ */
@media (min-width: 768px) {
  .line-space {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .modal-full-height {
    max-height: 100vh;
    height: 100vh;
    margin: 0;
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
  }

  .modal-body {
    height: calc(100vh - 60px - 90px - 70px);
  }

  .calendar-day {
    font-size: 0.8rem !important;
    min-height: 35px !important;
    max-height: 40px !important;
    aspect-ratio: 1.1 !important;
  }

  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .modal-footer-sticky {
    height: 70px;
    display: flex;
    align-items: center;
  }

  .btn-next,
  .btn-outline-secondary {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    min-width: 120px;
  }
}

@media (min-width: 992px) {
  .desktop-layout {
    display: block !important;
  }

  .mobile-wizard,
  .modal-footer-sticky,
  .steps-header-mobile {
    display: none !important;
  }

  .steps-content {
    height: calc(100% - 120px);
  }

  .modal-footer-desktop {
    display: block;
  }
}

@media (max-width: 576px) {
  .calendar-day {
    font-size: 0.7rem !important;
    min-height: 30px !important;
  }

  .btn-next,
  .btn-outline-secondary {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    min-width: 100px;
  }
}

@media (max-height: 700px) {
  .calendar-day {
    min-height: 28px !important;
  }

  .time-slot {
    min-height: 30px !important;
  }
}