/* ===== ESTILOS PARA PÁGINA DE POLÍTICA DE COOKIES ===== */

/* Variables CSS con tu paleta */
:root {
    --primary-color: #f45a10;
    --secondary-color: #ffb518;
    --accent-color: #0038a8;
    --success-color: #015e31;
    --danger-color: #cb0000;
    --text-light: #fdf6f3;
    --text-dark: #333;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Encabezado principal */
.policy-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.policy-header::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 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.policy-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.policy-header .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
}

/* Contenido de la política */
.cookie-policy-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
}

.cookie-policy-content section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-policy-content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-policy-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-policy-content h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.cookie-policy-content h3 {
    color: var(--accent-color);
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.cookie-policy-content p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cookie-policy-content ul, 
.cookie-policy-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.cookie-policy-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-dark);
}

.cookie-policy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Grid de tipos de cookies */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cookie-type {
    background: var(--gray-light);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cookie-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cookie-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cookie-type h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-type h3::before {
    content: '🍪';
    font-size: 1.2rem;
}

.cookie-type p {
    margin: 0;
    color: var(--gray-medium);
}

/* Tabla de cookies */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cookies-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cookies-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.cookies-table tr:nth-child(even) {
    background: var(--gray-light);
}

.cookies-table .cookie-name {
    font-weight: 600;
    color: var(--primary-color);
}

.cookies-table .cookie-purpose {
    color: var(--gray-medium);
}

/* Sección de gestión */
.management-section {
    background: linear-gradient(135deg, var(--gray-light), #e9ecef);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
    border: 2px dashed var(--primary-color);
}

.management-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.management-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Botones */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #d44a0c);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d44a0c, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 90, 16, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #00267a);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #00267a, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 56, 168, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Tarjetas informativas */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.info-card h4 i {
    color: var(--secondary-color);
}

.info-card p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Lista de navegadores */
.browser-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.browser-item {
    text-align: center;
    padding: 20px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.browser-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.browser-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.browser-item span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

/* Acordeón para preguntas frecuentes */
.faq-accordion {
    margin: 40px 0;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    background: var(--gray-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Badges de estado */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.badge-essential {
    background: var(--success-color);
    color: white;
}

.badge-optional {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .policy-header h1 {
        font-size: 2.2rem;
    }
    
    .cookie-policy-content {
        padding: 30px 20px;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
    }
    
    .cookies-table {
        display: block;
        overflow-x: auto;
    }
    
    .management-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .browser-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .policy-header {
        padding: 30px 15px;
    }
    
    .policy-header h1 {
        font-size: 1.8rem;
    }
    
    .cookie-policy-content h2 {
        font-size: 1.6rem;
    }
    
    .browser-list {
        grid-template-columns: 1fr;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}