:root {
    --bg: #05060a;
    --bg-soft: #0b0e14;
    --surface: #121824;
    --text: #edf2ff;
    --muted: #9ba8c7;
    --accent: #1bd4ff;
    --accent-2: #38ffa7;
    --danger: #ff6767;
    --radius: 16px;
    --container: 1120px;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% -5%, rgba(27, 212, 255, 0.12), transparent 38%),
        radial-gradient(circle at 100% 10%, rgba(56, 255, 167, 0.08), transparent 35%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.2rem;
    overflow: visible;
    backdrop-filter: blur(12px);
    background: rgba(7, 10, 16, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 1.5rem;
    text-shadow: 0 2px 12px rgba(27, 212, 255, 0.25);
}

.brand-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 2px 10px rgba(27, 212, 255, 0.35));
    position: relative;
    z-index: 41;
}

.brand-text {
    display: inline-block;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
}

.nav a {
    color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.nav-cta {
    border: 1px solid rgba(27, 212, 255, 0.6);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    color: var(--text) !important;
    font-weight: 600;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 11rem 1.1rem 3rem;
}

.hero.hero-small {
    min-height: 62vh;
    padding-top: 11rem;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: 0;
    background: linear-gradient(rgba(5, 7, 12, 0.42), rgba(5, 7, 12, 0.42)), url("assets/images/pancarta.png");
    background-size: cover;
    background-position: center;
}

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.52);
}

.hero-overlay {
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(5, 6, 10, 0.2), rgba(5, 6, 10, 0.9)),
        linear-gradient(to right, rgba(5, 6, 10, 0.9), rgba(5, 6, 10, 0.35));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), 100%);
    margin-inline: auto;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 7vw, 4rem);
    max-width: 14ch;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 36ch;
    margin-bottom: 1.8rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.8rem 1.3rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), #0a9cff);
    color: #04131b;
    box-shadow: 0 10px 25px rgba(27, 212, 255, 0.25);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text);
}

.btn-whatsapp {
    background: linear-gradient(120deg, #2ad165, #17a34a);
    color: #eaffe9;
}

.section {
    width: min(var(--container), 100%);
    margin-inline: auto;
    padding: 4.8rem 1rem;
}

.section-head {
    margin-bottom: 1.6rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin-bottom: 0;
}

.service-grid,
.reason-grid,
.portfolio-grid {
    display: grid;
    gap: 1rem;
}

.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
    background: linear-gradient(155deg, rgba(18, 24, 36, 0.95), rgba(10, 14, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.filters {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn.active {
    background: rgba(27, 212, 255, 0.16);
    border-color: rgba(27, 212, 255, 0.75);
    color: var(--text);
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.portfolio-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.06);
}

.portfolio-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.95rem;
    background: linear-gradient(to top, rgba(4, 8, 14, 0.94), rgba(4, 8, 14, 0.12));
}

.portfolio-caption h3 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.portfolio-caption p {
    margin: 0;
    color: #d6ddf2;
    font-size: 0.88rem;
}

.reason-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reason-card {
    background: rgba(18, 24, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1rem;
}

.reason-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.brand-quote {
    margin-top: 1.4rem;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    border-left: 3px solid var(--accent-2);
    padding-left: 0.9rem;
    color: #e5faf2;
}

.about p {
    max-width: 70ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.bio-photo-wrap {
    margin: 0 0 1.4rem;
}

.bio-photo {
    width: min(100%, 360px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    display: block;
}

.contact-layout {
    display: grid;
    gap: 1rem;
}

.contact-form,
.contact-aside {
    background: rgba(18, 24, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    color: #c9d2eb;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 12, 18, 0.82);
    color: var(--text);
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(27, 212, 255, 0.16);
}

.alert {
    border-radius: 10px;
    padding: 0.8rem 0.95rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.alert.ok {
    border: 1px solid rgba(56, 255, 167, 0.4);
    background: rgba(56, 255, 167, 0.12);
    color: #b7ffd8;
}

.alert.error {
    border: 1px solid rgba(255, 103, 103, 0.4);
    background: rgba(255, 103, 103, 0.1);
    color: #ffd4d4;
}

.form-error {
    min-height: 1.2rem;
    margin: 0.2rem 0 0;
    color: var(--danger);
    font-size: 0.88rem;
}

.small-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer {
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 13, 0.92);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 900px) {
    .topbar {
        padding: 0.7rem 2.5rem;
    }

    .contact-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bio-photo-wrap {
        float: right;
        margin: 0.2rem 0 1rem 1.5rem;
    }
}

@media (max-width: 700px) {
    .brand-logo {
        width: 90px;
        height: 90px;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .nav a:not(.nav-cta) {
        display: none;
    }

    .btn {
        width: 100%;
    }
}
