/* ==========================================================================
   1. Estilos Globales
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    /*line-height: 1.2;*/
    margin: 0;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1120px; /* Equivalente a max-w-6xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container--fluid {
    max-width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

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

.section__tagline {
    color: var(--primary-green);
    font-weight: 700;
}

.section__title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

/* ==========================================================================
   2. Componentes Reutilizables (Botones, Tarjetas, Formularios)
   ========================================================================== */

/* Botón */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--light-green);
    color: white;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--light-green);
}

.btn--secondary {
    border-color: var(--light-green);
    color: var(--light-green);
}

.btn--secondary:hover {
    background-color: var(--light-green);
    color: white;
}

/* Tarjeta */
.card {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(42, 111, 86, 0.15);
}

/* Formulario */
.form-group {
    margin-bottom: 1rem;
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(42, 111, 86, 0.2);
}

/* ==========================================================================
   3. Estilos de Secciones Específicas
   ========================================================================== */

/* Header */
.header {
    background-color: var(--dark-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


.header__links {
    display: none; /* Oculto en móvil */
}

.header__link {
    font-size: 0.875rem;
    margin-left: 2.5rem;
    color: var(--off-white)
}

.header__link:hover {
    color: var(--light-green);
}

/* Hero Section */
.hero {
    background-color: var(--dark-bg); /* Fallback color */
    color: white;
    position: relative; /* Needed to position children absolutely */
    overflow: hidden; /* Hides parts of the video that go off-screen */
}

.hero__video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio for portrait screens */
    transform: translateX(-50%) translateY(-50%);
    z-index: 1; /* Behind the overlay and content */
}
.hero__video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que el video cubra todo el contenedor sin deformarse */
    transform: translate(-50%, -50%);
    z-index: -1; /* Lo coloca detrás del contenido */
}

.hero__video-background iframe {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Disables interaction with the video */
}

.hero__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7); /* Semi-transparent dark overlay */
    z-index: 2; /* Between video and content */
}

/* Ensure the content is on top */
.hero .container {
    position: relative;
    z-index: 3;
}

.hero__grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--off-white);
}

.hero__title span {
    color: #4ade80; /* text-green-400 */
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #D1D5DB; /* text-gray-300 */
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero__image-scroll {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.5rem;
}

.hero__image-scroll img {
    transition: transform 6s ease-in-out;
}

.hero__image-scroll:hover img {
    transform: translateY(-25%);
}

@media (max-width: 768px) {
    .hero__video-bg{
        display: none;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--off-white);
}

.testimonials__slider {
    position: relative;
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
    overflow: hidden;
}

.testimonials__slider-wrapper {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.testimonials__slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0.25rem;
}

.testimonial-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 1.5rem;
}

