:root {
    --page-bg: #f4f1ea;
    --surface: #ffffff;
    --surface-soft: #f8faf8;
    --ink: #101820;
    --muted: #5f6b74;
    --line: #dfe5e5;
    --green: #25c77a;
    --green-dark: #087447;
    --cyan: #25c7d9;
    --amber: #e6a33a;
    --coral: #d94d5c;
    --graphite: #151b22;
    --shadow: 0 20px 55px rgba(16, 24, 32, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px clamp(20px, 5vw, 72px);
    color: #ffffff;
    background: rgba(16, 24, 32, 0.42);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: clamp(198px, 18vw, 286px);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 760;
}

.site-nav a {
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
    transform: translateY(-1px);
}

.site-nav-links,
.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav-links {
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav-links a,
.nav-link-panel,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.site-nav-links a {
    color: rgba(255, 255, 255, 0.76);
}

.site-nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-link-panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-panel:hover {
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
    border: 1px solid rgba(37, 199, 122, 0.55);
    background: rgba(37, 199, 122, 0.18);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.nav-cta:hover {
    border-color: rgba(37, 199, 122, 0.9);
    background: #25c77a;
    color: #06140d;
}

.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 118px clamp(20px, 6vw, 92px) 74px;
    overflow: hidden;
    color: #ffffff;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("/assets/img/hero-agentes-telefonicos.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 18, 24, 0.93) 0%, rgba(13, 18, 24, 0.76) 42%, rgba(13, 18, 24, 0.24) 100%),
        linear-gradient(0deg, rgba(13, 18, 24, 0.42), rgba(13, 18, 24, 0.04));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 6vw, 84px);
    line-height: 0.98;
    font-weight: 860;
}

.hero-copy {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.filtros-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 820;
    line-height: 1;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green);
    color: #06140d;
}

.btn-primary:hover {
    background: #4ee39a;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.14);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
    margin-top: 48px;
}

.hero-metrics div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
}

.hero-metrics strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    font-weight: 700;
}

.section {
    padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 92px);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 38px;
}

.section-heading h2,
.process-layout h2,
.contact-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.04;
    font-weight: 850;
}

.section-heading p:not(.eyebrow),
.process-layout p,
.contact-panel p {
    max-width: 660px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.section-intro {
    background: var(--page-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.pricing-card,
.pricing-empty {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 35px rgba(16, 24, 32, 0.06);
}

.feature-card {
    padding: 28px;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 40px;
    border-radius: 8px;
    background: #e9f8ef;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
}

.feature-card h3,
.pricing-card h3,
.pricing-empty h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.18;
}

.feature-card p,
.pricing-empty p {
    margin: 14px 0 0;
    color: var(--muted);
}

.process-section {
    background: #ffffff;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: start;
}

.process-list {
    display: grid;
    gap: 14px;
}

.process-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.process-item span {
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 7px rgba(37, 199, 217, 0.14);
}

.process-item:nth-child(2) span {
    background: var(--amber);
    box-shadow: 0 0 0 7px rgba(230, 163, 58, 0.16);
}

.process-item:nth-child(3) span {
    background: var(--coral);
    box-shadow: 0 0 0 7px rgba(217, 77, 92, 0.14);
}

.process-item p {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 720;
}

.pricing-section {
    background: #eef4f2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
}

.pricing-card-featured {
    border-color: rgba(37, 199, 122, 0.62);
    box-shadow: var(--shadow);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #dff8eb;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 870;
}

.pricing-card-featured .plan-top {
    padding-right: 118px;
}

.plan-top p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 720;
}

.plan-price {
    margin: 26px 0 20px;
}

.plan-price strong {
    color: var(--ink);
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
}

.plan-price span {
    color: var(--muted);
    font-weight: 740;
}

.plan-list {
    display: grid;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    color: #3d4850;
    list-style: none;
}

.plan-list li {
    position: relative;
    padding-left: 20px;
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.btn-plan {
    margin-top: auto;
    border-color: var(--line);
    color: var(--ink);
    background: #f7faf8;
}

.pricing-card-featured .btn-plan {
    border-color: transparent;
    background: var(--ink);
    color: #ffffff;
}

.pricing-empty {
    max-width: 660px;
    padding: 32px;
}

.pricing-empty .btn {
    margin-top: 22px;
}

.faq-section {
    background: var(--page-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.faq-item {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.faq-item h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.24;
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--muted);
}

.contact-section {
    background: var(--graphite);
    color: #ffffff;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(37, 199, 122, 0.18), rgba(37, 199, 217, 0.08)),
        rgba(255, 255, 255, 0.04);
}

.contact-panel h2 {
    color: #ffffff;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-panel .btn-primary {
    min-width: min(100%, 260px);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(20px, 6vw, 92px);
    background: #0e1318;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.site-footer span {
    color: #ffffff;
    font-weight: 820;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
    color: #ffffff;
}

.legal-page {
    background: #eef4f2;
}

.legal-wrapper {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0;
}

.legal-brand {
    display: inline-flex;
    margin-bottom: 28px;
}

.legal-brand img {
    display: block;
    width: min(320px, 78vw);
    height: auto;
}

.legal-card {
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(16, 24, 32, 0.08);
}

.legal-card h1 {
    margin: 0 0 22px;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.legal-card h2 {
    margin: 30px 0 8px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.24;
}

.legal-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.legal-card a {
    color: var(--green-dark);
    font-weight: 760;
}

.legal-note {
    margin-top: 28px !important;
    padding: 14px 16px;
    border: 1px solid #bfead0;
    border-radius: 8px;
    background: #effaf4;
    color: #315f43 !important;
}

@media (max-width: 1180px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .site-nav {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .site-nav-links {
        order: 2;
        max-width: 100%;
        overflow-x: auto;
    }

    .site-nav-actions {
        order: 1;
    }

    .hero {
        min-height: 92vh;
        padding-top: 182px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(13, 18, 24, 0.94), rgba(13, 18, 24, 0.72)),
            linear-gradient(0deg, rgba(13, 18, 24, 0.48), rgba(13, 18, 24, 0.05));
    }

    .hero-metrics,
    .feature-grid,
    .faq-grid,
    .process-layout,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: auto;
        padding-bottom: 54px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav-links,
    .site-nav-actions {
        width: 100%;
    }

    .site-nav-links a,
    .nav-link-panel,
    .nav-cta {
        flex: 1;
    }

    .hero-copy {
        font-size: 17px;
    }

    .hero-metrics {
        margin-top: 34px;
    }

    .section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .feature-card,
    .pricing-card,
    .pricing-empty {
        padding: 22px;
    }

    .plan-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 14px;
    }

    .pricing-card-featured .plan-top {
        padding-right: 0;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
