﻿/* =========================================================
   LEGACYCORP - ESTILOS PRINCIPALES
========================================================= */

:root {
    --primary: #155eef;
    --primary-dark: #0b3b91;
    --primary-light: #eaf2ff;

    --dark: #0b1220;
    --dark-2: #111827;

    --text: #344054;
    --muted: #667085;

    --white: #ffffff;
    --background: #f8fafc;
    --border: #e4e7ec;

    --success: #12b76a;

    --shadow-sm: 0 4px 18px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 15px 45px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 25px 70px rgba(16, 24, 40, 0.16);

    --radius: 18px;
    --radius-lg: 28px;

    --container: 1180px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 105px 0;
}


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

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

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(228,231,236,.8);
}

.navbar {
    min-height: 78px;

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

    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    color: white;
    font-weight: 800;
    font-size: 20px;

    background:
        linear-gradient(135deg, #0b3b91, #2474ff);

    box-shadow: 0 8px 20px rgba(21,94,239,.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    color: var(--dark);
}

.brand-tagline {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

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

.nav-menu a {
    color: #475467;
    font-size: 14px;
    font-weight: 600;

    transition: .25s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    font-size: 26px;
    cursor: pointer;
}


/* =========================================================
   BOTONES
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

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

.btn-primary {
    color: white;

    background:
        linear-gradient(135deg, var(--primary), #0b4dc5);

    box-shadow: 0 10px 28px rgba(21,94,239,.25);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(21,94,239,.35);
}

.btn-secondary {
    background: white;
    color: var(--dark);

    border: 1px solid var(--border);
}

.btn-header {
    color: white;
    background: var(--dark);
}

.btn-light {
    background: white;
    color: var(--primary-dark);

    white-space: nowrap;

    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}


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

.hero {
    position: relative;

    min-height: 690px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 75% 20%,
            rgba(21,94,239,.13),
            transparent 28%),
        radial-gradient(circle at 15% 80%,
            rgba(14,165,233,.08),
            transparent 30%),
        linear-gradient(180deg,#fff,#f7faff);
}

.hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    right: -230px;
    top: -230px;

    border: 80px solid rgba(21,94,239,.035);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;

    gap: 75px;

    align-items: center;

    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.hero h1 {
    max-width: 720px;

    font-size: clamp(42px,5vw,68px);
    line-height: 1.05;

    letter-spacing: -2.7px;

    color: var(--dark);
}

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

.hero-description {
    max-width: 620px;

    margin-top: 25px;

    font-size: 18px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 32px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 22px;

    margin-top: 32px;

    color: #475467;

    font-size: 13px;
    font-weight: 600;
}

.hero-features div {
    display: flex;
    gap: 7px;
    align-items: center;
}

.hero-features strong {
    color: var(--success);
}


/* =========================================================
   PANEL TECNOLÓGICO HERO
========================================================= */

.hero-visual {
    position: relative;
}

.tech-panel {
    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(145deg,#0d1629,#111f38);

    box-shadow:
        0 40px 80px rgba(15,23,42,.28);

    transform: perspective(1000px) rotateY(-4deg);
}

.panel-header {
    height: 48px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 20px;

    background: rgba(255,255,255,.04);

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.panel-header span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: rgba(255,255,255,.3);
}

.panel-content {
    padding: 32px;
}

.status-title {
    margin-bottom: 22px;

    color: white;

    font-size: 20px;
    font-weight: 700;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 18px 0;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.status-item:last-child {
    border-bottom: 0;
}

.status-item strong {
    display: block;

    color: white;

    font-size: 14px;
}

.status-item small {
    display: block;

    margin-top: 3px;

    color: #94a3b8;
}

.status {
    padding: 6px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.status.online {
    color: #6ce9a6;
    background: rgba(18,183,106,.12);
}


/* =========================================================
   ENCABEZADOS
========================================================= */

.section-heading {
    max-width: 720px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-heading h2,
.support-content h2,
.about-content h2,
.contact-content h2 {
    color: var(--dark);

    font-size: clamp(30px,4vw,45px);

    line-height: 1.15;

    letter-spacing: -1.3px;
}

.section-heading p,
.support-content > p,
.about-content > p,
.contact-content > p {
    margin-top: 17px;

    color: var(--muted);

    font-size: 16px;
}


/* =========================================================
   PROPUESTA DE VALOR
========================================================= */

.value-section {
    padding: 100px 0;

    background: var(--background);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);

    gap: 20px;
}

.value-card {
    padding: 28px;

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

    border-radius: var(--radius);

    background: white;

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

    transition: .3s;
}

.value-card:hover {
    transform: translateY(-7px);

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

    border-color: #c7d7fe;
}

.card-icon,
.service-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 13px;

    background: var(--primary-light);

    font-size: 23px;
}

.value-card h3 {
    margin-bottom: 9px;

    color: var(--dark);
}

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


/* =========================================================
   SERVICIOS
========================================================= */

.services {
    background: white;
}

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

    gap: 22px;
}

.service-card {
    position: relative;

    padding: 34px;

    overflow: hidden;

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

    border-radius: var(--radius);

    background: white;

    transition: .3s;
}

.service-card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -70px;
    top: -70px;

    border-radius: 50%;

    background: var(--primary-light);

    transition: .35s;
}

.service-card:hover {
    transform: translateY(-6px);

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

    border-color: #b9ccff;
}

.service-card:hover::after {
    transform: scale(1.5);
}

.service-card h3 {
    margin-bottom: 10px;

    color: var(--dark);

    font-size: 20px;
}

.service-card p {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 14px;
}

.service-card li {
    position: relative;

    margin: 8px 0;

    padding-left: 19px;

    color: #475467;

    font-size: 13px;
}

.service-card li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--success);

    font-weight: 800;
}


/* =========================================================
   PROCESO
========================================================= */

.process {
    background:
        linear-gradient(180deg,#f8fafc,#eef4ff);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);

    gap: 18px;
}

.process-card {
    padding: 30px;

    border-radius: var(--radius);

    background: white;

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

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

.process-card span {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;
}

.process-card h3 {
    color: var(--dark);

    font-size: 20px;
}

.process-card p {
    margin-top: 9px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   SOPORTE ADMINISTRADO
========================================================= */

.support-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;

    gap: 70px;

    align-items: center;
}

.support-list {
    margin-top: 30px;
}

.support-list div {
    padding: 17px 0;

    border-bottom: 1px solid var(--border);
}

.support-list strong {
    display: block;

    color: var(--dark);
}

.support-list span {
    color: var(--muted);

    font-size: 14px;
}

.support-box {
    padding: 45px;

    border-radius: var(--radius-lg);

    color: white;

    background:
        linear-gradient(145deg,#0b1220,#123978);

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

.support-box > span {
    color: #84adff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.support-box h3 {
    margin: 14px 0;

    font-size: 30px;

    line-height: 1.15;
}

.support-box p {
    margin-bottom: 25px;

    color: #cbd5e1;
}


/* =========================================================
   NOSOTROS
========================================================= */

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about-content p + p {
    margin-top: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);

    gap: 15px;
}

.about-stats div {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 25px;

    border-radius: 16px;

    background: white;

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

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

.about-stats strong {
    color: var(--primary);

    font-size: 23px;
}

.about-stats span {
    margin-top: 5px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   EVALUACIÓN
========================================================= */

.evaluation {
    padding: 80px 0;
}

.evaluation-box {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 40px;

    padding: 55px;

    border-radius: var(--radius-lg);

    color: white;

    background:
        radial-gradient(circle at 90% 20%,
            rgba(255,255,255,.18),
            transparent 30%),
        linear-gradient(135deg,#155eef,#0b3b91);

    box-shadow:
        0 30px 60px rgba(21,94,239,.25);
}

.eyebrow.light {
    color: #dbe7ff;
}

.evaluation h2 {
    max-width: 700px;

    font-size: clamp(30px,4vw,45px);

    line-height: 1.1;
}

.evaluation p {
    max-width: 700px;

    margin-top: 15px;

    color: #dbe7ff;
}


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

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

.faq-list {
    max-width: 850px;

    margin: auto;
}

.faq-item {
    margin-bottom: 12px;

    padding: 21px 24px;

    border-radius: 13px;

    background: white;

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

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

.faq-item summary {
    cursor: pointer;

    color: var(--dark);

    font-weight: 700;
}

.faq-item p {
    padding-top: 15px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .65fr;

    gap: 70px;

    align-items: center;
}

.contact-card {
    padding: 40px;

    border-radius: var(--radius);

    background: white;

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

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

.contact-card h3 {
    color: var(--dark);

    font-size: 27px;
}

.contact-card p {
    margin: 8px 0 22px;

    color: var(--muted);
}


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

.footer {
    padding: 70px 0 25px;

    color: #94a3b8;

    background: #080f1c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;

    gap: 45px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.footer-brand {
    color: white;

    font-size: 25px;
    font-weight: 800;
}

.footer strong {
    margin-bottom: 8px;

    color: white;
}

.footer a {
    font-size: 13px;

    transition: .2s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 55px;
    padding-top: 22px;

    border-top:
        1px solid rgba(255,255,255,.08);

    font-size: 12px;
}


/* =========================================================
   BOTÓN FLOTANTE
========================================================= */

.floating-contact {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: white;

    background: var(--primary);

    box-shadow:
        0 12px 35px rgba(21,94,239,.4);

    transition: .25s;
}

.floating-contact:hover {
    transform:
        translateY(-4px)
        scale(1.04);
}


/* =========================================================
   ANIMACIONES
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   LEGACYCORP - SELECTOR DE TEMA
   ============================================================ */

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
}

.theme-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;

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

    font-size: 16px;

    transition:
        background .25s ease,
        transform .2s ease,
        box-shadow .25s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.theme-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
}


/* ============================================================
   TEMA CLARO
   ============================================================ */

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] body {
    background: #ffffff;
    color: #0f172a;
}


/* ============================================================
   TEMA GRIS
   ============================================================ */

html[data-theme="gray"] {
    color-scheme: light;
}

html[data-theme="gray"] body {
    background: #e9edf2;
    color: #1e293b;
}

html[data-theme="gray"] .header {
    background: #dfe4ea;
}

html[data-theme="gray"] .hero {
    background:
        linear-gradient(
            135deg,
            #f4f6f8 0%,
            #dfe5eb 100%
        );
}

html[data-theme="gray"] .theme-switcher {
    background: #cfd6de;
    border-color: #bac4cf;
}


/* ============================================================
   TEMA OSCURO
   ============================================================ */

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background: #080d16;
    color: #e5e7eb;
}

html[data-theme="dark"] .header {
    background: #0b1220;
    border-bottom-color: #1e293b;
}

html[data-theme="dark"] .nav-menu a {
    color: #cbd5e1;
}

html[data-theme="dark"] .nav-menu a:hover {
    color: #3b82f6;
}

html[data-theme="dark"] .brand-name {
    color: #ffffff;
}

html[data-theme="dark"] .brand-tagline {
    color: #94a3b8;
}

html[data-theme="dark"] .hero {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, .18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #080d16 0%,
            #0f172a 100%
        );
}

html[data-theme="dark"] .hero h1 {
    color: #f8fafc;
}

html[data-theme="dark"] .hero p {
    color: #94a3b8;
}

html[data-theme="dark"] .theme-switcher {
    background: #111827;
    border-color: #334155;
}

html[data-theme="dark"] .theme-btn {
    color: #f8fafc;
}

html[data-theme="dark"] .theme-btn:hover {
    background: #1e293b;
}

html[data-theme="dark"] .theme-btn.active {
    background: #2563eb;
    box-shadow: 0 3px 12px rgba(37, 99, 235, .35);
}


/* ============================================================
   TRANSICION SUAVE ENTRE TEMAS
   ============================================================ */

body,
.header,
.hero,
.nav-menu a,
.theme-switcher,
.theme-btn {
    transition:
        background-color .35s ease,
        background .35s ease,
        color .35s ease,
        border-color .35s ease;
}

/* ============================================================
   AJUSTE HEADER - SELECTOR DE TEMA + BOTON
   ============================================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
}

.theme-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 14px;
}

/* Evita que el botón de evaluación salte de línea */
.btn-header {
    white-space: nowrap;
}

/* ============================================================
   BOTÓN "VER SERVICIOS" - MODO OSCURO
   ============================================================ */

html[data-theme="dark"] .btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #334155;
    box-shadow: none;
}

html[data-theme="dark"] .btn-secondary:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
}