:root {
    --bg-0: #030915;
    --bg-1: #07152b;
    --bg-2: #0a1b38;
    --surface: rgba(9, 21, 42, 0.7);
    --surface-strong: rgba(11, 27, 53, 0.88);
    --line: rgba(136, 176, 244, 0.22);
    --line-strong: rgba(136, 176, 244, 0.42);
    --text: #dbe8ff;
    --text-muted: #9fb2d5;
    --text-soft: #8398bd;
    --heading: #f2f7ff;
    --brand: #4fd6ff;
    --brand-2: #3aa0ff;
    --warm: #f5a04c;
    --success: #22c55e;
    --radius-md: 0.9rem;
    --radius-lg: 1.3rem;
    --shadow-xl: 0 28px 58px rgba(2, 10, 26, 0.45);
    --section-gap: clamp(4rem, 6vw, 6rem);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 12%, rgba(68, 115, 181, 0.36) 0%, transparent 36%),
        radial-gradient(circle at 86% 10%, rgba(30, 171, 255, 0.2) 0%, transparent 30%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: 0.01em;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-shell {
    position: relative;
}

.site-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 58px 58px;
}

.site-main {
    min-height: 58vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(10px);
    background: rgba(3, 10, 24, 0.74);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.4rem;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
}

.brand__logo {
    width: 2.7rem;
    height: auto;
}

.brand__name {
    display: block;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.05rem);
    line-height: 1;
}

.brand__tag {
    display: block;
    margin-top: 0.16rem;
    color: #95e8ff;
    letter-spacing: 0.22em;
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 700;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.4rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link--active {
    color: #ffffff;
}

.site-nav-toggle {
    border: 1px solid var(--line);
    background: rgba(13, 30, 56, 0.75);
    color: #d7e7ff;
    border-radius: 0.8rem;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-nav-toggle__icon {
    width: 1.4rem;
    height: 1.4rem;
}

.site-nav-mobile {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    color: #e2ecff;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 0.72rem;
    padding: 0.7rem 0.9rem;
    background: rgba(8, 21, 44, 0.72);
}

.btn-primary,
.btn-ghost,
.filter-chip {
    border-radius: 999px;
    padding: 0.72rem 1.16rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-primary {
    color: #06152f;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    border: 0;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(58, 160, 255, 0.34);
}

.btn-primary--sm {
    padding: 0.62rem 1rem;
    font-size: 0.84rem;
}

.btn-ghost {
    color: #c6e9ff;
    border: 1px solid rgba(140, 215, 255, 0.48);
    background: rgba(14, 46, 82, 0.28);
}

.btn-ghost:hover {
    filter: brightness(1.1);
}

.section {
    padding-block: var(--section-gap);
}

.section--tight {
    padding-block: clamp(3rem, 5vw, 4rem);
}

.section-head {
    max-width: 48rem;
    margin-bottom: 1.8rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4.3vw, 3rem);
    margin-bottom: 0.65rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #86dcff;
    font-weight: 700;
}

.hero-grid {
    padding-block: clamp(5rem, 8.5vw, 8rem);
}

.hero-grid .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    margin: 0.6rem 0 0.9rem;
}

.hero-copy {
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.14rem);
    max-width: 40rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-panel,
.glass-card {
    background: linear-gradient(140deg, var(--surface-strong), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-panel {
    padding: 1.2rem;
}

.metrics-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.metric-card {
    border-radius: var(--radius-md);
    padding: 0.78rem;
    border: 1px solid var(--line);
    background: rgba(8, 22, 44, 0.66);
}

.metric-value {
    font-size: 1.4rem;
    color: #8de9ff;
    font-weight: 800;
}

.metric-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.cards-3,
.cards-2,
.cards-4 {
    display: grid;
    gap: 0.9rem;
}

.cards-3 {
    grid-template-columns: 1fr;
}

.cards-2 {
    grid-template-columns: 1fr;
}

.cards-4 {
    grid-template-columns: 1fr;
}

.service-card,
.feature-card,
.process-card {
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(10, 25, 49, 0.92), rgba(10, 25, 49, 0.58));
    border: 1px solid var(--line);
}

.service-card h3,
.feature-card h3,
.process-card h3 {
    font-size: 1.72rem;
    margin-bottom: 0.5rem;
}

.service-card p,
.feature-card p,
.process-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.list-clean {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.list-clean li {
    color: var(--text-muted);
    padding-left: 1.05rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.93rem;
}

.list-clean li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(140deg, #94e8ff, #5eb7ff);
}

.section-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 19, 37, 0.68);
}

.timeline {
    display: grid;
    gap: 0.8rem;
}

.timeline__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.timeline__step {
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(152, 212, 255, 0.55);
    background: rgba(15, 40, 73, 0.85);
    color: #9fe8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
}

.timeline__content h3 {
    font-size: 1.36rem;
    margin-bottom: 0.25rem;
}

.timeline__content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.93rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(139, 230, 255, 0.5);
    color: #a5efff;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.filter-chip {
    background: rgba(9, 23, 45, 0.78);
    border: 1px solid var(--line);
    color: #c9d8f3;
}

.filter-active {
    background: linear-gradient(120deg, rgba(79, 214, 255, 0.24), rgba(58, 160, 255, 0.24));
    border-color: rgba(79, 214, 255, 0.72);
    color: #ffffff;
}