.testimonial-card__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--light-green), var(--primary-green));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-card__quote {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.testimonial-card__author {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-card__role {
    color: var(--text-gray);
}

/* Pricing Section */
.pricing__grid {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
}

.pricing-plan {
    background-color: white;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Para evitar saltos en hover */
    display: flex; /* <-- AÑADIDO */
    flex-direction: column; /* <-- AÑADIDO */
    height: 100%; /* <-- AÑADIDO */
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -8px rgba(0,0,0,0.1);
}

/* Nuevo contenedor para que el contenido crezca y empuje el botón hacia abajo */
.pricing-plan__content {
    flex-grow: 1;
}

.pricing-plan__title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-plan__description {
    color: var(--text-gray);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.pricing-plan__price-wrapper {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.pricing-plan__price {
    font-size: 2.5rem; /* text-5xl */
    font-weight: 800;
    color: var(--text-dark);
}

/* Nuevo contenedor para /mes y +IGV */
.pricing-plan__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0.25rem;
}

.pricing-plan__period {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: var(--text-gray);
}

/* Nueva clase para el texto +IGV */
.pricing-plan__tax {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
}

.pricing-plan__limits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    font-size: 0.875rem;
    text-align: center;
    background-color: #F9FAFB; /* bg-gray-50 */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.pricing-plan__limits hr {
    border-color: #E5E7EB;
    width: 100%;
}

.pricing-plan__limits strong {
    color: #374151; /* text-gray-700 */
}

.pricing-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
    color: var(--text-gray);
    text-align: left;
}

.pricing-plan__feature {
    display: flex;
    align-items: flex-start;
}

.pricing-plan__feature::before {
    content: '✓';
    color: #22c55e; /* text-green-500 */
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

/* Modificador: Plan Destacado */
.pricing-plan--featured {
    background-color: var(--dark-bg);
    color: white;
    position: relative;
    border-color: var(--dark-bg);
}

.pricing-plan--featured .pricing-plan__title,
.pricing-plan--featured .pricing-plan__price {
    color: white;
}

.pricing-plan--featured .pricing-plan__description,
.pricing-plan--featured .pricing-plan__period,
.pricing-plan--featured .pricing-plan__tax { /* <-- AÑADIDO */
    color: #D1D5DB; /* text-gray-300 */
}

.pricing-plan--featured .pricing-plan__limits {
    background-color: rgba(55, 65, 81, 0.5); /* bg-gray-700/50 */
}

.pricing-plan--featured .pricing-plan__limits strong {
    color: white;
}
.pricing-plan--featured .pricing-plan__limits hr {
    border-color: #4B5563; /* border-gray-600 */
}
.pricing-plan--featured .pricing-plan__features {
    color: #D1D5DB;
}

.pricing-plan--featured .pricing-plan__feature::before {
    color: #4ade80; /* text-green-400 */
}

.pricing-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--light-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* FAQ Section */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.faq__icon {
    color: var(--primary-green);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-gray);
    padding-top: 0;
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease;
}

/* JS-driven state for FAQ */
.faq__item.open .faq__answer {
    max-height: 200px;
    padding-top: 1rem;
}

.faq__item.open .faq__icon {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 4rem 0;
}

.footer__grid {
    display: grid;
    gap: 2rem;
}

.footer__logo {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__description {
    color: #9CA3AF; /* text-gray-400 */
    font-size: 0.875rem;
}

.footer__title {
    font-weight: 600;
    color: var(--light-green);
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    font-size: 0.875rem;
    color: #9CA3AF; 
}

.footer__link:hover {
    color: white;
}

.footer__copyright {
    border-top: 1px solid #374151; 
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #6B7280; 
    font-size: 0.875rem;
}

/* ==========================================================================
   4. Media Queries para Responsividad
   ========================================================================== */
@media (min-width: 768px) {
    
    .header__links {
        display: flex;
    }

    .testimonial-card {
        flex-direction: row;
    }

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

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-plan--featured {
        transform: scale(1.1);
    }
}

.btn__icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.75rem;
}

.hero__cta-link {
    color: white;
    font-weight: 600; /* font-semibold */
}

.hero__cta-link:hover {
    color: #4ade80; /* text-green-400 */
}

.hero__image {
    width: 100%;
    display: block;
}

.roi-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.roi-modal--hidden {
    display: none;
}

.roi-modal__content {
    background-color: white;
    width: 100%;
    max-width: 32rem; /* max-w-lg */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    position: relative;
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.roi-modal:not(.roi-modal--hidden) .roi-modal__content {
    transform: scale(1);
}

.roi-modal__close-btn {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2rem;
    height: 2rem;
    background-color: #1F2937; /* bg-gray-800 */
    color: white;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.roi-modal__step {
    padding: 2rem;
}


.roi-modal__step--hidden {
    display: none;
}

.roi-modal__title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem; /* mb-2 */
}

.roi-modal__subtitle {
    color: #4B5563; /* text-gray-600 */
    margin-bottom: 1.5rem; /* mb-6 */
}

.roi-modal__form > .form-group + .form-group {
    margin-top: 1rem; /* space-y-4 */
}

.roi-modal__label {
    font-weight: 600; /* font-semibold */
    font-size: 0.875rem; /* text-sm */
    color: #374151; /* text-gray-700 */
    display: block;
    margin-bottom: 0.25rem;
}

.roi-modal__helper-text {
    font-size: 0.75rem; /* text-xs */
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.roi-modal__helper-text--alt {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.roi-modal__action-btn {
    margin-top: 2rem; /* mt-8 / mt-6 */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.125rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.roi-modal__action-btn:hover {
    background-color: #225a45; /* hover:bg-green-800 */
    transform: scale(1.05);
}

.roi-modal__error-message {
    color: #ef4444; /* text-red-500 */
    font-size: 0.875rem; /* text-sm */
    text-align: center;
    margin-top: 1rem;
    min-height: 1.5rem; /* Para evitar saltos de layout */
}

/* Estilos del Paso 2: Resultados */
.roi-modal__back-btn {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.roi-modal__results-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-bottom: 1rem;
}

.roi-modal__results-row {
    display: flex;
    justify-content: space-between;
    color: #374151; /* text-gray-700 */
    margin-bottom: 1.5rem; /* mb-6 */
    padding-bottom: 1rem; /* pb-4 */
    border-bottom: 1px solid #E5E7EB; /* border-b */
}

.roi-modal__results-values {
    text-align: right;
    font-weight: 700;
}

.roi-modal__summary {
    background-color: var(--dark-bg);
    color: white;
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.5rem; /* p-6 */
    text-align: center;
}

.roi-modal__summary-highlight {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.roi-modal__summary-label {
    font-size: 0.875rem;
    color: #D1D5DB; /* text-gray-300 */
}

.roi-modal__summary-value {
    font-size: 3rem; /* text-5xl */
    font-weight: 800; /* font-extrabold */
    color: #4ade80; /* text-green-400 */
}

.roi-modal__summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.roi-modal__summary-metric {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
}

.roi-modal__summary-caption {
    font-size: 0.875rem; /* text-sm */
    color: #9CA3AF; /* text-gray-400 */
}

/* Modificador para botones de ancho completo */
.btn--full-width {
    width: 100%;
    display: block; /* Para que el <a> se comporte igual */
    text-align: center;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Modificador para ocultar el modal (controlado por JavaScript) */
.video-modal--hidden {
    display: none;
}

.video-modal__content {
    background-color: black;
    width: 100%;
    max-width: 56rem; /* max-w-4xl */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    position: relative;
}

.video-modal__close-btn {
    position: absolute;
    top: -1rem; /* -top-4 */
    right: -1rem; /* -right-4 */
    width: 2.5rem; /* w-10 */
    height: 2.5rem; /* h-10 */
    background-color: white;
    color: black;
    border-radius: 9999px; /* rounded-full */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1; /* Asegura centrado vertical del '×' */
}

.video-modal__video-wrapper {
    position: relative;
    /* Mantiene la proporción 16:9 (alto / ancho = 9 / 16 = 0.5625) */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-modal__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-slider {
    position: relative;
    max-width: 56rem; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
}

.testimonial-slider__viewport {
    overflow: hidden;
    position: relative;
    border-radius: 0.75rem; /* rounded-xl */
}

.testimonial-slider__wrapper {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.testimonial-slider__slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0.25rem; /* p-1 */
}

.testimonial-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem; /* space-x-3 */
    margin-top: 2rem; /* mt-8 */
}

/* El JS controlará los estilos de los puntos, pero aquí hay una base */
.testimonial-slider__dots button {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

/* Bloque: Testimonial Card (dentro del slider) */
.testimonial-card {
    background-color: white;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
    padding: 2rem; /* p-8 */
    height: 100%;
}

.testimonial-card__content {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 1rem; 
}

.testimonial-card__avatar {
    width: 4rem; 
    height: 4rem;
    background: linear-gradient(to bottom right, var(--light-green), var(--primary-green));
    border-radius: 9999px; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem; 
}

.testimonial-card__body {
    text-align: left;
}

.testimonial-card__quote {
    font-size: 1.125rem; /* text-lg */
    color: #374151; /* text-gray-700 */
    margin-bottom: 1rem; /* mb-4 */
    font-style: italic;
}

.testimonial-card__author {
    font-weight: 600; /* font-semibold */
    color: #111827; /* text-gray-900 */
}

.testimonial-card__role {
    color: #4B5563; /* text-gray-600 */
}

.testimonial-card__tag {
    font-size: 0.875rem; /* text-sm */
    color: var(--primary-green);
    margin-top: 0.5rem; /* mt-2 */
    font-weight: 600; /* font-semibold */
}

/* Bloque: Caja de Comparación */
.comparison {
    margin-top: 4rem;
    text-align: center;
}

.comparison-box {
    display: inline-flex;
    flex-direction: column; /* Predeterminado para móvil */
    align-items: center;
    gap: 1rem; /* space-y-4 */
    background-color: white;
    border-radius: 1rem; /* rounded-2xl */
    padding: 1.5rem; /* p-6 */
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); /* shadow-xl */
}

.comparison-box__item {
    text-align: center;
}

.comparison-box__title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.25rem; /* mb-1 */
}

.comparison-box__title--highlight {
    color: var(--primary-green);
}

.comparison-box__description {
    font-size: 1rem; /* text-base */
    color: #4B5563; /* text-gray-600 */
}

.comparison-box__separator {
    font-size: 1.5rem; /* text-2xl */
    color: #D1D5DB; /* text-gray-300 */
    font-weight: 200; /* font-light */
    display: none; /* hidden por defecto */
}

/* Media Queries para responsividad */
@media (min-width: 640px) { /* sm: */
    .testimonial-card__content {
        flex-direction: row;
        gap: 1.5rem; /* space-x-6 */
    }
}

@media (min-width: 768px) { /* md: */
    .comparison-box {
        flex-direction: row;
        gap: 2rem; /* md:space-x-8 */
    }
    .comparison-box__separator {
        display: block; /* md:block */
    }
}

.section--white-bg {
    background-color: white;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto para móviles */
    gap: 2rem; /* gap-8 */
}

/* Bloque: Feature Card */
.feature-card {
    /* Los estilos base como padding, shadow, border-radius son heredados de la clase .card */
    text-align: center; /* Centra el contenido de la tarjeta */
}

.feature-card__icon-wrapper {
    text-align: center;
    margin-bottom: 1rem; /* mb-4 */
    padding: 0.75rem; /* p-3 */
    /* bg-light-green/10 */
    background-color: rgba(76, 175, 80, 0.1); 
    border-radius: 0.75rem; /* rounded-xl */
    display: inline-block; /* Para que el contenedor no ocupe todo el ancho */
}

.feature-card__icon {
    display: inline;
    width: 2rem; /* w-8 */
    height: 2rem; /* h-8 */
    color: var(--primary-green);
}

.feature-card__title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem; /* mb-2 */
}

.feature-card__description {
    color: #4B5563; /* text-gray-600 */
}

/* Media Queries para la cuadrícula responsiva */
@media (min-width: 768px) { /* md: */
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.solution-comparison {
    background-color: var(--off-white);
}

.solution-comparison__grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 3rem; /* gap-12 */
    align-items: flex-start;
}

.solution-comparison__column {
    padding: 2rem; /* p-8 */
    border-radius: 1rem; /* rounded-2xl */
}

/* Modificador para la columna de "Problema" */
.solution-comparison__column--problem {
    background-color: rgba(229, 231, 235, 0.5); /* bg-gray-200/50 */
}

/* Modificador para la columna de "Solución" */
.solution-comparison__column--solution {
    background-color: #f0fdf4; /* bg-green-50 */
    border: 2px solid var(--primary-green);
}

.solution-comparison__title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    margin-bottom: 1.5rem; /* mb-6 */
}

.solution-comparison__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.solution-comparison__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* space-x-3 */
}

.solution-comparison__marker {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    line-height: 1.5; /* Para alinear mejor con el texto */
}

.solution-comparison__marker--problem {
    color: #ef4444; /* text-red-500 */
}

.solution-comparison__marker--solution {
    color: #22c55e; /* text-green-500 */
}

.solution-comparison__text {
    color: #374151; /* text-gray-700 */
    padding-top: 0.25rem; /* pt-1 */
}

.solution-comparison__text b {
    color: var(--text-dark); /* text-dark */
}

/* Media Query para la cuadrícula en pantallas grandes */
@media (min-width: 1024px) { /* lg: */
    .solution-comparison__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Nuevos modificadores de botones */
.btn--outline-dark {
    border: 2px solid var(--dark-bg);
    color: var(--dark-bg);
    background-color: transparent;
}
.btn--outline-dark:hover {
    background-color: var(--dark-bg);
    color: white;
}


/* Media Queries */
@media (min-width: 768px) {
    .pricing__grid {
        /* Vuelve a 1 columna en tablet, la siguiente media query lo cambiará a 3 */
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) { /* lg: */
    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-plan--featured {
        transform: scale(1.1);
    }
    .pricing-plan--featured:hover {
        transform: scale(1.1) translateY(-5px);
    }
}

.ai-specialist__grid {
    display: grid;
    grid-template-columns: 1fr; /* Default para móvil */
    gap: 2rem;
    align-items: stretch; /* Asegura que las columnas tengan la misma altura */
}

/* Bloque: Xofi Card */
.xofi-card {
    /* hereda estilos de .card */
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: var(--primary-green);
}

.xofi-card__avatar {
    width: 10rem; /* w-28 */
    height: 10rem; /* h-28 */
    
    border-radius: 9999px; /* rounded-full */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem; /* mb-4 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
    background: var(--off-white);
    border-radius: 50%;
    overflow: hidden;
}

.xofi-card__icon {
    width: 110%;
    border-radius: 50%;
    
}

.xofi-card__title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 0.5rem;
}

.xofi-card__bio {
    color: var(--off-white);
    line-height: 1.7; /* leading-relaxed */
}

/* Bloque: Case Study */
.case-study {
    /* hereda estilos de .card */
    height: 100%;
}

.case-study__title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Sistema de Pestañas (Tabs) */
.case-study__tabs {
    display: flex;
    gap: 0.5rem; /* space-x-2 */
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB; /* border-gray-200 */
}

.case-study__tab-btn {
    font-weight: 600;
    padding-bottom: 0.75rem;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
    font-size: 1.25rem;
}
.case-study__tab-btn:hover {
    color: var(--text-dark);
}

/* Modificador para la pestaña activa (controlado por JS) */
.case-study__tab-btn--active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

/* Modificador para el contenido oculto (controlado por JS) */
.case-study__tab-content--hidden {
    display: none;
}

.case-study__tab-content{
    font-size: 1.3rem;
}

/* Componentes dentro de las pestañas */
.result-box {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
}
.result-box--problem { background-color: #fef2f2; } /* bg-red-50 */
.result-box--solution { background-color: #f0fdf4; } /* bg-green-50 */

.result-box__value { font-size: 2.25rem; font-weight: 800; }
.result-box__value--problem { color: #ef4444; } /* text-red-600 */
.result-box__value--solution { color: var(--primary-green); }

.result-box__label { font-weight: 600; color: var(--text-gray); }

.plan-steps { display: flex; flex-direction: column; gap: 1rem; }
.plan-steps__item { border-left: 4px solid var(--primary-green); padding-left: 1rem; }
.plan-steps__title { font-weight: 600; color: var(--text-dark); }
.plan-steps__description { color: var(--text-gray); }

.results-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }

.info-box {
    margin-top: 1.5rem;
    background-color: #eff6ff; /* bg-blue-50 */
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe; /* border-blue-200 */
}
.info-box__title { font-weight: 600; color: #1e40af; margin-bottom: 0.5rem; } /* text-blue-800 */
.info-box__text { font-size: 0.875rem; color: var(--text-gray); }

/* Media Queries */
@media (min-width: 640px) { /* sm: */
    .case-study__tabs {
        gap: 1rem; /* sm:space-x-4 */
    }
}
@media (min-width: 1024px) { /* lg: */
    .ai-specialist__grid {
        grid-template-columns: 1fr 2fr; /* lg:grid-cols-3, con col-span-1 y col-span-2 */
    }
}

.faq {
    background-color: var(--off-white);
}

/* Contenedor específico más estrecho para la sección FAQ */
.faq__container {
    max-width: 48rem; /* max-w-3xl */
}

.section__subtitle {
    margin-top: 1rem;
    color: var(--text-gray);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.faq__item {
    background-color: white;
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: box-shadow 0.3s ease;
}

.faq__item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: var(--text-dark);
}

.faq__question-text {
    padding-right: 1rem;
}

.faq__icon {
    color: var(--primary-green);
    font-size: 1.5rem; /* text-2xl */
    transition: transform 0.3s ease;
    font-weight: 400;
}

.faq__answer {
    color: var(--text-gray);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out;
    padding-top: 0;
}

/* Estilos para el estado abierto (controlado por JavaScript) */
.faq__item--open .faq__answer {
    max-height: 200px; /* Ajusta según el contenido */
    padding-top: 1rem; /* pt-4 */
}

.faq__item--open .faq__icon {
    transform: rotate(45deg);
}

.cta-section {
    background-color: white;
}

/* Modificador para un contenedor más estrecho */
.container--narrow {
    max-width: 56rem; /* max-w-4xl */
}

/* Bloque: CTA Block */
.cta-block {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto */
    gap: 3rem; /* gap-12 */
    align-items: center;
    background-color: var(--primary-green);
    color: white;
    padding: 3rem; /* p-12 */
    border-radius: 1.5rem; /* rounded-3xl */
}

.cta-block__title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800; /* font-extrabold */
    margin-bottom: 1rem; /* mb-4 */
    line-height: 1.2;
    color: var(--off-white);
}

.cta-block__subtitle {
    color: #E5E7EB; /* text-gray-200 */
    margin-bottom: 2rem; /* mb-8 */
}

/* Sub-bloque: CTA Form */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

/* Modificador para inputs en fondos oscuros */
.form__input--dark-bg {
    background-color: white; /* Aseguramos fondo blanco */
    color: var(--text-dark); /* Texto oscuro para contraste */
    border-color: #D1D5DB; /* border-gray-300 */
}
.form__input--dark-bg::placeholder {
    color: #9CA3AF; /* Placeholder color */
}
.form__input--dark-bg:focus {
    /* Mantenemos el foco del estilo global, que ya usa --primary-green */
    border-color: var(--light-green);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.cta-form__submit {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.125rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.cta-form__submit:hover {
    background-color: #22c55e; /* Un verde un poco más brillante */
    transform: scale(1.05);
}

/* Beneficios y Perks */
.cta-block__benefits {
    margin-top: 1.5rem; /* mt-6 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* space-x-4 */
    font-size: 0.875rem; /* text-sm */
}

.cta-block__perks {
    margin-top: 1rem; /* mt-4 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* space-x-6 */
    font-size: 0.75rem; /* text-xs */
    opacity: 0.8;
}

/* Media Query para la cuadrícula */
@media (min-width: 768px) { /* md: */
    .cta-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 4rem 0; /* py-16 */
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr; /* Default para móvil */
    gap: 2rem; /* gap-8 */
}

.footer__logo {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    margin-bottom: 1rem; /* mb-4 */
}

.footer__description {
    font-size: 0.875rem; /* text-sm */
    color: #9CA3AF; /* text-gray-400 */
}

.footer__title {
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem; /* mb-4 */
    color: var(--light-green);
}

.footer__nav,
.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 0.875rem; /* text-sm */
}
.footer__nav { gap: 0.5rem; } /* space-y-2 */
.footer__contact-list { gap: 0.75rem; } /* space-y-3 */

.footer__link {
    color: #9CA3AF; /* text-gray-400 */
}
.footer__link:hover {
    color: white;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
}

.footer__copyright {
    border-top: 1px solid #374151; /* border-gray-800 */
    margin-top: 3rem; /* mt-12 */
    padding-top: 2rem; /* pt-8 */
    text-align: center;
    color: #6B7280; /* text-gray-500 */
    font-size: 0.875rem; /* text-sm */
}

/* ==========================================================================
   Componente: Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 1.5rem; /* bottom-6 */
    right: 1.5rem; /* right-6 */
    z-index: 50;
}

.chat-widget__bubble {
    background-color: #16a34a; /* bg-green-600 */
    color: white;
    padding: 1rem; /* p-4 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.chat-widget__bubble:hover {
    background-color: #15803d; /* hover:bg-green-700 (aproximado) */
}

.chat-widget__icon {
    /* El tamaño original w-24 h-24 es muy grande, lo ajustamos a algo más razonable */
    width: 3.5rem; 
    height: 3.5rem;
}

.chat-widget__message {
    position: absolute;
    bottom: 5.5rem; /* bottom-16 (ajustado al nuevo tamaño del icono) */
    right: 0;
    background-color: white;
    color: #1F2937; /* text-gray-800 */
    padding: 0.75rem; /* p-3 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    width: 15rem; /* max-w-xs (aproximado) */
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

/* Modificador para ocultar (controlado por JS) */
.chat-widget__message--hidden {
    visibility: hidden;
    opacity: 0;
}

.chat-widget__message-text {
    font-size: 0.875rem; /* text-sm */
}

.chat-widget__message-button {
    color: var(--primary-green); /* text-xofi-green */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    margin-top: 0.5rem; /* mt-2 */
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

/* Media Queries para el Footer */
@media (min-width: 768px) { /* md: */
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.header {
    background-color: var(--dark-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem; /* h-20 */
}

.header__logo img {
    display: block; /* Evita espacio extra debajo de la imagen */
}

.header__links {
    display: none; /* Oculto en móvil por defecto */
    align-items: center;
    gap: 2.5rem; /* space-x-10 */
}

.header__link {
    font-size: 0.875rem; /* text-sm */
    transition: color 0.3s ease;
}

.header__link:hover {
    color: var(--light-green);
}

/* Media Query para mostrar los links en pantallas más grandes */
@media (min-width: 768px) { /* md: */
    .header__links {
        display: flex;
    }
}

.xofi-action-btn {
    display: inline-block;
    background: white;
    color: #2d5a3d;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.xofi-action-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.xofi-name-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-block;
}

.xofi-name-link:hover {
    color: #f59e0b;
    text-decoration: none;
}



/* ==========================================================================
   2.5 Estilos de Navegación Móvil (AÑADIR ESTA SECCIÓN)
   ========================================================================== */
.header__toggle {
    display: none; /* Oculto por defecto en escritorio */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60; /* Asegura que esté por encima del menú */
}

.header__toggle-line {
    width: 2rem;
    height: 0.25rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animación del botón a 'X' */
.header__toggle--open .header__toggle-line:nth-child(1) {
    transform: rotate(45deg);
}

.header__toggle--open .header__toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.header__toggle--open .header__toggle-line:nth-child(3) {
    transform: rotate(-45deg);
}


/* ==========================================================================
   4. Media Queries para Responsividad
   ========================================================================== */

/* BUSCA LA MEDIA QUERY EXISTENTE Y AÑADE ESTOS ESTILOS DENTRO O CREA UNA NUEVA */
@media (max-width: 767px) {
    .header__toggle {
        display: flex; /* Muestra el botón en móvil */
    }

    .header__links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background-color: var(--dark-bg);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 55;
    }

    .header__links--open {
        transform: translateX(0);
    }
    
    .header__link {
        margin-left: 0;
        font-size: 1.5rem;
    }
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    min-height: 1.5rem; /* Evita que el layout salte cuando aparece el mensaje */
    transition: color 0.3s ease;
}

.form-status.success {
    color: #4ade80; /* Un verde brillante para el éxito */
}

.form-status.error {
    color: #fca5a5; /* Un rojo claro para el error */
}

/* ==========================================================================
   Sección de Recursos Adicional
   ========================================================================== */

.resources {
    background-color: var(--off-white);
}

.resources__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.resource-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.resource-card__platform-icon {
    height: 1.5rem;
    width: auto;
}

.resource-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.resource-card__embed-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.resource-card__embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Específico para el embed de Spotify que tiene altura fija */
.resource-card__embed-container--spotify {
    padding-bottom: 0;
    height: 152px; /* Altura del embed de Spotify */
}

.resource-card__image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.resource-card__description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empuja el botón al final */
}

.resource-card__description strong {
    color: var(--text-dark);
}

/* Media Queries para la cuadrícula responsiva */
@media (min-width: 768px) {
    .resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   Componente: Banner de Cookies
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg); /* Usa el fondo oscuro del header/footer */
    color: var(--off-white);
    padding: 1.5rem 0;
    z-index: 100; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 -10px 25px -5px rgba(0,0,0,0.15); /* Sombra superior */
    transition: transform 0.5s ease-in-out, visibility 0.5s;
    transform: translateY(0);
    visibility: visible;
}

/* Estado oculto para la animación */
.cookie-banner--hidden {
    transform: translateY(100%);
    visibility: hidden;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column; /* Apilado en móvil */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.875rem; /* texto de 14px */
    text-align: center;
    color: var(--off-white);
}

.cookie-banner__text a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner__text a:hover {
    color: var(--light-green);
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espacio entre botones */
    flex-shrink: 0; /* Evita que los botones se encojan */
}

/* Nuevo modificador de botón para fondos oscuros */
.btn--outline-light {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}
.btn--outline-light:hover {
    background-color: white;
    color: var(--dark-bg);
}

/* Media Query para pantallas más grandes */
@media (min-width: 768px) {
    .cookie-banner__content {
        flex-direction: row; /* Lado a lado en desktop */
    }
    .cookie-banner__text p {
        text-align: left;
    }
}

/* Estilos para el contenedor del checkbox */
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem; /* Pequeño espacio superior */
}

.form-group-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--light-green); /* Colorea el check con el verde de la marca */
    flex-shrink: 0;
}

.form-group-checkbox label {
    font-size: 0.875rem;
    color: var(--off-white);
    opacity: 0.9;
}

.form-group-checkbox a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.form-group-checkbox a:hover {
    color: var(--light-green);
}

/* Estilos del Modal Legal (inspirado en otros modales del sitio) */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.legal-modal--hidden {
    display: none;
}

.legal-modal__content {
    background-color: white;
    width: 100%;
    max-width: 48rem; /* max-w-3xl */
    max-height: 90vh; /* Límite de altura */
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column; /* Para organizar tabs y contenido */
    padding: 2rem;
}

.legal-modal__close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    color: var(--text-gray);
    border-radius: 9999px;
    font-size: 1.75rem;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* Pestañas (Tabs) - Estilo similar al Case Study */
.legal-modal__tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.legal-modal__tab-btn {
    font-weight: 600;
    padding-bottom: 0.75rem;
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.legal-modal__tab-btn--active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

/* Paneles de Contenido */
.legal-modal__panels {
    overflow-y: auto; /* ¡MUY IMPORTANTE! Hace el contenido scrolleable */
    padding-right: 1rem; /* Espacio para la barra de scroll */
}

.legal-modal__panel {
    display: none; /* Oculto por defecto */
}

.legal-modal__panel--active {
    display: block; /* Visible */
}

/* Estilos del texto dentro del modal */
.legal-modal__panel h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.legal-modal__panel h3 { font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.legal-modal__panel p { margin-bottom: 1rem; line-height: 1.7; color: var(--text-gray); }
.legal-modal__panel ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-modal__panel li { margin-bottom: 0.5rem; }

/* Estilos para la sección de soluciones */
.solutions__tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.solutions__tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.solutions__tab-btn:hover,
.solutions__tab-btn--active {
    background: var(--primary-green);
    color: white;
}

.solutions__panel {
    display: none;
}

.solutions__panel--active {
    display: block;
}

.solutions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solutions__benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.solutions__benefits li {
    padding: 0.5rem 0;
    color: var(--primary-green);
    font-weight: 500;
}

.solutions__stats-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:20px;
}

/* Metrics Grid for Fintechs */
.solutions__metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.metric-card--highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-green);
    display: block;
}

.metric-card--highlight .metric-value {
    color: white;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.metric-card--highlight .metric-label {
    color: rgba(255,255,255,0.9);
}

.solutions__tech-highlight {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.solutions__tech-highlight h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-green);
    font-weight: 600;
}

/* Process Diagram for Factoring */
.solutions__process-diagram {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--dark-bg);
}

.step-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.process-arrow {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.solutions__efficiency-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.efficiency-item {
    text-align: center;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 0.5rem;
}

.efficiency-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
}

.efficiency-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Impact Dashboard for Microfinanzas */
.solutions__impact-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.solutions__impact-dashboard h4 {
    text-align: center;
    margin: 0 0 2rem 0;
    color: var(--primary-green);
    font-weight: 600;
}

.impact-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.impact-circle {
    text-align: center;
}

.circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-green) 0deg 280deg, #e5e7eb 280deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.circle-progress::before {
    content: '';
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.percentage-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    z-index: 1;
}

.impact-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impact-stat {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .solutions__metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .impact-metrics {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .solutions__efficiency-stats {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
}

.stat-item--highlight .stat-value {
    color: var(--light-green);
}

.stat-vs {
    font-weight: 700;
    color: #666;
    font-size: 3rem;
}

.solutions__cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--off-white);
    border-radius: 1rem;
}

.solutions__cta-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

@media (max-width: 768px) {
    .solutions__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solutions__tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .solutions__tab-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Dropdown Menu Styles */
.header__dropdown {
    position: relative;
    display: inline-block;
}

.header__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header__dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.header__dropdown[aria-expanded="true"] .header__dropdown-icon {
    transform: rotate(180deg);
}

.header__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid #e5e7eb;
}

.header__dropdown:hover .header__dropdown-menu,
.header__dropdown[aria-expanded="true"] .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header__dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--dark-bg);
    transition: background-color 0.2s ease;
}

