/**
 * Estilos para el shortcode [listasoap] - CSS PROPIO SIN ELEMENTOR
 * Grid funcional y confiable
 */

/* ===== PRIMERA OPCIÓN DESTACADA - ANCHO COMPLETO ===== */
.soap-primera-destacada {
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    gap: 20px;
    border: 2px solid #2654CD;
    border-radius: 15px;
    padding: 25px;
    margin: 0 0 40px 0; /* MÁS SEPARACIÓN CON LAS OTRAS OPCIONES */
    box-shadow: 0 8px 25px rgba(38, 84, 205, 0.15);
    align-items: center;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}



.soap-primera-logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.soap-primera-logo .company-logo {
    max-height: 100px; /* MÁS GRANDE PARA DESTACAR */
    max-width: 250px; /* MÁS ANCHO TAMBIÉN */
    width: auto;
    object-fit: contain;
}

.soap-primera-coberturas {
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}


.soap-primera-compra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.soap-primera-compra .soap-categoria {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.soap-primera-compra .soap-precio {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

/* OCULTAR BOTÓN DE COBERTURAS EN DESKTOP */
.soap-btn-coberturas-mobile {
    display: none !important;
    background: #f8f9fa;
    color: #4285f4;
    border: 1px solid #4285f4;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center !important;
    width: auto;
    min-width: 100px;
    margin: 0 auto;
    align-items: center !important;
    justify-content: center !important;
}

.soap-btn-coberturas-mobile:hover {
    background: #4285f4;
    color: white;
    transform: scale(1.05);
}

/* Ocultar ranking y badges innecesarios */
.soap-ranking,
.soap-ranking-badge,
.ranking-badge,
*[class*="ranking"],
*[class*="mejor-opcion"],
*[class*="recomendada"] {
    display: none !important;
}

/* Ocultar títulos y textos innecesarios */
h3:contains("Opción Recomendada"),
h3:contains("Otras Opciones Disponibles"),
h3:contains("Mejor Opción"),
.soap-title,
.soap-section-title {
    display: none !important;
}

/* Forzar ocultación de cualquier elemento con texto de ranking */
.soap-primera-destacada div:contains("#1"),
.soap-card div:contains("#1"),
.soap-primera-destacada div:contains("Mejor"),
.soap-card div:contains("Mejor") {
    display: none !important;
}

/* ===== GRID DE OTRAS OPCIONES - ANCHO COMPLETO ===== */
.soap-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 0 0; /* SIN MÁRGENES LATERALES - ANCHO COMPLETO */
    padding: 0; /* SIN PADDING LATERAL */
    /* PROPIEDADES PARA MANEJAR MUCHAS OPCIONES SOAP */
    grid-auto-rows: auto;
    align-items: start;
    justify-items: stretch;
}

/* Fallback para pantallas medianas */
@media (max-width: 1200px) {
    .soap-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TABLET - 2 COLUMNAS PARA APROVECHAR ESPACIO */
@media (max-width: 1024px) and (min-width: 769px) {
    .soap-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        margin: 0 20px; /* MÁRGENES LATERALES EN TABLET */
    }

    .soap-card {
        padding: 14px;
    }
}

.soap-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: fit-content;
    min-height: 280px; /* ALTURA MÍNIMA PARA CONSISTENCIA */
    justify-content: space-between; /* DISTRIBUIR CONTENIDO UNIFORMEMENTE */
}

