/* ============================================================
   LANDING-01 v0.1
   DISEÑO VISUAL
   ============================================================ */

:root {
    --blue: #0b5cff;
    --blue-dark: #073b9e;
    --green: #19b65b;
    --green-dark: #128542;
    --white: #ffffff;
    --black: #111827;
    --gray-900: #1f2937;
    --gray-700: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --light-blue: #eef5ff;

    --radius: 18px;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    --max-width: 1100px;
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

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

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

ul,
ol {
    list-style-position: inside;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--gray-200);
}

header strong {
    color: var(--blue);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 14px;

    border-radius: 999px;

    background: var(--green);
    color: var(--white);

    font-size: 0.72rem;
    font-weight: 800;

    text-align: center;
}

header a:hover {
    background: var(--green-dark);
}

/* ============================================================
   ESTRUCTURA GENERAL
   ============================================================ */

main {
    overflow: hidden;
}

section {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 72px 0;
}

section > p:first-child {
    margin-bottom: 10px;

    color: var(--blue);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h2 {
    margin-bottom: 20px;

    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
}

h3 {
    margin-bottom: 10px;

    font-size: 1.05rem;
}

section p {
    color: var(--gray-700);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
    width: 100%;
    max-width: none;

    padding:
        64px 20px
        72px;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(11, 92, 255, 0.13),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--light-blue),
            var(--white)
        );
}

#hero > * {
    width: min(100%, var(--max-width));
    margin-left: auto;
    margin-right: auto;
}

#hero h1 {
    max-width: 760px;

    margin-bottom: 14px;

    color: var(--black);

    font-size: clamp(2.5rem, 12vw, 5rem);
    font-weight: 950;

    letter-spacing: -0.045em;
}

#hero h2 {
    max-width: 700px;

    color: var(--blue);

    font-size: clamp(1.55rem, 7vw, 3rem);
}

#hero > p:not(:first-child) {
    max-width: 650px;
}

#hero ul {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 24px auto;
    list-style: none;
}

#hero li {
    padding: 7px 11px;

    border: 1px solid rgba(11, 92, 255, 0.16);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.8);

    color: var(--gray-700);

    font-size: 0.8rem;
    font-weight: 700;
}

#hero > strong {
    display: block;

    margin: 2px auto 4px;

    color: var(--black);

    font-size: clamp(3rem, 15vw, 5.5rem);
    line-height: 0.95;
    font-weight: 950;
}

#hero > p:nth-of-type(3) {
    margin-bottom: 20px;

    color: var(--gray-500);
    font-size: 0.85rem;
}

#hero > a,
#oferta > a,
#contacto > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;

    padding: 14px 22px;

    border-radius: 12px;

    background: var(--green);
    color: var(--white);

    font-size: 0.9rem;
    font-weight: 900;

    box-shadow: 0 8px 20px rgba(25, 182, 91, 0.22);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

#hero > a:hover,
#oferta > a:hover,
#contacto > a:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

#hero > div {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 280px;

    margin-top: 42px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #f8fafc
        );

    border: 1px solid var(--gray-200);

    box-shadow: var(--shadow);
}

#hero > div p {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ============================================================
   PRODUCTO
   ============================================================ */

#producto {
    display: grid;
    gap: 28px;
}

#producto > div {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 260px;

    border-radius: var(--radius);

    background: var(--gray-100);

    box-shadow: var(--shadow);
}

#producto > div p {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ============================================================
   FUNCIONES
   ============================================================ */

#funciones {
    padding-top: 80px;
}

#funciones article,
#publico article,
#como-funcionan article {
    margin-top: 16px;
    padding: 22px;

    border: 1px solid var(--gray-200);
    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow);
}

#funciones article h3 {
    color: var(--black);
}

#funciones article p,
#publico article p,
#como-funcionan article p {
    font-size: 0.95rem;
}

/* ============================================================
   COMO FUNCIONAN
   ============================================================ */

#como-funcionan {
    background: var(--light-blue);
}

#como-funcionan article {
    position: relative;
}

#como-funcionan article > strong {
    display: block;

    margin-bottom: 8px;

    color: var(--blue);

    font-size: 2rem;
    font-weight: 950;
}

/* ============================================================
   CARACTERISTICAS
   ============================================================ */

#caracteristicas {
    background: var(--white);
}

#caracteristicas ul,
#incluye ul {
    display: grid;

    gap: 12px;

    list-style: none;
}

#caracteristicas li,
#incluye li {
    padding: 17px 18px;

    border: 1px solid var(--gray-200);
    border-radius: 14px;

    background: var(--gray-100);

    color: var(--gray-900);

    font-size: 0.92rem;
    font-weight: 700;
}

