/* ========================================
   ESTILOS TÉRMINOS SERVICIOS - VIIVE BUSINESS
   ======================================== */

/* RESET Y CONFIGURACIÓN BASE */
* {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body {
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    padding: 20px !important;
    position: relative !important;
    overflow-x: hidden !important;
}

/* FONDO ANIMADO */
body::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') !important;
    opacity: 0.3 !important;
    z-index: 1 !important;
}

/* CONTENEDOR PRINCIPAL */
.terminos-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    animation: containerSlideIn 0.6s ease !important;
}

@keyframes containerSlideIn {
    from {
        opacity: 0 !important;
        transform: translateY(50px) scale(0.9) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* HEADER DE TÉRMINOS */
.terminos-header {
    text-align: center !important;
    margin-bottom: 40px !important;
    padding-bottom: 30px !important;
    border-bottom: 3px solid #f0f0f0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 15px !important;
    padding: 30px !important;
}

.terminos-title {
    color: #667eea !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

.terminos-title i {
    color: #ffd700 !important;
    font-size: 2.2rem !important;
}

.terminos-subtitle {
    color: #333 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* CONTENIDO DE TÉRMINOS */
.terminos-content {
    margin-bottom: 40px !important;
}

.terminos-section {
    margin-bottom: 35px !important;
    padding: 25px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border-left: 5px solid #667eea !important;
    transition: all 0.3s ease !important;
}

.terminos-section:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1) !important;
}

.terminos-section h2 {
    color: #667eea !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

.terminos-section h2::before {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    background: #ffd700 !important;
    border-radius: 50% !important;
    margin-right: 5px !important;
}

.terminos-section h3 {
    color: #333 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 20px 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.terminos-section h3::before {
    content: '▶' !important;
    color: #667eea !important;
    font-size: 0.8rem !important;
}

.terminos-section p {
    color: #555 !important;
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    text-align: justify !important;
    line-height: 1.7 !important;
}

.terminos-section ul {
    margin: 15px 0 !important;
    padding-left: 25px !important;
}

.terminos-section li {
    color: #555 !important;
    font-size: 1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    position: relative !important;
}

.terminos-section li::marker {
    color: #667eea !important;
    font-weight: bold !important;
}

.terminos-section li::before {
    content: '🔧' !important;
    position: absolute !important;
    left: -25px !important;
    font-size: 0.8rem !important;
}

.terminos-section strong {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* INFORMACIÓN DE CONTACTO */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-top: 20px !important;
    border: 1px solid #e9ecef !important;
}

.contact-info h4 {
    color: #667eea !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.contact-info h4::before {
    content: '📞' !important;
    font-size: 1.1rem !important;
}

.contact-info p {
    color: #333 !important;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.contact-info p::before {
    content: '•' !important;
    color: #667eea !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

/* FOOTER */
.footer {
    text-align: center !important;
    padding-top: 30px !important;
    border-top: 2px solid #f0f0f0 !important;
}

.btn-back {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-back:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-back::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.btn-back:hover::before {
    left: 100% !important;
}

/* EFECTOS ESPECIALES */
.terminos-section:nth-child(even) {
    border-left-color: #ffd700 !important;
}

.terminos-section:nth-child(even) h2 {
    color: #764ba2 !important;
}

.terminos-section:nth-child(even) h2::before {
    background: #667eea !important;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0 !important;
        transform: translateY(30px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

.terminos-section {
    animation: fadeInUp 0.6s ease forwards !important;
}

.terminos-section:nth-child(1) { animation-delay: 0.1s !important; }
.terminos-section:nth-child(2) { animation-delay: 0.2s !important; }
.terminos-section:nth-child(3) { animation-delay: 0.3s !important; }
.terminos-section:nth-child(4) { animation-delay: 0.4s !important; }
.terminos-section:nth-child(5) { animation-delay: 0.5s !important; }
.terminos-section:nth-child(6) { animation-delay: 0.6s !important; }
.terminos-section:nth-child(7) { animation-delay: 0.7s !important; }
.terminos-section:nth-child(8) { animation-delay: 0.8s !important; }
.terminos-section:nth-child(9) { animation-delay: 0.9s !important; }
.terminos-section:nth-child(10) { animation-delay: 1.0s !important; }
.terminos-section:nth-child(11) { animation-delay: 1.1s !important; }
.terminos-section:nth-child(12) { animation-delay: 1.2s !important; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile (320px - 420px) */
@media screen and (max-width: 420px) {
    body {
        padding: 10px !important;
    }
    
    .terminos-container {
        padding: 20px 15px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .terminos-header {
        padding: 20px 15px !important;
        margin-bottom: 30px !important;
    }
    
    .terminos-title {
        font-size: 2rem !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .terminos-title i {
        font-size: 1.8rem !important;
    }
    
    .terminos-subtitle {
        font-size: 1.1rem !important;
    }
    
    .terminos-section {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
    }
    
    .terminos-section h2 {
        font-size: 1.4rem !important;
    }
    
    .terminos-section h3 {
        font-size: 1.1rem !important;
    }
    
    .terminos-section p,
    .terminos-section li {
        font-size: 0.95rem !important;
    }
    
    .contact-info {
        padding: 20px 15px !important;
    }
    
    .btn-back {
        width: 100% !important;
        justify-content: center !important;
        padding: 18px 30px !important;
    }
}

/* Tablet (421px - 917px) */
@media screen and (min-width: 421px) and (max-width: 917px) {
    .terminos-container {
        padding: 30px 25px !important;
        width: 100% !important;
        max-width: 800px !important;
    }
    
    .terminos-title {
        font-size: 2.2rem !important;
    }
    
    .terminos-section {
        padding: 22px 20px !important;
    }
    
    .terminos-section h2 {
        font-size: 1.5rem !important;
    }
}

/* Desktop (918px+) */
@media screen and (min-width: 918px) {
    .terminos-container {
        padding: 40px !important;
        width: 100% !important;
        max-width: 900px !important;
    }
    
    .terminos-title {
        font-size: 2.5rem !important;
    }
    
    .terminos-section {
        padding: 25px !important;
    }
    
    .terminos-section h2 {
        font-size: 1.6rem !important;
    }
}

/* EFECTOS ADICIONALES */
.terminos-container:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth !important;
}

/* SELECCIÓN DE TEXTO */
::selection {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #333 !important;
}

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190) !important;
}