.soap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Header de las tarjetas */
.soap-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.soap-card-header .soap-logo {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.soap-card-header .soap-categoria {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

/* Body de las tarjetas */
.soap-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: space-between;
}

.soap-vigencia {
    font-size: 14px;
    color: #2703FF; /* TEXTO "Vigencia:" EN AZUL */
    text-align: center;
    margin: 0;
    font-weight: 600;
}

.vigencia-dates {
    color: #333 !important; /* FECHAS EN NEGRO */
    font-weight: 600;
}

/* Estilos para vigencias - TEXTO AZUL, FECHAS NEGRAS */
.vigencia-desde {
    color: #333 !important; /* FECHAS EN NEGRO */
    font-weight: 600;
}

.vigencia-hasta {
    color: #333 !important; /* FECHAS EN NEGRO */
    font-weight: 600;
}

/* Botón Ver Coberturas */
.soap-btn-coberturas {
    background: #f8f9fa;
    color: #4285f4;
    border: 1px solid #4285f4;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
    min-width: 100px;
    margin: 0 auto;
    display: block;
}

.soap-btn-coberturas:hover {
    background: #4285f4;
    color: white;
    transform: scale(1.05);
}

/* Footer de las tarjetas */
.soap-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.soap-card-footer .soap-precio {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 0;
}

/* Botones Comprar */
.soap-btn-comprar {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: 100%;
}

.soap-btn-comprar:hover {
    background: #3367d6;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */
/* TABLETS - 2 COLUMNAS PARA OTRAS OPCIONES - ANCHO COMPLETO */
@media (max-width: 1024px) and (min-width: 769px) {
    .soap-primera-destacada {
        margin: 0 0 30px 0; /* ANCHO COMPLETO EN TABLET */
    }

    .soap-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        margin: 0; /* ANCHO COMPLETO EN TABLET */
    }

    .soap-card {
        padding: 14px;
    }
    
    .soap-card-header .soap-logo {
        max-height: 70px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    /* PRIMERA OPCIÓN DESTACADA - ANCHO COMPLETO */
    .soap-primera-destacada {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
        margin: 0 0 25px 0; /* ANCHO COMPLETO - SIN MÁRGENES LATERALES */
        padding: 15px;
    }

    .soap-primera-logo {
        align-items: center;
        margin-top: 10px;
    }
    
    .soap-primera-logo .company-logo {
        max-height: 65px; /* MÁS GRANDE EN TABLET */
        max-width: 180px;
    }

    /* OCULTAR COBERTURAS EN MÓVIL Y MOSTRAR BOTÓN */
    .soap-primera-coberturas {
        display: none;
    }

    /* AGREGAR BOTÓN DE COBERTURAS EN MÓVIL */
    .soap-primera-destacada .soap-btn-coberturas-mobile {
        display: flex !important;
        background: #f8f9fa;
        color: #4285f4;
        border: 1px solid #4285f4;
        padding: 14px 15px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        margin: 10px auto !important;
        height: 38px;
        width: 135px;
        transition: background-color 0.3s ease;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .soap-primera-destacada .soap-btn-coberturas-mobile:hover {
        background: #4285f4;
        color: #f8f9fa;
        transform: scale(1.05);
    }

    .soap-primera-compra .soap-precio {
        font-size: 24px;
    }

    .soap-primera-compra .soap-categoria {
        font-size: 16px; /* AJUSTAR TAMAÑO CATEGORÍA EN MÓVIL */
        margin-bottom: 8px;
    }

    /* REORDENAR ELEMENTOS EN MÓVIL PARA PRIMERA DESTACADA */
    .soap-primera-compra {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    /* Orden específico en móvil: Categoría -> Botón Coberturas -> Precio -> Botón Comprar */
    .soap-primera-compra .soap-categoria {
        order: 1;
    }

    .soap-primera-compra .soap-btn-coberturas-mobile {
        order: 2;
    }

    .soap-primera-compra .soap-precio {
        order: 3;
    }

    .soap-primera-compra .soap-btn-comprar {
        order: 4;
    }

    /* GRID UNA SOLA FILA - ANCHO COMPLETO */
    .soap-grid-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
        margin: 0; /* ANCHO COMPLETO - SIN MÁRGENES LATERALES */
        padding: 0;
    }

    .soap-card {
        padding: 12px;
        gap: 10px;
    }
    
    .soap-card-header .soap-logo {
        max-height: 60px;
        max-width: 160px;
    }

    .soap-card-header .soap-categoria {
        font-size: 14px; /* AJUSTAR TAMAÑO CATEGORÍA EN TARJETAS */
    }

    .soap-card-footer .soap-precio {
        font-size: 20px;
    }

    /* Modal responsive */
    .pc-coberturas-modal-content {
        width: 95% !important;
        margin: 10% auto !important;
    }
}

/* MÓVILES PEQUEÑOS - ANCHO COMPLETO */
@media (max-width: 480px) {
    /* PRIMERA OPCIÓN - ANCHO COMPLETO */
    .soap-primera-destacada {
        gap: 10px;
        margin: 0 0 20px 0; /* ANCHO COMPLETO - SIN MÁRGENES LATERALES */
        padding: 12px;
    }
    
    .soap-primera-logo .company-logo {
        max-height: 65px; /* MÁS GRANDE EN MÓVIL TAMBIÉN */
        max-width: 180px;
    }

    /* OCULTAR COBERTURAS EN MÓVILES PEQUEÑOS */
    .soap-primera-coberturas {
        display: none;
    }

    /* BOTÓN DE COBERTURAS EN MÓVILES PEQUEÑOS */
    .soap-primera-destacada .soap-btn-coberturas-mobile {
        padding: 6px 12px;
        font-size: 12px;
        margin: 8px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .soap-primera-compra .soap-precio {
        font-size: 22px;
    }

    .soap-primera-compra .soap-categoria {
        font-size: 14px; /* CATEGORÍA MÁS PEQUEÑA EN MÓVIL */
    }

    /* REORDENAR ELEMENTOS EN MÓVILES PEQUEÑOS PARA PRIMERA DESTACADA */
    .soap-primera-compra {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
        margin-bottom: 8px;
        margin-top: 8px;
    }

    /* Orden específico en móviles pequeños: Categoría -> Botón Coberturas -> Precio -> Botón Comprar */
    .soap-primera-compra .soap-categoria {
        order: 1;
    }

    .soap-primera-compra .soap-btn-coberturas-mobile {
        order: 2;
    }

    .soap-primera-compra .soap-precio {
        order: 3;
    }

    .soap-primera-compra .soap-btn-comprar {
        order: 4;
    }

    .soap-primera-compra .soap-btn-comprar {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* OTRAS OPCIONES - ANCHO COMPLETO */
    .soap-grid-container {
        margin: 0; /* ANCHO COMPLETO - SIN MÁRGENES LATERALES */
        gap: 12px;
    }

    .soap-card {
        padding: 15px;
        gap: 8px;
    }
    
    .soap-card-header .soap-logo {
        max-height: 50px;
        max-width: 140px;
    }

    .soap-card-header .soap-categoria {
        font-size: 12px; /* CATEGORÍA MÁS PEQUEÑA EN TARJETAS MÓVIL */
    }

    .soap-card-footer .soap-precio {
        font-size: 18px;
    }

    .soap-btn-coberturas {
        padding: 8px 16px;
        font-size: 13px;
    }

    .soap-btn-comprar {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Vigencia más compacta */
    .soap-vigencia {
        font-size: 14px;
        margin: 5px 0;
    }
    
    /* COBERTURAS FORMATEADAS - MÓVILES NORMALES */
    .coberturas-formateadas .cobertura-intro {
        font-size: 11px;
        margin-bottom: 6px;
        margin-top: 6px;
        padding-bottom: 3px;
    }
    
    .coberturas-formateadas .cobertura-item {
        margin-bottom: 4px;
        padding: 4px 6px;
    }
    
    .coberturas-formateadas .cobertura-texto {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .coberturas-formateadas .cobertura-monto {
        font-size: 9px;
        padding: 1px 3px;
        margin-left: 3px;
    }
    
    .coberturas-formateadas .cobertura-bullet {
        font-size: 10px;
        margin-right: 4px;
    }
    
    /* TEXTO PLANO DE COBERTURAS - MÓVILES NORMALES */
    .pc-coberturas-modal-body,
    .pc-soap-modal-body {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .pc-coberturas-modal-body p,
    .pc-soap-modal-body p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .pc-coberturas-modal-body li,
    .pc-soap-modal-body li {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 6px;
    }


}

/* ===== BOTÓN VOLVER AL SELECTOR - OCULTO ===== */
.pc-btn-volver {
    display: none !important; /* OCULTAR - NO ES NECESARIO */
}

/* ===== HEADER DE RESULTADOS SOAP ===== */
.pc-soap-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 0; /* SIN LÍNEA DIVISORA */
    border-bottom: none; /* SIN LÍNEA DIVISORA */
}

.pc-soap-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1B49C2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Header de la tarjeta */
.pc-soap-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.pc-soap-logo img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
}

.pc-soap-categoria h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Contenido de la tarjeta */
.pc-soap-card-content {
    flex: 1;
    margin-bottom: 15px;
}

.pc-soap-vigencia {
    margin-bottom: 10px;
}

.vigencia-text {
    font-size: 14px;
    color: #666;
}

.vigencia-dates {
    font-weight: 600;
    color: #333;
}

/* Botón Ver Coberturas */
.btn-ver-coberturas {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-ver-coberturas:hover {
    background: #005a87;
}

/* Footer de la tarjeta */
.pc-soap-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.precio-valor {
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
}

.btn-comprar {
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-comprar:hover {
    background: #218838;
    text-decoration: none;
    color: white;
}

/* Fallback para pantallas muy pequeñas */
@media (max-width: 1024px) {
    .pc-soap-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.pc-soap-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pc-soap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pc-soap-card-header {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.pc-soap-card-header .company-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.pc-soap-categoria h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.pc-soap-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pc-soap-otras-container .vigencia-text {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.btn-ver-coberturas {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    width: 100%;
}

.btn-ver-coberturas:hover {
    background: #2980b9;
}

.pc-soap-card-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.pc-soap-otras-container .precio-valor {
    font-size: 20px;
    font-weight: bold;
    color: #e67e22;
    display: block;
    margin-bottom: 10px;
}

.pc-soap-otras-container .btn-comprar {
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
    display: inline-block;
}

.pc-soap-otras-container .btn-comprar:hover {
    background: #d35400;
    color: white;
    text-decoration: none;
}

/* ===== MODAL STYLES - MEJORADO ===== */
.pc-coberturas-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pc-coberturas-modal.show {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Compatibilidad con modal anterior */
.pc-soap-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

/* Contenido del modal - UNIFICADO */
.pc-coberturas-modal-content,
.pc-soap-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pc-coberturas-modal.show .pc-coberturas-modal-content {
    transform: scale(1);
}

/* Header del modal */
.pc-coberturas-modal-header,
.pc-soap-modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-coberturas-modal-header h3,
.pc-soap-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Botón cerrar */
.pc-coberturas-modal-close,
.pc-soap-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-coberturas-modal-close:hover,
.pc-soap-modal-close:hover {
    color: #000;
    background: #e0e0e0;
    transform: scale(1.1);
}

/* Body del modal */
.pc-coberturas-modal-body,
.pc-soap-modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #444;
}

/* Footer del modal */
.pc-coberturas-modal-footer,
.pc-soap-modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-modal-site-link,
.pc-soap-modal-site {
    color: #4285f4;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.pc-modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.pc-modal-close-btn:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pc-soap-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .pc-soap-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .pc-soap-card-header .company-logo {
        max-width: 100px;
    }

    .pc-soap-categoria h4 {
        font-size: 14px;
    }

    .pc-soap-otras-container .precio-valor {
        font-size: 18px;
    }

    .pc-soap-modal-content {
        margin: 15% auto;
    }
}


@media (max-width: 300px) {
    /* PRIMERA OPCIÓN DESTACADA - PANTALLAS MUY PEQUEÑAS */
    .soap-primera-destacada {
        padding: 8px;
        gap: 8px;
        margin: 0 0 15px 0;
        border-width: 1px;
    }
    
    .soap-primera-logo .company-logo {
        max-height: 50px;
        max-width: 140px;
    }
    

    
    .soap-primera-compra .soap-categoria {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* REORDENAR ELEMENTOS EN PANTALLAS MUY PEQUEÑAS PARA PRIMERA DESTACADA */
    .soap-primera-compra {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
        margin-bottom: 6px;
        margin-top: 6px;
    }

    /* Orden específico en pantallas muy pequeñas: Categoría -> Botón Coberturas -> Precio -> Botón Comprar */
    .soap-primera-compra .soap-categoria {
        order: 1;
    }

    .soap-primera-compra .soap-btn-coberturas-mobile {
        order: 2;
    }

    .soap-primera-compra .soap-precio {
        order: 3;
    }

    .soap-primera-compra .soap-btn-comprar {
        order: 4;
    }
    
    .soap-primera-compra .soap-precio {
        font-size: 18px;
    }
    
    .soap-primera-compra .soap-btn-comprar {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    /* TARJETAS SOAP - PANTALLAS MUY PEQUEÑAS */
    .soap-grid-container {
        gap: 8px;
        margin: 0;
    }
    
    .soap-card {
        padding: 8px;
        gap: 6px;
        min-height: 240px;
        border-radius: 8px;
    }
    
    .soap-card-header .soap-logo {
        max-height: 35px;
        max-width: 90px;
        margin-bottom: 0px;
    }
    
    .soap-card-header .soap-categoria {
        font-size: 12px;
        line-height: 1.2;
        margin: 4px 0 0 0;
    }
    
    .soap-card-body {
        gap: 6px;
    }
    
    .soap-vigencia {
        font-size: 11px;
        margin: 4px 0;
        line-height: 1.3;
    }
    
    .vigencia-dates,
    .vigencia-desde,
    .vigencia-hasta {
        font-size: 11px !important;
        font-weight: 600;
    }
    
    .soap-btn-coberturas {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 80px;
        border-radius: 4px;
    }
    
    .soap-card-footer .soap-precio {
        font-size: 16px;
        margin: 4px 0;
    }
    
    .soap-btn-comprar {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 6px;
        font-weight: 600;
    }
    
    /* MODAL - PANTALLAS MUY PEQUEÑAS */
    .pc-coberturas-modal-content,
    .pc-soap-modal-content {
        width: 98%;
        max-height: 85vh;
        border-radius: 8px;
    }
    
    .pc-coberturas-modal-header,
    .pc-soap-modal-header {
        padding: 12px;
    }
    
    .pc-coberturas-modal-header h3,
    .pc-soap-modal-header h3 {
        font-size: 14px;
    }
    
    .pc-coberturas-modal-close,
    .pc-soap-modal-close {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
    
    .pc-coberturas-modal-body,
    .pc-soap-modal-body {
        padding: 12px;
        font-size: 12px;
        max-height: 40vh;
    }
    
    .pc-coberturas-modal-footer,
    .pc-soap-modal-footer {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    /* COBERTURAS FORMATEADAS - PANTALLAS MUY PEQUEÑAS */
    .coberturas-formateadas .cobertura-intro {
        font-size: 9px;
        margin-bottom: 3px;
        margin-top: 3px;
        padding-bottom: 2px;
        border-bottom-width: 1px;
    }
    
    .coberturas-formateadas .cobertura-item {
        margin-bottom: 2px;
        padding: 2px 4px;
        border-left-width: 1px;
        border-radius: 2px;
    }
    
    .coberturas-formateadas .cobertura-texto {
        font-size: 8px;
        line-height: 1.2;
    }
    
    .coberturas-formateadas .cobertura-monto {
        font-size: 7px;
        padding: 1px 2px;
        margin-left: 2px;
        border-radius: 2px;
    }
    
    .coberturas-formateadas .cobertura-bullet {
        font-size: 8px;
        margin-right: 2px;
    }
    
    /* TEXTO PLANO DE COBERTURAS - PANTALLAS MUY PEQUEÑAS */
    .pc-coberturas-modal-body,
    .pc-soap-modal-body {
        line-height: 1.4;
        font-size: 11px;
    }
    
    .pc-coberturas-modal-body p,
    .pc-soap-modal-body p {
        font-size: 10px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .pc-coberturas-modal-body ul,
    .pc-soap-modal-body ul {
        padding-left: 15px;
        margin: 6px 0;
    }
    
    .pc-coberturas-modal-body li,
    .pc-soap-modal-body li {
        font-size: 10px;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    .pc-coberturas-modal-body strong,
    .pc-soap-modal-body strong {
        font-size: 10px;
    }
    
    /* AJUSTES ADICIONALES PARA TEXTO MUY LARGO */
    .pc-coberturas-modal-body {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}


/* ===== ESTILOS PARA COBERTURAS FORMATEADAS ===== */
.coberturas-formateadas {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.coberturas-formateadas .cobertura-intro {
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 12px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    font-size: 15px;
}

.coberturas-formateadas .cobertura-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coberturas-formateadas .cobertura-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.coberturas-formateadas .cobertura-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.coberturas-formateadas .cobertura-bullet {
    color: #3498db;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
}

.coberturas-formateadas .cobertura-texto {
    flex: 1;
    font-size: 14px;
}

.coberturas-formateadas .cobertura-monto {
    font-weight: 700;
    color: #e74c3c;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e74c3c;
    margin-left: 8px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 420px) and (min-width: 370px) {
    .soap-primera-compra .soap-precio {
      font-size: 24px;
    }
  
    .soap-card-header .soap-categoria {
      font-size: 13px;
    }
  
    .soap-btn-comprar {
      padding: 10px 18px;
      font-size: 13px;
    }
  }

/* FORZAR CENTRADO DEL BOTÓN DE COBERTURAS - ESTILO FINAL */
.soap-btn-coberturas-mobile {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.soap-primera-destacada .soap-btn-coberturas-mobile {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}