/* 
 * Politicas de Privacidad - Saker Seguros
 * Estilos específicos para página de políticas
 */

/* Variables específicas */
:root {
    --privacy-primary: #FC4303;
    --privacy-primary-light: #FF6B35;
    --privacy-secondary: #2D3748;
    --privacy-light: #F7FAFC;
    --privacy-border: #E2E8F0;
    --privacy-success: #38A169;
    --privacy-warning: #D69E2E;
    --privacy-danger: #E53E3E;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--privacy-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--privacy-border);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.875rem;
    color: var(--privacy-secondary);
}

.breadcrumb-link {
    color: var(--privacy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--privacy-primary-light);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #718096;
}

.breadcrumb-item.active {
    color: #718096;
}

/* Hero Section */
.privacy-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 C0,4.5 4.5,0 10,0 C15.5,0 20,4.5 20,10 C20,15.5 15.5,20 10,20 C4.5,20 0,15.5 0,10 Z" fill="%23FC4303" fill-opacity="0.05"/></svg>');
    background-size: 40px;
    opacity: 0.3;
}

.privacy-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(252, 67, 3, 0.1);
    color: var(--privacy-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.privacy-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.privacy-subtitle {
    font-size: 1.25rem;
    color: #cbd5e0;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.privacy-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #a0aec0;
}

/* Grid Principal */
.privacy-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

/* Sidebar */
.privacy-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-sticky {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--privacy-border);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--privacy-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--privacy-primary);
}

.sidebar-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--privacy-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    color: var(--privacy-primary);
    border-left-color: var(--privacy-primary);
    background: rgba(252, 67, 3, 0.05);
    padding-left: 1.25rem;
}

.sidebar-download {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--privacy-border);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--privacy-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    background: var(--privacy-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 67, 3, 0.2);
}

.download-size {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* Contenido Principal */
.privacy-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--privacy-border);
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--privacy-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--privacy-secondary);
    margin: 0;
}

.section-content {
    line-height: 1.8;
    color: #4a5568;
}

.section-content p {
    margin-bottom: 1.5rem;
}

/* Tarjetas y Componentes */
.privacy-card {
    background: rgba(252, 67, 3, 0.05);
    border-left: 4px solid var(--privacy-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.card-icon {
    flex-shrink: 0;
}

.card-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--privacy-secondary);
}

.privacy-notice {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #d69e2e;
}

/* Grids y Layouts */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.definition-item {
    background: white;
    border: 1px solid var(--privacy-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.definition-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.definition-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--privacy-primary);
}

.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-category {
    background: white;
    border: 1px solid var(--privacy-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.data-category h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--privacy-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--privacy-border);
}

.data-category ul {
    margin: 0;
    padding-left: 1.25rem;
}

.data-category li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.purposes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.purpose-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--privacy-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.purpose-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--privacy-secondary);
}

/* Acordeón de Derechos */
.rights-accordion {
    margin: 2rem 0;
}

.accordion-item {
    border: 1px solid var(--privacy-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--privacy-secondary);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: var(--privacy-light);
}

.accordion-header svg {
    transition: transform 0.3s ease;
}

.accordion-header.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1.25rem;
    max-height: 500px;
}

/* Tabla de Transferencias */
.transfer-table {
    border: 1px solid var(--privacy-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: var(--privacy-light);
    font-weight: 600;
    color: var(--privacy-secondary);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-top: 1px solid var(--privacy-border);
}

.table-cell {
    padding: 1rem;
    border-right: 1px solid var(--privacy-border);
}

.table-cell:last-child {
    border-right: none;
}

.table-row:nth-child(even) {
    background: #fafafa;
}

.privacy-alert {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #285e61;
}

/* Grid de Seguridad */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border: 1px solid var(--privacy-border);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.security-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.security-icon {
    margin-bottom: 1rem;
}

.security-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--privacy-primary);
}

/* Cookies */
.cookies-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-type {
    padding: 1.5rem;
    border: 1px solid var(--privacy-border);
    border-radius: 8px;
    background: white;
}

.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cookie-badge.essential {
    background: #fed7d7;
    color: #c53030;
}

.cookie-badge.analytics {
    background: #bee3f8;
    color: #2c5282;
}

.cookie-badge.marketing {
    background: #c6f6d5;
    color: #276749;
}

.cookie-type h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--privacy-secondary);
}

.cookie-type ul {
    margin: 0;
    padding-left: 1.25rem;
}

.cookie-type li {
    margin-bottom: 0.25rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.cookies-control {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--privacy-light);
    border-radius: 8px;
}

.browser-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.browser-links a {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--privacy-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--privacy-secondary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.browser-links a:hover {
    background: var(--privacy-primary);
    color: white;
    border-color: var(--privacy-primary);
}

/* Timeline */
.changes-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.changes-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--privacy-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--privacy-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--privacy-primary);
}

.timeline-date {
    font-weight: 600;
    color: var(--privacy-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--privacy-secondary);
}

.change-notice {
    background: var(--privacy-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Tarjetas de Contacto */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border: 1px solid var(--privacy-border);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--privacy-secondary);
}

.contact-card a {
    display: block;
    color: var(--privacy-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    margin: 0;
    color: #718096;
    font-size: 0.875rem;
}

.privacy-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--privacy-border);
}

/* Firma */
.privacy-signature {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--privacy-border);
    text-align: center;
}

.signature-content {
    max-width: 500px;
    margin: 0 auto;
}

.signature-block {
    margin: 2rem 0;
}

.signature-line {
    width: 200px;
    height: 1px;
    background: #4a5568;
    margin: 0 auto 1rem;
}

.signature-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--privacy-secondary);
    margin: 0 0 0.25rem;
}

.signature-title {
    color: #718096;
    margin: 0 0 0.5rem;
}

.signature-company {
    color: var(--privacy-primary);
    font-weight: 600;
    margin: 0;
}

.company-seal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.company-seal span {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 600;
}

/* CTA */
.privacy-cta {
    background: linear-gradient(135deg, var(--privacy-primary) 0%, var(--privacy-primary-light) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.privacy-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.privacy-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: white;
    color: var(--privacy-primary);
}

.cta-button.primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--privacy-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookies-banner.active {
    transform: translateY(0);
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookies-text {
    flex: 1;
    min-width: 300px;
}

.cookies-text h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--privacy-secondary);
}

.cookies-text p {
    margin: 0;
    color: #4a5568;
    font-size: 0.875rem;
}

.cookies-text a {
    color: var(--privacy-primary);
    text-decoration: none;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookies-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.cookies-btn.accept {
    background: var(--privacy-primary);
    color: white;
}

.cookies-btn.accept:hover {
    background: var(--privacy-primary-light);
}

.cookies-btn.settings {
    background: transparent;
    color: var(--privacy-secondary);
    border: 1px solid var(--privacy-border);
}

.cookies-btn.settings:hover {
    background: var(--privacy-light);
}

.cookies-btn.reject {
    background: transparent;
    color: #718096;
}

.cookies-btn.reject:hover {
    color: var(--privacy-danger);
}

/* Responsive */
@media (max-width: 1024px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .privacy-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .transfer-table .table-header,
    .transfer-table .table-row {
        grid-template-columns: 1fr;
    }
    
    .cookies-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookies-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .privacy-title {
        font-size: 2rem;
    }
    
    .privacy-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones Scroll */
[data-scroll] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}