/**
 * Estilos personalizados - Webinar Grou Lagún
 * Colores: Azul oscuro y Salmón
 */

body {
    font-family: 'Inter', sans-serif;
}

/* Gradiente de fondo con imagen */
.gradient-bg {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(255, 255, 255, 0.95) 100%),
                url('../img/bg.png') center/cover no-repeat;
    background-attachment: fixed;
}

/* Texto con gradiente salmón */
.gradient-text {
    background: linear-gradient(135deg, #ff8a80 0%, #fa8072 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efecto hover en tarjetas */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 138, 128, 0.2);
}

/* Animación pulse para el botón */
.pulse-button {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
    }
}

/* Animación fade-in */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Efecto glass */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile Form Popup */
.form-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-popup-overlay.active {
    display: block;
    opacity: 1;
}

.form-popup-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}

.form-popup-container.active {
    transform: translateY(0);
}

.form-popup-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px 24px 0 0;
    z-index: 10;
}

.form-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.form-popup-close:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.mobile-cta-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff8a80 0%, #fa8072 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(255, 138, 128, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: none;
}

.mobile-cta-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* Mostrar botón solo en mobile */
@media (max-width: 768px) {
    .mobile-cta-button {
        display: block;
    }
    
    .desktop-form-container {
        display: none !important;
    }
}

/* Desktop: ocultar overlay y mostrar formulario normal */
@media (min-width: 769px) {
    .form-popup-overlay,
    .form-popup-container {
        display: none !important;
    }
    
    .mobile-cta-button {
        display: none !important;
    }
}

/* Ajustes del formulario en el popup mobile */
@media (max-width: 768px) {
    .form-popup-container .form-content {
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        position: static;
    }
    
    .form-popup-container .desktop-form-title {
        display: none;
    }
    
    .form-popup-container .glass-effect {
        background: transparent;
        backdrop-filter: none;
    }
}
