/* --- COOKIES BANNER & MODAL --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Color oscuro para contraste */
    color: #fff;
    padding: 1.5rem 1rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.cookie-banner.hidden {
    display: none !important;
}

.cookie-banner-content {
    max-width: 75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.cookie-banner-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cookie-banner-content a {
    color: #ffd8ba; /* Tono cálido corporativo para el link */
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: #ffead5;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-overlay.hidden {
    display: none !important;
}

.cookie-modal {
    background: #fff;
    color: #333;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.cookie-modal-header {
    background: linear-gradient(135deg, #c36a33 0%, #914f26 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-close-modal:hover {
    transform: scale(1.2);
}

.cookie-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-modal-body > p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #666;
}

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

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
    color: #333;
}

.cookie-option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

/* Toggle switch styling */
.cookie-option-switch {
    position: relative;
    width: 50px;
    height: 26px;
    margin-left: 1rem;
    flex-shrink: 0;
}

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

.switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.switch-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-label {
    background-color: #914f26; /* Color primario configurado en CSS */
}

input:focus + .switch-label {
    box-shadow: 0 0 1px #914f26;
}

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

/* Button styles específicos para cookies */
.btn-cookie {
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-cookie:focus-visible {
    outline: 3px solid #ffead5;
    outline-offset: 3px;
}

.btn-cookie-primary {
    background: linear-gradient(135deg, #c36a33 0%, #914f26 100%);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-cookie-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-cookie-secondary {
    background: #6c757d;
    color: white;
}

.btn-cookie-secondary:hover {
    background: #5a6268;
    transform: scale(1.05);
}

.btn-cookie-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-cookie-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.cookie-modal-footer {
    padding: 1.25rem;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fcfcfc;
}
