/* ==========================================================================
   GNUM - capa de marca
   El layout y el responsive los resuelve Bootstrap 5.3 (assets/vendor).
   Aqui va solo lo propio del sitio: paleta, tipografia, fondos de seccion y
   el tratamiento del hero. Sin media queries: se usa clamp() para escalar.
   ========================================================================== */

:root {
    --gnum-dark: #000000;
    --gnum-accent: rgb(34, 195, 248);
    --gnum-card: #e3e3e3;
}

body {
    font-family: "Quantico", sans-serif;
    background-color: #ffffff;
}

html {
    /* Compensa el navbar fijo al saltar a una seccion con # */
    scroll-padding-top: 6rem;
    scroll-behavior: smooth;
}



/* -------------------------------------------------------------- Navbar */

.site-navbar {
    margin: 1rem;
    padding: 0.5rem clamp(1rem, 3vw, 2rem);
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgb(66, 66, 66);
}
.navbar-logo {
    height: 44px;
    width: auto;
}
.site-navbar .nav-link {
    font-weight: 600;
    color: #fff;
    position: relative;
}
/* Subrayado que crece en hover, solo desde lg (con el menu colapsado estorba) */
@media (min-width: 992px) {
    .site-navbar .nav-item + .nav-item {
        margin-left: 2.5rem;
    }
    .site-navbar .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 100%;
        width: 0;
        height: 2px;
        background: #fff;
        transition: width 0.3s ease;
    }
    .site-navbar .nav-link:hover::after {
        width: 100%;
    }
}



/* ---------------------------------------------------------------- Hero */

.hero {
    position: relative;
    height: 100vh;
    min-height: 520px;
    padding: 1rem;
    overflow: hidden;
}

/* La cadena carousel > inner > item necesita altura explicita para llenar */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}
.hero-carousel {
    border-radius: 1rem;
    overflow: hidden;
}
.hero-carousel video,
.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Oscurece el fondo para que el texto blanco tenga contraste suficiente */
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* Deja pasar el clic a los indicadores del carrusel que quedan debajo */
    pointer-events: none;
}
.hero-logo {
    height: clamp(110px, 20vw, 280px);
    width: auto;
    flex-shrink: 0;
}
.hero-claim {
    font-size: clamp(1.1rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}
.hero-branches {
    display: block;
    margin-top: 0.75rem;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 100;
    line-height: 1.6;
    text-transform: none;
}

.icon {
    width: 1.6rem;
    height: 1.6rem;
    fill: currentColor;
    vertical-align: -0.25em;
}



/* ------------------------------------------- Subpaginas (sin hero) ----- */

/* Estas paginas no tienen hero a pantalla completa, asi que la cabecera
   necesita dejar sitio al navbar fijo por su cuenta. */
.page-header {
    padding: 9rem 0 3.5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url(images/bg.jpg) no-repeat center;
    background-size: cover;
    color: #fff;
}
.page-kicker {
    margin-bottom: 0.35rem;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}
.page-title {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
}

.page-content {
    padding: 3.5rem 0 4rem;
}

/* El formulario de Google se sirve en un iframe de alto fijo: se limita el
   ancho y se centra para que no quede estirado en pantallas grandes. */
.form-embed {
    max-width: 720px;
}
.form-embed iframe {
    display: block;
    width: 100%;
    border: 0;
}

.footer-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}
.footer-mail:hover {
    color: var(--gnum-accent);
}



/* ------------------------------------------------------ Titulos comunes */

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--gnum-dark);
    margin-bottom: 2.5rem;
}



/* ---------------------------------------------------- Seccion Nosotros */

.section-about {
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0), #fff),
                url(img/Fondo_malla.svg) no-repeat center;
    background-size: cover;
    padding: 5rem 0;
}
.about-gif {
    max-height: 250px;
    width: auto;
}
.about-list li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--gnum-card);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: justify;
    line-height: 1.5;
}
.about-list li:last-child {
    margin-bottom: 0;
}



/* ------------------------------------------------------- Seccion Ramas */

.section-products {
    position: relative;
    padding: 5rem 0;
    z-index: 1;
}
.section-products::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(img/fondo_ramas.jpeg) no-repeat center;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

.branch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0.5rem;
    overflow: hidden;
}
.branch-card img {
    height: clamp(140px, 18vw, 240px);
    object-fit: contain;
    transition: transform 0.25s ease;
}
.branch-name {
    margin-top: 0.75rem;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    color: var(--gnum-dark);
    transition: transform 0.25s ease;
}
.branch-card:hover img {
    transform: scale(1.15);
}
.branch-card:hover .branch-name {
    transform: translateY(0.35rem);
}



/* -------------------------------------------------------------- Footer */

.site-footer {
    position: relative;
    margin: 1rem;
    padding: 2rem 1rem;
    border-radius: 1rem;
    background: var(--gnum-dark);
    overflow: hidden;
    color: #fff;
}
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url(img/Fondo_malla.svg) no-repeat center;
    background-size: cover;
    opacity: 0.7;
    z-index: 1;
}
.site-footer > * {
    position: relative;
    z-index: 2;
}
.footer-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    margin-bottom: 0.5rem;
}
.footer-copyright {
    font-size: 12px;
}
.footer-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: #fff;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: var(--gnum-accent);
}
.footer-info {
    text-align: center;
    line-height: 1.5;
}



/* Respeta la preferencia del sistema de reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .branch-card img,
    .branch-name,
    .site-navbar .nav-link::after {
        transition: none;
    }
}
