/* CSS Moderno con Tailwind - Estilos Personalizados */

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 175, 55, 0.4); /* Borde dorado más brillante */
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* Texto Degradado Dorado */
.gold-gradient-text {
    background: linear-gradient(to right, #D4AF37, #F3E5AB, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

/* Botón Dorado (Luxury) */
.gold-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #AA8A2A 100%);
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gold-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s;
}

.gold-btn:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.gold-btn:hover::after {
    left: 150%;
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse-btn {
    animation: pulse-gold 2.5s infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Optimizaciones nativas para inputs de fecha/hora en dark mode */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Scroll Reveal Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.revealed {
    opacity: 1;
    transform: translate(0);
}

/* Delays de Transición */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Animación de suspensión/vibración de motor Cadillac */
@keyframes car-bump {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-0.8px) rotate(-0.15deg); }
    50% { transform: translateY(0.4px) rotate(0.08deg); }
    75% { transform: translateY(-0.4px) rotate(-0.08deg); }
}

/* Clases de giro de ruedas optimizadas */
.wheel-spinning {
    animation: spin 0.35s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Efecto de enfoque y resplandor para los inputs del formulario */
input:focus, select:focus {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    border-color: #D4AF37 !important;
}

/* Animación de revelado suave para la tarjeta de tarifas */
#fare-estimate-card:not(.hidden) {
    animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Speed Dial (Menú Flotante) Estilos */
#speed-dial-menu {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

#speed-dial-menu.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#speed-dial-toggle {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

#speed-dial-toggle.active {
    background: linear-gradient(135deg, #AA8A2A 0%, #755F1B 100%);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.6);
    color: #000;
}

#speed-dial-toggle.active #speed-dial-icon {
    transform: rotate(90deg);
}

/* Control de rutas/iconos dentro del SVG del gatillo */
#speed-dial-toggle.active .contact-icon {
    display: none;
}

#speed-dial-toggle.active .close-icon {
    display: block !important;
}

/* Posición dinámica del concierge al abrir speed dial */
#floating-contact-container.menu-open #concierge-wrapper {
    transform: translateY(-210px);
}

/* Animaciones del Welcome Loader */
@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes draw {
    0% {
        stroke-dashoffset: 283;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Animación de Vuelo Responsivo del Logotipo de SayGo */
#loader-logo-wrap.animating {
    animation: flyHtmlPointer 5.0s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes flyHtmlPointer {
    /* Center initial logo */
    0% {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
    22% {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* 1. Fly to Florida (Miami: 91.7% left, 92.7% top) & land with expand */
    29% {
        left: 91.7%;
        top: 92.7%;
        transform: translate(-50%, -50%) scale(0.6);
    }
    31% {
        left: 91.7%;
        top: 92.7%;
        transform: translate(-50%, -50%) scale(0.95); /* Lands & expands */
    }
    37% {
        left: 91.7%;
        top: 92.7%;
        transform: translate(-50%, -50%) scale(0.6);  /* Takeoff */
    }
    
    /* 2. Fly to Alabama (67.2% left, 73.3% top) & land with expand */
    42% {
        left: 67.2%;
        top: 73.3%;
        transform: translate(-50%, -50%) scale(0.6);
    }
    44% {
        left: 67.2%;
        top: 73.3%;
        transform: translate(-50%, -50%) scale(0.95); /* Lands & expands */
    }
    49% {
        left: 67.2%;
        top: 73.3%;
        transform: translate(-50%, -50%) scale(0.6);  /* Takeoff */
    }
    
    /* 3. Fly to Tennessee (70.3% left, 56.4% top) & land with expand */
    54% {
        left: 70.3%;
        top: 56.4%;
        transform: translate(-50%, -50%) scale(0.6);
    }
    56% {
        left: 70.3%;
        top: 56.4%;
        transform: translate(-50%, -50%) scale(0.95); /* Lands & expands */
    }
    61% {
        left: 70.3%;
        top: 56.4%;
        transform: translate(-50%, -50%) scale(0.6);  /* Takeoff */
    }
    
    /* 4. Fly to Georgia (Atlanta: 74.5% left, 65.7% top) & land with expand */
    66% {
        left: 74.5%;
        top: 65.7%;
        transform: translate(-50%, -50%) scale(0.6);
    }
    68% {
        left: 74.5%;
        top: 65.7%;
        transform: translate(-50%, -50%) scale(0.95); /* Lands & expands */
    }
    73% {
        left: 74.5%;
        top: 65.7%;
        transform: translate(-50%, -50%) scale(0.6);  /* Takeoff */
    }
    
    /* 5. Fly to North Carolina (81.3% left, 59.0% top) & land with expand */
    78% {
        left: 81.3%;
        top: 59.0%;
        transform: translate(-50%, -50%) scale(0.6);
    }
    80% {
        left: 81.3%;
        top: 59.0%;
        transform: translate(-50%, -50%) scale(0.95); /* Lands & expands */
    }
    85% {
        left: 81.3%;
        top: 59.0%;
        transform: translate(-50%, -50%) scale(0.6);  /* Takeoff */
    }
    
    /* 6. Fly to South Carolina (80.2% left, 67.4% top) & land with expand */
    90% {
        left: 80.2%;
        top: 67.4%;
        transform: translate(-50%, -50%) scale(0.6);
    }
    92% {
        left: 80.2%;
        top: 67.4%;
        transform: translate(-50%, -50%) scale(0.95); /* Lands & expands */
        opacity: 1;
    }
    97% {
        left: 80.2%;
        top: 67.4%;
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
    }
    
    /* Fade out loader exit */
    100% {
        left: 80.2%;
        top: 67.4%;
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
}

/* Ocultar vectores de Alaska y Hawaii */
.ak, .hi {
    display: none !important;
}

/* Botón CTA con brillo y pulso de lujo combinados */
.cta-luxury-pulse {
    position: relative;
    overflow: hidden;
    animation: cta-pulse-glow 2.2s infinite ease-in-out;
}

.cta-luxury-pulse::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: cta-sheen-sweep 4.5s infinite ease-in-out;
}

@keyframes cta-pulse-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25); }
    50% { box-shadow: 0 4px 22px rgba(212, 175, 55, 0.65); }
}

@keyframes cta-sheen-sweep {
    0% { left: -100%; }
    18% { left: 160%; }
    100% { left: 160%; }
}
