@charset "utf-8";
/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN DE COLORES
   ========================================================================== */
:root {
    --primary-color: #0F2C59; /* Azul Corporativo Oscuro */
    --secondary-color: #DAC0A3; /* Arena/Acabados */
    --accent-color: #E76F51; /* Naranja Construcción/Alerta */
    --text-dark: #1F2937;
    --bg-light: #F8F9FA;
}

/* CORRECCIÓN: Reseteo total para eliminar la línea blanca superior */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    /* Tono gris de ingeniería con un sutil patrón de líneas limpias */
    background-color: #F4F6F9;
    background-image: 
        linear-gradient(rgba(15, 44, 89, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 44, 89, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    line-height: 1.6;
}

/* LOGOTIPO CORPORATIVO EN CSS ACTUALIZADO */
.logo-container-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.main-corporate-logo {
    height: 52px; /* Altura perfecta para que se lea todo de forma óptima */
    width: auto;
    display: block;
    object-fit: contain;
}

/* NAVEGACIÓN - CORREGIDO A TOPBAR */
.topbar {
    background-color: var(--primary-color);
    padding: 12px 5%; /* Ajuste fino de padding para centrar la imagen */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0 !important; /* CORRECCIÓN: Forzar pegado absoluto al techo del navegador */
    z-index: 1000;
}
.topbar nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}
.topbar nav a:hover {
    color: var(--accent-color);
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* FORMULARIOS DE CONTACTO */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}
.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-submit:hover {
    background-color: var(--accent-color);
}

/* CUADRICULA DE EVENTOS/GALERÍA */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.event-img-placeholder {
    background-color: #DDD;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}
.event-body {
    padding: 20px;
}

/* EFECTO MARQUEE (CARRUSEL INFINITO) */
.marquee-container {
    overflow: hidden;
    background: #FFF;
    padding: 20px 0;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    margin-top: 5px;
}
.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}
.marquee-item {
    padding: 0 40px;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FOOTER */
footer {
    background-color: #111;
    color: #AAA;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

/* ==========================================================================
   ESTILOS DE HOME PRINCIPAL, TARJETAS Y HERO PREMIUM
   ========================================================================== */

/* Hero Banner */
.hero-section {
    background: linear-gradient(rgba(15, 44, 89, 0.9), rgba(15, 44, 89, 0.75)), url('../quienes-somos/img/obra1.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 20px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #DAC0A3;
}

/* Rediseño Completo del Botón Principal */
.btn-cta-premium {
    background: linear-gradient(135deg, var(--accent-color) 0%, #D85C3D 100%);
    color: #FFFFFF !important;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}
.btn-cta-premium:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(231, 111, 81, 0.5);
    background: linear-gradient(135deg, #D85C3D 0%, #C44B2D 100%);
}
.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.btn-cta-premium:hover .btn-icon {
    transform: translateX(6px);
}

/* Títulos de sección */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
}
.section-title p {
    color: #666;
}

/* Ajustes a los fondos de los bloques internos para resaltar sobre el nuevo gris */
.values-section, .about-brief-section, .services-featured {
    background: transparent;
}

/* Estructuración de Tarjetas de Compromiso Fijas */
.custom-card {
    background: #FFFFFF !important;
    border-radius: 8px;
    padding: 35px 25px;
    position: relative;
    box-shadow: 0 5px 18px rgba(15, 44, 89, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(15, 44, 89, 0.1) !important;
}
.card-primary {
    border-top: 5px solid var(--primary-color);
}
.card-accent {
    border-top: 5px solid var(--accent-color);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.value-icon {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.value-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Badges de las Tarjetas */
.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-badge.highlight {
    background-color: var(--accent-color);
}

/* Tarjeta Ancha de Presentación */
.wide-card {
    background: #FFFFFF !important;
    border-radius: 10px;
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 5px 18px rgba(15, 44, 89, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 40px;
    margin: 20px 0;
}
.text-subtitle {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}
.wide-card h2 {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 28px;
}
.signature-block {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #E0E0E0;
    color: #555;
}

/* Tarjetas de Servicios */
.services-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.service-box-card {
    background: #FFFFFF !important;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(15, 44, 89, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.service-box-card:hover {
    transform: scale(1.02);
}
.box-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.service-box-card h3 {
    color: var(--primary-color);
    margin-top: 5px;
}
.clients-section {
    padding: 40px 0 0 0;
}

/* ==========================================================================
   MENÚ HAMBURGUESA RESPONSIVO (PARA CELULARES)
   ========================================================================== */

/* Botón de 3 rayitas (Oculto en PC por defecto) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* RESPONSIVE: AJUSTES PARA PANTALLAS MÓVILES */
@media (max-width: 768px) {
    /* Mostramos el botón de las 3 rayitas */
    .menu-toggle {
        display: flex;
    }

    /* Redimensionamos sutilmente el logo en dispositivos móviles */
    .main-corporate-logo {
        height: 42px;
    }

    /* Transformamos la navegación en una persiana vertical oculta */
    .topbar nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Aparece justo abajo de la barra azul */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    /* Cuando el menú se activa con el clic, se muestra */
    .topbar nav.active {
        display: flex;
    }

    /* Separamos los enlaces en filas ordenadas para el dedo */
    .topbar nav a {
        margin: 12px 0;
        padding: 10px 30px;
        font-size: 18px;
        display: block;
        width: calc(100% - 60px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .topbar nav a:last-child {
        border-bottom: none;
    }

    /* ANIMACIÓN DE LAS RAYITAS (Se convierte en una "X" al abrirse) */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}