﻿/* ════════════════════════════════
   Políticas de Privacidad - DIBAN
   Ruta: wwwroot/css/home/privacy.css
════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand: #cd1e25;
    --brand-dark: #a8181e;
    --brand-light: #fef2f2;
    --brand-mid: #fee2e2;
    --blue-diban: #1e3a8a;
    --blue-light: #eff6ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.7;
}

/* ════════════════════════════════════════════
   HERO HEADER
════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1f1f2e 60%, #1a0305 100%);
    padding: 3.5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    /* Glóbulos decorativos en el hero */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 120px 70px at 8% 30%, rgba(205,30,37,.12) 0%, transparent 70%), radial-gradient(ellipse 90px 55px at 92% 20%, rgba(205,30,37,.1) 0%, transparent 70%), radial-gradient(ellipse 160px 100px at 50% 110%, rgba(205,30,37,.08) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

/* Logo DIBAN en el hero */
.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.75rem;
    animation: fadeDown .5s ease both;
}

.hero-logo-drop {
    animation: dropFloat 3s ease-in-out infinite;
}

@keyframes dropFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-logo-text .name {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
}

    .hero-logo-text .name span {
        color: var(--brand);
    }

.hero-logo-text .tagline {
    display: block;
    font-size: .62rem;
    color: rgba(255,255,255,.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 3px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(205,30,37,.18);
    border: 1px solid rgba(205,30,37,.35);
    color: #fca5a5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    animation: fadeDown .5s .1s ease both;
}

.hero h1 {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
    animation: fadeDown .5s .15s ease both;
}

    .hero h1 em {
        font-style: normal;
        color: var(--brand);
    }

.hero-subtitle {
    font-size: .95rem;
    color: rgba(255,255,255,.55);
    max-width: 520px;
    margin: 0 auto 2rem;
    animation: fadeDown .5s .2s ease both;
}

/* Meta info row */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeDown .5s .25s ease both;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.65);
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

    .meta-pill i {
        color: var(--brand);
        font-size: .75rem;
    }

/* Ola decorativa */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

    .hero-wave svg {
        display: block;
        width: 100%;
    }

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════════════════════════════
   NAVEGACIÓN RÁPIDA (índice)
════════════════════════════════════════════ */
.toc-wrap {
    max-width: 880px;
    margin: -1.5rem auto 2.5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.toc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.09);
    padding: 1.5rem 1.75rem;
    border-top: 3px solid var(--brand);
}

.toc-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .5rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: .84rem;
    font-weight: 600;
    padding: .45rem .65rem;
    border-radius: 8px;
    transition: all .18s;
    border: 1px solid transparent;
}

    .toc-item:hover {
        background: var(--brand-light);
        color: var(--brand);
        border-color: var(--brand-mid);
    }

    .toc-item .toc-num {
        width: 22px;
        height: 22px;
        background: var(--brand-light);
        color: var(--brand);
        border-radius: 50%;
        font-size: .7rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .toc-item:hover .toc-num {
        background: var(--brand);
        color: #fff;
    }

/* ════════════════════════════════════════════
   CONTENIDO PRINCIPAL
════════════════════════════════════════════ */
.main-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* Sección individual */
.privacy-section {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: box-shadow .2s;
}

    .privacy-section:hover {
        box-shadow: 0 6px 24px rgba(0,0,0,.09);
    }

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

    .section-icon.red {
        background: var(--brand-light);
        color: var(--brand);
    }

    .section-icon.blue {
        background: var(--blue-light);
        color: var(--blue-diban);
    }

    .section-icon.amber {
        background: #fffbeb;
        color: #92400e;
    }

    .section-icon.green {
        background: #f0fdf4;
        color: #166534;
    }

    .section-icon.purple {
        background: #f5f3ff;
        color: #5b21b6;
    }

    .section-icon.teal {
        background: #f0fdfa;
        color: #065f46;
    }

.section-meta {
    flex: 1;
}

.section-num {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: 2px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.section-body {
    padding: 1.5rem;
}

    .section-body p {
        margin-bottom: .9rem;
        color: var(--gray-600);
    }

        .section-body p:last-child {
            margin-bottom: 0;
        }

/* Listas con ícono de gota */
.diban-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin: .6rem 0 .9rem;
}

    .diban-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: var(--gray-600);
        font-size: .925rem;
    }

        .diban-list li::before {
            content: '';
            width: 8px;
            height: 10px;
            min-width: 8px;
            margin-top: 5px;
            background: var(--brand);
            clip-path: polygon(50% 0%, 100% 40%, 100% 70%, 50% 100%, 0% 70%, 0% 40%);
            opacity: .8;
        }

