/* privacidad.css - Estilos para Aviso de Privacidad */

/* Contenedor principal */
.container.py-5 {
    animation: fadeIn 0.8s ease-out;
    max-width: 900px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjeta del documento */
.doc-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Elemento decorativo superior (color privacidad) */
.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 20px 20px 0 0;
}

/* Badge de Privacidad */
.ch-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #065f46;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem !important;
}

.ch-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

/* Título principal */
h1 {
    color: #065f46 !important;
    font-weight: 800 !important;
    font-size: 2.5rem;
    margin-bottom: 0.5rem !important;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
}

/* Fecha de actualización */
.muted:first-of-type {
    color: #6b7280 !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.muted:first-of-type::before {
    content: '🛡️';
    font-size: 0.9rem;
}

/* Subtítulos de secciones */
h5 {
    color: #065f46 !important;
    font-weight: 700 !important;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 10px;
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

h5::before {
    content: '🔐';
    font-size: 1rem;
}

h5:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    transform: translateX(5px);
}

/* Párrafos */
p.muted {
    color: #4b5563 !important;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #d1d5db;
}

p.muted strong {
    color: #065f46;
    font-weight: 600;
}

/* Listas dentro de párrafos (para datos recabados) */
.data-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.data-list li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    position: relative;
}

.data-list li::marker {
    color: #10b981;
    font-weight: bold;
}

.data-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Enlaces dentro del texto */
p.muted a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #a7f3d0;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

p.muted a:hover {
    color: #047857;
    border-bottom: 2px solid #10b981;
}

/* Líneas divisorias */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1fae5, transparent);
    margin: 2.5rem 0;
}

/* Botones */
.btn-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: #374151;
    background: #f3f4f6;
    text-decoration: none;
}

.btn-link::before {
    content: '←';
    font-weight: bold;
}

.btn-outline-primary {
    border: 2px solid #059669;
    color: #059669;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

/* Contenedor de botones al final */
.d-flex.justify-content-between {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Icono de privacidad flotante */
.privacy-icon {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 4rem;
    color: #d1fae5;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container.py-5 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .doc-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h1::after {
        width: 40px;
    }

    h5 {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }

    p.muted {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-outline-primary, .btn-link {
        width: 100%;
        justify-content: center;
    }

    .privacy-icon {
        font-size: 3rem;
        right: 1rem;
        top: 1rem;
    }
}

/* Elementos de privacidad destacados */
.privacy-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.privacy-highlight h6 {
    color: #065f46;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-highlight h6::before {
    content: '⚠️';
}

/* Estilo para datos sensibles */
.sensitive-data {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.sensitive-data strong {
    color: #dc2626;
}