/* =====================================================
   TÉRMINOS Y CONDICIONES STYLES
   Estilos para la página de términos legales
===================================================== */

/* Header específico de términos */
.terms-header {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: -2rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="terms-pattern" patternUnits="userSpaceOnUse" width="100" height="20"><rect x="20" y="5" width="2" height="10" fill="white" opacity="0.1"/><rect x="50" y="8" width="1.5" height="4" fill="white" opacity="0.1"/><rect x="80" y="3" width="1" height="14" fill="white" opacity="0.1"/><circle cx="35" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23terms-pattern)"/></svg>');
    animation: termsPatternMove 30s linear infinite;
}

@keyframes termsPatternMove {
    from { transform: translateX(-100px); }
    to { transform: translateX(0); }
}

.terms-icon-header {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.terms-icon-header i {
    font-size: 2.5rem;
    color: white;
}

.terms-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.terms-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.terms-stats .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenedor principal */
.terms-wrapper {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.terms-main-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
}

/* Sidebar de términos */
.terms-sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.terms-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Información de versión */
.version-info {
    margin-top: 1.5rem;
}

.version-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-details {
    display: flex;
    flex-direction: column;
}

.version-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-date {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

/* Navegación del sidebar */
.terms-nav {
    margin-top: 1.5rem;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.side-nav-link:hover {
    background: rgba(73, 80, 87, 0.1);
    color: #495057;
    transform: translateX(5px);
}

.side-nav-link.active {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.3);
}

.side-nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 1.5rem 0;
}

/* Enlaces útiles */
.useful-links {
    margin-top: 1.5rem;
}

.useful-links h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-item:hover {
    background: rgba(73, 80, 87, 0.05);
    transform: scale(1.02);
}

.link-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.link-info p {
    margin: 0;
    line-height: 1.3;
}

.link-info .fw-bold {
    color: #495057;
    font-size: 0.85rem;
}

.link-info .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
}

/* Contenido principal */
.terms-content {
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: termsFadeIn 0.5s ease-in-out;
}

@keyframes termsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h5 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* Contenido legal */
.legal-content {
    line-height: 1.6;
    color: #495057;
}

.welcome-notice {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 15px;
    border-left: 4px solid #28a745;
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-content h6 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: #155724;
    margin: 0;
}

.terms-summary h6 {
    color: #495057;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.effective-date {
    margin-top: 2rem;
}

/* Definiciones */
.definitions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.definition-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.definition-term {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.definition-term h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.definition-content {
    padding: 1.5rem;
}

.definition-content p {
    margin: 0;
    line-height: 1.6;
}

/* Categorías de servicios */
.service-category {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-category h6 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.service-category ul {
    margin: 0;
    padding-left: 1.5rem;
}

.service-category li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.availability-notice {
    margin-top: 2rem;
}

/* Requisitos de registro */
.requirements-section h6,
.account-responsibilities h6 {
    color: #495057;
    margin-bottom: 1rem;
}

.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.responsibility-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.responsibility-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.responsibility-card:hover {
    border-color: #495057;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.1);
}

.responsibility-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.responsibility-card h6 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.responsibility-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Guías de uso */
.usage-guidelines h6 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 1.5rem;
}

.usage-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #495057;
    font-weight: bold;
}

.allowed-uses .usage-list li:before {
    color: #28a745;
    content: '✓';
}

.prohibited-uses .usage-list li:before {
    color: #dc3545;
    content: '✗';
}

.enforcement-notice {
    margin-top: 2rem;
}

/* Información de pagos */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pricing-card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: #495057;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-2px);
}

.pricing-card h6 {
    color: #495057;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card li {
    padding: 0.25rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.term-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Privacidad */
.privacy-commitment {
    margin-bottom: 2rem;
}

.commitment-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-radius: 15px;
    border-left: 4px solid #17a2b8;
}

.commitment-card i {
    font-size: 2rem;
    flex-shrink: 0;
}

.commitment-card h6 {
    color: #0c5460;
    margin-bottom: 0.5rem;
}

.commitment-card p {
    color: #0c5460;
    margin: 0;
}

.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.data-category {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.data-category h6 {
    color: #495057;
    margin-bottom: 1rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.right-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Limitaciones */
.limitation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.limitation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.limitation-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.limitation-item strong {
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.limitation-item p {
    margin: 0;
    color: #6c757d;
}

/* Terminación */
.termination-process {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content strong {
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Marco legal */
.jurisdiction-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.jurisdiction-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.jurisdiction-card i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.jurisdiction-card strong {
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.jurisdiction-card p {
    color: #6c757d;
    margin: 0;
}

.resolution-process {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.resolution-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    align-items: flex-start;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.2rem;
}

.step-content strong {
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #495057;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6c757d;
    margin: 0;
}

/* Sección de aceptación */
.acceptance-section {
    margin-top: 3rem;
}

.acceptance-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.acceptance-card h5 {
    color: #495057;
    margin-bottom: 1rem;
}

.acceptance-card p {
    color: #6c757d;
    font-size: 1.1rem;
}

.acceptance-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid #495057;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #495057;
    color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
    .terms-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .useful-links {
        display: none;
    }
    
    .terms-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .side-nav-link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        margin-bottom: 0;
    }
    
    .side-nav-link span {
        display: none;
    }
    
    .side-nav-link i {
        margin: 0;
    }
    
    .version-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .summary-grid,
    .responsibility-cards,
    .pricing-cards,
    .data-categories,
    .rights-grid,
    .jurisdiction-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .terms-header {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .terms-stats {
        justify-content: center !important;
        margin-top: 1rem;
    }
    
    .terms-stats .stat-item {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .terms-main-card {
        margin: 1rem;
    }
    
    .terms-content,
    .terms-sidebar {
        padding: 1.5rem;
    }
    
    .acceptance-actions {
        flex-direction: column;
    }
    
    .acceptance-actions .btn {
        width: 100%;
    }
    
    .welcome-notice,
    .commitment-card,
    .jurisdiction-card,
    .resolution-step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .terms-icon-header {
        width: 60px;
        height: 60px;
    }
    
    .terms-icon-header i {
        font-size: 2rem;
    }
    
    .terms-stats .stat-number {
        font-size: 1.2rem;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .termination-process {
        align-items: center;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
}