/* =====================================================
   POLÍTICA DE PRIVACIDAD STYLES
   Estilos para la página de política de privacidad
===================================================== */

/* Hero Section */
.privacy-hero-section {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.privacy-hero-section::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="privacy-pattern" patternUnits="userSpaceOnUse" width="100" height="20"><path d="M20 10l5-5v3h8v4h-8v3z" fill="white" opacity="0.1"/><circle cx="60" cy="10" r="2" fill="white" opacity="0.1"/><rect x="80" y="8" width="4" height="4" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23privacy-pattern)"/></svg>');
    animation: privacyPatternMove 30s linear infinite;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 700;
}

.text-highlight {
    background: linear-gradient(45deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.meta-item {
    display: inline-block;
}

.meta-item i {
    color: rgba(255, 255, 255, 0.7);
}

/* Progreso de lectura */
.reading-progress-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.reading-progress {
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.reading-progress .progress-bar {
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.reading-progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

/* Navegación de contenido */
.content-nav-section {
    border-bottom: 1px solid #e5e7eb;
}

.content-navigation .nav-title {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-link-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    color: #64748b;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.nav-link-item:hover,
.nav-link-item.active {
    background: #2c5530;
    color: white;
    border-color: #2c5530;
    transform: translateY(-1px);
}

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

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
}

.section-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.section-content h4 {
    color: #2c5530;
    font-weight: 600;
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.section-content h5 {
    color: #374151;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.section-content h6 {
    color: #4b5563;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content .lead {
    font-size: 1.15rem;
    color: #374151;
    font-weight: 400;
}

/* Listas personalizadas */
.custom-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.custom-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #4b5563;
}

.custom-list li::before {
    content: '•';
    color: #2c5530;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    font-size: 1.2rem;
}

/* Cajas destacadas */
.highlight-box,
.info-box,
.warning-box,
.security-note,
.parental-notice {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #2c5530;
}

.highlight-box i {
    color: #2c5530;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.info-box i {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

.warning-box i {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.security-note {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: 4px solid #6b7280;
}

.security-note i {
    color: #6b7280;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.parental-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    flex-direction: column;
    text-align: center;
}

/* Grids y cards */
.purposes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

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

.purpose-card:hover {
    border-color: #2c5530;
    box-shadow: 0 10px 25px rgba(44, 85, 48, 0.15);
    transform: translateY(-3px);
}

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

.purpose-card h5 {
    color: #2c5530;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.purpose-card p {
    color: #6b7280;
    margin: 0;
}

/* Base legal */
.legal-basis {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.basis-item {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid transparent;
}

.basis-item:nth-child(1) { border-left-color: #3b82f6; }
.basis-item:nth-child(2) { border-left-color: #10b981; }
.basis-item:nth-child(3) { border-left-color: #f59e0b; }
.basis-item:nth-child(4) { border-left-color: #ef4444; }

.basis-item h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.basis-item p {
    margin: 0;
    color: #6b7280;
}

/* Tipos de cookies */
.cookies-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-type {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cookie-type h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cookie-type p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.cookie-control {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f1f5f9;
    border-radius: 10px;
}

/* Derechos del usuario */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.right-card {
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: #2c5530;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.15);
}

.right-icon {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    color: #6b7280;
}

.right-card:hover .right-icon {
    background: #2c5530;
    color: white;
}

.right-card h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.right-card p {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
}

.rights-action {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

/* Medidas de seguridad */
.security-measures {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.measure-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid #e5e7eb;
}

.measure-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

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

.measure-item p {
    margin: 0;
    color: #6b7280;
}

/* Política de menores */
.minors-policy {
    text-align: center;
    padding: 2rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.minors-policy h4 {
    color: #92400e;
    margin-bottom: 1rem;
}

.minors-policy p {
    color: #78350f;
    margin-bottom: 1rem;
}

.parental-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: none;
}

/* Proceso de actualización */
.update-process {
    margin: 1.5rem 0;
}

.update-process h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.version-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-card h4 {
    color: #2c5530;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-details i {
    margin-top: 0.25rem;
}

.authority-info {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.authority-info h5 {
    color: #374151;
    margin-bottom: 0.75rem;
}

.quick-contact {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.quick-contact h5 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* Sidebar */
.privacy-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-card .card-title {
    color: #2c5530;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.quick-summary li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.quick-summary i {
    font-size: 0.8rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
}

.certifications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.cert-badge {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.help-actions {
    display: flex;
    flex-direction: column;
}

/* CTA Final */
.privacy-cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 25px;
    margin: 3rem 0;
}

.cta-content h3 {
    color: #2c5530;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content .lead {
    color: #4b5563;
}

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

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a3a1e 0%, #0f1f10 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
}

.btn-outline-primary {
    border: 2px solid #2c5530;
    color: #2c5530;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
    border-color: #2c5530;
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-outline-success {
    border: 2px solid #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-outline-warning {
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

.btn-outline-warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-outline-danger {
    border: 2px solid #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .privacy-hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .purposes-grid,
    .cookies-types,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-basis {
        gap: 1rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .privacy-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .sidebar-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .privacy-hero-section {
        padding: 4rem 0 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-meta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        display: block;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .nav-link-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .purposes-grid {
        gap: 1rem;
    }
    
    .purpose-card,
    .contact-card,
    .sidebar-card {
        padding: 1rem;
    }
    
    .purpose-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .right-card {
        padding: 0.75rem;
    }
    
    .right-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .security-measures {
        gap: 0.75rem;
    }
    
    .measure-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .highlight-box,
    .info-box,
    .warning-box,
    .security-note {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .basis-item,
    .cookie-control,
    .rights-action,
    .quick-contact {
        padding: 1rem;
    }
    
    .minors-policy {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .nav-link-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .cookies-types {
        grid-template-columns: 1fr;
    }
}