/* =========================================================
   AREALOCAL IT - HOJA DE ESTILOS
   Estructura: generales, navegación, inicio, servicios,
   nosotros, enfoque, contacto, footer y responsive.
   ========================================================= */

/* 1. VARIABLES Y ESTILOS GENERALES */
:root {
    --bg: #0b1020;
    --panel: #111a30;
    --text: #f4f7ff;
    --muted: #a7b2c9;
    --blue: #63a7ff;
    --cyan: #50e0d0;
    --purple: #a58bff;
    --line: rgba(174, 194, 230, 0.15);
    --font: "DM Sans", sans-serif;
    --display: "Space Grotesk", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
}

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

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
    letter-spacing: -1.8px;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 112px 0;
}

.gradient-text {
    background: linear-gradient(100deg, #70b5ff 0%, #7d9dff 45%, #b18bff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    pointer-events: none;
}

.ambient-one {
    top: 90px;
    right: -150px;
    width: 380px;
    height: 380px;
    background: #426eff;
}

.ambient-two {
    top: 900px;
    left: -180px;
    width: 300px;
    height: 300px;
    background: #754cff;
}

/* 2. ENCABEZADO Y NAVEGACIÓN */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 86px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 16, 32, 0.82);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.main-nav,
.brand,
.hero-actions,
.hero-bottom,
.footer-inner {
    display: flex;
    align-items: center;
}

.nav-wrap {
    justify-content: space-between;
}

.brand {
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #071020;
    font-family: var(--display);
    font-size: 23px;
    font-weight: 700;
}

.brand-mark span {
    color: #fff;
}

.brand-name {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.7px;
    line-height: 1.05;
}

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

.brand-name small {
    display: block;
    margin-top: 5px;
    color: #91a2c1;
    font-family: var(--font);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.main-nav {
    gap: 35px;
    color: #c4cde0;
    font-size: 13px;
}

.main-nav a:hover,
.text-link:hover {
    color: var(--cyan);
}

.nav-cta {
    padding: 10px 17px;
    border: 1px solid rgba(120, 166, 255, 0.4);
    border-radius: 7px;
    color: #fff;
}

.nav-cta span {
    margin-left: 8px;
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
}

/* 3. INICIO / HERO */
.hero {
    min-height: 650px;
    padding: 100px 0 35px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.pulse,
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.hero h1 {
    margin: 22px 0;
    font-size: clamp(43px, 5.5vw, 68px);
    line-height: 1.08;
}

.hero-lead {
    max-width: 540px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

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

.button {
    display: inline-flex;
    align-items: center;
    gap: 23px;
    padding: 14px 20px;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(66, 123, 255, 0.22);
}

.button span {
    font-size: 18px;
}

.button-primary {
    background: linear-gradient(105deg, #579cff, #8b7cff);
    color: #081124;
}

.text-link {
    color: #dbe5fa;
    font-size: 13px;
    font-weight: 700;
}

.text-link span {
    margin-left: 8px;
    color: var(--cyan);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 55px;
    color: #8190ad;
    font-size: 10px;
    letter-spacing: 1.6px;
}

.note-line {
    width: 30px;
    height: 1px;
    background: var(--cyan);
}

/* Ilustración tecnológica del inicio */
.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 430px;
}

.art-grid {
    position: absolute;
    inset: 25px 0;
    background-image:
        linear-gradient(rgba(130, 163, 230, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 163, 230, 0.08) 1px, transparent 1px);
    background-size: 35px 35px;
    mask-image: radial-gradient(ellipse, black 20%, transparent 72%);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(106, 164, 255, 0.24);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-a {
    width: 410px;
    height: 220px;
}

.orbit-b {
    width: 340px;
    height: 330px;
    border-color: rgba(155, 128, 255, 0.2);
    transform: rotate(55deg);
}

.core-card {
    position: relative;
    z-index: 2;
    width: 260px;
    height: 280px;
    padding: 19px;
    border: 1px solid rgba(146, 177, 237, 0.32);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(31, 49, 85, 0.92), rgba(15, 24, 46, 0.95));
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.08);
}

.core-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9baecc;
    font-size: 8px;
    letter-spacing: 1.8px;
}

.core-menu {
    margin-left: auto;
}

.core-symbol {
    position: relative;
    display: grid;
    place-items: center;
    height: 115px;
}

.core-symbol span {
    z-index: 1;
    background: linear-gradient(135deg, #70c5ff, #a68bff);
    background-clip: text;
    color: transparent;
    font-family: var(--display);
    font-size: 68px;
    font-weight: 700;
}

.core-symbol i {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(100, 173, 255, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 45px rgba(76, 135, 255, 0.18);
}

.core-title {
    text-align: center;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
}

.core-subtitle {
    margin-top: 3px;
    color: #9aa9c5;
    text-align: center;
    font-size: 10px;
}

.core-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
    height: 25px;
    margin-top: 12px;
}

.core-bars i {
    width: 5px;
    height: 45%;
    border-radius: 5px;
    background: linear-gradient(var(--cyan), #668fff);
}

.core-bars i:nth-child(2n) {
    height: 80%;
}

.core-bars i:nth-child(3n) {
    height: 60%;
}

.float-chip {
    position: absolute;
    z-index: 3;
    padding: 10px 14px;
    border: 1px solid rgba(125, 171, 255, 0.3);
    border-radius: 8px;
    background: #17243f;
    box-shadow: 0 10px 30px #050a16;
    color: #dbe8ff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.float-chip span {
    margin-right: 6px;
    color: var(--cyan);
    font-size: 16px;
    vertical-align: middle;
}

.chip-cloud {
    top: 70px;
    left: 0;
}

.chip-shield {
    top: 160px;
    right: 0;
}

.chip-network {
    bottom: 55px;
    left: 40px;
}

.art-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: #416bff;
    filter: blur(110px);
    opacity: 0.2;
}

.hero-bottom {
    gap: 18px;
    margin-top: 45px;
    color: #71809e;
    font-size: 9px;
    letter-spacing: 2px;
}

.bottom-rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* 4. FRANJA INSTITUCIONAL */
.intro-strip {
    border-block: 1px solid rgba(151, 177, 255, 0.14);
    background: linear-gradient(100deg, #16264a, #1b2444 55%, #28214b);
}

.intro-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
}

.intro-inner p {
    margin: 0;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
}

.intro-inner strong {
    color: #85c7ff;
}

.intro-orb {
    color: #9e91ff;
    font-size: 45px;
}

/* 5. SERVICIOS */
.section-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 48px;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
    margin: 15px 0 0;
    font-size: clamp(34px, 4vw, 49px);
    line-height: 1.16;
}

.section-heading > p {
    max-width: 420px;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

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

.service-card {
    position: relative;
    min-height: 260px;
    padding: 27px 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(23, 35, 62, 0.9), rgba(15, 24, 44, 0.9));
    transition: transform 0.25s, border-color 0.25s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 178, 255, 0.55);
}

