[hidden] {
    display: none !important;
}
/* ==========================================================
   Sin Fronteras · estilos complementarios a Tailwind
   (animaciones, patrones y componentes que Tailwind no cubre)
   ========================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

/* Enlaces sin color propio */
a:not([class*="text-"]) {
    color: #0e2a5e;
}
a:not([class*="text-"]):hover {
    color: #c94a06;
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f26a1b;
    outline-offset: 2px;
}

/* Patrones de fondo */
.sf-dots {
    background-image: radial-gradient(#c3d4ea 1.3px, transparent 1.3px);
    background-size: 18px 18px;
}
.sf-dots-dark {
    background-image: radial-gradient(#22396a 1.3px, transparent 1.3px);
    background-size: 18px 18px;
}
.sf-ribs {
    background-image: repeating-linear-gradient(
        90deg,
        rgba(14, 42, 94, 0.07) 0 6px,
        transparent 6px 14px
    );
}

/* Botones y tarjetas */
.sf-btn {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.sf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 31, 69, 0.18);
}
.sf-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.sf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(10, 31, 69, 0.14);
}
.sf-zoom {
    transition: transform 0.5s ease;
}
.sf-card:hover .sf-zoom {
    transform: scale(1.06);
}
.sf-nav a:hover {
    color: #c94a06;
}

/* Preguntas frecuentes */
.sf-faq:hover {
    background: #f5f8fc;
}
.faq-icon {
    background: #eef4fb;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}
.sf-faq[aria-expanded="true"] .faq-icon {
    background: #f26a1b;
    transform: rotate(45deg);
}

/* Calculadora rápida (inicio) */
.mini-cell {
    display: block;
    border-radius: 4px;
    background: #ffffff;
    border: 1.5px dashed #c3d4ea;
    box-sizing: border-box;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}
.mini-cell.on {
    background: #f26a1b;
    border-color: transparent;
}
input[type="range"].sf-range {
    width: 100%;
    accent-color: #f26a1b;
    height: 28px;
}

/* Formularios del cotizador */
.sf-field {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #c9d6e8;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: #0a1f45;
    background: #ffffff;
    min-height: 48px;
}
.sf-field:hover {
    border-color: #8fa5c7;
}
.sf-field:disabled {
    background: #f1f4f9;
    color: #6b7a94;
}
.sf-field::placeholder {
    color: #6b7a94;
}
.sf-row {
    transition: box-shadow 0.2s ease;
}
.sf-row:hover {
    box-shadow: 0 8px 22px rgba(10, 31, 69, 0.1);
}
.sf-day {
    transition: transform 0.15s ease;
}
.sf-day:hover {
    transform: scale(1.08);
}

/* Contenedor 3D (cubos isométricos) */
.sf-cube {
    position: absolute;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.sf-cube:disabled {
    cursor: default;
}
.sf-cube span {
    position: absolute;
    inset: 0;
    display: block;
    transition: background-color 0.25s ease;
}
.sf-ct {
    clip-path: polygon(50% 3%, 96% 25%, 50% 47%, 4% 25%);
}
.sf-cl {
    clip-path: polygon(3% 28%, 48% 50%, 48% 97%, 3% 75%);
}
.sf-cr {
    clip-path: polygon(52% 50%, 97% 28%, 97% 75%, 52% 97%);
}
.is-free .sf-ct {
    background: #ffffff;
}
.is-free .sf-cl {
    background: #e4ebf5;
}
.is-free .sf-cr {
    background: #c9d6e8;
}
.is-occ .sf-ct {
    background: #3a3f47;
}
.is-occ .sf-cl {
    background: #1c1f24;
}
.is-occ .sf-cr {
    background: #0b0c0e;
}
.is-sel .sf-ct {
    background: #f9a06a;
}
.is-sel .sf-cl {
    background: #f26a1b;
}
.is-sel .sf-cr {
    background: #c94a06;
}
.is-free:not(:disabled):hover .sf-ct {
    background: #fde0cc;
}
.sf-cube:focus-visible {
    outline: none;
}
.sf-cube:focus-visible .sf-ct {
    background: #ffd3b5;
}

/* Animaciones */
@keyframes sf-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}
@keyframes sf-float2 {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}
@keyframes sf-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
@keyframes sf-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@keyframes sf-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(242, 106, 27, 0.55);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(242, 106, 27, 0);
    }
}
@keyframes sf-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
@keyframes sf-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.sf-up {
    animation: sf-up 0.7s ease both;
}
.sf-up2 {
    animation: sf-up 0.7s 0.15s ease both;
}
.sf-up3 {
    animation: sf-up 0.7s 0.3s ease both;
}
.sf-float {
    animation: sf-float 5s ease-in-out infinite;
}
.sf-float2 {
    animation: sf-float2 6s ease-in-out infinite;
}
.sf-marquee {
    animation: sf-marquee 32s linear infinite;
}
.sf-pulse {
    animation: sf-pulse 2s ease-in-out infinite;
}
.sf-in {
    animation: sf-in 0.45s ease both;
}
.sf-pop {
    animation: sf-pop 0.4s ease both;
}

/* Aparición al hacer scroll (la activa main.js) */
.sf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.sf-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .sf-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================
   Estilos corporativos y de cotizador / búsqueda de carga
   ========================================================== */
.hero {
    background: linear-gradient(
        90deg,
        #0a2a63 0%,
        #123f86 55%,
        #e8873f 100%
    );
}
.seg-on {
    background: #12408a !important;
    color: #ffffff !important;
}
.max-w-7xl {
    max-width: 80rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.text-brand { color: #f97316; }
.bg-brand { background-color: #f97316; }
.border-brand { border-color: #f97316; }
.hover\:bg-brand-dark:hover { background-color: #ea6a0a; }
.hover\:text-brand:hover { color: #f97316; }
.bg-navy-900 { background-color: #071d47; }
.bg-navy-800 { background-color: #0b2d63; }
.bg-navy-700 { background-color: #12408a; }
.text-navy-900 { color: #071d47; }
.text-navy-800 { color: #0b2d63; }
.text-navy-700 { color: #12408a; }