/* ============================================================
   TRADUCCION
   ============================================================ */

#traduccion {
    width: 100%;
    max-width: none;

    padding-left: max(20px, calc((100% - var(--max-width)) / 2));
    padding-right: max(20px, calc((100% - var(--max-width)) / 2));

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue)
        );

    color: var(--white);
}

#traduccion > p:first-child {
    color: #bfdbfe;
}

#traduccion h2 {
    color: var(--white);
}

#traduccion p:not(:first-child) {
    color: #e5efff;
}

/* ============================================================
   PUBLICO
   ============================================================ */

#publico {
    background: #fafafa;
}

/* ============================================================
   INCLUYE
   ============================================================ */

#incluye {
    background: var(--white);
}

/* ============================================================
   OFERTA
   ============================================================ */

#oferta {
    width: 100%;
    max-width: none;

    padding:
        80px 20px
        90px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(11, 92, 255, 0.12),
            transparent 55%
        ),
        var(--light-blue);
}

#oferta > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

#oferta h2 {
    margin-bottom: 8px;

    font-size: clamp(2rem, 9vw, 4rem);
}

#oferta > strong {
    display: block;

    margin: 4px auto 8px;

    color: var(--blue);

    font-size: clamp(4rem, 20vw, 7rem);
    line-height: 0.95;
    font-weight: 950;
}

#oferta > p:nth-of-type(2) {
    margin-bottom: 24px;

    color: var(--gray-500);
}

/* ============================================================
   PEDIDO
   ============================================================ */

#pedido ol {
    display: grid;

    gap: 12px;

    margin-top: 28px;

    list-style: none;

    counter-reset: pasos;
}

#pedido li {
    counter-increment: pasos;

    display: flex;
    align-items: center;

    min-height: 64px;

    padding: 14px 18px;

    border-radius: 14px;

    background: var(--gray-100);

    color: var(--gray-900);

    font-size: 0.95rem;
}

#pedido li::before {
    content: counter(pasos, decimal-leading-zero);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    margin-right: 14px;

    border-radius: 50%;

    background: var(--blue);
    color: var(--white);

    font-size: 0.75rem;
    font-weight: 900;
}

/* ============================================================
   FAQ
   ============================================================ */

#faq {
    background: #fafafa;
}

#faq details {
    margin-top: 12px;

    border: 1px solid var(--gray-200);
    border-radius: 14px;

    background: var(--white);

    overflow: hidden;
}

#faq summary {
    cursor: pointer;

    padding: 18px;

    color: var(--black);

    font-weight: 800;

    list-style: none;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::after {
    content: "+";

    float: right;

    color: var(--blue);

    font-size: 1.2rem;
}

#faq details[open] summary::after {
    content: "−";
}

#faq details p {
    padding: 0 18px 18px;

    font-size: 0.9rem;
}

/* ============================================================
   CTA FINAL
   ============================================================ */

#contacto {
    width: 100%;
    max-width: none;

    padding:
        80px 20px
        90px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--black),
            #1f2937
        );
}

#contacto > * {
    max-width: 760px;

    margin-left: auto;
    margin-right: auto;
}

#contacto > p:first-child {
    color: #93c5fd;
}

#contacto h2 {
    color: var(--white);
}

#contacto > p {
    color: #d1d5db;
}

#contacto > p strong {
    color: var(--white);
}

#contacto > a {
    margin-top: 24px;
}

#contacto > p:last-child {
    margin-top: 18px;

    font-size: 0.85rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    padding: 32px 20px;

    text-align: center;

    background: #0b0f19;

    color: #9ca3af;

    font-size: 0.8rem;
}

footer p + p {
    margin-top: 6px;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (min-width: 700px) {

    section {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    #producto {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
    }

    #producto > div {
        min-height: 360px;
    }

    #funciones,
    #publico {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    #funciones > p:first-child,
    #funciones > h2,
    #publico > p:first-child,
    #publico > h2 {
        grid-column: 1 / -1;
    }

    #funciones article,
    #publico article {
        margin-top: 0;
    }

    #como-funcionan {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    #como-funcionan > p:first-child,
    #como-funcionan > h2 {
        grid-column: 1 / -1;
    }

    #como-funcionan article {
        margin-top: 0;
    }

    #caracteristicas ul,
    #incluye ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 1000px) {

    header {
        padding-left: max(24px, calc((100% - var(--max-width)) / 2));
        padding-right: max(24px, calc((100% - var(--max-width)) / 2));
    }

    #hero {
        padding-top: 100px;
        padding-bottom: 110px;
    }

    #hero > div {
        min-height: 400px;
    }

    section {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    #caracteristicas ul,
    #incluye ul {
        grid-template-columns: repeat(3, 1fr);
    }
}
