/* ==============================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================== */

:root {
    color-scheme: light dark;

    --bg: #f6f0e8;
    --surface: #fffdf9;
    --text: #4d4650;
    --muted: #827783;

    --green: #b9d8c2;
    --purple: #cdbbdc;
    --orange: #edb78d;
    --beige: #eadbc8;

    --line: #e4d9ce;
}


/* ==============================
   RESETEO Y CUERPO
   ============================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}


/* ==============================
   CONTENEDOR PRINCIPAL
   ============================== */

.app {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #f7f1e9 0%,
            #fffdf9 48%,
            #eef5ee 100%
        );

    padding: 28px 18px;
}


/* ==============================
   NAVEGACIÓN
   ============================== */

.nav {
    max-width: 980px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 4px 0 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;

    display: grid;
    place-items: center;

    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navlinks {
    display: flex;
    gap: 18px;

    font-size: 13px;
    color: var(--muted);
}


/* ==============================
   TARJETAS GENERALES
   ============================== */

.card {
    background: #fffdf9dd;

    border: 1px solid var(--line);
    border-radius: 30px;

    box-shadow: 0 18px 50px #6e5b4614;

    backdrop-filter: blur(8px);
}


/* ==============================
   HERO / PRESENTACIÓN PRINCIPAL
   ============================== */

.hero {
    max-width: 980px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 24px;
    align-items: stretch;
}

.heroText {
    padding: 48px;
}

.eyebrow {
    display: inline-block;

    padding: 8px 12px;

    border-radius: 999px;

    background: #e4f0e6;
    color: #607b68;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: Georgia, serif;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.96;

    font-weight: 500;

    margin: 22px 0 16px;

    color: #514956;
}

.hero p {
    color: var(--muted);

    font-size: 16px;
    line-height: 1.7;

    max-width: 520px;
}


/* ==============================
   BOTONES
   ============================== */

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 28px;
}

.btn {
    border: 0;
    text-decoration: none;

    padding: 13px 18px;

    border-radius: 14px;

    font-weight: 700;
    font-size: 13px;

    display: inline-block;
}

.primary {
    background: #9fc8ab;
    color: #304437;
}

.secondary {
    background: #eee2d4;
    color: #65584e;
}


/* ==============================
   IMAGEN / ELEMENTO VISUAL
   ============================== */

.visual {
    min-height: 430px;

    position: relative;
    overflow: hidden;

    padding: 14px;
}

.visual img {
    width: 100%;
    height: 100%;
    min-height: 400px;

    object-fit: cover;

    border-radius: 22px;

    display: block;

    background:
        linear-gradient(
            135deg,
            #ded2e4,
            #c6ddcc
        );
}


/* ==============================
   BADGE SOBRE LA IMAGEN
   ============================== */

.badge {
    position: absolute;

    left: 32px;
    bottom: 32px;

    background: #fffdf9e8;

    padding: 15px 18px;

    border-radius: 18px;

    box-shadow: 0 10px 30px #574c401c;
}

.badge strong {
    display: block;

    font-family: Georgia, serif;

    font-size: 19px;
}

.badge span {
    font-size: 11px;
    color: var(--muted);
}


/* ==============================
   TARJETAS DE INFORMACIÓN
   ============================== */

.info {
    max-width: 980px;
    margin: 24px auto 0;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    gap: 14px;
}

.infoCard {
    padding: 24px;
}

.icon {
    width: 36px;
    height: 36px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;
}

.green {
    background: #dcece0;
}

.purple {
    background: #e7dcef;
}

.orange {
    background: #f7dfcd;
}

.info h3 {
    margin: 0 0 6px;

    font-size: 14px;
}

.info p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}


/* ==============================
   SERVIDOR / INFORMACIÓN DE CONTACTO
   ============================== */

.server {
    max-width: 980px;
    margin: 24px auto 0;

    padding: 25px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.server small {
    color: var(--muted);

    text-transform: uppercase;
    letter-spacing: 0.12em;

    font-weight: 800;
    font-size: 10px;
}

.ip {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 18px;

    margin-top: 7px;
}


/* ==============================
   REDES SOCIALES
   ============================== */

.social {
    display: flex;
    gap: 8px;
}

.social a {
    width: 40px;
    height: 40px;

    border-radius: 13px;

    background: #f1e7dd;

    display: grid;
    place-items: center;

    color: #665966;

    text-decoration: none;

    font-weight: 800;
    font-size: 12px;
}


/* ==============================
   MAPA
   ============================== */

.mapSection {
    max-width: 980px;
    margin: 24px auto 0;

    padding: 14px;
}

.mapHeader {
    padding: 14px 14px 10px;
}

.mapHeader h2 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: 25px;
    font-weight: 500;
}

.mapHeader p {
    margin: 6px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.mapFrame {
    width: 100%;
    height: 360px;

    border: 0;
    border-radius: 22px;

    display: block;
}


/* ==============================
   FOOTER
   ============================== */

.footer {
    max-width: 980px;
    margin: 25px auto 0;

    text-align: center;

    color: #91868e;

    font-size: 11px;
}


/* ==============================
   RESPONSIVE / CELULAR
   ============================== */

@media (max-width: 760px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .heroText {
        padding: 34px;
    }

    .visual {
        min-height: 340px;
    }

    .visual img {
        min-height: 310px;
    }

    .info {
        grid-template-columns: 1fr;
    }

    .server {
        flex-direction: column;
        align-items: flex-start;
    }

    .navlinks {
        display: none;
    }
}


/* ==============================
   MODO OSCURO
   ============================== */

@media (prefers-color-scheme: dark) {

    :root {
        --bg: #201e1d;
        --surface: #282523;
        --text: #eee8e2;
        --muted: #b5aaa4;
        --line: #3d3733;
    }

    .app {
        background:
            linear-gradient(
                135deg,
                #24211f,
                #2b2926,
                #202822
            );
    }

    .card {
        background: #2a2724e8;
    }

    .badge {
        background: #2c2926ee;
    }

    .social a {
        background: #39332e;
        color: #e8ded6;
    }
}