﻿/* =========================================
   Términos y Condiciones - Danne Joyas
   Basado en la estructura de policy.css
   ========================================= */
body.high-contrast-mode .contact-card h2 {
    color: var(--colorNeutralForegroundInverted) !important;
}
/* =========================================
   Contenedor Principal
   ========================================= */
.modern-returns {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafafa;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.returns-content {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* =========================================
   Hero Section
   ========================================= */

.returns-hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e4f0 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #ccd6e0;
}

    .returns-hero .content {
        text-align: center;
    }

.returns-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #1a5276, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.returns-subtitle {
    font-size: 1.3rem;
    color: #5d6d7e;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #ccd6e0;
    color: #1a5276;
    font-weight: 500;
    font-size: 0.95rem;
}

    .legal-badge i {
        font-size: 1.2rem;
        color: #27ae60;
    }

/* =========================================
   Secciones de Términos
   ========================================= */

.returns-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .returns-section:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

.alt-bg {
    background: linear-gradient(to right, #fefefe 0%, #f8fafc 100%);
}

/* =========================================
   Iconos de Sección
   ========================================= */

.section-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #1a5276);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.section-content {
    flex: 1;
    min-width: 0;
}

    /* =========================================
   Tipografía de Contenido
   ========================================= */

    .section-content h2 {
        color: #2c3e50;
        margin-top: 0;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
        border-bottom: 2px solid #e1e8f0;
        padding-bottom: 0.75rem;
        font-weight: 600;
    }

    .section-content h3 {
        color: #34495e;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .section-content p {
        color: #5d6d7e;
        margin-bottom: 1.25rem;
        line-height: 1.8;
        font-size: 1rem;
    }

        .section-content p:last-child {
            margin-bottom: 0;
        }

    /* =========================================
   Listas
   ========================================= */

    .section-content ul {
        padding-left: 1.5rem;
        margin: 1.5rem 0;
        list-style-type: disc;
    }

    .section-content ol {
        padding-left: 1.5rem;
        margin: 1.5rem 0;
    }

    .section-content li {
        margin-bottom: 0.85rem;
        line-height: 1.7;
        color: #5d6d7e;
    }

        .section-content li strong {
            color: #2c3e50;
            font-weight: 600;
        }

    /* Listas anidadas */
    .section-content ul ul,
    .section-content ol ul,
    .section-content ul ol,
    .section-content ol ol {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* =========================================
   Enlaces
   ========================================= */

    .section-content a {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }

        .section-content a:hover {
            color: #1a5276;
            border-bottom-color: #3498db;
        }

    /* =========================================
   Énfasis y Formato
   ========================================= */

    .section-content strong {
        color: #2c3e50;
        font-weight: 600;
    }

    .section-content em {
        font-style: italic;
        color: #5d6d7e;
    }

/* =========================================
   Secciones Especiales
   ========================================= */

/* Sección de Identificación del Proveedor */
.returns-section:first-of-type .section-content ul {
    background: #f8f9fa;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Sección de Legislación */
.returns-section:nth-last-of-type(3) .section-content ul {
    background: #fff8e1;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

/* =========================================
   Footer de Contacto
   ========================================= */

.returns-contact {
    margin-top: 4rem;
    padding: 0;
}

.contact-card {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    border-radius: 16px;
    padding: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
}

    .contact-card h2 {
        color: white;
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
        border: none;
        padding: 0;
    }

    .contact-card p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .contact-card strong {
        color: #3498db;
        font-weight: 600;
    }

    .contact-card hr {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin: 2rem 0;
    }

    .contact-card .text-white-50 {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .contact-card .small {
        font-size: 0.9rem;
        line-height: 1.8;
    }

/* =========================================
   Utilidades
   ========================================= */

.text-muted {
    color: #6c757d !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.small {
    font-size: 0.875rem;
}

/* =========================================
   Alertas y Destacados (para uso futuro)
   ========================================= */

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-info {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.alert-info i {
    color: #17a2b8;
}

.alert-warning i {
    color: #f39c12;
}

.alert-danger i {
    color: #dc3545;
}

/* =========================================
   Boxes y Cajas Destacadas
   ========================================= */

.highlight-box {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4ebf7 100%);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

    .highlight-box h3 {
        color: #1a5276;
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .highlight-box p {
        margin-bottom: 1rem;
        color: #2c3e50;
    }

    .highlight-box ul {
        margin-bottom: 0;
    }

/* =========================================
   Tablas (para uso futuro)
   ========================================= */

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    table thead {
        background: #2c3e50;
        color: white;
    }

    table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
    }

    table td {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    table tr:hover {
        background: #f8fafc;
    }

    table tr:last-child td {
        border-bottom: none;
    }

/* =========================================
   Scroll suave para anclas
   ========================================= */

html {
    scroll-behavior: smooth;
}

/* Ajuste para anclas con header fijo */
.returns-section[id] {
    scroll-margin-top: 20px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 992px) {
    .returns-section {
        padding: 2rem;
    }

    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .section-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .returns-hero {
        padding: 3rem 0;
    }

    .returns-title {
        font-size: 2rem;
    }

    .returns-subtitle {
        font-size: 1.1rem;
    }

    .legal-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .returns-section {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .section-content {
        text-align: left;
    }

        .section-content h2 {
            font-size: 1.4rem;
        }

        .section-content h3 {
            font-size: 1.2rem;
        }

        .section-content p,
        .section-content li {
            font-size: 0.95rem;
        }

    .contact-card {
        padding: 2rem 1.5rem;
    }

        .contact-card h2 {
            font-size: 1.5rem;
        }

        .contact-card p {
            font-size: 1rem;
        }
}

@media (max-width: 480px) {
    .returns-title {
        font-size: 1.75rem;
    }

    .returns-subtitle {
        font-size: 1rem;
    }

    .returns-section {
        padding: 1.25rem;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .section-content h2 {
        font-size: 1.25rem;
    }

    .section-content ul,
    .section-content ol {
        padding-left: 1.25rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }
}

/* =========================================
   Impresión
   ========================================= */

@media print {
    .modern-returns {
        background: white;
    }

    .returns-hero {
        background: white;
        border-bottom: 2px solid #ccc;
    }

    .returns-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .section-icon {
        background: #ccc !important;
    }

    .contact-card {
        background: white;
        color: black;
        border: 2px solid #ccc;
    }

        .contact-card h2,
        .contact-card strong {
            color: black !important;
        }
}
/* =========================================
   Tabla de Contenidos (TOC)
   ========================================= */

.returns-toc-wrapper {
    margin-bottom: 3rem;
}

.returns-toc {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e8f0;
}

    .returns-toc h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border: none;
        padding: 0;
    }

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.returns-toc a {
    text-decoration: none;
    color: #2c3e50;
    padding: 0.85rem 1.2rem;
    background: #f0f4f8;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

    .returns-toc a:hover {
        background: #e1e8f0;
        transform: translateY(-2px);
        border-color: #3498db;
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
    }

/* Responsive TOC */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }

    .returns-toc {
        padding: 1.5rem;
    }

        .returns-toc h2 {
            font-size: 1.1rem;
        }

        .returns-toc a {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
        }
}
