
/* Botones Elegantes */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-navy {
    background-color: #002147;
    color: white;
    border: 2px solid white;
}

.btn-navy:hover {
    background-color: white;
    color: #002147;
}

.btn-white {
    background-color: white;
    color: #002147;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

/* Tarjetas de Paquetes (Bordes redondos y sombra suave) */
.card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px; /* Bordes bien redondeados */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-15px);
}

/* Estilos para la Tabla de Mantenimiento */
.maintenance-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #002147; /* Navy */
    font-size: 2rem;
}

.table-container {
    overflow-x: auto; /* Permite scroll horizontal en celulares */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px; /* Evita que se amontone en móvil */
}

.comparison-table thead th {
    background-color: #002147; /* Navy */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.comparison-table thead th span {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #444;
}

.comparison-table td:first-child {
    text-align: left; /* El texto del servicio a la izquierda */
    font-weight: 600;
    color: #002147;
}

/* Filas alternas para mejor lectura */
.comparison-table tbody tr:nth-child(even) {
    background-color: #f8faff;
}

.comparison-table tbody tr:hover {
    background-color: #eef2f7;
}

.highlight-row {
    background-color: #002147 !important;
    color: white !important;
}

.highlight-row td {
    color: white !important;
}

/* ==========================================================================
   ESTILOS PARA EL BANNER DE COOKIES (ZIONWEB)
   ========================================================================== */

.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: #002147; /* Azul Marino */
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none; /* Se mostrará con JS */
}

/* Regla para que el JS pueda mostrar el banner */
.cookie-container.show {
    display: block !important;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

/* 🎯 CONTENEDOR DE BOTONES: Los mantiene juntos en fila */
.cookie-buttons {
    display: flex;
    gap: 12px; 
}

/* Estilo base para los botones */
.btn-cookie {
    background-color: white;
    color: #044b9d;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px); /* Efecto sutil al pasar el mouse */
}

/* 📱 RESPONSIVE: Optimización para celulares */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column; /* Los botones se apilan verticalmente en móvil */
        gap: 8px;
    }

    .btn-cookie {
        width: 100%; /* Botones a lo ancho de la pantalla para tocar mejor con el dedo */
        text-align: center;
    }
}

/* Botón Verde Especial para el Footer */
.btn-green {
    background-color: #28a745; /* Verde profesional */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* Bordes muy redondos para que resalte */
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-green:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Ajuste del footer para que el botón respire */
.footer-cta {
    margin: 20px 0;
}

/* Estilos para el Modal */
.modal-overlay {
    display: none; /* Se mantiene oculto hasta que usemos JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.85); /* Azul navy con transparencia */
    backdrop-filter: blur(5px); /* Efecto de desenfoque al fondo */
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    width: 90%;
    max-width: 500px;
    padding: 40px !important;
    position: relative;
    text-align: left !important;
}

.modal-box h3 {
    color: #002147;
    margin-bottom: 10px;
}


/* --- ESTILOS DEL MODAL DE CONTACTO --- */

.modal-overlay {
    display: none; /* Se mantiene oculto hasta que el JS diga lo contrario */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.85); /* Azul Navy con transparencia */
    backdrop-filter: blur(8px); /* Efecto elegante de desenfoque */
    z-index: 10000; /* Para que esté por encima de todo */
    justify-content: center;
    align-items: center;
}

/* La caja blanca del formulario */
.modal-box {
    background-color: white;
    width: 90%;
    max-width: 500px;
    padding: 40px !important;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Botón de cerrar (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #002147;
    cursor: pointer;
    line-height: 1;
}

/* 🎯 CORREGIDO: Evitamos que afecte al checkbox usando :not([type="checkbox"]) */
#contact-form input:not([type="checkbox"]), 
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Importante para que no se salgan del cuadro */
    font-family: inherit;
    background-color: #f9f9f9;
}

/* 🎯 NUEVO: Estilos para alinear perfectamente la casilla legal */
.legal-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0 20px 0;
    text-align: left;
}

.legal-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.legal-checkbox-container label {
    font-size: 0.85rem;
    color: #555;
    user-select: none; /* Para que puedan hacer clic en el texto y marque la casilla */
}

.legal-checkbox-container a {
    color: #002147;
    text-decoration: underline;
    font-weight: bold;
}

/* Contenedor de los dos botones de abajo */
.modal-footer-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal-footer-btns .btn-green, 
.modal-footer-btns .btn-navy {
    flex: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}