.header__dropdown-item:hover {
    background-color:  var(--off-white);
}

.dropdown-item__icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: 8px;
    flex-shrink: 0;
}

.dropdown-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-item__title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}



.dropdown-item__description {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-item__title {
        color: var(--off-white);
    }
    .header__dropdown-item:hover .dropdown-item__title {
        color: var(--text-dark);
    }
    .dropdown-item__title:hover {
        color: var(--text-dark);
    }
    .header__dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        opacity: 0;
        min-width: auto;
        width: 100%;
        display: none;
    }
    .header__dropdown[aria-expanded="true"] .header__dropdown-menu {
        opacity: 1;
        display: block;
        transform: translateY(0);
    }

    .header__dropdown-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .header__dropdown-item:last-child {
        border-bottom: none;
    }
}

.youtube-facade {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden; /* Asegura que la imagen no se desborde */
}

.youtube-facade__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre el área sin deformar la imagen */
    transition: transform 0.3s ease;
}

.youtube-facade:hover .youtube-facade__thumbnail {
    transform: scale(1.05); /* Sutil efecto de zoom al pasar el ratón */
}

.youtube-facade__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; /* Ancho del SVG */
    height: 48px; /* Alto del SVG */
    transition: transform 0.3s ease;
    pointer-events: none; /* Evita que el icono intercepte el clic */
}