.project-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(11, 28, 53, 0.95), rgba(8, 20, 38, 0.9));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.project-card__thumb {
    aspect-ratio: 16 / 10;
    background: #0c1c36;
}

.project-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__body {
    padding: 1rem;
}

.project-card__body h3 {
    font-size: 1.5rem;
    margin: 0.3rem 0;
}

.project-card__body p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.inner-hero {
    padding-block: clamp(4rem, 8vw, 6rem);
}

.inner-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.3rem);
}

.inner-hero p {
    margin-top: 0.6rem;
    color: var(--text-muted);
}

.form-shell {
    display: grid;
    gap: 0.9rem;
}

.form-input {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid rgba(137, 176, 243, 0.4);
    background: rgba(10, 24, 46, 0.72);
    color: #f4f8ff;
    padding: 0.75rem 0.86rem;
    font: inherit;
}

.form-input::placeholder {
    color: #87a1c7;
}

.form-input:focus {
    outline: none;
    border-color: rgba(94, 205, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.18);
}

.notice-success,
.notice-error {
    border-radius: 0.72rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
}

.notice-success {
    color: #cfffe0;
    border: 1px solid rgba(57, 214, 125, 0.45);
    background: rgba(18, 72, 44, 0.62);
}

.notice-error {
    color: #ffd9dc;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(96, 26, 35, 0.58);
}

.site-footer {
    margin-top: clamp(4rem, 8vw, 6rem);
    border-top: 1px solid var(--line);
    background: rgba(5, 14, 30, 0.84);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.footer-brand__head {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.footer-brand__logo {
    width: 2.45rem;
}

.footer-brand__title {
    font-size: 1.5rem;
}

.footer-brand__tag {
    color: #92dfff;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-brand__copy {
    margin-top: 0.6rem;
    max-width: 34rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-brand__cta {
    margin-top: 0.9rem;
}

.footer-heading {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.footer-link {
    color: #d2dcf5;
    text-decoration: none;
}

.footer-link:hover {
    color: #92dfff;
}

.footer-links--muted li {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--line);
}

.footer-bottom__inner {
    min-height: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    color: #8ca4cb;
    font-size: 0.83rem;
}

.chat-agent {
    position: fixed !important;
    right: 1rem;
    bottom: 1rem;
    width: min(94vw, 19rem);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    z-index: 80;
    pointer-events: none;
    animation: chat-agent-in 0.45s ease-out;
}

.chat-agent > * {
    pointer-events: auto;
}

.chat-agent__toggle {
    border: 0;
    border-radius: 1rem;
    padding: 0.6rem 0.65rem 0.6rem 1rem;
    min-height: 4.2rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.95rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #f8a248, #f49034);
    border: 1px solid rgba(255, 206, 153, 0.45);
    box-shadow: 0 14px 28px rgba(51, 24, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-agent__toggle:hover,
.chat-agent__toggle:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(51, 24, 0, 0.38);
    outline: none;
}

.chat-agent__toggle-icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #ef8a2d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(239, 138, 45, 0.12);
    flex-shrink: 0;
}

.chat-agent__toggle-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.chat-agent__panel {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff7ef, #ffffff);
    border: 1px solid rgba(241, 149, 58, 0.35);
    box-shadow: 0 20px 34px rgba(47, 25, 6, 0.22);
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom right;
    transition: max-height 0.3s ease, opacity 0.24s ease, transform 0.24s ease, padding 0.24s ease;
    padding: 0 1rem;
}

.chat-agent[data-open='true'] .chat-agent__panel {
    max-height: 18rem;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 0.95rem 1rem 1rem;
}

.chat-agent__eyebrow {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    color: #f08b30;
}

.chat-agent__title {
    margin: 0.45rem 0 0.35rem;
    color: #172033;
    font-size: 1.1rem;
    line-height: 1.2;
}

.chat-agent__copy {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.45;
}

.chat-agent__actions {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.chat-agent__action {
    border-radius: 0.7rem;
    padding: 0.65rem 0.6rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.chat-agent__action:hover,
.chat-agent__action:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.08);
    outline: none;
}

.chat-agent__action--whatsapp {
    color: #ecfdf5;
    background: linear-gradient(135deg, #15803d, #0f766e);
    border: 1px solid rgba(74, 222, 128, 0.55);
}

.chat-agent__action--email {
    color: #f8fafc;
    background: linear-gradient(135deg, #243b63, #1c3154);
    border: 1px solid rgba(69, 103, 157, 0.55);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .site-nav {
        display: inline-flex;
    }

    .site-nav-toggle,
    .site-nav-mobile {
        display: none;
    }

    .hero-grid .container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 1.2rem;
    }

    .cards-2 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.7fr 0.9fr;
        gap: 1.2rem;
    }

    .footer-bottom__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 960px) {
    .cards-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cards-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .chat-agent {
        right: 0.7rem;
        bottom: 0.7rem;
        width: min(96vw, 18.4rem);
    }

    .chat-agent__toggle {
        min-height: 3.95rem;
        font-size: 0.98rem;
        padding: 0.52rem 0.62rem 0.52rem 0.86rem;
    }
}

@keyframes chat-agent-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}