
/* ==========================================
   MAPPACHE WEB - v0.1.0
   Identidad visual y diseño responsive
   ========================================== */

:root {
    --navy: #142D4E;
    --blue: #2864A5;
    --light-blue: #EAF2FA;
    --white: #FFFFFF;
    --background: #F5F7FA;
    --text: #23364B;
    --muted: #64748B;
    --border: #DFE7EF;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(20, 45, 78, 0.08);
}

/* CONFIGURACIÓN GENERAL */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
}

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

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

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

a:focus-visible {
    outline: 3px solid #E5A84B;
    outline-offset: 5px;
}

/* ENCABEZADO */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.navigation {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--navy);
}

.brand span {
    color: var(--blue);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--blue);
}

/* PORTADA PRINCIPAL */

.hero {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F1F6FC 65%,
        #DCEAF8 100%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: -2px;
    color: var(--navy);
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--blue);
    display: block;
}

.hero-text > p {
    font-size: 19px;
    color: var(--muted);
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

/* BOTONES */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button.primary {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.button.primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.button.secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.button.secondary:hover {
    background: var(--light-blue);
}

/* VISTA PROVISIONAL DE LA APP */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview {
    width: 100%;
    max-width: 390px;
    min-height: 420px;
    padding: 45px 25px;
    border-radius: 35px;
    background: linear-gradient(
        145deg,
        #142D4E,
        #2864A5
    );
    color: var(--white);
    box-shadow: 0 25px 60px rgba(20, 45, 78, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.app-preview span {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1px;
}

.app-preview strong {
    font-size: 85px;
    line-height: 1.2;
    font-weight: 800;
}

.app-preview p {
    margin-top: 20px;
    color: #DCEAF8;
    font-size: 16px;
}

/* TÍTULOS DE SECCIÓN */

.section-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.section h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 20px;
}

.section-heading p {
    font-size: 17px;
    color: var(--muted);
}

/* FUNCIONALIDADES */

.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease,
                border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
}

.feature-icon {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    border-radius: 15px;
    font-size: 28px;
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
}

/* TIPOS DE NEGOCIOS */

.business {
    background: var(--background);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.business-grid div {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px 15px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: var(--navy);
    transition: transform 0.2s ease;
}

.business-grid div:hover {
    transform: translateY(-4px);
}

/* SOBRE MAPPACHE */

.about {
    text-align: center;
    background: var(--white);
}

.about .container {
    max-width: 800px;
}

.about p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 18px;
}

/* CONTACTO */

.contact {
    background: var(--navy);
    text-align: center;
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact p {
    color: #DCEAF8;
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 30px;
}

.contact .button {
    margin: 8px;
}

.contact .primary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.contact .primary:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
}

.contact .secondary {
    color: var(--white);
    border-color: var(--white);
}

.contact .secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* PIE DE PÁGINA */

.footer {
    background: #0D2039;
    color: #B6C7DC;
    padding: 45px 0;
    text-align: center;
}

.footer strong {
    color: var(--white);
    font-size: 28px;
    letter-spacing: -1px;
}

.footer p {
    font-size: 14px;
    margin-top: 8px;
}

/* ADAPTACIÓN A TABLETS */

@media (max-width: 900px) {

    .hero {
        padding: 70px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text > p {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 135px;
    }

    .navigation {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 15px 0;
    }

    .brand {
        font-size: 28px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-text > p {
        font-size: 17px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .app-preview {
        min-height: 300px;
        max-width: 300px;
        border-radius: 25px;
    }

    .app-preview strong {
        font-size: 65px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-card {
        padding: 25px;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact .button {
        margin: 7px 0;
    }

}

/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .button:hover,
    .feature-card:hover,
    .business-grid div:hover {
        transform: none;
    }

}
