@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --azul-intra: #003366;
    --rojo-intra: #E30613;
    --blanco: #ffffff;
    --gris-fondo: #f8f9fa;
    --texto-oscuro: #333333;
    --gris-borde: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--gris-fondo);
    color: var(--texto-oscuro);
    font-size: 17px; 
    padding-top: 145px; 
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--rojo-intra);
    color: var(--blanco);
    border-color: var(--rojo-intra);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--azul-intra);
    border-color: var(--azul-intra);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanco);
    border-color: var(--blanco);
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--azul-intra);
}

.btn-outline-blue {
    background-color: transparent;
    color: var(--azul-intra);
    border-color: var(--azul-intra);
}

.btn-outline-blue:hover {
    background-color: var(--azul-intra);
    color: var(--blanco);
}

.layout-header {
    background-color: var(--azul-intra);
    width: 100%;
    height: 110px; 
    position: fixed;
    top: 35px; 
    left: 0;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}

.layout-header-container {
    max-width: 1200px; 
    margin: 0 auto; 
    width: 90%; 
    height: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative; 
}

.layout-logo a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.layout-logo img {
    max-height: 100px; 
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1005;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- NAVEGACIÓN --- */
.layout-nav {
    display: flex;
}

.layout-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.layout-nav a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 400; /* Sin negrita */
    font-size: 1.1rem; 
    transition: color 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.layout-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--rojo-intra);
    transition: width 0.3s ease;
}

.layout-nav a:hover {
    color: var(--rojo-intra);
}

.layout-nav a:hover::after {
    width: 100%;
}

/* =======================================================
   TOP BAR (BARRA SUPERIOR)
   ======================================================= */
.layout-topbar {
    background-color: #022b52; 
    width: 100%;
    height: 35px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002; 
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.layout-topbar-container {
    max-width: 1200px; 
    margin: 0 auto; 
    width: 90%; 
    display: flex;
    justify-content: flex-end; 
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #cbd5e1; 
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.topbar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* =======================================================
   FOOTER PROFESIONAL 
   ======================================================= */
.layout-footer {
    background-color: var(--azul-intra);
    color: #ffffff;
    padding: 50px 0 0 0; 
    border-top: 5px solid var(--rojo-intra);
    width: 100%;
}

.layout-footer-content {
    max-width: 1300px;
    margin: 0 auto 20px auto; 
    padding: 0 5%; 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; 
}

.layout-footer-section h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.layout-footer-section h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--rojo-intra);
    margin-top: 5px;
}

.layout-footer-section p {
    text-align: justify; 
    text-justify: inter-word; 
    line-height: 1.4; 
    color: #fefefe; 

    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    
    word-break: normal;
    padding-right: 20px; 
}

.layout-footer-links {
    list-style: none;
    padding: 0;
}

.layout-footer-links li {
    margin-bottom: 6px;
}

.layout-footer-links li a {
    color: #ffffff; 
    text-decoration: none;
    font-size: 1.05rem; 
    transition: all 0.3s ease;
}

.layout-footer-links li a:hover {
    color: var(--rojo-intra);
    padding-left: 10px;
}

.layout-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fafbfc;
    margin-bottom: 6px;
}

.layout-footer-contact-item i {
    color: var(--rojo-intra); 
    font-size: 1.1rem;
    width: 20px;
}

/* --- SECCIÓN DE LOGO Y REDES SOCIALES (AZUL) --- */
.layout-footer-branding {
    max-width: 1300px;
    margin: 0 auto 0 auto; 
    padding: 15px 5% 30px 5%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;

}

.footer-logo {
    max-height: 100px; 
    width: auto;
    filter: brightness(0) invert(1);
}

.layout-footer-socials-inline {
    display: flex;
    gap: 15px;
}

.layout-footer-socials-inline a {
    width: 35px;
    height: 35px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.layout-footer-socials-inline a:hover {
    background: var(--rojo-intra);
    border-color: var(--rojo-intra);
}

/* --- FRANJA INFERIOR 100% BLANCA CON LÍNEA ROJA AL RAS --- */
.layout-footer-bottom-wrapper {
    background-color: var(--blanco);
    width: 100%;
    padding: 15px 0; 
    border-top: 5px solid var(--rojo-intra); /* Aquí agregamos la línea roja gruesa al ras del azul */
}

.layout-footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%; 
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
    font-size: 0.95rem;
}

.footer-bottom-spacer {
    /* Vacío para centrar el texto principal */
}

.footer-bottom-center {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 0px; 
    text-align: center; 
}

.footer-copyright-text p {
    margin-bottom: 2px; 
    line-height: 1.2;
    color: var(--azul-intra); 
    font-weight: 500;
}

.footer-filial-text {
    color: var(--azul-intra); 
    font-weight: 600; 
    cursor: pointer;
}

.footer-filial-text:hover {
    color: var(--rojo-intra);
}

.footer-bottom-right {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

.footer-secondary-logo {
    max-height: 85px; 
    width: auto;
    margin-right: -10px;
}

@media (max-width: 768px) {
    .layout-footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom-right {
        justify-content: center; 
    }
}
/* =======================================================
   ADAPTACIONES MÓVILES (Menú Hamburguesa & Carrusel)
   ======================================================= */
@media (max-width: 992px) {
    .layout-header {
        height: 80px;
        top: 30px;
    }

    body {
        padding-top: 110px;
    }

    .layout-topbar {
        height: 30px;
    }

    .topbar-info {
        font-size: 0.75rem;
    }

    .layout-logo img {
        max-height: 80px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .layout-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a; 
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 15px 25px rgba(0,0,0,0.5);
    }

    .layout-nav.active {
        max-height: 500px;
    }

    .layout-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 30px 30px 30px;
        gap: 0;
        width: 100%;
    }

    .layout-nav li {
        width: 100%;
    }

    .layout-nav a {
        display: block;
        font-size: 1.15rem;
        font-weight: 500;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        color: #f1f5f9; 
    }

    .layout-nav a::after {
        display: none; 
    }

    .layout-footer-branding {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .layout-footer-content { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .contacto-hero, 
    .hero-section,
    .hero-slide, 
    .contacto-hero-slide {
        min-height: 60vh !important;
        height: auto !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}


@media print {
    /* Ocultar elementos innecesarios al exportar a PDF */
    .btn-regresar, .btn-regresar-blog, header, footer, nav {
        display: none !important;
    }

    /* Ajustar fondos y colores para impresión */
    body, html {
        background-color: #ffffff !important;
        color: #000000 !important;
        overflow: visible !important;
    }

    /* Evitar que las secciones o tarjetas se corten de tajo entre páginas */
    .card-catalogo, section, .galeria-wrapper {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}