
/* =========================================
   COMPUMEN - IDENTIDAD VISUAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #087bea;
    --primary-dark: #0755b5;
    --secondary: #20bceb;
    --dark: #101b2d;
    --dark-blue: #142d4d;
    --background: #f3f7fc;
    --white: #ffffff;
    --text: #26364b;
    --muted: #718096;
    --border: #e1eaf5;
    --shadow: 0 12px 35px rgba(16, 39, 70, 0.09);
    --gradient: linear-gradient(135deg, #087bea, #20bceb);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: min(1160px, 90%);
    margin: auto;
}

a,
button {
    transition: all 0.3s ease;
}

button {
    font-family: inherit;
}

/* =========================================
   ENCABEZADO Y NAVEGACIÓN
========================================= */

.header {
    background: rgba(16, 27, 45, 0.97);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(32, 188, 235, 0.18);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO COMPUMEN */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

/* ICONO DEL MONITOR */

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 119, 223, 0.18);
    border: 1px solid rgba(53, 185, 242, 0.35);
    border-radius: 10px;
    color: #35b9f2;
    flex-shrink: 0;
    box-shadow: 0 4px 15px #087bea35;
}

.logo-icon svg {
    width: 38px;
    height: 38px;
    display: block;
}

/* NOMBRE COMPUMEN */

.logo-text {
    font-family: "Arial Black", "Segoe UI", sans-serif;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.2px;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}

.logo-men {
    color: var(--secondary);
}

/* MENÚ */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 23px;
}

.nav-menu a {
    color: #dce7f5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: white;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: white;
    background: none;
    border: none;
    font-size: 29px;
    cursor: pointer;
}

/* =========================================
   PRESENTACIÓN PRINCIPAL
========================================= */

