:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-dim: rgba(100, 255, 218, 0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--navy);
    color: var(--light-slate);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--green);
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 25, 47, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 10px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
}

.logo__icon {
    color: var(--green);
    font-family: monospace;
    font-size: 1.3rem;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-slate);
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--green);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(100, 255, 218, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(100, 255, 218, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
}

.hero__inner {
    position: relative;
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--green-dim);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: var(--green);
    color: var(--navy);
}

.btn--primary:hover {
    background: transparent;
    color: var(--green);
    box-shadow: inset 0 0 0 2px var(--green);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 2px var(--lightest-navy);
}

.btn--outline:hover {
    box-shadow: inset 0 0 0 2px var(--green);
    color: var(--green);
}

.btn--whatsapp {
    background: #25D366;
    color: #fff;
    font-size: 1.05rem;
    padding: 18px 44px;
}

.btn--whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--light-navy);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section__desc {
    color: var(--slate);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========== CARDS (Servicios) ========== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.card {
    background: var(--light-navy);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--lightest-navy);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.card__icon {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 20px;
}

.card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.card__text {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.card__features li {
    font-size: 0.88rem;
    color: var(--light-slate);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card__features li i {
    color: var(--green);
    font-size: 0.8rem;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.card__link i {
    transition: var(--transition);
    font-size: 0.8rem;
}

.card__link:hover i {
    transform: translateX(4px);
}

/* ========== DETAIL SECTIONS ========== */
.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail__content .section__title {
    text-align: left;
}

.detail__content .section__desc {
    text-align: left;
    margin-bottom: 28px;
}

.detail__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
}

.detail__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--light-slate);
}

.detail__list li i {
    color: var(--green);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ========== WHATSAPP MOCKUP ========== */
.mockup {
    background: #0b141a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
}

.mockup__header {
    background: #1f2c33;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
}

.mockup__dot:first-child { background: #ff5f56; }
.mockup__dot:nth-child(2) { background: #ffbd2e; }
.mockup__dot:nth-child(3) { background: #27c93f; }

.mockup__title {
    margin-left: 12px;
    font-size: 0.8rem;
    color: #a0a0a0;
    font-weight: 500;
}

.mockup__body {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup__msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    animation: msgIn 0.4s ease-out backwards;
}

.mockup__msg:nth-child(1) { animation-delay: 0.1s; }
.mockup__msg:nth-child(2) { animation-delay: 0.4s; }
.mockup__msg:nth-child(3) { animation-delay: 0.7s; }
.mockup__msg:nth-child(4) { animation-delay: 1s; }

.mockup__msg p { margin: 0; }

.mockup__msg--in {
    align-self: flex-start;
    background: #202c33;
    color: #e9edef;
    border-bottom-left-radius: 4px;
}

.mockup__msg--out {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-bottom-right-radius: 4px;
}

.mockup__msg strong {
    color: #fff;
}

.mockup__time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: rgba(233, 237, 239, 0.5);
    margin-top: 4px;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== DASHBOARD MOCKUP ========== */
.dashboard-mockup {
    background: var(--light-navy);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--lightest-navy);
}

.dashboard-mockup__top {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.dashboard-mockup__badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--lightest-navy);
    color: var(--light-slate);
}

.dashboard-mockup__badge--green {
    background: var(--green-dim);
    color: var(--green);
}

.dashboard-mockup__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-mockup__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--light-slate);
}

.dashboard-mockup__status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--lightest-navy);
    color: var(--green);
    font-weight: 600;
}

.dashboard-mockup__status--warn {
    color: #ffd700;
}

.dashboard-mockup__status--green {
    color: #4caf50;
}

.dashboard-mockup__bar {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--slate);
}

.dashboard-mockup__bar-fill {
    height: 6px;
    background: var(--green);
    border-radius: 3px;
    flex-shrink: 0;
    width: 75%;
}

/* ========== ABOUT ========== */
.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.about__item {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.about__item:hover {
    background: rgba(255,255,255,0.02);
    transform: translateY(-4px);
}

.about__item i {
    font-size: 2.2rem;
    color: var(--green);
    margin-bottom: 16px;
}

.about__item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.about__item p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta {
    background: var(--light-navy);
    text-align: center;
}

.cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta__desc {
    color: var(--slate);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta__small {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--slate);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy);
    border-top: 1px solid var(--lightest-navy);
    padding-top: 60px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__brand .logo__text {
    font-size: 1.1rem;
}

.footer__brand p {
    font-size: 0.88rem;
    color: var(--slate);
    margin-top: 12px;
}

.footer__links h4,
.footer__social h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links ul li a {
    font-size: 0.88rem;
    color: var(--slate);
    transition: var(--transition);
}

.footer__links ul li a:hover {
    color: var(--green);
}

.footer__social-icons {
    display: flex;
    gap: 14px;
}

.footer__social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-navy);
    color: var(--slate);
    font-size: 1rem;
    transition: var(--transition);
}

.footer__social-icons a:hover {
    background: var(--green);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid var(--lightest-navy);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.82rem;
    color: var(--slate);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail--reverse .detail__visual {
        order: -1;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 320px);
        height: 100vh;
        background: var(--light-navy);
        padding: 80px 32px 32px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 24px;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__desc {
        font-size: 0.95rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        text-align: center;
    }

    .section {
        padding: 64px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 28px 24px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}
