.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #1c3a8d; 
}

.cookie-banner { color: #0f172a; }
.cookie-banner__text h3 { color: #0f172a; }

.cookie-btn--config {
  background: #666;
  color: #fff;
  border: 2px solid #666;
}
.cookie-btn--config:hover {
  background:#666;
}

.cookie-banner--show {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner__text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #525252;
}

.cookie-banner__text a {
    color: #1c3a8d;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner__text a:hover {
    color: #1c3a8d;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn--accept {
    background: #1c3a8d;
    color: white;
}

.cookie-btn--accept:hover {
    background: #1c3a8d;
    transform: translateY(-2px);
}

.cookie-btn--reject {
    background: #666;
    color: #ffffff;
    border: 2px solid #666;
}

.cookie-btn--reject:hover {
    background: #666;
    border-color: #888;
}



.cookie-btn--secondary {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn--secondary:hover {
    background: #e0e0e0;
}

/* Modal de Configuración */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal--show {
    opacity: 1;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.cookie-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal--show .cookie-modal__content {
    transform: scale(1);
}

.cookie-modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal__header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal__intro {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-modal__footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Categorías de Cookies */
.cookie-category {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.cookie-category:hover {
    border-color: #1c3a8d;
}

.cookie-category__header {
    margin-bottom: 0.75rem;
}

.cookie-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #1c3a8d;
}

.cookie-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-checkbox__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cookie-badge {
    background: #1c3a8d;
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-category__description {
    margin: 0.5rem 0 0.75rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-details {
    margin-top: 0.75rem;
}

.cookie-details summary {
    cursor: pointer;
    color: #1c3a8d;
    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
    padding: 0.5rem 0;
}

.cookie-details summary:hover {
    color: #1c3a8d;
}

.cookie-list {
    margin: 0.75rem 0 0 0;
    padding-left: 1.5rem;
    list-style: none;
}

.cookie-list li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.85rem;
}

.cookie-list code {
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1c3a8d;
    font-weight: 600;
}

/* Botón flotante de configuración de cookies (opcional) */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #1c3a8d;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
        padding: 0.875rem 1rem;
    }

    .cookie-modal__content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }

    .cookie-modal__header h2 {
        font-size: 1.25rem;
    }

    .cookie-modal__footer {
        flex-direction: column;
    }

    .cookie-modal__footer .cookie-btn {
        width: 100%;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-settings-btn {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner__text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner__text p {
        font-size: 0.875rem;
    }

    .cookie-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* Animaciones adicionales */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-banner {
    animation: slideUp 0.4s ease-out;
}

.cookie-modal__overlay {
    animation: fadeIn 0.3s ease-out;
}