/* ============================================================
   RUMBO STUDIO — Estilos compartidos (multipágina)
   ============================================================ */

html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; }
h1, h2, h3, h4, .font-display { font-family: 'Lato', sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.eyebrow { font-family: 'JetBrains Mono', monospace; }

::selection { background: #f2650f; color: white; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: #3a3a3f; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #f2650f; }

.brand-gradient-text {
    background: linear-gradient(120deg, #f97316 0%, #8a5f9a 52%, #3a5ba0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Acentos secundarios (tonos del logo) */
.eyebrow-blue { color: #6f8fd6; }
.icon-badge.badge-blue { background: rgba(58,91,160,0.14); }
.icon-badge.badge-blue i { color: #6f8fd6 !important; }
.icon-badge.badge-violet { background: rgba(138,95,154,0.16); }
.icon-badge.badge-violet i { color: #b58fc4 !important; }
/* Botón secundario azul */
.btn-outline-blue { border: 1px solid rgba(111,143,214,0.55); color: #cddcff; }
.btn-outline-blue:hover { border-color: #6f8fd6; }

/* ===== Navegación ===== */
.nav-link { position: relative; }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0%; height: 2px;
    background: #f2650f; transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #fff; }

/* Dropdown de servicios */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 230px; padding: 8px; margin-top: 0;
    background: #242427; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 60;
}
/* Puente invisible: cubre el hueco entre el botón y el menú para que el mouse no se "pierda" */
.nav-dropdown-menu::before {
    content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 20px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: #d4d4d8; transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-item:hover { background: rgba(242,101,15,0.12); color: #fff; }
.nav-dropdown-item i { color: #f2650f; width: 18px; text-align: center; }

/* Menú móvil */
#mobile-menu { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease; }
#mobile-menu.is-closed { transform: translateX(100%); opacity: 0; pointer-events: none; }

/* ===== Tarjetas ===== */
.lift-card { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s ease, box-shadow 0.35s ease; }
.lift-card:hover { transform: translateY(-8px); border-color: #f2650f; box-shadow: 0 20px 40px -20px rgba(242,101,15,0.35); }
.icon-badge { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.35s ease; }
.lift-card:hover .icon-badge { transform: scale(1.12) rotate(-6deg); }

/* ===== Botones (animación moderna: cambio de color + figura interna) ===== */
.btn-glow { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease; }
.btn-glow:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 34px -10px rgba(58,91,160,0.55); }
/* Capa que cambia de color: naranja → violeta → azul (tonos del logo) */
.btn-glow::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, #f2650f 0%, #7a5f8f 50%, #3a5ba0 100%);
    background-size: 220% 100%; background-position: 0% 50%;
    opacity: 0; transition: opacity 0.4s ease;
}
.btn-glow:hover::before { opacity: 1; animation: btnHue 2.6s ease-in-out infinite alternate; }
@keyframes btnHue { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* Figura interna que se desplaza dentro del botón */
.btn-glow::after {
    content: ''; position: absolute; z-index: -1; top: 50%; left: 0;
    width: 48px; height: 48px; border-radius: 9999px; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%);
    opacity: 0; transition: opacity 0.3s ease;
}
.btn-glow:hover::after { opacity: 1; animation: btnBlob 1.9s ease-in-out infinite; }
@keyframes btnBlob { 0% { left: 0%; } 50% { left: 100%; } 100% { left: 0%; } }

/* ===== Proceso ===== */
.step-num { transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, border-color 0.35s ease; }
.step-card:hover .step-num {
    transform: scale(1.1); color: #fff; border-color: #f2650f; background: #f2650f;
    box-shadow: 0 0 0 8px rgba(242,101,15,0.12);
}

/* ===== Imágenes ===== */
.img-zoom-wrap { overflow: hidden; }
.img-zoom-wrap img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.6s ease; }
.img-zoom-wrap:hover img { transform: scale(1.08); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.logo-spin { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.logo-spin:hover { transform: rotate(12deg); }
.input-field { transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.input-field:focus { box-shadow: 0 0 0 3px rgba(242,101,15,0.18); }

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 58px; height: 58px;
    border-radius: 9999px; background: #25D366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px -6px rgba(37,211,102,0.6); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px -6px rgba(37,211,102,0.75); }
.whatsapp-float i { font-size: 1.6rem; color: white; }
.whatsapp-float::before {
    content: ''; position: absolute; inset: 0; border-radius: 9999px; background: #25D366;
    animation: wa-pulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.9); opacity: 0; } }

/* ===== Galería ===== */
.gallery-tile { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, opacity 0.4s ease; }
.gallery-tile:hover { transform: translateY(-6px); border-color: #f2650f; }
.gallery-tile.is-hidden { display: none; }

/* Filtros de galería */
.filter-btn {
    padding: 8px 18px; border-radius: 9999px; font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12); color: #8c8c93; transition: all 0.25s ease;
}
.filter-btn:hover { color: #fff; border-color: rgba(242,101,15,0.5); }
.filter-btn.is-active { background: #f2650f; color: #fff; border-color: #f2650f; }

/* ===== Planes / Pricing ===== */
.plan-card { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s ease, box-shadow 0.35s ease; }
.plan-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.6); }
.plan-featured { border-color: #f2650f; box-shadow: 0 24px 50px -24px rgba(242,101,15,0.45); }

/* ===== Animaciones Dinámicas (Hero) ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 1s cubic-bezier(0.25, 0.4, 0.25, 1) forwards; opacity: 0; }
.delay-100 { animation-delay: 100ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

@keyframes shapeEnter {
    from { opacity: 0; transform: translateY(-150px) rotate(calc(var(--rot) - 15deg)); }
    to { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
}
@keyframes shapeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}
.shape-container {
    position: absolute; opacity: 0;
    animation: shapeEnter 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
}
.shape-motion {
    width: 100%; height: 100%;
    animation: shapeFloat 12s ease-in-out infinite;
}
.elegant-shape {
    position: absolute; inset: 0; border-radius: 9999px;
    backdrop-filter: blur(2px); border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
}
.elegant-shape::after {
    content: ''; position: absolute; inset: 0; border-radius: 9999px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
}

/* ===== Animación del Footer Neón (RUMBO) ===== */
@keyframes neonTravel {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}
.neon-trace {
    stroke-dasharray: 150 850;
    animation: neonTravel 5s linear infinite;
    filter: drop-shadow(0 0 4px #f2650f) drop-shadow(0 0 10px #b6552f);
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .whatsapp-float::before { animation: none !important; }
}
