/* ========================================= */
/* AVISO DE PRIVACIDAD - CSS                 */
/* Diseño legal premium con sidebar sticky   */
/* ========================================= */

:root {
    --pri: #1a3c8b;
    --pri-dark: #0d1b3e;
    --pri-light: #e8eeff;
    --accent: #ffcc00;
    --txt: #2d3748;
    --txt-light: #718096;
    --bg: #f7f8fc;
    --white: #ffffff;
    --wa: #25d366;
    --max-w: 1200px;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; color: var(--txt); line-height: 1.7; background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.container { width: 90%; max-width: var(--max-w); margin: 0 auto; padding: 0 15px; }
.section { padding: 60px 0 80px; }

/* ========================================= */
/* NAV                                       */
/* ========================================= */
nav { background: var(--pri); position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.15); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 1.9rem; font-weight: 900; color: var(--white); text-decoration: none; z-index: 1001; position: relative; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; align-items: center; gap: 8px; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 8px; transition: all 0.25s; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-wa { background: var(--wa) !important; color: var(--white) !important; padding: 8px 20px !important; border-radius: 50px !important; font-weight: 600 !important; }
.nav-wa:hover { background: #1db954 !important; }
.menu-toggle { display: none; font-size: 1.4rem; cursor: pointer; background: none; border: none; color: var(--white); z-index: 1001; padding: 5px; }

/* ========================================= */
/* PAGE HEADER                               */
/* ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--pri) 0%, var(--pri-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 140px 0 70px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
    background-size: 25px 25px;
}
.page-header-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem; color: var(--accent);
    position: relative;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}
.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    position: relative;
}

/* ========================================= */
/* LEGAL CONTENT GRID                        */
/* Sidebar sticky + contenido principal      */
/* ========================================= */
.legal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* ─── Sidebar ─── */
.legal-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.legal-sidebar h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--txt-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.legal-sidebar ul {
    list-style: none;
    margin-bottom: 25px;
}

.legal-sidebar li { margin-bottom: 4px; }

.legal-sidebar a {
    display: block;
    padding: 8px 14px;
    color: var(--txt-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.25s;
}

.legal-sidebar a:hover {
    color: var(--pri);
    background: var(--pri-light);
}

.legal-sidebar a.active {
    color: var(--pri);
    background: var(--pri-light);
    border-left-color: var(--pri);
    font-weight: 700;
}

/* Update info en sidebar */
.sidebar-update {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--pri-light);
    border-radius: 10px;
    font-size: 0.82rem;
}
.sidebar-update i { color: var(--pri); margin-top: 2px; }
.sidebar-update span { display: block; color: var(--txt-light); font-size: 0.75rem; }
.sidebar-update strong { display: block; color: var(--pri); font-size: 0.85rem; }

/* ─── Contenido principal ─── */
.legal-main {
    min-width: 0;
}

.legal-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.legal-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pri);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--pri-light);
    color: var(--pri);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.legal-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pri);
    margin: 25px 0 12px;
}

.legal-section p {
    color: var(--txt);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Listas legales */
.legal-list {
    list-style: none;
    margin-bottom: 18px;
    padding-left: 0;
}

.legal-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.93rem;
    color: var(--txt);
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 8px; top: 14px;
    width: 6px; height: 6px;
    background: var(--pri);
    border-radius: 50%;
}

.legal-list.check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    background: none;
    color: #2ecc71;
    font-size: 0.75rem;
    left: 2px; top: 8px;
    width: auto; height: auto;
    border-radius: 0;
}

/* Pasos numerados */
.legal-steps {
    padding-left: 0;
    list-style: none;
    counter-reset: steps;
}
.legal-steps li {
    counter-increment: steps;
    padding: 10px 0 10px 42px;
    position: relative;
    font-size: 0.93rem;
}
.legal-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0; top: 8px;
    width: 28px; height: 28px;
    background: var(--pri);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}

