/* Oculta el video en mobile y la imagen en desktop, incluso al cambiar de tamaño */
    @media (max-width: 767.98px) {
      .container {
        width: 100% !important;
        padding: 0 10px !important;
        margin-right: 0 !important;
        overflow-x: hidden;
      }
    }
    /* .hero-logo {
      display: block;
      margin: 0 auto 0.5rem auto;  menos margen arriba
      width: 160px;
      height: 160px;
      object-fit: contain;
    } */
    .hero-fadein {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      font-size: 2.2rem;
      margin-bottom: 1.2rem;
      color: var(--color-primary);
    }
    .hero-fadein span {
      opacity: 0;
      display: inline-block;
      animation: fadeInHeroWord 1.2s ease-in forwards;
    }
    /* Animación escalonada palabra a palabra */
    .hero-fadein span:nth-child(1) { animation-delay: 0.2s; }
    .hero-fadein span:nth-child(2) { animation-delay: 0.7s; }
    .hero-fadein span:nth-child(3) { animation-delay: 1.2s; }
    .hero-fadein span:nth-child(4) { animation-delay: 1.7s; }
    .hero-fadein span:nth-child(5) { animation-delay: 2.2s; }
    .hero-fadein span:nth-child(6) { animation-delay: 2.7s; }
    .hero-fadein span:nth-child(7) { animation-delay: 3.2s; }
    @keyframes fadeInHeroWord {
      to { opacity: 1; }
    }
    /* General fix for extra space on mobile */
    body {
      overflow-x: hidden;
    }

    @media (max-width: 767.98px) {
      .fdp-section .container > .row > .col-md-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }
      .faq-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      } 
    }

    /* Ajustar el tamaño de las imágenes en las secciones */
    .fdp-section img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    /* Animaciones de entrada */
    .fade-in-section {
      opacity: 0;
      transition: opacity 0.9s ease-out, transform 0.9s ease-out; /* Ajustado a 0.9s */
    }
    .fade-in-section.is-visible {
      opacity: 1;
    }
    .fade-in-left {
      transform: translateX(-30px);
    }
    .fade-in-left.is-visible {
      transform: translateX(0);
    }
    .fade-in-right {
      transform: translateX(30px);
    }
    .fade-in-right.is-visible {
      transform: translateX(0);
    }
    .fade-in-up {
      transform: translateY(30px);
    }
    .fade-in-up.is-visible {
      transform: translateY(0);
    }
    .fade-in-down {
      transform: translateY(-30px);
    }
    .fade-in-down.is-visible {
      transform: translateY(0);
    }
    /* Toggle wrapper */
    .toggle-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 200px;
      height: 40px;
      background: #f9f4d4; /* Amarillo apagado */
      border-radius: 20px;
      position: relative;
      overflow: hidden;
    }

    .toggle-indicator {
      position: absolute;
      top: 0;
      left: 0;
      width: 50%;
      height: 100%;
      background: #fdd835; /* Amarillo */
      border-radius: 20px;
      transition: transform 0.3s ease;
    }

    .toggle-button {
      flex: 1;
      border: none;
      background: transparent;
      font-weight: bold;
      color: #000; /* Negro */
      cursor: pointer;
      z-index: 1;
    }

    .toggle-button.active {
      color: #fff; /* Blanco */
    }

    .savings-message {
      font-size: 1rem;
      color: #28a745; /* Verde para destacar el ahorro */
      margin-top: 0.5rem;
      display: none; /* Oculto por defecto */
    }

    /* .hero-logo {
      display: block;
      margin: 0 auto 0.5rem auto;  menos margen arriba
      width: 160px;
      height: 160px;
      object-fit: contain;
    } */
    .hero-fadein {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      font-size: 2.7rem;
      margin-bottom: 1.2rem;
    }
    .hero-fadein span {
      opacity: 0;
      display: inline-block;
      animation: fadeInHeroWord 1.2s ease-in forwards;
    }
    /* Animación escalonada palabra a palabra */
    .hero-fadein span:nth-child(1) { animation-delay: 0.2s; }
    .hero-fadein span:nth-child(2) { animation-delay: 0.7s; }
    .hero-fadein span:nth-child(3) { animation-delay: 1.2s; }
    .hero-fadein span:nth-child(4) { animation-delay: 1.7s; }
    .hero-fadein span:nth-child(5) { animation-delay: 2.2s; }
    .hero-fadein span:nth-child(6) { animation-delay: 2.7s; }
    .hero-fadein span:nth-child(7) { animation-delay: 3.2s; }
    @keyframes fadeInHeroWord {
      to { opacity: 1; }
    }

    /* General fix for extra space on mobile */
    body {
      overflow-x: hidden;
    }

    @media (max-width: 767.98px) {
      .fdp-section .container > .row > .col-md-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }
      .faq-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      } 
    }

    /* Ajustar el tamaño de las imágenes en las secciones */
    .fdp-section img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    /* Animaciones de entrada */
    .fade-in-section {
      opacity: 0;
      transition: opacity 0.9s ease-out, transform 0.9s ease-out; /* Ajustado a 0.9s */
    }
    .fade-in-section.is-visible {
      opacity: 1;
    }
    .fade-in-left {
      transform: translateX(-30px);
    }
    .fade-in-left.is-visible {
      transform: translateX(0);
    }
    .fade-in-right {
      transform: translateX(30px);
    }
    .fade-in-right.is-visible {
      transform: translateX(0);
    }
    .fade-in-up {
      transform: translateY(30px);
    }
    .fade-in-up.is-visible {
      transform: translateY(0);
    }
    .fade-in-down {
      transform: translateY(-30px);
    }
    .fade-in-down.is-visible {
      transform: translateY(0);
    }

    .toggle-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 200px;
      height: 40px;
      background: #f9f4d4; /* Amarillo apagado */
      border-radius: 20px;
      position: relative;
      overflow: hidden;
    }

    .toggle-indicator {
      position: absolute;
      top: 0;
      left: 0;
      width: 50%;
      height: 100%;
      background: #fdd835; /* Amarillo */
      border-radius: 20px;
      transition: transform 0.3s ease;
    }

    .toggle-button {
      flex: 1;
      border: none;
      background: transparent;
      font-weight: bold;
      color: #000; /* Negro */
      cursor: pointer;
      z-index: 1;
    }

    .toggle-button.active {
      color: #fff; /* Blanco */
    }

    .savings-message {
      font-size: 1rem;
      color: #28a745; /* Verde para destacar el ahorro */
      margin-top: 0.5rem;
      display: none; /* Oculto por defecto */
    }

    .hero-section {
      position: relative;
      text-align: center;
      color: white;
      width: 100vw;
      margin-left: calc(-50vw + 50%);
      background-color: #d7d7d7;
      background-image: url("../img/home/hero-image.jpg"); /* Ruta relativa corregida */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    /* .hero-section .hero-logo {
      margin-bottom: 1rem;
    } */

    .hero-section .hero-fadein {
      margin-bottom: 1.5rem;
    }

    .hero-section .btn {
      margin-top: 1rem;
    }