/* Estilos para Términos y Condiciones */
body {
    font-family: "Public Sans", sans-serif;
    background-color: #f9fafb;
    color: #212529;
    line-height: 1.6;
}

.container-terminos {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-terminos {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #28a745;
}

.header-terminos h1 {
    color: #28a745;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-terminos p {
    color: #6c757d;
    font-size: 1rem;
}

.seccion {
    margin-bottom: 30px;
}

.seccion h2 {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.seccion h3 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.seccion p {
    margin-bottom: 15px;
    text-align: justify;
}

.seccion ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.seccion li {
    margin-bottom: 8px;
}

.destacado {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
    border-radius: 4px;
}

.btn-volver {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-volver:hover {
    background-color: #1e7e34;
    color: white;
}

.fecha-actualizacion {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.text-center {
    text-align: center;
}


/* ========== BOTÓN MODO OSCURO ========== */
.modo-oscuro-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modo-oscuro-btn:hover {
    background: #1e7e34;
    transform: scale(1.1);
}

/* ========== MODO OSCURO ========== */
body.modo-oscuro {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.modo-oscuro .container-terminos {
    background-color: #2d2d2d;
}

body.modo-oscuro .header-terminos {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    border-bottom-color: #4ade80;
}

body.modo-oscuro .header-terminos h1 {
    color: #ffffff;
}

body.modo-oscuro .header-terminos h1 i {
    color: #ffffff;
}

body.modo-oscuro .header-terminos p {
    color: #e0e0e0;
}

body.modo-oscuro .seccion {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}

body.modo-oscuro .seccion h2 {
    color: #4ade80;
    border-bottom-color: #444;
}

body.modo-oscuro .seccion h3 {
    color: #e0e0e0;
}

body.modo-oscuro .seccion p,
body.modo-oscuro .seccion li {
    color: #b0b0b0;
}

body.modo-oscuro .destacado {
    background-color: #1e4620;
    border-left-color: #4ade80;
    color: #e0e0e0;
}

body.modo-oscuro .destacado strong {
    color: #ffffff;
}

body.modo-oscuro .btn-volver {
    background-color: #4ade80;
    color: #1a1a1a;
}

body.modo-oscuro .btn-volver:hover {
    background-color: #22c55e;
}

body.modo-oscuro .fecha-actualizacion {
    background-color: #2d2d2d;
    border-top-color: #444;
    color: #e0e0e0;
}

body.modo-oscuro .fecha-actualizacion p {
    color: #e0e0e0;
}

body.modo-oscuro .fecha-actualizacion strong {
    color: #ffffff;
}


/* ========== ONLOADER ========== */
#onloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

#onloader .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e7e34;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

#onloader p {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.modo-oscuro #onloader {
    background: #1a1a1a;
}

body.modo-oscuro #onloader p {
    color: #e0e0e0;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    p, li {
        font-size: 0.9rem;
    }
}
