:root {
    --navy: #071525;
    --navy-light: #10283f;
    --cyan: #43d4f1;
    --blue: #087ceb;
    --text: #172c40;
    --muted: #62758a;
    --background: #f5f8fc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.65;
}

a {
    text-decoration: none;
}

.header {
    min-height: 92px;
    padding: 14px 6%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img {
    display: block;
    width: 220px;
    height: auto;
}

.navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.navigation a {
    color: #d5e4f1;
    font-size: 14px;
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--cyan);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 23px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

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

.button-primary {
    background: var(--blue);
    color: white;
}

.button-outline {
    border: 1px solid #6d8ca8;
    color: white;
}

.hero {
    min-height: 620px;
    padding: 100px 7%;
    background:
        radial-gradient(circle at 78% 42%, #17608a70, transparent 35%),
        linear-gradient(125deg, #071525, #0b2340 75%, #061323);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    color: white;
    font-size: clamp(38px, 4.5vw, 68px);
    line-height: 1.12;
    letter-spacing: -1.7px;
    margin: 25px 0;
}

.hero h1 span {
    color: var(--cyan);
}

.hero-description {
    color: #bfd2e2;
    font-size: 17px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-visual {
    width: min(100%, 440px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 33% 29%, #a6edff90, transparent 17%),
        radial-gradient(ellipse at 65% 55%, #0a8bc5, transparent 47%),
        radial-gradient(circle at 40% 45%, #2ab3a6 5%, #116e96 38%, #09243f 72%);
    box-shadow:
        0 0 65px #169ed04d,
        0 0 130px #087ceb24,
        inset -45px -25px 75px #020b19;
    position: relative;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: -12%;
    border: 1px solid #56c8ee40;
    border-radius: 50%;
    transform: rotate(-25deg) scaleY(0.65);
}

.capabilities {
    padding: 80px 7%;
    background: var(--background);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.capability-card {
    padding: 30px;
    background: white;
    border: 1px solid #e2eaf2;
    border-radius: 16px;
    box-shadow: 0 12px 35px #152e4610;
}

.capability-card h2 {
    font-size: 19px;
    color: #113c61;
}

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

.solutions {
    padding: 100px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.solutions-visual {
    min-height: 350px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, #10365366, #061a33aa),
        repeating-linear-gradient(25deg, #43d4f122 0 2px, transparent 2px 35px),
        radial-gradient(circle at 65% 40%, #2a98c5, #12375c 50%, #071525);
    box-shadow: 0 20px 50px #173c5a24;
}

.solutions-content h2,
.technologies h2,
.territory h2,
.contact h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.2;
}

.solutions-content p {
    color: var(--muted);
    margin-bottom: 30px;
}

.technologies {
    padding: 80px 12%;
    text-align: center;
    background: var(--background);
}

.technologies p {
    color: #41627e;
    font-size: 18px;
}

.territory {
    padding: 90px 12%;
    text-align: center;
    background: #eaf4fb;
}

.territory p {
    max-width: 700px;
    margin: auto;
    color: var(--muted);
}

.contact {
    padding: 100px 12%;
    text-align: center;
    color: white;
    background: linear-gradient(120deg, #071525, #12456a);
}

.contact h2 {
    max-width: 850px;
    margin: 0 auto 25px;
}

.contact p {
    color: #bdd7e9;
}

.footer {
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #04101e;
    color: #a8c2d7;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .header {
        flex-wrap: wrap;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: center;
    }

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

@media (max-width: 700px) {
    .header {
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 65px 7%;
    }

    .hero-visual {
        width: min(75%, 280px);
    }

    .capabilities,
    .solutions {
        grid-template-columns: 1fr;
    }

    .solutions {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .navigation {
        gap: 12px;
    }

    .navigation a {
        font-size: 12px;
    }

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

/* Portada GeoAI.earth */
.hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 16, 30, 0.96) 0%,
            rgba(4, 16, 30, 0.84) 35%,
            rgba(4, 16, 30, 0.24) 68%,
            rgba(4, 16, 30, 0.08) 100%
        ),
        url("assets/hero-earth.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    grid-template-columns: 1fr;
}

.hero-content {
    max-width: 760px;
}

.hero-visual {
    display: none;
}

@media (max-width: 700px) {
    .hero {
        background-position: 62% center;
    }
}

/* Ajuste fino de la portada GeoAI.earth */
.hero {
    min-height: 580px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -1.4px;
}


/* Cabecera integrada con la portada espacial */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    border-bottom: 1px solid rgba(150, 210, 255, 0.12);
}

/* Mejorar la luminosidad del logo solo en la web */
.brand img {
    filter: brightness(1.4) saturate(1.15)
            drop-shadow(0 0 8px rgba(40, 150, 255, 0.2));
}

/* Reservar espacio para el menú sobre la imagen */
.hero {
    min-height: 680px;
    padding-top: 155px;
    padding-bottom: 85px;
    background-position: center center;
}

/* Mantener legibles los enlaces */
.navigation a {
    color: #f0f7ff;
}

.navigation a:hover {
    color: var(--cyan);
}

@media (max-width: 700px) {
    .hero {
        min-height: 650px;
        padding-top: 175px;
        padding-bottom: 65px;
        background-position: 62% center;
    }

    .header {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Menú móvil GeoAI.earth */
.menu-toggle {
    display: none;
}

@media (max-width: 700px) {
    .header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 14px 6%;
    }

    .brand img {
        width: 185px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: rgba(8, 28, 48, 0.85);
        border: 1px solid rgba(150, 210, 255, 0.35);
        border-radius: 8px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    .navigation {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        background: rgba(4, 16, 30, 0.97);
        border-radius: 10px;
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation a {
        padding: 12px 18px;
        font-size: 15px;
    }

    .header > .button {
        order: 4;
        margin-left: auto;
    }

    .hero {
        padding-top: 165px;
    }
}

/* Monitor: escritorio y dispositivos móviles */
.monitor-mobile {
    display: none;
}

@media (max-width: 700px) {
    .header > .button {
        display: none;
    }

    .navigation .monitor-mobile {
        display: block;
        color: var(--cyan);
        font-weight: 700;
        border-top: 1px solid rgba(150, 210, 255, 0.2);
        margin-top: 6px;
    }
}

/* Iconos de capacidades GeoAI.earth */
.capability-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    color: #087cff;
}

.capability-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Imagen cartográfica de la sección Soluciones */
.solutions-visual {
    background-image: url("assets/soluciones-territorio.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(23, 60, 90, 0.14);
}


/* Mapa de proyección internacional GeoAI.earth */
.territory-map {
    display: block;
    width: 100%;
    max-width: 1150px;
    height: auto;
    margin: 40px auto 0;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(15, 60, 110, 0.10);
}

@media (max-width: 700px) {
    .territory-map {
        margin-top: 25px;
        border-radius: 12px;
    }
}


/* Cierre panorámico GeoAI.earth */
.contact {
    position: relative;
    isolation: isolate;
    min-height: 470px;
    padding: 85px 7%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #ffffff;
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 20, 45, 0.85) 0%,
            rgba(3, 20, 45, 0.55) 45%,
            rgba(3, 20, 45, 0.08) 100%
        ),
        url("assets/atardecer-geoai.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.contact-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 25px;
}

.contact-content p {
    color: #e3f2ff;
    margin-bottom: 30px;
}

.contact-content .button {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 700px) {
    .contact {
        min-height: 430px;
        padding: 65px 7%;
        background-position: 60% center;
    }

    .contact-content h2 {
        font-size: clamp(1.9rem, 7vw, 2.7rem);
    }
}


/* Sección territorial: diseño de tres columnas */
.territory {
    padding: 85px 7%;
    background: #eaf4fb;
    text-align: left;
}

.territory-layout {
    display: grid;
    grid-template-columns: 1fr 1.55fr 0.75fr;
    gap: 35px;
    align-items: center;
    max-width: 1450px;
    margin: 0 auto;
}

.territory-intro h2 {
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.2;
    margin-bottom: 22px;
}

.territory-intro p {
    margin: 0;
    max-width: 360px;
    color: #41627e;
    line-height: 1.7;
}

.territory-visual {
    min-width: 0;
}

.territory-map {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(15, 60, 110, 0.08);
}

.territory-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.territory-stat h3 {
    color: #164b78;
    font-size: 18px;
    margin-bottom: 10px;
}

.territory-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.territory-number strong {
    color: #087cff;
    font-size: clamp(44px, 4vw, 64px);
    line-height: 1;
}

.territory-number span {
    color: #41627e;
    font-size: 17px;
}

.territory-stat p {
    margin: 0;
    color: #41627e;
    font-size: 16px;
    line-height: 1.5;
}

/* Adaptación a tablets */
@media (max-width: 1050px) {
    .territory-layout {
        grid-template-columns: 1fr 1fr;
    }

    .territory-stats {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Adaptación a celulares */
@media (max-width: 700px) {
    .territory {
        padding: 65px 7%;
    }

    .territory-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .territory-stats {
        grid-column: auto;
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }
}