/* Info boxes */
.legal-info-box {
    background: var(--pri-light);
    border-radius: 12px;
    padding: 22px;
    margin-top: 15px;
}
.legal-info-box h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--pri); margin-bottom: 12px;
}
.legal-info-box ul { list-style: none; }
.legal-info-box li {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: 0.9rem; color: var(--txt);
}
.legal-info-box li i { color: var(--pri); font-size: 0.85rem; min-width: 18px; }

/* Notas */
.legal-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: #f0f7ff; border-left: 4px solid var(--pri);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px; margin-top: 15px;
}
.legal-note i { color: var(--pri); margin-top: 3px; flex-shrink: 0; }
.legal-note p { margin: 0; font-size: 0.9rem; color: var(--txt); }

.legal-note.warning {
    background: #fff8e1; border-left-color: #f39c12;
}
.legal-note.warning i { color: #f39c12; }

/* Data cards grid */
.legal-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 18px 0;
}
.legal-data-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}
.legal-data-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    color: var(--pri); margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.legal-data-card h4 i { color: var(--accent); }
.legal-data-card p { font-size: 0.88rem; color: var(--txt-light); margin: 0; line-height: 1.5; }

/* Table */
.legal-table-wrap {
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.legal-table thead { background: var(--pri); }
.legal-table th {
    color: var(--white); font-weight: 600;
    padding: 12px 16px; text-align: left;
}
.legal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--txt);
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) { background: var(--bg); }

.badge-yes {
    background: #d4edda; color: #155724;
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700;
}
.badge-no {
    background: #f8d7da; color: #721c24;
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700;
}

/* ARCO cards */
.arco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 18px 0;
}
.arco-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.arco-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.arco-letter {
    width: 42px; height: 42px;
    background: var(--pri);
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; font-weight: 900;
    flex-shrink: 0;
}
.arco-item strong { display: block; font-size: 0.95rem; color: var(--pri); margin-bottom: 4px; }
.arco-item p { font-size: 0.85rem; color: var(--txt-light); margin: 0; line-height: 1.4; }

/* Acceptance */
.legal-acceptance {
    background: var(--pri-light);
    border: 2px solid rgba(26,60,139,0.15);
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
footer { background: var(--pri-dark); color: var(--white); padding: 40px 0 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-left p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 5px; }
.footer-center { display: flex; flex-direction: column; gap: 8px; }
.footer-center span { color: rgba(255,255,255,0.6); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.footer-center i { color: var(--accent); }
.footer-right { display: flex; gap: 12px; align-items: center; }
.footer-right img { height: 28px; opacity: 0.5; filter: grayscale(100%); transition: all 0.3s; }
.footer-right img:hover { opacity: 0.9; filter: grayscale(0); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 15px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* WhatsApp */
@keyframes pulseWa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-float { position: fixed; width: 60px; height: 60px; bottom: 28px; right: 28px; background: var(--wa); color: var(--white); border-radius: 50%; font-size: 32px; display: flex; align-items: center; justify-content: center; text-decoration: none; z-index: 10000; box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: all 0.3s; animation: pulseWa 2s infinite; }
.wa-float:hover { background: #1db954; transform: scale(1.1); color: var(--white); }

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */
@media (max-width: 992px) {
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--pri); padding: 15px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 999; }
    .nav-links.active { display: flex; }
    .nav-links a { display: flex; justify-content: center; padding: 14px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-wa { margin: 10px 20px; border-radius: 10px !important; justify-content: center; }

    /* Sidebar oculta en tablet: cambia a grid 1 col */
    .legal-grid { grid-template-columns: 1fr; gap: 0; }
    .legal-sidebar { display: none; }

    .arco-grid { grid-template-columns: 1fr; }
    .legal-data-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-center { align-items: center; }
    .footer-right { justify-content: center; }
}

@media (max-width: 768px) {
    .page-header { padding: 110px 0 50px; }
    .page-header h1 { font-size: 2rem; }
    .legal-section { padding: 25px 20px; margin-bottom: 18px; }
    .legal-section h2 { font-size: 1.2rem; }
    .legal-table { font-size: 0.8rem; }
    .legal-table th, .legal-table td { padding: 10px 12px; }
    .wa-float { width: 52px; height: 52px; font-size: 28px; bottom: 20px; right: 20px; }
}