:root {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9ff;
    color: #181c20;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(112, 246, 246, 0.06), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(171, 199, 255, 0.14), transparent 28%);
    z-index: -1;
}

/* --- SCROLL BAR --- */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #111111, #abc7ff 55%, #305ea4);
    z-index: 200;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* --- LAYOUT --- */
.page-wrap {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .page-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* --- INDUSTRIAL GRID --- */
.industrial-grid {
    background-image: radial-gradient(circle, #737782 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.05;
}

/* --- BENTO CARDS --- */
.bento-card {
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-smooth);
    will-change: transform;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(0, 42, 92, 0.12);
}

/* --- HERO --- */
.hero-media {
    animation: slowZoom 30s ease-in-out infinite alternate;
    will-change: transform;
    transform-origin: center center;
}

/* --- REVEAL SYSTEM ---
   Sin blur: el blur es el mayor marcador de generación automática.
   Solo opacidad + desplazamiento vertical limpio.
*/
.reveal,
[data-reveal] {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(20px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
}

[data-reveal="left"] {
    transform: translateX(-32px);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}

[data-reveal="right"] {
    transform: translateX(32px);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}

[data-reveal="scale"] {
    transform: scale(0.96);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}

.reveal.is-visible,
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* --- WORD MASK --- */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: inherit;
}

.word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition:
        opacity 0.55s var(--ease-out),
        transform 0.55s var(--ease-out);
}

.word-inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SHINE EFFECT --- */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-15deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: transform 0.65s var(--ease-out);
}

.shine:hover::after {
    transform: translateX(130%) skewX(-15deg);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.mobile-menu.is-open {
    max-height: 320px;
}

/* --- TOAST --- */
.toast {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.3s var(--ease-out),
        transform 0.3s var(--ease-out);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAV LINK UNDERLINE --- */
.nav-link {
    position: relative;
}

.nav-link:not(.border-b-2)::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%;
    height: 2px;
    background: #305ea4;
    border-radius: 9999px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:not(.border-b-2):hover::after {
    width: 100%;
}

/* --- FOOTER --- */
.footer-link {
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.footer-link .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.footer-link:hover .dot {
    background: rgba(255, 255, 255, 0.55);
}

.footer-contact-icon {
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.2s ease;
}

a:hover .footer-contact-icon {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid #c3c6d2; padding: 22px 0; }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 16px;
    color: #181c20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: #002a5c;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #434751;
    max-width: 640px;
}

/* --- KEYFRAMES --- */
@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 640px) {
    .text-headline-xl {
        font-size: 38px;
        line-height: 44px;
    }
}
