/* ================================
   Modal de Cookies
   Estilo coherente con el diseño minimalista del sitio
   ================================ */

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d4d4d8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

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

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e4e4e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f5;
    border-radius: 12px 12px 0 0;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #18181b;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #71717a;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.cookie-close-btn:hover {
    background: #e4e4e7;
    color: #18181b;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-body > p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #18181b;
}

.cookie-custom-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4e4e7;
}

.cookie-custom-panel h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #18181b;
}

.cookie-option {
    background: #f9f9f9;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.cookie-option:hover {
    border-color: #d4d4d8;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-option-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-option-info strong {
    font-size: 15px;
    color: #18181b;
}

.cookie-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.cookie-badge-required {
    background: #E91E63;
    color: #ffffff;
}

.cookie-option-desc {
    margin: 0;
    font-size: 13px;
    color: #71717a;
    line-height: 1.5;
}

.cookie-option-services {
    margin: 8px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-option-services span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    font-size: 12px;
    color: #18181b;
}

.cookie-option-services i {
    font-size: 14px;
}

/* Switch personalizado */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d4d4d8;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #E91E63;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e4e4e7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Inter, Arial, sans-serif;
}

.cookie-btn i {
    font-size: 14px;
}

.cookie-btn-primary {
    background: #E91E63;
    color: #ffffff;
    border-color: #E91E63;
}

.cookie-btn-primary:hover {
    background: #c2185b;
    border-color: #c2185b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.cookie-btn-secondary {
    background: #71717a;
    color: #ffffff;
    border-color: #71717a;
}

.cookie-btn-secondary:hover {
    background: #52525b;
    border-color: #52525b;
    transform: translateY(-1px);
}

.cookie-btn-outline {
    background: transparent;
    color: #18181b;
    border-color: #d4d4d8;
}

.cookie-btn-outline:hover {
    background: #f4f4f5;
    border-color: #71717a;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-modal {
        max-width: 100%;
        margin: 10px;
        overflow-x: hidden;
    }
    
    .cookie-modal-header {
        padding: 18px;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .cookie-modal-body {
        padding: 18px;
    }
    
    .cookie-modal-footer {
        padding: 16px 18px;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

