/**
 * Estilos para Sistema de Cookies - Tema VHS Vibes
 */

/* ================================
   BANNER DE CONSENTIMIENTO
   ================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #95a5a6 100%);
    color: #fff;
    z-index: 10000;
    border-top: 3px solid #95a5a6;
    box-shadow: 0 -5px 30px rgba(149, 165, 166, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.cookie-actions .btn-primary {
    background: #95a5a6;
    border-color: #95a5a6;
    color: white;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.cookie-actions .btn-primary:hover {
    background: #5a52e3;
    border-color: #5a52e3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.cookie-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cookie-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-actions .btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.cookie-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* ================================
   MODAL DE PREFERENCIAS
   ================================ */

.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #95a5a6 100%);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(149, 165, 166, 0.3);
    border: 2px solid rgba(149, 165, 166, 0.3);
    color: white;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.cookie-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(149, 165, 166, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-modal-body > p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.cookie-types {
    margin-bottom: 2rem;
}

.cookie-type-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cookie-type-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.4);
}

.cookie-type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cookie-type-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.required-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #95a5a6;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(149, 165, 166, 0.3);
    margin-left: 0.5rem;
}

.cookie-type-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

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

.cookie-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cookie-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cookie-toggle input:checked + .slider {
    background-color: #95a5a6;
    border-color: #95a5a6;
}

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

.cookie-toggle input:disabled + .slider {
    background-color: #95a5a6;
    border-color: #95a5a6;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-info {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.cookie-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #95a5a6;
    font-weight: 600;
}

.cookie-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(149, 165, 166, 0.3);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-modal-footer .btn-primary {
    background: #95a5a6;
    border-color: #95a5a6;
    color: white;
}

.cookie-modal-footer .btn-primary:hover {
    background: #5a52e3;
    border-color: #5a52e3;
    transform: translateY(-1px);
}

.cookie-modal-footer .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.cookie-modal-footer .btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
}

.cookie-modal-footer .btn-outline-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.cookie-modal-footer .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* ================================
   ANIMACIONES
   ================================ */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
        min-width: 0;
    }
    
    .cookie-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .cookie-modal-overlay {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .cookie-modal-body {
        padding: 1.5rem;
    }
    
    .cookie-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
    
    .cookie-type-item {
        padding: 1rem;
    }
    
    .cookie-type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 0.75rem;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ================================
   MODO ALTO CONTRASTE
   ================================ */

@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border-top-color: #fff;
    }
    
    .cookie-modal-content {
        background: #000;
        border-color: #fff;
    }
    
    .cookie-type-item {
        border-color: #fff;
    }
}

/* ================================
   REDUCIR MOVIMIENTO
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-preferences-modal,
    .cookie-modal-content,
    .cookie-toggle .slider,
    .cookie-toggle .slider:before,
    .btn {
        transition: none;
    }
    
    .cookie-icon {
        animation: none;
    }
}

/* ================================
   BANNER DE VERIFICACIÓN DE EMAIL
   ================================ */

.email-verification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #95a5a6 100%);
    color: #fff;
    z-index: 10000;
    border-bottom: 3px solid #95a5a6;
    box-shadow: 0 5px 30px rgba(149, 165, 166, 0.3);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.email-verification-banner.hide {
    transform: translateY(-100%);
}

.email-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.email-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.email-text {
    flex: 1;
    min-width: 0;
}

.email-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.email-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.email-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.email-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.email-actions .btn-primary {
    background: #95a5a6;
    border-color: #95a5a6;
    color: white;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.email-actions .btn-primary:hover {
    background: #5a52e3;
    border-color: #5a52e3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.email-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Ajuste del body para compensar el banner fijo */
body.email-banner-visible {
    padding-top: 120px !important;
}

/* Responsive para banner de email */
@media (max-width: 768px) {
    .email-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .email-actions {
        justify-content: center;
        width: 100%;
    }
    
    .email-actions .btn {
        flex: 1;
        min-width: 0;
    }
    
    .email-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .email-banner-content {
        padding: 0.75rem;
    }
    
    .email-text h3 {
        font-size: 1rem;
    }
    
    .email-text p {
        font-size: 0.8rem;
    }
    
    .email-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}