:root {
    --primary: #1e3a8a;
    --primary-hover: #1e40af;
    --navy: #163a66;
    --blue: #1b4f8a;
    --violet: #7c3aed;
    --violet-hover: #6d28d9;
    --amber: #d97706;
    --text: #1f2937;
    --muted: #6b7280;
    --bg-soft: #f9fafb;
    --border: #e5e7eb;
}

img {
    max-width: 100%;
    height: auto;
}

.brand-mark-wrap {
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

img.brand-mark {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: 2.25rem;
    max-width: 2.75rem;
    max-height: 2.25rem;
    object-fit: contain;
    object-position: center;
    overflow: visible;
}

#inicio .relative.grid {
    width: 100%;
}

#inicio .hero-image {
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
}

#inicio .hero-image img {
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text);
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: "Sora", sans-serif;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-blob {
    position: absolute;
    top: -40%;
    right: -8%;
    width: 36rem;
    height: 36rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.14) 0%, transparent 70%);
    animation: float 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(18px);
    }
}

.nav-link-underline {
    position: relative;
}

.nav-link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav-link-underline:hover::after,
.nav-link-underline[aria-current="true"]::after {
    width: 100%;
}

.card-accent {
    position: relative;
    overflow: hidden;
}

.card-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-accent:hover::before {
    transform: scaleX(1);
}

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

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.panel-grid {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
        #0f172a;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-blob,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