.hero {
    position: relative;
    background:
        radial-gradient(circle at 85% 25%, #087bea35, transparent 30%),
        radial-gradient(circle at 15% 90%, #20bceb20, transparent 35%),
        linear-gradient(125deg, #0b1729, #153c68 65%, #0755a5);
    color: white;
    padding: 105px 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    right: -170px;
    top: -170px;
    box-shadow:
        0 0 0 50px #ffffff06,
        0 0 0 100px #ffffff04;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 65px;
}

.eyebrow {
    display: inline-block;
    color: #35c6f3;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin: 22px 0;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #49c9ff, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text p {
    color: #d2e2f3;
    max-width: 640px;
    margin-bottom: 18px;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    color: white;
    background: var(--gradient);
    box-shadow: 0 7px 20px #087bea45;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #087bea70;
}

.btn-outline {
    color: white;
    border: 1px solid #8ca9c9;
    background: #ffffff08;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-3px);
}

/* =========================================
   TARJETA PRINCIPAL Y LOGO
========================================= */

.hero-card {
    background: linear-gradient(145deg, #ffffff1c, #ffffff08);
    border: 1px solid #ffffff35;
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px #00000030;
    transition: 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
    border-color: #35c6f3;
}

.computer-icon {
    background: white;
    padding: 12px;
    border-radius: 17px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 30px #00000025;
}

.computer-icon img {
    width: 100%;
    max-height: 210px;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.hero-card h2 {
    color: white;
    font-size: 28px;
    font-weight: 850;
}

.hero-card p {
    color: #d1dfef;
    margin: 8px 0 20px;
}

.status {
    color: #b7f1d0;
    font-size: 13px;
    font-weight: 650;
}

.status span {
    display: inline-block;
    background: #35d483;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px #35d483;
}

.founder-name {
    color: #b8d7f7;
    font-size: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ffffff30;
}

/* =========================================
   SECCIONES GENERALES
========================================= */

.section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2,
.contact h2 {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.3;
    color: var(--dark);
    margin: 12px 0;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.section-heading p {
    color: var(--muted);
    max-width: 750px;
    margin: 0 auto;
    font-size: 15px;
}

/* =========================================
   ASISTENCIA REMOTA
========================================= */

.remote-support {
    background:
        radial-gradient(circle at 90% 10%, #20bceb20, transparent 30%),
        linear-gradient(135deg, #e8f3ff, #f7fbff);
    border-bottom: 1px solid var(--border);
}

.remote-support .section-heading {
    max-width: 850px;
    margin: auto;
}

.remote-support .section-heading h2 {
    color: var(--dark);
}

.remote-support .section-heading p {
    margin: 18px auto 25px;
}

.remote-support .btn {
    margin-top: 12px;
}

/* =========================================
   QUIÉNES SOMOS
========================================= */

#nosotros {
    background: white;
}

.about-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 42px 45px;
    background: linear-gradient(135deg, #f5f9ff, #edf5ff);
    border-left: 5px solid var(--primary);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.about-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent, #087bea0c);
    border-radius: 0 15px 0 100%;
}

.about-content p {
    position: relative;
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 19px;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--primary-dark);
}

/* =========================================
   MISIÓN, VISIÓN Y VALORES
========================================= */

#identidad {
    background: linear-gradient(180deg, #eef5fd, #f8fbff);
}

#identidad .service-card {
    text-align: center;
    padding: 38px 28px;
    border: 1px solid #dceafb;
    box-shadow: 0 8px 25px #1027460b;
}

#identidad .service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 18px 40px #087bea20;
}

#identidad .service-icon {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, #e1f1ff, #cdeaff);
    border: 1px solid #c2e1ff;
    border-radius: 23px;
    font-size: 37px;
}

/* =========================================
   SERVICIOS
========================================= */

#servicios {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    transition: all 0.35s ease;
    box-shadow: 0 5px 20px rgba(16, 27, 45, 0.04);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px #10274618;
    border-color: #b5d5f7;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f3ff, #d4edff);
    border-radius: 17px;
    font-size: 32px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, #d6ecff, #b8e1ff);
}

.service-card h3 {
    color: var(--dark);
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

/* =========================================
   PROYECTOS
========================================= */

.projects {
    background: #f1f6fc;
}

.project-placeholder {
    max-width: 850px;
    margin: auto;
    text-align: center;
    background: white;
    padding: 60px 30px;
    border: 2px dashed #b8cce2;
    border-radius: 20px;
    transition: 0.3s ease;
}

.project-placeholder:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.project-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    background: #e8f3ff;
    border-radius: 25px;
    font-size: 43px;
}

.project-placeholder h3 {
    color: var(--dark);
    margin: 15px 0 8px;
    font-size: 24px;
}

.project-placeholder p {
    color: var(--muted);
    max-width: 550px;
    margin: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 25px;
}

.project-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-info h3 {
    color: var(--dark);
    margin: 12px 0;
    font-size: 21px;
}

.project-info p {
    color: var(--muted);
    line-height: 1.7;
}

/* =========================================
   HORARIOS Y DISPONIBILIDAD
========================================= */

.schedule-card {
    max-width: 750px;
    margin: 40px auto 0;
    padding: 40px;
    background: #ffffff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.schedule-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.schedule-card h3 {
    color: var(--dark);
    font-size: 25px;
    margin-bottom: 12px;
}

.schedule-card > p {
    color: var(--muted);
    line-height: 1.7;
}

.schedule-details {
    margin: 30px 0;
    text-align: left;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 10px;
    border-bottom: 1px solid #e8edf3;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item > span {
    font-size: 25px;
}

.schedule-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 5px;
}

.schedule-item p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.schedule-card .btn {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

/* =========================================
   CONTACTO
========================================= */

.contact {
    position: relative;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, #20bceb25, transparent 30%),
        linear-gradient(130deg, #eaf4ff, #d9eaff);
    overflow: hidden;
}

.contact-content {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.contact h2 {
    font-size: clamp(29px, 4vw, 40px);
    margin: 15px 0;
}

.contact-content > p {
    color: var(--muted);
    margin: 15px auto 30px;
    max-width: 700px;
}

.contact-info {
    background: white;
    border: 1px solid #dce9f7;
    border-radius: 17px;
    padding: 27px 25px;
    margin: 30px auto;
    max-width: 550px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--dark);
    font-size: 21px;
    margin-bottom: 5px;
}

.contact-info p {
    color: var(--muted);
    margin: 8px 0;
    font-size: 14px;
}

.contact-buttons {
    justify-content: center;
}

.btn-whatsapp {
    background: #19b96b;
    color: white;
    box-shadow: 0 7px 20px #19b96b35;
}

.btn-whatsapp:hover {
    background: #0d9b56;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px #19b96b50;
}

/* =========================================
   PIE DE PÁGINA
========================================= */

.footer {
    position: relative;
    background:
        radial-gradient(circle at 50% 0%, #087bea25, transparent 50%),
        #101b2d;
    color: #c5d3e4;
    padding: 45px 0 35px;
    text-align: center;
    font-size: 13px;
    border-top: 3px solid var(--primary);
}

.footer p {
    margin: 9px 0;
}

.footer p + p {
    color: #9bb4d0;
}

.footer p:last-child {
    margin-top: 22px;
    color: #6e89a8;
    font-size: 12px;
}

.footer .footer-role {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer .footer-copyright {
    padding-top: 20px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
========================================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 62px;
    height: 62px;
    min-width: 62px;
    max-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.whatsapp-float svg {
    display: block;
    width: 35px;
    height: 35px;
    min-width: 35px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.08);
}

/* =========================================
   ACCESIBILIDAD Y SELECCIÓN
========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #58aaff;
    outline-offset: 4px;
}

::selection {
    background: var(--primary);
    color: white;
}

/* =========================================
   RESPONSIVE - TABLETAS
========================================= */

@media (max-width: 1050px) {
    .nav-menu {
        gap: 13px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .hero-content {
        gap: 35px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE - CELULARES
========================================= */

@media (max-width: 768px) {
    .navbar {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #101b2d;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 6%;
        gap: 20px;
        border-top: 1px solid #ffffff15;
        box-shadow: 0 12px 20px #0003;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 15px;
        width: 100%;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: 75px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-card {
        max-width: 430px;
        width: 100%;
        margin: auto;
    }

    .section {
        padding: 65px 0;
    }

    .section-heading h2,
    .contact h2 {
        font-size: 29px;
    }

    .about-content {
        padding: 28px 24px;
    }

    .about-content p {
        text-align: left;
    }
}

/* =========================================
   RESPONSIVE - TABLETAS PEQUEÑAS
========================================= */

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 230px;
    }
}

/* =========================================
   RESPONSIVE - CELULARES PEQUEÑOS
========================================= */

@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .logo-text {
        font-size: 23px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-icon svg {
        width: 35px;
        height: 35px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-card {
        padding: 25px 18px;
    }

    .computer-icon {
        max-width: 280px;
    }

    .section {
        padding: 55px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2,
    .contact h2 {
        font-size: 27px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 27px 23px;
    }

    .about-content {
        padding: 25px 20px;
    }

    .contact-info {
        padding: 23px 16px;
    }

    .project-placeholder {
        padding: 40px 18px;
    }

    .footer {
        padding: 35px 0;
    }
}

/* =========================================
   RESPONSIVE - HORARIOS
========================================= */

@media (max-width: 600px) {
    .schedule-card {
        padding: 25px 18px;
    }

    .schedule-card h3 {
        font-size: 21px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        min-width: 55px;
        max-width: 55px;
        right: 16px;
        bottom: 18px;
    }

    .whatsapp-float svg {
        width: 31px;
        height: 31px;
        min-width: 31px;
    }
}

/* =========================================
   RESPETO A MOVIMIENTO REDUCIDO
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
