/* ============================================================
   all-inclusive.css — Sección Todo Incluido + comparativa (nota: la sección .comparison está comentada en el HTML)
   ============================================================ */

/* --- SECCIÓN TODO INCLUIDO (CORREGIDA ALINEACIÓN) --- */
.all-inclusive-section {
    background: #F8FAFC;
}

.all-inclusive-section .ai-header {
    margin-bottom: 30px;
    text-align: left;
    padding-left: 0;
}

.all-inclusive-section .ai-eyebrow {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: block;
}

.all-inclusive-section .ai-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    max-width: 600px;
}

.all-inclusive-section .ai-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 42px;
    max-width: 500px;
}

.all-inclusive-section .ai-highlight-phrase {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.all-inclusive-section .ai-highlight-icon-box {
    width: 32px;
    height: 32px;
    background-color: #F3E8FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-inclusive-section .ai-highlight-icon-box svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

.all-inclusive-section .ai-purple-text {
    color: var(--primary);
    font-weight: 600;
}

.all-inclusive-section .ai-main-divider {
    border: 0;
    height: 1px;
    background-color: var(--border);
    margin-bottom: 60px;
}

.all-inclusive-section .ai-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-bottom: 60px;
}

.all-inclusive-section .ai-feature-column {
    padding: 0 30px;
    border-right: 1px solid var(--border);
    text-align: left;
}

/* Remueve el espaciado interno en los extremos para que el texto se alinee perfectamente con la cabecera superior */
.all-inclusive-section .ai-feature-column:first-child {
    padding-left: 0;
}

.all-inclusive-section .ai-feature-column:last-child {
    padding-right: 0;
    border-right: none;
}

.all-inclusive-section .ai-col-icon {
    width: 48px;
    height: 48px;
    background-color: #F3E8FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.all-inclusive-section .ai-col-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.all-inclusive-section .ai-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.all-inclusive-section .ai-col-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 40px;
}

.all-inclusive-section .ai-col-divider {
    border: 0;
    height: 1px;
    background-color: var(--border);
    margin-bottom: 24px;
}

.all-inclusive-section .ai-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.all-inclusive-section .ai-col-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    text-align: left;
}

.all-inclusive-section .ai-col-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.all-inclusive-section .ai-bottom-banner {
    background-color: #FAF5FF;
    border-radius: 24px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.all-inclusive-section .ai-banner-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    text-align: left;
}

.all-inclusive-section .ai-banner-icon-large {
    width: 72px;
    height: 72px;
    background-color: #DDD6FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.all-inclusive-section .ai-banner-icon-large svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.all-inclusive-section .ai-banner-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.all-inclusive-section .ai-banner-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.all-inclusive-section .ai-banner-separator {
    width: 1px;
    height: 60px;
    background-color: #e5e7eb;
    margin: 0 40px;
}

.all-inclusive-section .ai-banner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    text-align: left;
}

