/* ====== Base ====== */
:root {
    --bg: #c84d2b;
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .78);
    --line: rgba(255, 255, 255, .14);
    --glass: rgba(255, 255, 255, .10);
    --glass2: rgba(0, 0, 0, .12);
    --solidText: #9b3a22;
    --shadow: 0 30px 80px rgba(0, 0, 0, .4);
    --radius: 18px;
    --radius2: 24px;
    --max: 1120px;
    --pad: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max), 100% - 32px);
    margin: 0 auto;
}

.muted {
    color: var(--muted);
}

/* ====== Hero Background ====== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("assets/fondo-sistema1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    filter: saturate(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .20), rgba(0, 0, 0, .26), rgba(0, 0, 0, .34));
}

/* Glow */
.softglow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.softglow__blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: .35;
}

.softglow__blob--r {
    right: -120px;
    top: 30px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, .22);
}


/* Petals removed */

.softglow__petals {
    position: absolute;
    right: -160px;
    bottom: -70px;
    width: 520px;
    height: 520px;
    opacity: .18;
}

/* ====== White Header Wrapper ====== */
.header-wrapper {
    background: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

/* ====== Top Logo ====== */
.top-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    position: relative;
    z-index: 6;
}

.logo-titulo {
    display: block;
    max-height: 90px;
    width: auto;
    border-radius: 12px;
}

/* ====== Header ====== */
.header {
    position: relative;
    z-index: 5;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    font-weight: 700;
    color: var(--bg);
    /* Brand color inside logo box */
}

.brand__name {
    font-weight: 800;
    letter-spacing: .2px;
    color: #222;
    /* Dark text */
}

.brand__tag {
    font-size: 12px;
    color: #666;
    /* Muted dark text */
}

.nav {
    display: none;
    gap: 22px;
}

.nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--bg);
    transition: color .2s ease;
}

.nav__link:hover {
    color: #000;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile menu */
.burger {
    width: 44px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--glass);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 18px;
    height: 2px;
    background: #333;
    border-radius: 99px;
}

.mobile {
    border-top: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .16);
    backdrop-filter: blur(10px);
}

.mobile__inner {
    display: grid;
    gap: 10px;
    padding: 14px 0;
}

.mobile__link {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    font-weight: 700;
    font-size: 14px;
}

/* ====== Buttons / Pills ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    transition: transform .15s ease, opacity .15s ease, background .2s ease;
    user-select: none;
}

.btn:active {
    transform: scale(.98);
}

.btn--solid {
    background: white;
    color: var(--solidText);
}

.btn--glass {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, .05);
    color: #333;
    backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: rgba(0, 0, 0, .08);
}

.btn--block {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: none;
}

.btn--large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 18px;
}

.pillrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    font-size: 12px;
    color: rgba(255, 255, 255, .90);
}

/* ====== Hero content ====== */
.hero__content {
    position: relative;
    z-index: 3;
    padding: 34px 0 20px;
    display: grid;
    gap: 26px;
}

.hero__title {
    margin: 14px 0 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.6px;
    font-weight: 900;
}

.hero__title span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
}

.hero__subtitle {
    margin: 14px 0 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
    font-size: 15px;
}

.hero__actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mini-cards {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.mini-card {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
    padding: 12px 14px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-card__dot {
    width: 22px;
    height: 22px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .10);
}

/* ====== Panels / Cards ====== */
.panel {
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
    padding: 14px;
    box-shadow: var(--shadow);
}

.panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel__title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
}

.panel__hint {
    font-size: 12px;
    color: rgba(255, 255, 255, .70);
}

.section {
    padding: 20px 0 72px;
    /* Top padding reduced */
    background: linear-gradient(to bottom, rgba(0, 0, 0, .05), rgba(0, 0, 0, .06));
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.section__head h2 {
    margin: 10px 0 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(22px, 2.6vw, 34px);
    letter-spacing: -0.3px;
    font-weight: 900;
}

.section__head p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .80);
    line-height: 1.6;
    font-size: 15px;
}

.kicker {
    margin-bottom: 8px;
}

.grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.card {
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

.card h3 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    /* Slightly increased for condensed font */
    font-weight: 900;
}

.card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .80);
    line-height: 1.6;
    font-size: 14px;
}

.card--soft {
    padding: 18px;
}

.two {
    display: grid;
    gap: 18px;
}

.software-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cta-centered {
    display: flex;
    justify-content: center;
}

.stack {
    display: grid;
    gap: 12px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checklist {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, .86);
}

/* ====== Monitor mockup ====== */
.monitor {
    position: relative;
}

.monitor__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .14);
}

.monitor__dots {
    display: flex;
    gap: 6px;
}

.monitor__dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .20);
}

.monitor__dots span:first-child {
    background: rgba(255, 255, 255, .28);
}

.monitor__bartext {
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.monitor {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(to bottom, rgba(255, 255, 255, .10), rgba(0, 0, 0, .12));
    box-shadow: var(--shadow);
}

.monitor--big {
    border-radius: 26px;
}

.monitor__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, .28);
}

.monitor__screen img,
.monitor__screen video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.monitor__screen video {
    background: black;
}

.monitor__screen img,
.monitor__screen video {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.monitor__screen .fade-out {
    opacity: 0;
}

[hidden] {
    display: none !important;
}

.monitor__shine {
    position: absolute;
    top: 0;
    left: -40%;
    height: 100%;
    width: 60%;
    transform: skewX(-12deg);
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .12), transparent);
    pointer-events: none;
}

/* Chips (selector de capturas) */
.chiprow {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .12);
    color: rgba(255, 255, 255, .90);
    font-weight: 900;
    font-size: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, .10);
}

.chip:active {
    transform: scale(.98);
}

.chip.is-active {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
}

.caption {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .76);
}

/* ====== Form ====== */
.form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.form__row {
    display: grid;
    gap: 10px;
}

.form input,
.form textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .18);
    padding: 12px 14px;
    color: white;
    outline: none;
    font-size: 14px;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 12px;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(255, 255, 255, .55);
}

.form input:focus,
.form textarea:focus {
    border-color: rgba(255, 255, 255, .28);
}

.form__note {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .80);
}

/* ====== Footer ====== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .10);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

.footer__links {
    display: flex;
    gap: 16px;
}

.footer__links a:hover {
    color: white;
}

/* ====== Reveal Animations ====== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Responsive ====== */
@media (min-width: 860px) {
    .nav {
        display: flex;
    }

    .burger {
        display: none;
    }

    .hero__content {
        grid-template-columns: 1.05fr .95fr;
        align-items: center;
        gap: 30px;
    }

    .mini-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .form__row {
        grid-template-columns: 1fr 1fr;
    }

    .footer__inner {
        flex-direction: row;
    }
}

@media (min-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====== Floating WhatsApp ====== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}