/**
 * SoulRideandFlow — Estilos personalizados
 * Complementa Tailwind con animaciones y detalles específicos.
 */

/* ── Smooth scrolling global ───────────────── */
html { scroll-behavior: smooth; }

/* ── Selection color ───────────────────────── */
::selection {
    background: rgba(235, 94, 36, 0.3);
    color: white;
}

/* ── Focus visible para accesibilidad ──────── */
*:focus-visible {
    outline: 2px solid #eb5e24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Alpine.js cloak ───────────────────────── */
[x-cloak] { display: none !important; }

/* ── Solo lectores de pantalla ─────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Transiciones de página ────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

main { animation: fadeIn 0.4s ease-out; }

/* ── Scrollbar sutil ───────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Prose overrides (páginas legales) ──────── */
.prose h1 { font-family: 'Outfit', sans-serif; font-size: 1.75rem; }
.prose h2 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; color: rgba(255,255,255,0.8); }
.prose p  { color: rgba(255,255,255,0.5); }
.prose strong { color: rgba(255,255,255,0.7); }

/* ── Animación de pulso para badge en vivo ─── */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(235, 94, 36, 0.4); }
    50%      { opacity: 0.8; box-shadow: 0 0 0 6px rgba(235, 94, 36, 0); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* ── Brillo sutil en botones .btn-srf (capa GPU) ─ */
.btn-srf {
    position: relative;
    overflow: hidden;
}
.btn-srf::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 45%,
        transparent 55%
    );
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.btn-srf:hover:not(:disabled)::before {
    transform: translateX(120%);
}

/* ── Input autofill override (Chrome) ──────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #1e1e1e inset;
    -webkit-text-fill-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

.srf-logo {
    display: block;
    object-fit: contain;
}

.srf-logo--nav {
    max-width: 11rem;
}
.srf-whatsapp-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.srf-whatsapp-float:hover {
    background: #20bd5a;
    transform: scale(1.06);
    box-shadow: 0 14px 32px -6px rgba(37, 211, 102, 0.65);
}

.srf-whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.srf-whatsapp-float__icon {
    width: 1.75rem;
    height: 1.75rem;
}

.srf-whatsapp-float--above-bar {
    bottom: max(5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
}

/* ── Print styles para comprobante ─────────── */
@media print {
    header, footer, nav, .no-print, .srf-whatsapp-float { display: none !important; }
    body { background: white; color: black; }
    main { padding-top: 0; }
}