.all-inclusive-section .ai-banner-right p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.all-inclusive-section .ai-banner-link {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.all-inclusive-section .ai-banner-link:hover {
    gap: 12px;
}

.all-inclusive-section .ai-banner-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.all-inclusive-section .ai-banner-image-container {
    width: 200px;
    height: 150px;
    position: absolute;
    right: 30px;
    bottom: 0;
    border: 2px dashed #cbd5e1;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

.all-inclusive-section .ai-banner-image-container span {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* --- COMPARATIVA OPTIMIZADA --- */
.comparison {
    padding: 100px 0;
    background-color: var(--white);
}

.comp-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}

.comp-grid h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.comp-grid p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Tabla moderna con espaciado controlado */
.comp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

.comp-table th,
.comp-table td {
    padding: 12px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Cabeceras de tabla */
.comp-table th {
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 24px;
}

/* Columna izquierda (Funcionalidades) */
.comp-table th:first-child,
.comp-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    width: 45%;
    padding-left: 0;
}

/* Descripciones secundarias bajo el título de la funcionalidad */
.comp-table td:first-child span {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.4;
}

/* Columna de la derecha (Otros Sistemas) */
.comp-table th:last-child,
.comp-table td:last-child {
    color: var(--text-gray);
    width: 25%;
}

/* --- COLUMNA BIPLO DESTACADA (UNIFICADA) --- */
.col-biplo {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 700;
    width: 20%;
    /* Borde interno muy sutil para dar estructura sin separar visualmente la columna */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Redondear extremo superior de la columna Biplo */
.comp-table th.col-biplo {
    border-radius: 16px 16px 0 0;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Redondear extremo inferior de la columna Biplo */
.comp-table tr:last-child td.col-biplo {
    border-radius: 0 0 16px 16px;
    border-bottom: none !important;
}

/* --- ESTILOS DE ICONOS Y SÍMBOLOS --- */

/* Check principal de Biplo (Blanco y estilizado) */
.comp-table td.col-biplo .fa-check {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 50%;
    font-size: 10px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Check de otros sistemas (Gris neutro) */
.comp-table td .fa-check-muted {
    color: var(--text-gray);
    opacity: 0.6;
    font-size: 14px;
}

/* Icono "No disponible" (X roja) */
.comp-table td .fa-times {
    color: #EF4444;
    opacity: 0.8;
    font-size: 14px;
}

/* Icono "Limitado" (Advertencia ámbar) */
.comp-table td .fa-exclamation-triangle {
    color: #F59E0B;
    opacity: 0.8;
    font-size: 14px;
}

.bus-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bus-grid>div:first-child {
    max-width: 640px;
}

.bus-grid h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.bus-images {
    display: flex;
    gap: 16px;
    height: 480px;
    overflow: hidden;
}


.bus-img {
    flex: 1;
    min-width: 0;
    height: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s ease;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.bus-img.active {
    flex: 4;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

/* Nueva capa de imagen, independiente del contenido */
.bus-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: saturate(0.92) contrast(1.06);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bus-img:hover .bus-img-bg,
.bus-img.active .bus-img-bg {
    transform: scale(1.06);
}

.bus-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 38%, rgba(0, 0, 0, 0) 62%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%);
    z-index: 1;
    pointer-events: none;
}

.bus-img-content p {
    font-size: 12.5px;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.15s, max-height 0.4s ease;
}

.bus-img.active .bus-img-content p {
    opacity: 0.9;
    max-height: 60px;
}

/* Ícono circular arriba a la izquierda (como en la imagen) */
.bus-img-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 2;
}

.bus-img-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    color: white;
    font-size: 12px;
    z-index: 2;
}

.bus-img-content {
    position: relative;
    z-index: 2;
    /* ya lo tenías */
    color: white;
}

/* --- CORRECCIÓN: el contenedor de texto debe respetar el ancho de la tarjeta --- */
.bus-img-content {
    width: 100%;
    min-width: 0; /* anula el min-width:auto por defecto de los flex items, que evitaba el wrap */
}

/* --- CORRECCIÓN: TÍTULO NO SE CORTA CUANDO ESTÁ COLAPSADA --- */
.bus-img-content h4 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bus-subtitle {
    font-size: 11.5px !important;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.75;
    margin: 4px 0 0;
}

.bus-img.active .bus-subtitle {
    margin-bottom: 4px;
}
/* En la tarjeta activa (ancha) vuelve a verse grande y en una sola línea */
.bus-img.active .bus-img-content h4 {
    font-size: 20px;
    white-space: nowrap;
}

.bus-img-content p {
    font-size: 12.5px;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.15s, max-height 0.4s ease;
}


/* --- CHECKLIST DENTRO DE LAS TARJETAS DE NEGOCIOS --- */
/* Oculto por defecto (tarjeta colapsada) */
.bus-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.15s, max-height 0.4s ease;
}

.bus-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.bus-checklist li i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
}

/* Visible solo cuando la tarjeta está activa */
.bus-img.active .bus-checklist {
    opacity: 1;
    max-height: 180px;
    margin-top: 12px;
}

/* --- RESPONSIVIDAD GENERAL --- */
@media (max-width: 1024px) {
    .all-inclusive-section .ai-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 0;
    }

    .all-inclusive-section .ai-feature-column {
        border-right: none;
        padding: 0 20px;
    }

    .all-inclusive-section .ai-feature-column:first-child {
        padding-left: 0;
    }

    .all-inclusive-section .ai-feature-column:last-child {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .all-inclusive-section .ai-features-grid {
        grid-template-columns: 1fr;
    }

    .all-inclusive-section .ai-feature-column {
        padding: 0 !important;
        margin-bottom: 30px;
    }

    .all-inclusive-section .ai-bottom-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .all-inclusive-section .ai-banner-separator {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .all-inclusive-section .ai-banner-image-container {
        position: relative;
        right: auto;
        margin-top: 20px;
        align-self: center;
    }
}

/* ==================================================
   RESPONSIVO Y ESTÉTICA: SECCIÓN TODO INCLUIDO
   ================================================== */

/* TABLETAS (Menores a 1024px): Distribución limpia en 2 columnas de tarjetas */
@media (max-width: 1024px) {
    .all-inclusive-section {
        padding: 60px 24px !important;
        /* Sobrescribe el padding inline de 100px */
    }

    .all-inclusive-section .ai-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 columnas en lugar de 3 para dar aire */
        gap: 20px !important;
    }

    /* Convertimos las columnas planas de escritorio en tarjetas estéticas */
    .all-inclusive-section .ai-feature-column {
        background-color: var(--white) !important;
        border-radius: 20px !important;
        padding: 24px !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
        border-right: none !important;
        /* Eliminamos la línea divisoria vertical */
    }

    /* Reseteamos los paddings laterales del escritorio */
    .all-inclusive-section .ai-feature-column:first-child,
    .all-inclusive-section .ai-feature-column:last-child {
        padding: 24px !important;
    }
}

/* CELULARES (Menores a 768px): 1 columna de tarjetas y textos adaptados */
@media (max-width: 768px) {
    .all-inclusive-section {
        padding: 50px 16px !important;
        /* Espaciado cómodo y seguro en teléfonos */
    }

    /* Cabecera adaptada */
    .all-inclusive-section .ai-header {
        margin-bottom: 24px !important;
        padding: 0 !important;
    }

    .all-inclusive-section .ai-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    .all-inclusive-section .ai-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .all-inclusive-section .ai-main-divider {
        margin-bottom: 30px !important;
    }

    /* Rejilla de tarjetas en una sola columna */
    .all-inclusive-section .ai-features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 0 !important;
    }

    /* Estilo de tarjeta independiente para móvil */
    .all-inclusive-section .ai-feature-column {
        background-color: var(--white) !important;
        border-radius: 20px !important;
        padding: 24px !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
        border-right: none !important;
        margin-bottom: 0 !important;
    }

    /* Reajuste de espaciado en extremos */
    .all-inclusive-section .ai-feature-column:first-child,
    .all-inclusive-section .ai-feature-column:last-child {
        padding: 24px !important;
    }

    /* Iconos escalados proporcionalmente dentro de la tarjeta */
    .all-inclusive-section .ai-col-icon {
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .all-inclusive-section .ai-col-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Estilización del texto y lista dentro de cada tarjeta */
    .all-inclusive-section .ai-col-title {
        font-size: 16px !important;
        font-weight: 800 !important;
        margin-bottom: 6px !important;
    }

    .all-inclusive-section .ai-col-desc {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 16px !important;
        min-height: auto !important;
        /* Elimina la restricción de altura de PC */
    }

    .all-inclusive-section .ai-col-divider {
        margin-bottom: 16px !important;
    }

    .all-inclusive-section .ai-col-list li {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .all-inclusive-section .ai-col-list li:last-child {
        margin-bottom: 0 !important;
        /* Remueve margen extra en el último ítem */
    }
}

/* ==================================================
   RESPONSIVO ALTERNATIVO 2: TABLA CLÁSICA COMPACTA (SIN SCROLL)
   ================================================== */

/* PANTALLAS MEDIANAS (Tabletas - Menores a 1024px) */
@media (max-width: 1024px) {
    .comp-grid {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 40px;
    }

    .comp-grid>div:first-child {
        text-align: left;
        max-width: 600px;
    }
}

/* PANTALLAS PEQUEÑAS (Celulares - Menores a 768px) */
@media (max-width: 768px) {
    .comparison {
        padding: 50px 16px !important;
        /* Espaciado cómodo y seguro */
    }

    .comp-grid h2 {
        font-size: 28px !important;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .comp-grid p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* --- COMPACTACIÓN DE TABLA CLÁSICA --- */

    .comp-grid>div:last-child {
        width: 100%;
        overflow: visible;
        /* Eliminamos cualquier scroll horizontal residual */
    }

    .comp-table {
        width: 100% !important;
        min-width: auto !important;
        /* Desactivamos el ancho mínimo */
        table-layout: fixed;
        /* Forzamos a que respete los porcentajes indicados abajo */
    }

    /* Distribución rígida de las 3 columnas en pantallas estrechas */
    .comp-table th:first-child,
    .comp-table td:first-child {
        width: 50% !important;
        /* La mitad del espacio para el nombre del servicio */
        text-align: left;
        padding-left: 0 !important;
        font-size: 13px !important;
    }

    .comp-table th:nth-child(2),
    .comp-table td:nth-child(2) {
        width: 25% !important;
        /* Un cuarto de pantalla para Biplo */
        font-size: 13px !important;
    }

    .comp-table th:last-child,
    .comp-table td:last-child {
        width: 25% !important;
        /* Un cuarto de pantalla para Otros */
        font-size: 13px !important;
    }

    /* Reducción extrema del padding lateral para que el texto no se corte */
    .comp-table th,
    .comp-table td {
        padding: 12px 4px !important;
        vertical-align: middle;
    }

    /* Ocultamos las descripciones secundarias para ganar espacio y limpieza visual */
    .comp-table td:first-child span {
        display: none !important;
    }

    /* Escalamos los elementos decorativos de Biplo para mantener la proporción */
    .comp-table td.col-biplo .fa-check {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .comp-table th.col-biplo {
        font-size: 13px !important;
        border-radius: 12px 12px 0 0;
        padding-bottom: 12px !important;
    }
}

/* PANTALLAS MUY PEQUEÑAS (Menores a 480px) */
@media (max-width: 480px) {
    .comp-grid h2 {
        font-size: 24px !important;
    }

    .comp-table th:first-child,
    .comp-table td:first-child {
        font-size: 12px !important;
        /* Letra ligeramente más pequeña en teléfonos compactos */
    }
}