.service-featured {
    background: linear-gradient(145deg, rgba(37, 67, 115, 0.75), rgba(20, 31, 57, 0.96));
}

.service-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 23px;
    border: 1px solid rgba(106, 170, 255, 0.22);
    border-radius: 10px;
    background: rgba(91, 157, 255, 0.13);
    color: #82c8ff;
    font-size: 23px;
}

.card-index {
    color: #8294b5;
    font-size: 8px;
    letter-spacing: 1.8px;
}

.service-card h3 {
    margin: 10px 0;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.service-card p {
    max-width: 290px;
    margin: 0;
    color: #a4b1ca;
    font-size: 12px;
    line-height: 1.8;
}

.card-arrow {
    position: absolute;
    right: 23px;
    bottom: 20px;
    color: #7fc9ff;
    font-size: 18px;
}

/* 6. NOSOTROS */
.about-section {
    border-block: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(18, 27, 49, 0.3), rgba(21, 31, 56, 0.65), rgba(11, 16, 32, 0.2));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 95px;
}

.about-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 400px;
}

.about-frame {
    position: relative;
    width: 310px;
    height: 340px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid rgba(119, 166, 255, 0.35);
    border-radius: 16px;
    background: linear-gradient(145deg, #1d3561, #111b34 70%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.frame-label {
    color: #b4c7eb;
    font-size: 9px;
    letter-spacing: 2px;
}

.frame-big {
    position: absolute;
    top: 82px;
    left: 25px;
    color: #80baff;
    font-family: var(--display);
    font-size: 160px;
    font-weight: 700;
    letter-spacing: -18px;
    text-shadow: 0 0 50px rgba(86, 160, 255, 0.3);
}

.frame-big span {
    color: #a58cff;
}

.frame-caption {
    position: absolute;
    bottom: 28px;
    left: 25px;
    color: #dce8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.6;
}

.frame-cross {
    position: absolute;
    top: 85px;
    right: 28px;
    color: #70e4d4;
    font-size: 30px;
}

.frame-circle {
    position: absolute;
    right: -75px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(110, 194, 255, 0.25);
    border-radius: 50%;
}

.about-stamp {
    position: absolute;
    right: 5%;
    bottom: 22px;
    padding: 15px 19px;
    border: 1px solid rgba(120, 166, 255, 0.3);
    border-radius: 9px;
    background: #111b33;
    color: #80caff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.7;
    transform: rotate(5deg);
}

.about-copy .large-copy {
    margin: 27px 0 15px;
    color: #e1eaff;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.55;
}

.about-copy > p:not(.large-copy) {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

/* 7. ENFOQUE DE TRABAJO */
.approach-section {
    padding-bottom: 120px;
}

.compact-heading {
    margin-bottom: 35px;
}

.approach-grid {
    border-top: 1px solid var(--line);
}

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

.approach-item > span {
    padding-top: 5px;
    color: var(--cyan);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
}

.approach-item h3 {
    margin: 0 0 5px;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.approach-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* 8. CONTACTO Y FORMULARIO */
.contact-section {
    padding-top: 0;
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    border: 1px solid rgba(135, 171, 255, 0.25);
    border-radius: 17px;
    background: linear-gradient(120deg, #243e70, #20234d 65%, #29204c);
}

.contact-copy {
    position: relative;
    z-index: 1;
    padding: 55px 45px;
}

.contact-copy .eyebrow {
    color: #83e7dc;
}

.contact-copy h2 {
    margin: 15px 0;
}

.contact-copy p {
    max-width: 390px;
    margin-bottom: 25px;
    color: #c3cde3;
    font-size: 14px;
}

.button-light {
    background: #eaf3ff;
    color: #101a30;
}

.contact-form-wrap {
    padding: 45px;
    background: rgba(7, 14, 31, 0.22);
}

.contact-form-wrap h3 {
    margin: 0 0 5px;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.form-intro {
    margin-bottom: 22px;
    color: #c3cde3;
    font-size: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    color: #dce7fb;
    font-size: 11px;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(170, 194, 235, 0.24);
    border-radius: 6px;
    outline: none;
    background: rgba(8, 16, 34, 0.5);
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #8392ae;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(80, 224, 208, 0.1);
}

.form-field textarea {
    min-height: 105px;
    resize: vertical;
}

.form-submit {
    justify-content: center;
    align-self: flex-start;
}

.form-privacy {
    margin: -5px 0 0;
    color: #aab8d0;
    font-size: 10px;
    line-height: 1.5;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.contact-details {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    overflow: hidden;
    padding: 28px 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 14, 31, 0.16);
}

.contact-detail {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-detail span {
    color: #a4b5d7;
    font-size: 8px;
    letter-spacing: 2px;
}

.contact-detail a {
    color: #fff;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
}

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

.contact-decoration {
    position: absolute;
    right: -25px;
    bottom: -115px;
    color: rgba(150, 177, 255, 0.07);
    font-family: var(--display);
    font-size: 260px;
    font-weight: 700;
    line-height: 0.9;
}

.contact-decoration span {
    color: rgba(117, 224, 219, 0.12);
}

/* 9. PIE DE PÁGINA */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    justify-content: space-between;
    gap: 20px;
}

.footer-inner > span,
.back-top {
    color: #7e8da9;
    font-size: 9px;
    letter-spacing: 1px;
}

.footer-brand .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.footer-brand .brand-name {
    font-size: 14px;
}

.back-top:hover {
    color: var(--cyan);
}

/* 10. ADAPTACIÓN A TABLETS */
@media (max-width: 850px) {
    .main-nav {
        gap: 18px;
    }

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;
    }

    .hero-art {
        margin-inline: -25px;
        transform: scale(0.88);
    }

    .section {
        padding: 85px 0;
    }

    .about-grid {
        gap: 45px;
    }

    .contact-copy {
        padding: 45px 35px;
    }

    .contact-form-wrap {
        padding: 35px 30px;
    }
}

/* 11. ADAPTACIÓN A CELULARES */
@media (max-width: 680px) {
    .container {
        width: min(100% - 36px, 540px);
    }

    .site-header {
        height: 72px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
        border-radius: 3px;
        background: #dce7fb;
    }

    .main-nav {
        position: absolute;
        top: 71px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 24px 25px;
        border-bottom: 1px solid var(--line);
        background: #101a30;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-cta {
        text-align: center;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .hero-copy {
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-note {
        margin-top: 35px;
        font-size: 8px;
    }

    .hero-art {
        height: 330px;
        margin: 0 -15px;
        transform: none;
    }

    .orbit-a {
        width: 330px;
        height: 180px;
    }

    .orbit-b {
        width: 280px;
        height: 280px;
    }

    .core-card {
        transform: scale(0.85);
    }

    .chip-cloud {
        top: 45px;
        left: 8px;
    }

    .chip-shield {
        top: 130px;
        right: 0;
    }

    .chip-network {
        bottom: 30px;
        left: 12px;
    }

    .hero-bottom {
        margin-top: 20px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .intro-inner {
        min-height: 125px;
    }

    .intro-inner p {
        font-size: 17px;
    }

    .intro-orb {
        font-size: 32px;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 32px;
    }

    .section-heading h2,
    .about-copy h2,
    .contact-copy h2 {
        font-size: 36px;
    }

    .section-heading > p {
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 220px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-visual {
        height: 350px;
    }

    .about-frame {
        transform: scale(0.9);
    }

    .about-copy .large-copy {
        font-size: 17px;
    }

    .approach-item {
        grid-template-columns: 42px 1fr;
        gap: 15px;
    }

    .contact-section {
        padding-top: 0;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        padding: 38px 27px;
    }

    .contact-form-wrap {
        padding: 35px 27px;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
        padding: 30px 27px;
    }

    .contact-detail a {
        font-size: 14px;
    }

    .footer-inner {
        flex-wrap: wrap;
    }

    .footer-inner > span {
        order: 3;
        width: 100%;
    }

    .back-top {
        margin-left: auto;
    }
}

/* 12. ACCESIBILIDAD: RESPETAR REDUCCIÓN DE MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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