﻿
:root {
    --sm-primary: #009BDB;
    --sm-accent: #00C8F8;
    --sm-dark: #061B32;
    --sm-surface: #142B43;
    --sm-white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--sm-dark);
    color: var(--sm-white);
}


/* HEADER FIJO SERMASTER */

.site-header {
    background: rgba(4, 24, 44, 0.97);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1050;
    /* Efecto visual */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}


.navbar {
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-symbol {
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    color: var(--sm-accent);
    font-family: monospace;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

    .brand-text strong {
        font-size: 25px;
        font-weight: 900;
        letter-spacing: -1px;
        color: white;
        line-height: 1.1;
    }

    .brand-text small {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 2.2px;
        color: var(--sm-accent);
    }

.navbar .nav-link {
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--sm-accent);
    }

.btn-contacto {
    background: var(--sm-accent);
    color: var(--sm-dark);
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
}

    .btn-contacto:hover {
        background: white;
        color: var(--sm-dark);
    }

/* HERO */

.hero

{
    position: relative;
    background-image: linear-gradient( 90deg, #061B32 0%, rgba(6, 27, 50, .97) 30%, rgba(6, 27, 50, .75) 52%, rgba(6, 27, 50, .20) 100% ), url('../img/banner/banner-principal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.min-vh-hero {
    min-height: 480px;
    padding-top: 65px;
    padding-bottom: 65px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

    .hero h1 span {
        color: var(--sm-accent);
        display: block;
    }

.hero-description {
    max-width: 580px;
    font-size: 18px;
    line-height: 1.6;
    color: #E4ECF4;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-outline {
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}

.btn-hero-primary {
    background: var(--sm-accent);
    color: var(--sm-dark);
}

    .btn-hero-primary:hover {
        background: white;
        color: var(--sm-dark);
    }

.btn-hero-outline {
    border: 2px solid white;
    color: white;
}

    .btn-hero-outline:hover {
        background: white;
        color: var(--sm-dark);
    }

/* RESPONSIVE */

@media (max-width: 991px) {
    .navbar-collapse {
        padding: 18px 0;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar .nav-link {
        padding: 10px 0;
    }

    .btn-contacto {
        display: inline-block;
        margin-top: 10px;
    }

    .hero {
        background-position: 65% center;
    }

        .hero h1 {
            letter-spacing: -1px;
        }
}

@media (max-width: 576px) {
    .brand-symbol {
        font-size: 36px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text small {
        font-size: 8px;
        letter-spacing: 1.6px;
    }

    .hero {
        background: linear-gradient( rgba(6,27,50,.88), rgba(6,27,50,.94) ), url('../img/banner/banner-principal.jpg') center / cover;
    }

    .min-vh-hero {
        min-height: 440px;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-actions .btn {
            text-align: center;
        }
}

/* LOGO OFICIAL SERMASTER */

.logo-sermaster {
    display: block;
    width: 290px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 576px) {
    .logo-sermaster {
        width: 225px;
    }
}


/* ======================================
   SERVICIOS
====================================== */

.servicios {
    background-color: #FFFFFF;
    padding: 38px 0;
}

.servicio-item {
    height: 100%;
    text-align: center;
    padding: 12px 18px;
    border-right: 1px solid #DCE5ED;
}

    .servicio-item svg {
        width: 45px;
        height: 45px;
        color: var(--sm-primary);
        stroke-width: 2;
        margin-bottom: 14px;
    }

    .servicio-item h3 {
        color: var(--sm-dark);
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .servicio-item p {
        color: #34465B;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 0;
    }

/* Quitar borde en la cuarta columna */
@media (min-width: 992px) {
    .servicios .col-lg-3:last-child .servicio-item {
        border-right: none;
    }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 991px) {
    .servicios .col-sm-6:nth-child(2n) .servicio-item {
        border-right: none;
    }
}

/* Celulares */
@media (max-width: 575px) {
    .servicios {
        padding: 25px 0;
    }

    .servicio-item {
        border-right: none;
        border-bottom: 1px solid #DCE5ED;
        padding: 20px 12px;
    }

    .servicios .col-12:last-child .servicio-item {
        border-bottom: none;
    }
}

/* ======================================
   CIVIS - PRODUCTO DESTACADO
====================================== */

.civis-section {
    background: linear-gradient( 135deg, #061B32 0%, #092E50 100% );
    padding: 85px 0;
}

.civis-eyebrow {
    color: var(--sm-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.civis-title {
    color: white;
    font-size: clamp(54px, 6vw, 82px);
    font-weight: 900;
    letter-spacing: -3px;
    margin: 12px 0 4px;
}

.civis-subtitle {
    color: var(--sm-accent);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.civis-description {
    color: #D1E1EE;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.civis-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #B9D5E8;
    font-size: 13px;
}

    .civis-status svg {
        width: 17px;
        height: 17px;
        color: var(--sm-accent);
    }

.btn-civis {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--sm-accent);
    color: var(--sm-dark);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s;
}

    .btn-civis:hover {
        background: white;
        color: var(--sm-dark);
    }

    .btn-civis svg {
        width: 18px;
        height: 18px;
    }

.civis-feature {
    height: 100%;
    min-height: 190px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(0,200,248,.18);
    border-radius: 14px;
    padding: 25px 20px;
    transition: all .25s;
}

    .civis-feature:hover {
        background: rgba(0,200,248,.12);
        transform: translateY(-4px);
    }

    .civis-feature > svg {
        width: 34px;
        height: 34px;
        color: var(--sm-accent);
        margin-bottom: 18px;
    }

    .civis-feature h4 {
        color: white;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .civis-feature p {
        color: #BDD0E0;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 0;
    }

@media (max-width: 767px) {
    .civis-section {
        padding: 55px 0;
    }

    .civis-subtitle {
        font-size: 20px;
    }

    .civis-feature {
        padding: 20px 15px;
        min-height: 175px;
    }
}

/* ======================================
   SOLUCIONES DIGITALES
====================================== */

.soluciones-section {
    background: #F3F7FB;
    padding: 85px 0;
}

.soluciones-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

    .soluciones-heading span {
        display: block;
        color: var(--sm-primary);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .soluciones-heading h2 {
        color: var(--sm-dark);
        font-size: clamp(28px, 3.5vw, 40px);
        font-weight: 900;
        letter-spacing: -1px;
        margin-bottom: 15px;
    }

    .soluciones-heading p {
        color: #46586B;
        font-size: 16px;
        line-height: 1.7;
    }

.solucion-card {
    background: white;
    border: 1px solid #E2EAF1;
    border-radius: 14px;
    padding: 32px 28px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(6,27,50,.035);
    transition: transform .25s, box-shadow .25s;
}

    .solucion-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(6,27,50,.10);
    }

    .solucion-card > svg {
        width: 40px;
        height: 40px;
        color: var(--sm-primary);
        stroke-width: 1.8;
        margin-bottom: 22px;
    }

    .solucion-card h3 {
        color: var(--sm-dark);
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 13px;
    }

    .solucion-card p {
        color: #46586B;
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 0;
    }

@media (max-width: 767px) {
    .soluciones-section {
        padding: 55px 0;
    }

    .solucion-card {
        padding: 27px 23px;
    }
}

/* NAVEGACIÓN Y SCROLL */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

@media (max-width: 576px) {
    html {
        scroll-padding-top: 85px;
    }
}

/* ======================================
   TECNOLOGÍAS
====================================== */

.tecnologias-section {
    background: #061B32;
    padding: 85px 0 75px;
}

.tecnologias-heading {
    max-width: 750px;
    margin: 0 auto 42px;
    text-align: center;
}

    .tecnologias-heading span {
        display: block;
        color: var(--sm-accent);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .tecnologias-heading h2 {
        color: white;
        font-size: clamp(28px, 3.5vw, 40px);
        font-weight: 900;
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .tecnologias-heading p {
        color: #C3D7E6;
        font-size: 16px;
        line-height: 1.7;
    }

.tecnologia-card {
    height: 145px;
    background: #142B43;
    border: 1px solid rgba(0,200,248,.12);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: all .25s;
}

    .tecnologia-card:hover {
        transform: translateY(-5px);
        background: #193954;
        border-color: var(--sm-accent);
    }

    .tecnologia-card svg {
        width: 38px;
        height: 38px;
        color: var(--sm-accent);
        stroke-width: 1.8;
    }

    .tecnologia-card h3 {
        color: white;
        font-size: 15px;
        font-weight: 800;
        margin: 0;
    }

.tecnologias-footer {
    color: #AFC7D9;
    font-size: 13px;
    text-align: center;
    margin: 35px 0 0;
}

/* ======================================
   TRAYECTORIA
====================================== */

.trayectoria-section {
    background: #F3F7FB;
    padding: 90px 0;
}

.trayectoria-eyebrow {
    display: block;
    color: var(--sm-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.trayectoria-section h2 {
    color: var(--sm-dark);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 28px;
}

    .trayectoria-section h2 span {
        color: var(--sm-primary);
    }

.trayectoria-section p {
    color: #46586B;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.trayectoria-valores {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trayectoria-valor {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: white;
    border: 1px solid #E2EAF1;
    border-radius: 12px;
    padding: 20px;
}

    .trayectoria-valor > svg {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        color: var(--sm-primary);
    }

    .trayectoria-valor h3 {
        color: var(--sm-dark);
        font-size: 17px;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .trayectoria-valor p {
        color: #46586B;
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }

@media (max-width: 767px) {
    .tecnologias-section,
    .trayectoria-section {
        padding: 55px 0;
    }

    .tecnologia-card {
        height: 125px;
    }

    .trayectoria-section h2 {
        margin-bottom: 22px;
    }
}

/* ======================================
   CONTACTO
====================================== */

.contacto-section {
    background: #F3F7FB;
    padding: 85px 0;
}

.contacto-heading {
    text-align: center;
    margin: 0 auto 45px;
    max-width: 760px;
}

    .contacto-heading span {
        display: block;
        color: var(--sm-primary);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .contacto-heading h2 {
        color: var(--sm-dark);
        font-size: clamp(28px, 3.5vw, 40px);
        font-weight: 900;
        margin-bottom: 15px;
    }

    .contacto-heading p {
        color: #46586B;
        font-size: 16px;
    }

.contacto-info {
    padding: 20px 0;
}

    .contacto-info > h3 {
        color: var(--sm-dark);
        font-size: 25px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .contacto-info > p {
        color: #46586B;
        line-height: 1.8;
        margin-bottom: 35px;
    }

.contacto-dato {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

    .contacto-dato > svg {
        color: var(--sm-primary);
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .contacto-dato h4 {
        color: var(--sm-dark);
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .contacto-dato a {
        color: #0077B5;
        text-decoration: none;
    }

        .contacto-dato a:hover {
            text-decoration: underline;
        }

    .contacto-dato p {
        color: #46586B;
        margin: 0;
    }

.contacto-form-box {
    background: white;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #E2EAF1;
    box-shadow: 0 10px 35px rgba(6,27,50,.05);
}

    .contacto-form-box h3 {
        color: var(--sm-dark);
        font-size: 23px;
        font-weight: 800;
        margin-bottom: 25px;
    }

    .contacto-form-box .form-label {
        color: var(--sm-dark);
        font-size: 14px;
        font-weight: 600;
    }

    .contacto-form-box .form-control,
    .contacto-form-box .form-select {
        border: 1px solid #D8E2EB;
        border-radius: 8px;
        padding: 12px 14px;
        color: var(--sm-dark);
    }

        .contacto-form-box .form-control:focus,
        .contacto-form-box .form-select:focus {
            border-color: var(--sm-primary);
            box-shadow: 0 0 0 .2rem rgba(0,155,219,.12);
        }

.btn-contacto-enviar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 25px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s;
}

    .btn-contacto-enviar:hover {
        background: #007FB5;
    }

    .btn-contacto-enviar svg {
        width: 18px;
        height: 18px;
    }

.contacto-aviso {
    color: #66788A;
    font-size: 12px;
    margin-top: 15px;
    margin-bottom: 0;
}

/* ======================================
   FOOTER
====================================== */

.site-footer {
    background: #04182C;
    color: white;
    padding: 55px 0 0;
}

.footer-logo {
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    color: #B9CCDD;
    font-size: 14px;
    line-height: 1.7;
    max-width: 350px;
}

.site-footer h4 {
    color: white;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.site-footer p {
    color: #B9CCDD;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        color: #B9CCDD;
        font-size: 14px;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: var(--sm-accent);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    margin-top: 45px;
    color: #AFC3D5;
    font-size: 13px;
    text-align: center;
}

/* ======================================
   WHATSAPP FLOTANTE
====================================== */

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.22);
    z-index: 1100;
    transition: transform .2s;
}

    .whatsapp-flotante:hover {
        transform: scale(1.08);
        color: white;
    }

    .whatsapp-flotante svg {
        width: 29px;
        height: 29px;
    }

@media (max-width: 767px) {
    .contacto-section {
        padding: 55px 0;
    }

    .contacto-form-box {
        padding: 25px 20px;
    }

    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        right: 18px;
        bottom: 18px;
    }
}

/* ======================================
   PULIDO MENÚ RESPONSIVE
====================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    padding: 8px 11px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0,200,248,.25);
}

.navbar .nav-link {
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: var(--sm-accent);
}

@media (max-width: 991.98px) {

    #navbarSermaster {
        padding-top: 16px;
    }

    #navbarSermaster .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    #navbarSermaster .nav-link:last-child {
        border-bottom: none;
    }

}

/* Navegación interna */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 0;
}

/* ==============================================
   CIVIS - ECOSISTEMA Y FUNCIONAMIENTO
   ============================================== */

.civis-ecosistema {
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.civis-etiqueta {
    color: #00C8F8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.civis-ecosistema-titulo {
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
}

.civis-ecosistema-descripcion {
    color: #B8C9D9;
    max-width: 720px;
    line-height: 1.8;
}

/* TARJETAS DE COMPONENTES */

.civis-componente {
    background: #142B43;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 30px 26px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

    .civis-componente:hover {
        transform: translateY(-5px);
        border-color: #00C8F8;
    }

.civis-componente-central {
    border-color: rgba(0,200,248,0.45);
    background: #17344F;
}

.civis-componente-icono {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,200,248,0.12);
    border-radius: 14px;
    color: #00C8F8;
    margin-bottom: 24px;
}

    .civis-componente-icono svg {
        width: 29px;
        height: 29px;
    }

.civis-componente h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.civis-componente-tipo {
    display: block;
    color: #00C8F8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.civis-componente p {
    color: #B8C9D9;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* FLUJO DE FUNCIONAMIENTO */

.civis-funcionamiento {
    margin-top: 65px;
}

    .civis-funcionamiento h3 {
        color: #FFFFFF;
        font-size: 1.65rem;
        font-weight: 700;
    }

    .civis-funcionamiento > .text-center p {
        color: #B8C9D9;
        line-height: 1.7;
    }

.civis-paso {
    position: relative;
    height: 100%;
    padding: 25px 22px;
    border-top: 2px solid rgba(0,200,248,0.5);
    background: rgba(255,255,255,0.035);
    border-radius: 0 0 12px 12px;
}

.civis-paso-numero {
    display: block;
    color: #00C8F8;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.civis-paso h5 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.civis-paso p {
    color: #B8C9D9;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.civis-ecosistema-cierre {
    color: #00C8F8;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 767.98px) {

    .civis-ecosistema {
        padding-top: 25px;
    }

    .civis-ecosistema-titulo {
        font-size: 1.45rem;
    }

    .civis-componente {
        padding: 25px 22px;
    }

    .civis-funcionamiento {
        margin-top: 45px;
    }

        .civis-funcionamiento h3 {
            font-size: 1.4rem;
        }

    .civis-ecosistema-cierre {
        margin-top: 35px;
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .civis-componente {
        transition: none;
    }

        .civis-componente:hover {
            transform: none;
        }
}
