/* ============================================================
   CRYSTAL RIDE — styles.css
   Hoja de estilos completa del sitio. Incluye:
   1) Estilos de marca / componentes custom
   2) CSS estático equivalente a Tailwind (reemplaza el CDN)
   ============================================================ */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 5px; }

.card-hover { transition: all 0.3s ease-in-out; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(168,85,247,0.4); }

.btn-gradient { background: linear-gradient(90deg,#00d4ff 0%,#0db4ff 100%); transition: all 0.3s ease; }
.btn-gradient:hover { filter: brightness(1.1); transform: scale(1.05); }

/* Botón secundario del CTA final: misma jerarquía visual que btn-gradient
   pero con menor peso, para distinguir "agendar ahora" de "solo consultar". */
.btn-outline { background: transparent; border: 2px solid #a855f7; color: #ffffff; transition: all 0.3s ease; }
.btn-outline:hover { background: rgba(168,85,247,0.15); transform: scale(1.05); }

.glassmorphism { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }

.neon-title { color:#fff; text-shadow:0 0 5px #fff,0 0 10px #fff,0 0 20px #a855f7,0 0 40px #a855f7,0 0 80px #a855f7; animation: neon-glow 2s ease-in-out infinite alternate; }
@keyframes neon-glow {
    from { text-shadow:0 0 5px #fff,0 0 10px #fff,0 0 20px #a855f7,0 0 40px #a855f7; }
    to   { text-shadow:0 0 10px #fff,0 0 20px #fff,0 0 40px #a855f7,0 0 80px #a855f7,0 0 120px #a855f7; }
}

.logo-pulse { animation: pulse-purple 2.5s infinite; }
@keyframes pulse-purple {
    0%   { box-shadow:0 0 0 0px rgba(168,85,247,0.7); }
    70%  { box-shadow:0 0 0 20px rgba(168,85,247,0); }
    100% { box-shadow:0 0 0 0px rgba(168,85,247,0); }
}

.negotiation-gold { border:2px solid #ffd700; box-shadow:0 0 25px rgba(255,215,0,0.15); }

@keyframes pulse-red {
    0%   { box-shadow:0 0 0 0px rgba(239,68,68,0.7),0 0 30px rgba(239,68,68,0.2); }
    70%  { box-shadow:0 0 0 14px rgba(239,68,68,0),0 0 30px rgba(239,68,68,0.2); }
    100% { box-shadow:0 0 0 0px rgba(239,68,68,0),0 0 30px rgba(239,68,68,0.2); }
}
.aviso-importante { border:2px solid #ef4444; background:rgba(239,68,68,0.08); animation:pulse-red 2.5s infinite; }
.aviso-importante:hover { background:rgba(239,68,68,0.14); box-shadow:0 0 40px rgba(239,68,68,0.35); transform:translateY(-4px); transition:all 0.3s ease; }

.instagram-gradient { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.reveal { opacity:0; transform:translateY(32px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

#navbar { transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease; }
#navbar.scrolled { background:rgba(15,23,42,0.92); backdrop-filter:blur(12px); box-shadow:0 2px 20px rgba(0,0,0,0.4); }
.nav-link { position:relative; }
.nav-link::after { content:''; position:absolute; bottom:-2px; left:0; width:0; height:2px; background:#a855f7; transition:width 0.3s ease; }
.nav-link:hover::after { width:100%; }

/* ── FAQ acordeón: grid-template-rows en vez de max-height fijo ──
   0fr → 1fr se adapta automáticamente a cualquier largo de contenido,
   sin importar cuánto texto se agregue en el futuro. */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease;
}
.faq-answer > p { min-height: 0; overflow: hidden; }
.faq-answer.open { grid-template-rows: 1fr; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Botón flotante de WhatsApp: separado del borde inferior en móvil
   para no solaparse con el cierre del banner promocional ni con
   el último CTA de la página. */
#wa-float { transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease; }
#wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
#wa-float.wa-float-hidden { opacity: 0; pointer-events: none; }
@keyframes wa-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
#wa-float { animation: wa-bounce 3s ease-in-out infinite; }
#wa-float:hover { animation: none; }
@media (max-width: 480px) {
    #wa-float { bottom: calc(1rem + env(safe-area-inset-bottom)); right: 1rem; width: 3.5rem; height: 3.5rem; }
    #wa-float svg { width: 1.9rem; height: 1.9rem; }
}

/* ── PROMO 15% ── */
@keyframes shimmer-cyan { 0% { transform: translateX(-100%) skewX(-15deg); } 100% { transform: translateX(300%) skewX(-15deg); } }
@keyframes pulse-cyan {
    0%,100% { box-shadow: 0 0 0 0px rgba(0,212,255,0.5), 0 0 30px rgba(0,212,255,0.1); }
    70%     { box-shadow: 0 0 0 12px rgba(0,212,255,0), 0 0 30px rgba(0,212,255,0.15); }
}
.promo-descuento {
    border: 2px solid #00d4ff;
    background: linear-gradient(135deg, rgba(0,212,255,0.07) 0%, rgba(168,85,247,0.07) 100%);
    animation: pulse-cyan 3s ease-in-out infinite;
    position: relative; overflow: hidden;
}
.promo-descuento::before {
    content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.12), transparent);
    animation: shimmer-cyan 3.5s ease-in-out infinite; pointer-events: none;
}
.promo-descuento:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,212,255,0.25); transition: all 0.3s ease; }
.promo-badge { background: linear-gradient(90deg,#00d4ff,#0db4ff); color: #0f172a; font-weight: 800; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.3rem 1rem; border-radius: 999px; display: inline-block; margin-bottom: 1rem; }
.descuento-numero { font-size: clamp(3.5rem,9vw,5.5rem); font-weight: 900; line-height: 1; background: linear-gradient(90deg,#00d4ff 0%,#a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plazo-badge { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); border-radius: 0.75rem; padding: 0.5rem 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; color: #00d4ff; }

/* ── BANNER STICKY ── */
@keyframes slide-down { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-out-banner { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-100%); } }
#promo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: linear-gradient(90deg,#0369a1 0%,#0e7490 50%,#0369a1 100%); border-bottom: 1px solid rgba(0,212,255,0.4); box-shadow: 0 2px 20px rgba(0,212,255,0.2); animation: slide-down 0.5s ease forwards; will-change: transform,opacity; }
#promo-banner.hiding { animation: fade-out-banner 0.5s ease forwards; }
#promo-banner-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: rgba(0,212,255,0.8); width: 100%; transform-origin: left; animation: shrink-bar 5s linear forwards; }
@keyframes shrink-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
body.banner-visible #navbar { top: 40px; }
@media (max-width: 379px) { #promo-banner-full { display: none; } #promo-banner-mini { display: flex; } }
@media (min-width: 380px) { #promo-banner-full { display: flex; } #promo-banner-mini { display: none; } }

/* ── Accesibilidad: foco visible por teclado ──
   Restaura un anillo de foco claro en todos los elementos
   interactivos cuando se navega con teclado (Tab), sin mostrarlo
   en clics de mouse. Cumple WCAG 2.2 AA en navegación por teclado. */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respeta la preferencia del sistema por menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   CSS ESTÁTICO — equivalente a las utilidades Tailwind usadas
   Reemplaza la dependencia del CDN (compilación JIT en el
   navegador del cliente) por reglas ya compiladas.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Outfit', sans-serif; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ── Display / posición ── */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }

/* ── Posicionamiento absoluto ── */
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-1\/2 { top: 50%; }
.right-3 { right: 0.75rem; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.-top-24 { top: -6rem; }
.-right-24 { right: -6rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }

/* ── Flexbox / Grid ── */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ── Gaps ── */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* ── Padding ── */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-14 { padding: 3.5rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-20 { padding-top: 5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }

/* ── Márgenes ── */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* ── Dimensiones ── */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.w-40 { width: 10rem; }
.h-40 { height: 10rem; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.w-72 { width: 18rem; }
.h-72 { height: 18rem; }
.h-1 { height: 0.25rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.min-h-screen { min-height: 100vh; }
.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* ── Tipografía ── */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }
.font-light { font-weight: 300; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: 'Courier New', monospace; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.line-through { text-decoration: line-through; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ── Colores de texto ── */
.text-purple-400 { color: #c084fc; }
.text-purple-500 { color: #a855f7; }
.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7e22ce; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-800 { color: #1f2937; }
.text-cyan-200 { color: #a5f3fc; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: #22d3ee; }
.text-cyan-500 { color: #06b6d4; }
.text-yellow-500 { color: #eab308; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-green-400 { color: #4ade80; }
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-\[\#0f172a\] { color: #0f172a; }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/90 { color: rgba(255,255,255,0.9); }

/* ── Colores de fondo ── */
.bg-purple-500 { background-color: #a855f7; }
.bg-purple-600 { background-color: #9333ea; }
.bg-yellow-500 { background-color: #eab308; }
.bg-white { background-color: #ffffff; }
.bg-purple-500\/20 { background-color: rgba(168,85,247,0.2); }
.bg-yellow-500\/10 { background-color: rgba(234,179,8,0.1); }
.bg-\[\#0f172a\] { background-color: #0f172a; }
.bg-\[\#0f172a\]\/60 { background-color: rgba(15,23,42,0.6); }
.bg-\[\#1e293b\] { background-color: #1e293b; }
.bg-\[\#25D366\] { background-color: #25D366; }
.hover\:bg-\[\#20ba5a\]:hover { background-color: #20ba5a; }
.hover\:bg-white\/5:hover { background-color: rgba(255,255,255,0.05); }

/* ── Bordes ── */
.border { border-width: 1px; border-style: solid; border-color: currentColor; }
.border-2 { border-width: 2px; border-style: solid; border-color: currentColor; }
.border-4 { border-width: 4px; border-style: solid; border-color: currentColor; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: currentColor; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; border-top-color: currentColor; }
.border-b-4 { border-bottom-width: 4px; border-bottom-style: solid; border-bottom-color: currentColor; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; border-left-color: currentColor; }
.border-l-8 { border-left-width: 8px; border-left-style: solid; border-left-color: currentColor; }
.border-dashed { border-style: dashed; }
.border-purple-400 { border-color: #c084fc; }
.border-purple-500 { border-color: #a855f7; }
.border-purple-600 { border-color: #9333ea; }
.border-purple-700 { border-color: #7e22ce; }
.border-gray-800 { border-color: #1f2937; }
.border-cyan-500 { border-color: #06b6d4; }
.border-yellow-500 { border-color: #eab308; }
.border-purple-500\/20 { border-color: rgba(168,85,247,0.2); }
.border-purple-500\/30 { border-color: rgba(168,85,247,0.3); }
.border-purple-500\/40 { border-color: rgba(168,85,247,0.4); }
.border-purple-500\/50 { border-color: rgba(168,85,247,0.5); }
.border-cyan-500\/20 { border-color: rgba(6,182,212,0.2); }
.border-yellow-500\/20 { border-color: rgba(234,179,8,0.2); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ── Sombras ── */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.3); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.3); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
.shadow-\[0_0_10px_\#a855f7\] { box-shadow: 0 0 10px #a855f7; }
.shadow-\[0_0_20px_\#a855f7\] { box-shadow: 0 0 20px #a855f7; }
.shadow-\[0_0_30px_rgba\(168\,85\,247\,0\.3\)\] { box-shadow: 0 0 30px rgba(168,85,247,0.3); }
.shadow-\[0_0_40px_rgba\(168\,85\,247\,0\.15\)\] { box-shadow: 0 0 40px rgba(168,85,247,0.15); }
.shadow-\[0_4px_20px_rgba\(37\,211\,102\,0\.5\)\] { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
.hover\:shadow-\[0_20px_40px_rgba\(168\,85\,247\,0\.2\)\]:hover { box-shadow: 0 20px 40px rgba(168,85,247,0.2); }
.hover\:shadow-\[0_20px_40px_rgba\(168\,85\,247\,0\.4\)\]:hover { box-shadow: 0 20px 40px rgba(168,85,247,0.4); }
.hover\:shadow-\[0_20px_40px_rgba\(168\,85\,247\,0\.6\)\]:hover { box-shadow: 0 20px 40px rgba(168,85,247,0.6); }
.hover\:shadow-\[0_20px_40px_rgba\(168\,85\,247\,0\.25\)\]:hover { box-shadow: 0 20px 40px rgba(168,85,247,0.25); }
.hover\:shadow-\[0_30px_60px_rgba\(168\,85\,247\,0\.25\)\]:hover { box-shadow: 0 30px 60px rgba(168,85,247,0.25); }

/* ── Filtros / blur ── */
.blur-\[100px\] { filter: blur(100px); }
.opacity-30 { opacity: 0.3; }
.object-cover { object-fit: cover; }

/* ── Transformaciones ──
   Usa variables CSS para componer rotate + translate + scale cuando
   varias utilidades de transform caen sobre el mismo elemento (por
   ejemplo el rótulo "OPCIONAL": rotate-45 + translate-x-9 + translate-y-11
   a la vez). Con reglas de "transform" literales, solo la última
   regla en cascada ganaría y las demás se perderían. */
.transform, [class*="translate-"], [class*="scale-"], [class*="rotate-"] {
    --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-45 { --tw-rotate: 45deg; }
.translate-x-9 { --tw-translate-x: 2.25rem; }
.translate-y-11 { --tw-translate-y: 2.75rem; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.hover\:-translate-y-2:hover { --tw-translate-y: -0.5rem; }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.group:hover .group-hover\:scale-150 { --tw-scale-x: 1.5; --tw-scale-y: 1.5; }

/* ── Transiciones ── */
.transition-all { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }

/* ── Otros ── */
.cursor-default { cursor: default; }
.fill-current { fill: currentColor; }
.fill-white { fill: #ffffff; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ── Hover / focus / group genéricos ── */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-purple-400:hover { color: #c084fc; }
.hover\:opacity-80:hover { opacity: 0.8; }
.focus\:outline-none:focus { outline: none; }
.group:hover .group-hover\:opacity-50 { opacity: 0.5; }
.group:hover .group-hover\:text-purple-400 { color: #c084fc; }

/* ═══════════ RESPONSIVE: sm (≥640px) ═══════════ */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .sm\:h-40 { height: 10rem; }
    .sm\:w-40 { width: 10rem; }
    .sm\:mb-6 { margin-bottom: 1.5rem; }
    .sm\:mb-8 { margin-bottom: 2rem; }
    .sm\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
    .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

/* ═══════════ RESPONSIVE: md (≥768px) ═══════════ */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:w-1\/4 { width: 25%; }
    .md\:w-3\/4 { width: 75%; }
    .md\:w-48 { width: 12rem; }
    .md\:h-48 { height: 12rem; }
    .md\:items-end { align-items: flex-end; }
    .md\:justify-end { justify-content: flex-end; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:text-left { text-align: left; }
    .md\:text-right { text-align: right; }
    .md\:p-12 { padding: 3rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-8xl { font-size: 6rem; line-height: 1; }
    .md\:text-9xl { font-size: 8rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

/* ═══════════ RESPONSIVE: lg (≥1024px) ═══════════ */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
