/* ==========================================================================
   VARIABLES CORPORATIVAS Y DE MARKETING
   ========================================================================== */
:root {
    --azul-principal: #10375c; /* Azul profundo, transmite autoridad técnica */
    --azul-claro: #1d78c1;     /* Azul interactivo para botones y acentos */
    --azul-gradiente: linear-gradient(135deg, #10375c 0%, #17548c 100%);
    --gris-texto: #475569;
    --gris-fondo: #f8fafc;
    --blanco-puro: #ffffff;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-textos: 'Open Sans', sans-serif;
    --sombra-elegante: 0 10px 40px -10px rgba(16, 55, 92, 0.15);
}

/* ==========================================================================
   RESETEO Y BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--gris-fondo);
    color: var(--gris-texto);
    font-family: var(--fuente-textos);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--fuente-titulos);
    color: var(--azul-principal);
    font-weight: 800;
}

/* ==========================================================================
   HEADER FLUIDO Y GLASSMORPHISM
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo-container img {
    height: 60px;
    transition: height 0.4s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--gris-texto);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--azul-claro);
}

/* ==========================================================================
   BOTONES ESTRATÉGICOS (CTAs)
   ========================================================================== */
.btn-primario {
    background: var(--azul-claro);
    color: var(--blanco-puro);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 120, 193, 0.3);
}

.btn-primario:hover {
    background: #145d96;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 120, 193, 0.4);
}

.btn-secundario {
    background: transparent;
    color: var(--blanco-puro);
    padding: 12px 28px;
    border: 2px solid var(--blanco-puro);
    border-radius: 8px;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secundario:hover {
    background: var(--blanco-puro);
    color: var(--azul-principal);
}

.btn-intranet {
    background-color: var(--azul-principal);
    color: var(--blanco-puro) !important;
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-intranet:hover {
    background-color: var(--azul-claro);
}

.ancho-total {
    width: 100%;
}

/* ==========================================================================
   HERO SECTION (DISEÑO INMERSIVO)
   ========================================================================== */
.hero {
    position: relative;
    background: var(--azul-gradiente);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 60px;
    overflow: hidden;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    color: var(--blanco-puro);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero h1 .resaltado {
    color: #8bbce6;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-botones {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Formas Abstractas de fondo */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3498db;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #2c3e50;
    bottom: -150px;
    right: -100px;
}

/* ==========================================================================
   SECCIÓN DE IDENTIDAD CORPORATIVA (MISIÓN Y VISIÓN PREMIUM)
   ========================================================================== */
.identidad-corporativa {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    position: relative;
    top: -60px;
    z-index: 10;
}

.grid-identidad {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.card-identidad {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease;
    border-left: 4px solid var(--azul-claro);
}

.card-identidad:hover {
    transform: translateY(-5px);
}

.titulo-minimalista {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--azul-principal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.card-identidad p {
    color: var(--gris-texto);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   SECCIÓN DE SERVICIOS (DISEÑO CORPORATIVO CONSULTORA)
   ========================================================================== */
.servicios {
    padding: 60px 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.encabezado-seccion {
    text-align: center;
    margin-bottom: 70px;
}

.etiqueta {
    display: inline-block;
    color: var(--azul-claro);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.encabezado-seccion h2 {
    font-size: 2.5rem;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.premium-card {
    background: var(--blanco-puro);
    padding: 50px 40px;
    border-radius: 4px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--azul-gradiente);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.premium-card:hover {
    box-shadow: 0 25px 50px -12px rgba(16, 55, 92, 0.15);
    border-color: transparent;
    transform: translateY(-8px);
}

.premium-card:hover::after {
    transform: scaleX(1);
}

.numero-index {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--fuente-titulos);
    color: rgba(16, 55, 92, 0.03); 
    z-index: -1;
    transition: color 0.4s ease;
}

.premium-card:hover .numero-index {
    color: rgba(29, 120, 193, 0.08); 
}

.premium-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--azul-principal);
    line-height: 1.4;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.premium-card p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   MODALES Y FORMULARIOS (DISEÑO LIMPIO)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 55, 92, 0.6);
    backdrop-filter: blur(5px);
}

.modal-contenido {
    background-color: var(--blanco-puro);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-subtitulo {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #cbd5e1;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cerrar:hover {
    color: var(--azul-principal);
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input, form textarea {
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--fuente-textos);
    background-color: #f8fafc;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    outline: none;
}

form input:focus, form textarea:focus {
    border-color: var(--azul-claro);
    background-color: var(--blanco-puro);
}

.file-upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azul-principal);
}

.mensaje-estado {
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: #0c2a46;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 50px 20px;
}

.logo-footer {
    height: 50px;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* ==========================================================================
   ANIMACIONES CORE
   ========================================================================== */
.animar-on-load {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   CARRUSEL DINÁMICO (HERO SLIDER)
   ========================================================================== */
.hero-slider {
    position: relative;
    background: var(--azul-gradiente);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 120px 5% 60px;
    animation: fadeSlide 1s ease-in-out;
}

.slide.active {
    display: block;
    position: relative;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover { background: rgba(255, 255, 255, 0.3); }
.slider-btn.prev { left: 5%; }
.slider-btn.next { right: 5%; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--blanco-puro);
}