.youtube-facade:hover .youtube-facade__play-icon {
    transform: translate(-50%, -50%) scale(1.15); /* Aumenta el tamaño del icono */
}

/* Estilos para el iframe una vez cargado */
.youtube-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.spotify-facade {
    position: relative;
    width: 100%;
    height: 100%; /* El contenedor padre ya tiene la altura correcta (152px) */
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px; /* Mismo borde que el iframe original */
    background-color: #191414; /* Color de fondo de Spotify */
    display: flex;
    align-items: center;
}

.spotify-facade__thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.spotify-facade:hover .spotify-facade__thumbnail {
    transform: scale(1.1);
}

.spotify-facade__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    color: white;
}

.spotify-facade__content {
    max-width: 70%;
}

.spotify-facade__title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.spotify-facade__play-icon {
    width: 50px;
    height: 50px;
    background-color: #1DB954; /* Verde de Spotify */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.spotify-facade:hover .spotify-facade__play-icon {
    transform: scale(1.1);
    background-color: #1ed760;
}

/* Estilos para el iframe una vez cargado */
.spotify-facade iframe {
    width: 100%;
    height: 152px;
    border: none;
    border-radius: 12px;
}

.hero h1 {
    font-size: 3rem; /* Asegura un tamaño de fuente explícito para h1 dentro de .hero */
}
.footer__partner-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer__partner-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer__partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer__partner-image {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__partner-image:hover {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer__partner-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .footer__partner-text {
        font-size: 0.85rem;
    }
    
    .footer__partner-image {
        max-width: 100px;
    }
}

/* Footer fijo de partners */
.partners-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95); /* Semi-transparente */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 40; /* Debajo del chat widget (z-50) pero sobre el contenido */
    padding: 0.75rem 0;
    transition: transform 0.3s ease;
}

.partners-footer__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.partners-footer__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 1rem;
    white-space: nowrap;
}

.partners-footer__logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.partners-footer__logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.partners-footer__logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .partners-footer__content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .partners-footer__text {
        margin-right: 0;
        font-size: 0.7rem;
    }
    
    .partners-footer__logos {
        gap: 1rem;
    }
    
    .partners-footer__logo {
        height: 24px;
    }
}

/* Ajustar el chat widget para que no se superponga */
.chat-widget {
    bottom: 4rem; /* Subir por encima del footer fijo */
}

/* Añadir padding-bottom al body para compensar el footer fijo */
body {
    padding-bottom: 60px; /* Ajustar según altura real del footer */
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Más alto en móvil por el diseño vertical */
    }
}

/* Opcional: Ocultar en el footer original para evitar duplicación */
.footer__partner-section {
    display: none;
}