/**
 * @file public/assets/css/inicio.css
 * @description Diseño UI/UX Light Premium con Botón Flotante Fijo y Soporte Multi-Dispositivo Limpio
 * @version 6.6.4
 */

:root {
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --primary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --accent: #2563eb;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #20ba5a;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow-premium: 0 20px 50px rgba(15, 23, 42, 0.08);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   --- Header / Navbar Estricto (Alineación Horizontal sin Desbordamientos) ---
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    background: transparent !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Contenedor del logo limpio sin bordes ni fondos */
.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* Supresión absoluta del efecto estampilla */
.logo-img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply; /* Absorbe el fondo blanco e integra el logo al menú transparente */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

/* DISEÑO DEL NUEVO CONTENEDOR DE TEXTO APILADO DE MARCA */
.logo-text-group {
    display: flex;
    flex-direction: column; /* Apila los textos verticalmente */
    align-items: flex-start;
    justify-content: center;
    line-height: 1.1;
}

/* Letras superiores G&G */
.logo-title-main {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* Texto inferior INGENIERIA */
.logo-text-sub {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em; /* Genera el efecto expandido elegante de marcas premium */
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.8rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: var(--font-display);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-login {
    background: var(--primary);
    color: var(--bg-light);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-display);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-login:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.desktop-only { display: block; }
.mobile-only { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* ==========================================================================
   --- Hero Section ---
   ========================================================================== */
.hero {
    padding-top: 210px;
    padding-bottom: 60px;
    text-align: center;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
    font-weight: 400;
}

/* --- Panel de Estadísticas --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-premium);
    padding: 2.2rem;
    border-radius: 20px;
    max-width: 950px;
    margin: 0 auto 110px auto;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Secciones --- */
.section {
    padding: 110px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    scroll-margin-top: 85px;
}

.section-bg {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* --- Grid Cards --- */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 3.2rem 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-premium);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Formulario --- */
.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 1.8rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-light);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    border: none;
    color: var(--bg-light);
    padding: 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* --- WIDGET EXCLUSIVO DE WHATSAPP --- */
.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    z-index: 9999;
}

.whatsapp-burbuja-texto {
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-premium);
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    position: relative;
    max-width: 260px;
}

.whatsapp-burbuja-texto p {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
    padding-right: 12px;
    text-align: left;
}

.whatsapp-close-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.whatsapp-close-btn:hover {
    color: var(--primary);
}

.whatsapp-float {
    background-color: var(--whatsapp-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.05);
} 

/*======================================================
=            RESPONSIVE GLOBAL v1.0
======================================================*/

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    overflow-x:hidden;
    width:100%;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

video{
    max-width:100%;
    height:auto;
}

iframe{
    max-width:100%;
}

.container,
.container-fluid{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding-left:20px;
    padding-right:20px;
}

section{
    width:100%;
}

.row{
    display:flex;
    flex-wrap:wrap;
}

[class*="col-"]{
    width:100%;
}

/*==============================
TIPOGRAFÍA FLUIDA
===============================*/

h1{
    font-size:clamp(2rem,5vw,4rem);
}

h2{
    font-size:clamp(1.8rem,4vw,3rem);
}

h3{
    font-size:clamp(1.4rem,3vw,2.2rem);
}

h4{
    font-size:clamp(1.2rem,2vw,1.8rem);
}

p{
    font-size:clamp(.95rem,1.4vw,1.1rem);
    line-height:1.7;
}

button,
.btn{
    white-space:nowrap;
}

input,
select,
textarea{
    width:100%;
}

/*==================================
GRID UNIVERSAL
==================================*/

.grid{
    display:grid;
    gap:25px;
}

.flex{
    display:flex;
}

.flex-column{
    flex-direction:column;
}

.flex-center{
    justify-content:center;
    align-items:center;
}

/*==================================
TABLETS
==================================*/

@media (max-width:992px){

.container,
.container-fluid{

padding-left:18px;
padding-right:18px;

}

section{

padding-top:70px;
padding-bottom:70px;

}

}

/*==================================
CELULARES
==================================*/

@media (max-width:768px){

.container,
.container-fluid{

padding-left:16px;
padding-right:16px;

}

section{

padding-top:55px;
padding-bottom:55px;

}

body{

font-size:15px;

}

}

/*==================================
CELULARES PEQUEÑOS
==================================*/

@media (max-width:480px){

.container,
.container-fluid{

padding-left:14px;
padding-right:14px;

}

section{

padding-top:45px;
padding-bottom:45px;

}

body{

font-size:14px;

}

}

/*======================================================
=           PARTE 2 - HEADER / NAVBAR / HERO
======================================================*/

/* Pantallas menores a 992px */
@media (max-width:992px){

    header,
    .navbar{
        width:100%;
        padding:15px 20px;
    }
    
    .navbar{
        display:flex;
        justify-content:space-between;
        align-items:center;
        flex-wrap:wrap;
    }
    
    .navbar .logo img{
        max-height:55px;
        width:auto;
    }
    
    .navbar ul{
        display:flex;
        gap:18px;
        flex-wrap:wrap;
        justify-content:center;
    }
    
    .hero{
        min-height:auto;
        padding:90px 20px 70px;
    }
    
    .hero-content{
        width:100%;
        max-width:900px;
        margin:auto;
        text-align:center;
    }
    
    .hero-content h1{
        margin-bottom:20px;
    }
    
    .hero-content p{
        max-width:700px;
        margin:auto;
    }
    
    .hero-buttons{
        display:flex;
        justify-content:center;
        gap:15px;
        flex-wrap:wrap;
        margin-top:30px;
    }
    
    .hero-buttons .btn{
        min-width:180px;
    }
    
    }
    
    /* Tablets y móviles */
    @media (max-width:768px){
    
    header,
    .navbar{
        padding:15px;
    }
    
    .navbar{
        flex-direction:column;
        gap:18px;
    }
    
    .navbar .logo{
        text-align:center;
    }
    
    .navbar .logo img{
        max-height:50px;
    }
    
    .navbar ul{
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:12px;
        padding:0;
        margin:0;
    }
    
    .navbar ul li{
        width:100%;
        text-align:center;
    }
    
    .navbar ul li a{
        display:block;
        padding:12px;
    }
    
    .hero{
        padding:70px 18px 50px;
    }
    
    .hero-content{
        text-align:center;
    }
    
    .hero-content h1{
        font-size:clamp(2rem,8vw,3rem);
    }
    
    .hero-content p{
        margin-top:15px;
    }
    
    .hero-buttons{
        flex-direction:column;
        align-items:center;
        gap:15px;
    }
    
    .hero-buttons .btn{
        width:100%;
        max-width:320px;
    }
    
    }
    
    /* Celulares pequeños */
    @media (max-width:480px){
    
    .navbar{
        padding:12px;
    }
    
    .navbar .logo img{
        max-height:42px;
    }
    
    .hero{
        padding:55px 15px 40px;
    }
    
    .hero-content h1{
        line-height:1.2;
    }
    
    .hero-content p{
        font-size:.95rem;
    }
    
    .hero-buttons .btn{
        width:100%;
    }
    
    } 

    /*==================================================
BOOTSTRAP NAVBAR
==================================================*/

.navbar{

    padding:0;
    
    }
    
    .navbar-brand{
    
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
    
    }
    
    .navbar-toggler{
    
    border:none;
    
    }
    
    .navbar-toggler:focus{
    
    box-shadow:none;
    
    }
    
    .navbar-toggler-icon{
    
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815,23,42,.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    
    }
    
    .navbar-nav{
    
    gap:22px;
    
    }
    
    .nav-item{
    
    display:flex;
    align-items:center;
    
    }
    
    .nav-link{
    
    font-weight:500;
    color:#1f2937 !important;
    transition:.3s;
    
    }
    
    .nav-link:hover{
    
    color:#2563eb !important;
    
    }
    
    @media(max-width:991px){
    
    .navbar-collapse{
    
    margin-top:20px;
    background:#fff;
    padding:25px;
    border-radius:16px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    
    }
    
    .navbar-nav{
    
    gap:12px;
    align-items:flex-start !important;
    
    }
    
    .nav-item{
    
    width:100%;
    
    }
    
    .nav-link{
    
    display:block;
    width:100%;
    padding:12px 0;
    
    }
    
    .btn-login{
    
    display:block;
    width:100%;
    text-align:center;
    margin-top:20px;
    
    }
    
    } 

/* =========================================================
   HERO MOBILE - AJUSTE DEFINITIVO
   ========================================================= */

@media (max-width: 767px) {

    .hero {
        padding-top: 125px !important;
        padding-bottom: 25px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .status-pill {
        font-size: 0.68rem !important;
        padding: 7px 13px !important;
        margin-bottom: 1.4rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.08 !important;
        letter-spacing: -0.025em !important;
        max-width: 100% !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        max-width: 330px !important;
        margin: 0 auto 1.5rem auto !important;
    }

    .whatsapp-widget-container {
        right: 12px !important;
        bottom: 15px !important;
    }

    .whatsapp-burbuja-texto {
        max-width: 220px !important;
        padding: 0.7rem 1rem !important;
    }

    .whatsapp-burbuja-texto p {
        font-size: 0.8rem !important;
    }

    .whatsapp-float {
        width: 52px !important;
        height: 52px !important;
    }

}

@media (max-width: 380px) {

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 0.86rem !important;
        max-width: 310px !important;
    }

} 
/* =========================================================
   ESTADISTICAS - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .stats-bar {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.8rem 1rem !important;
        margin: 0 auto 50px auto !important;
    }

    .stat-item {
        width: 100% !important;
    }

    .stat-item:not(:last-child)::after {
        display: none !important;
    }

    .stat-number {
        font-size: 2rem !important;
        white-space: normal !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

} 
/* =========================================================
   MENU MOVIL - CORRECCION DE ANCHO Y POSICION
   ========================================================= */

@media (max-width: 767px) {

    .navbar-collapse {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden !important;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        position: absolute !important;
        top: 100% !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }

    .navbar-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-nav .nav-item {
        width: 100% !important;
    }

    .navbar-nav .nav-link {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header,
    .navbar,
    .navbar .container,
    .navbar-brand {
        max-width: 100% !important;
    }

}

