/* ========================================
   TARIFA LOWI - ESTRUCTURA
======================================== */
.tarifa-lowi {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: "Poppins", sans-serif;
    padding: 24px;
    margin: 12px;
}

.lowi-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.lowi-servicios {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lowi-servicio-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lowi-icono {
    width: 20px;
    height: 20px;
    color: #09496d;
}

.lowi-valor {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.lowi-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.lowi-tipo, 
.lowi-detalle {
    font-size: 13px;
    color: #666;
    margin-left: 28px;
    display: block;
}

.lowi-precio { 
    text-align: right; 
}

.lowi-entero {
    font-size: 44px;
    font-weight: 700;
    color: #09496d;
    line-height: 1;
}

.lowi-precio-detalle {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
}

.lowi-decimales {
    font-size: 18px;
    font-weight: 600;
    color: #09496d;
}

.lowi-periodo { 
    font-size: 12px; 
    color: #666; 
}

.lowi-precio-final { 
    display: block; 
    font-size: 11px; 
    color: #999; 
    margin-top: 4px; 
}

.lowi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #eee;
}

.lowi-mas-info {
    font-size: 14px;
    color: #09496d;
    text-decoration: underline;
    cursor: pointer;
}

.lowi-contratar .buton_contactar {
    display: inline-block;
    padding: 11px 28px;
    background: #09496d;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.2s ease;
}

.lowi-contratar .buton_contactar:hover { 
    background: #3e93c2; 
}

/* ========================================
   POPUP INFO (Más info)
======================================== */
.popover {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popoverIn 0.3s ease;
}

@keyframes popoverIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popover_titulo {
    background: linear-gradient(135deg, #09496d 0%, #0d6a9e 50%, #3e93c2 100%);
    color: #fff;
    padding: 24px 28px;
    padding-right: 55px;
    font-size: 16px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    line-height: 1.4;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popover_titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #00b4d8, #0077b6);
}

.popover_contenido {
    padding: 28px;
    color: #444;
    line-height: 1.8;
    font-size: 15px;
    background: #fafbfc;
}

.popover_contenido p {
    margin-bottom: 12px;
}

.popover_contenido ul,
.popover_contenido li {
    margin-left: 20px;
    margin-bottom: 8px;
}

.simplemodal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 400;
    line-height: 1;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.simplemodal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Overlay fondo */
.popover-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 73, 109, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer del popup info */
.popover_footer {
    padding: 18px 28px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.popover_btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popover_btn_primary {
    background: linear-gradient(135deg, #09496d, #3e93c2);
    color: #fff;
    border: none;
}

.popover_btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 73, 109, 0.3);
}

.popover_btn_secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.popover_btn_secondary:hover {
    background: #f5f5f5;
}

/* Scrollbar del contenido */
.popover_contenido::-webkit-scrollbar {
    width: 6px;
}

.popover_contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.popover_contenido::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.popover_contenido::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========================================
   POPUP FORMULARIO (CF7)
======================================== */
.popover-formulario {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popoverIn 0.3s ease;
}

.popover-formulario .popover_titulo {
    background: linear-gradient(135deg, #09496d 0%, #0d6a9e 50%, #3e93c2 100%);
    color: #fff;
    padding: 20px 28px;
    padding-right: 55px;
    position: relative;
}

.popover-formulario .popover_titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #00b4d8, #0077b6);
}

.popover-formulario .form-titulo-texto {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    font-weight: 400;
    margin-bottom: 4px;
}

.popover-formulario .form-tarifa-nombre {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.popover-formulario .popover_contenido {
    padding: 28px;
    background: #fff;
    max-height: 70vh;
    overflow-y: auto;
}

/* ========================================
   ESTILOS CF7 DENTRO DEL POPUP
======================================== */
.popover-formulario .wpcf7 {
    margin: 0;
}

.popover-formulario .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popover-formulario .wpcf7-form p {
    margin: 0;
}

.popover-formulario .wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.popover-formulario .wpcf7-form input[type="text"],
.popover-formulario .wpcf7-form input[type="tel"],
.popover-formulario .wpcf7-form input[type="email"],
.popover-formulario .wpcf7-form textarea {
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.popover-formulario .wpcf7-form input:focus,
.popover-formulario .wpcf7-form textarea:focus {
    outline: none;
    border-color: #3e93c2;
    box-shadow: 0 0 0 3px rgba(62, 147, 194, 0.1);
}

.popover-formulario .wpcf7-form textarea {
    resize: none;
    min-height: 80px;
}

/* Checkbox de aceptación */
.popover-formulario .wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.popover-formulario .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #09496d;
    flex-shrink: 0;
}

.popover-formulario .wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.popover-formulario .wpcf7-form .wpcf7-acceptance a {
    color: #09496d;
}

/* Botón enviar */
.popover-formulario .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #09496d, #3e93c2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.popover-formulario .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 73, 109, 0.3);
}

/* Mensajes de respuesta CF7 */
.popover-formulario .wpcf7-response-output {
    margin: 12px 0 0 0 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 13px;
    text-align: center;
}

.popover-formulario .wpcf7 form.sent .wpcf7-response-output {
    background: #e8f5e9 !important;
    border-color: #4caf50 !important;
    color: #2e7d32 !important;
}

.popover-formulario .wpcf7 form.invalid .wpcf7-response-output,
.popover-formulario .wpcf7 form.failed .wpcf7-response-output {
    background: #ffebee !important;
    border-color: #f44336 !important;
    color: #c62828 !important;
}

/* Spinner de carga CF7 */
.popover-formulario .wpcf7-spinner {
    margin: 10px auto 0;
    display: block;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 480px) {
    /* Tarjeta */
    .lowi-header { 
        flex-direction: column; 
        gap: 20px; 
    }
    .lowi-precio { 
        text-align: left; 
    }
    .lowi-entero { 
        font-size: 38px; 
    }
    
    /* Popup info */
    .popover {
        width: 95%;
        border-radius: 16px;
    }
    .popover_titulo {
        padding: 20px;
        padding-right: 50px;
        font-size: 14px;
    }
    .popover_contenido {
        padding: 20px;
        font-size: 14px;
    }
    .simplemodal-close {
        top: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
    }
    
    /* Popup formulario */
    .popover-formulario {
        width: 95%;
    }
    .popover-formulario .popover_titulo {
        padding: 18px 20px;
        padding-right: 50px;
    }
    .popover-formulario .popover_contenido {
        padding: 20px;
    }
    .popover-formulario .wpcf7-form input[type="text"],
    .popover-formulario .wpcf7-form input[type="tel"],
    .popover-formulario .wpcf7-form input[type="email"],
    .popover-formulario .wpcf7-form textarea {
        font-size: 16px;
        padding: 11px 12px;
    }
}