/* Callouts */
.callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: .9rem 1.1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: .9rem;
    border-left: 3px solid;
}

.callout-red {
    background: var(--brand-light);
    border-color: var(--brand);
    color: #991b1b;
}

.callout-blue {
    background: var(--blue-light);
    border-color: var(--blue-diban);
    color: #1e3a8a;
}

.callout-amber {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.callout-green {
    background: #f0fdf4;
    border-color: #10b981;
    color: #064e3b;
}

.callout i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: .9rem;
}

.callout strong {
    font-weight: 700;
}

/* Tabla de retención */
.retention-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin: 1rem 0;
}

    .retention-table thead tr {
        background: var(--brand);
        color: #fff;
    }

    .retention-table thead th {
        padding: .6rem .9rem;
        font-weight: 600;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        text-align: left;
    }

    .retention-table tbody tr:nth-child(even) {
        background: var(--gray-50);
    }

    .retention-table tbody tr:hover {
        background: var(--brand-light);
    }

    .retention-table tbody td {
        padding: .6rem .9rem;
        border-bottom: 1px solid var(--gray-100);
        vertical-align: middle;
    }

.ret-badge {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    font-size: .72rem;
    padding: 2px 9px;
    border-radius: 12px;
    font-weight: 700;
}

/* Derechos grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
    margin: .75rem 0;
}

.right-card {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: .9rem;
    text-align: center;
    transition: all .18s;
}

    .right-card:hover {
        border-color: var(--brand-mid);
        background: var(--brand-light);
        transform: translateY(-2px);
    }

    .right-card .ri {
        font-size: 1.4rem;
        color: var(--brand);
        margin-bottom: .4rem;
        display: block;
    }

    .right-card .rt {
        font-size: .8rem;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: .2rem;
    }

    .right-card .rd {
        font-size: .74rem;
        color: var(--gray-500);
    }

/* ════════════════════════════════════════════
   FIRMA / ACEPTACIÓN FOOTER
════════════════════════════════════════════ */
.acceptance-box {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a0305 100%);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

    .acceptance-box::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 200px 120px at 50% 0%, rgba(205,30,37,.15) 0%, transparent 70%);
        pointer-events: none;
    }

    .acceptance-box .ab-inner {
        position: relative;
        z-index: 1;
    }

    .acceptance-box h3 {
        color: #fff;
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: .6rem;
    }

    .acceptance-box p {
        color: rgba(255,255,255,.55);
        font-size: .875rem;
        max-width: 480px;
        margin: 0 auto 1.5rem;
        line-height: 1.65;
    }

    .acceptance-box .ab-meta {
        display: flex;
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

.ab-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

    .ab-chip i {
        color: var(--brand);
    }

/* Botón de volver */
.back-wrap {
    text-align: center;
    padding-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gray-500);
    border: 1.5px solid var(--gray-200);
    padding: .65rem 1.5rem;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}

    .btn-back:hover {
        background: var(--gray-100);
        border-color: var(--gray-400);
        color: var(--gray-900);
        transform: translateY(-1px);
    }

/* ─ Responsive ─ */
@media (max-width: 640px) {
    .hero {
        padding: 2.5rem 1.25rem 3.5rem;
    }

        .hero h1 {
            font-size: 1.5rem;
        }

    .hero-meta {
        gap: .75rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .toc-wrap {
        margin-top: -1rem;
    }

    .section-header {
        padding: 1rem 1.1rem;
    }

    .section-body {
        padding: 1.1rem 1.1rem;
    }

    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .acceptance-box {
        padding: 1.5rem 1.1rem;
    }
}
