/* --- CONTENEDOR GLASSMORPHISM CLARO (CONTENIDO) --- */
.terminos-container {
    max-width: 800px;
    margin: 40px auto 60px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 50px;
    border-radius: 30px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.terminos-container > p.intro {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.terminos-container h2 {
    color: #1d1d1f;
    margin-top: 35px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "SF Pro Display", "Poppins", sans-serif;
}

/* --- FIX iOS: CENTRADO PERFECTO DEL ICONO DENTRO DEL CUADRO --- */
.terminos-container h2 i {
    color: #e67e22; /* Naranja de la marca */
    font-size: 1.25rem;
    background: rgba(230, 126, 34, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    
    /* Solución de centrado clásico para evitar bugs en Safari/iOS */
    display: inline-block; 
    text-align: center;
    line-height: 40px !important;
    flex-shrink: 0;
}

.terminos-container h2 i::before {
    line-height: inherit;
    vertical-align: middle;
}

.terminos-container p.detalle {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
    padding-left: 52px;
}

.terminos-container .btn-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.terminos-container .btn-regresar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminos-container .btn-regresar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #000000 0%, #2c2c2e 100%);
}

.terminos-container .btn-regresar:active {
    transform: scale(0.96);
}

/* Responsivo para teléfonos */
@media (max-width: 768px) {
    .terminos-container {
        margin: 20px 15px;
        padding: 30px 20px;
        border-radius: 24px;
    }
    .terminos-container p.detalle {
        padding-left: 0;
    }
}

/* --- ESTILOS MODO OSCURO (.dark-theme) --- */
body.dark-theme .terminos-container {
    background: rgba(28, 28, 30, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .terminos-container > p.intro {
    color: #e5e5ea !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .terminos-container h2 {
    color: #ffffff !important;
}

body.dark-theme .terminos-container p.detalle {
    color: #a1a1a6 !important;
}

body.dark-theme .terminos-container .btn-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .terminos-container .btn-regresar {
    background: linear-gradient(135deg, #2c2c2e 0%, #434345 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .terminos-container .btn-regresar:hover {
    background: linear-gradient(135deg, #434345 0%, #5a5a5d 100%) !important;
}