/* Paleta de colores (variables) */
:root{
    --garlo-1: #EB9C1A;
    --garlo-2: #F4B414;
    --garlo-3: #FFDA46;
    --garlo-4: #F9E789;
    --garlo-5: #FFFFFF;
    --garlo-black: #000000;
    --garlo-900: #29292C;
    --garlo-700: #47474B;
    --garlo-500: #646B6F;
    --garlo-400: #919296;
    --garlo-300: #C6C4C4;
    --section-alt: #c6c4c48b; /* tono claro para secciones alternativas */
}

/* Tipografías */
body{
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--garlo-900);
    background-color: var(--garlo-5);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Title / display font */
h1,h2,h3,h4,h5{
    font-family: "League Spartan", "Montserrat", sans-serif;
    color: var(--garlo-900);
}

/* ======  HEADER  ====== */

/* Fondo Header */
.header-logo-zone {
    background-color: #29292C;
    padding: 1px 0 1px 0;
}

/* Logo sizes */
.logo-img{
    max-width: 100px;
    height: auto;
}

/* Smaller logo (navbar mobile) */
.logo-img-sm{
    height: auto;
}

/* Ajuste de padding del navbar */
.navbar {
    padding: 1px 0 1px 0;
}

/* Ajustes para móvil */
@media (max-width: 991px) {
    .navbar {
        padding: .5px 0 .5px 0;
    }
    
    /* Mover hamburguesa a la derecha */
    .navbar-toggler {
        margin-left: auto !important;
}
}

/* Forzar icono blanco del menú hamburguesa (navbar-toggler) */
.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='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler {
    border: 1px solid #ffffffb2 !important; /* color y grosor del contorno */
    border-radius: 8px; /* opcional – redondeado */
    padding: 4px 8px;   /* ajusta tamaño */
}


/* BASE */
.link-main{
    color: var(--garlo-300);
    font-weight:600;
    text-decoration:none;
    transition: color .18s ease, transform .18s ease;
    padding: .25rem .45rem;
}

/* HEADER → blanco */
.header-logo-zone .nav-link.link-main{
    color: #ffffff !important;
}

/* HEADER hover */
.header-logo-zone .nav-link.link-main:hover,
.header-logo-zone .nav-link.link-main.active,
.header-logo-zone .nav-link.link-main.hovered{
    color: var(--garlo-1) !important;
    transform: translateY(-2px);
}

/* GLOBAL hover */
.link-main:hover,
.link-main.active,
.link-main.hovered{
    color: var(--garlo-1);
    transform: translateY(-2px);
}

/* HEADER fijo en pantallas grandes */
    header.header-logo-zone {
        position: sticky;
        top: 0;
        z-index: 2000;
        background-color: #29292cf4; /* mismo fondo que ya usabas */
    }


/* Botones personalizados */
.btn-garlo{
    background: linear-gradient(90deg,var(--garlo-1),var(--garlo-2));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.4rem;
    font-weight:600;
    transition: transform .15s ease, filter .15s ease;
}
.btn-garlo:hover{
    filter:brightness(.95);
    transform: translateY(-2px);
}

.btn-outline-garlo{
    color: var(--garlo-900);
    border: 2px solid var(--garlo-1);
    border-radius: 10px;
    background: transparent;
    padding: .5rem 1.2rem;
}
.btn-outline-garlo:hover{
    background: var(--garlo-1);
    color: #fff;
}


/* ===== CTA COTIZA AHORA ===== */
.cta-cotiza{
    background-color: #ffda46e6;
    position: sticky;
    top: 72px;
    z-index: 1999;
}

.cta-cotiza-text{
    color: #29292C;
    font-weight: 1000;
    font-size: 1rem;
    text-transform: uppercase;
}

.cta-cotiza-whatsapp{
    color: #29292C;
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    transition: transform .2s ease, color .2s ease;
}

.cta-cotiza-whatsapp i{
    color: #25D366;
    font-size: 1.2rem;
}

.cta-cotiza-whatsapp:hover{
    color: #000000;
    transform: translateY(-2px);
}




/* ===== HERO BASE ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 55vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay unificado */
.hero-overlay {
    width: 100%;
    height: 100%;
    padding: 5rem 0;
    background: #ffda46bc;
    display: flex;
    align-items: center;
}

/* Ajustes de texto del hero */
.hero h1,
.hero .lead {
    color: var(--garlo-900);
}

.hero .lead {
    color: var(--garlo-700);
    font-weight: 500;
}

/* ===== HERO POR PÁGINA ===== */

/* Index */
.hero {
    background-image: url("img/hero/hero_index.webp");
}

/* Nosotros */
.hero-nosotros {
    background-image: url("img/hero/hero_nosotros.webp");
}

/* Acabados */
.hero-acabados {
    background-image: url("img/hero/hero_acabados.webp");
}

/* Productos */
.hero-products {
    padding: clamp(4rem, 6vw, 6.5rem) 0;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-products h1 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
}

.hero-products .lead {
    color: var(--garlo-700);
    max-width: 520px;
}

.hero-products-box {
    position: relative;
    padding-left: 1.5rem;
}

/* Línea vertical amarilla */
.hero-line {
    position: absolute;
    left: 0;
    top: .3rem;
    width: 4px;
    height: 85%;
    background: linear-gradient(
        180deg,
        var(--garlo-1),
        var(--garlo-2)
    );
    border-radius: 4px;
}

/* Imagen hero */
.hero-products-image img {
    max-width: 520px;
    width: 100%;
}



/* ===== QUIENES SOMOS / NOSOTROS ===== */
.about-section p {
    max-width: 820px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}



/* ====== SECTORES - TARJETAS / INDEX  ====== */

/* ===== Fondo degradado para sectores ===== */
.sectors-section{
    background: linear-gradient(
        180deg,
        var(--section-alt),
        var(--garlo-5)
    );
    overflow: hidden;
}

.sectors-section .card{
    border-radius: 10px;
    border: 1px solid var(--garlo-300);
    transition: transform .3s ease, box-shadow .3s ease;
}
.sectors-section .card:hover{
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.icon-wrap i{
    color: var(--garlo-1);
}

/* animations: initial hidden + slide-in-right */
.sector-card .sector-inner{
    transform: translateX(40px);
    opacity: 0;
    transition: transform .7s cubic-bezier(.22,.9,.26,1), opacity .6s ease;
}
.sector-card.visible .sector-inner{
    transform: translateX(0);
    opacity: 1;
}

/* Iconos de sectores siempre en negro */
.sector-inner i, .sector-inner h3 {
    color: #000; 
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Al pasar el mouse: icono amarillo */
.sector-inner:hover i, .sector-inner:hover h3 {
    color: #EB9C1A; /* Amarillo de tu paleta */
    transform: scale(1.12);
}

/* Tarjeta: mantener sombra y transición */
.sector-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}



/* ===== PORTAFOLIO PRODUCTOS ===== */
.portfolio-card {
    border: 1px solid var(--garlo-300);
    border-radius: 12px;
    background-color: #ffffff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.portfolio-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}


/* ===== PRODUCTOS POR NECESIDAD ===== */
.products-needs {
    background: linear-gradient(
        180deg,
        var(--section-alt),
        #ffffff
    );
}

.needs-card {
    border: 1px solid var(--garlo-300);
    border-radius: 12px;
    background: #ffffff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.needs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}


/* ===== CALIDAD GARLO ===== */
.quality-garlo {
    background-color: #ffffff;
}

.quality-card {
    border-radius: 16px;
    border: 1px solid var(--garlo-300);
    background: linear-gradient(
        180deg,
        #ffffff,
        #f9f9f9
    );
}



/* ===== MISIÓN Y VISIÓN / NOSOTROS ===== */
.mission-vision-section .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: transform .3s ease;
}

.mission-vision-section .card:hover {
    transform: translateY(-4px);
}



/* ===== POR QUÉ ELEGIR GARLO / NOSOTROS ===== */
.why-garlo-section .card i {
    color: #EB9C1A;
}


/* ===== HERO CONTACTO ===== */
.hero-contact .hero-products-box {
    max-width: 520px;
}

.hero-contact-actions .btn {
    border-radius: 10px;
    padding: .6rem 1.4rem;
}


/* ===== CONTACTO SECTION ===== */
.contact-section {
    background: linear-gradient(
        180deg,
        var(--section-alt),
        #ffffff
    );
}

.contact-card {
    border: 1px solid var(--garlo-300);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0,0,0,.05);
}

.contact-list {
    padding-left: 0;
    /* display: flex;
    flex-direction: column;
    gap: 1.1rem; */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--garlo-1);
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: .75rem;
    color: var(--garlo-500);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--garlo-900);
    font-weight: 600;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--garlo-1);
    text-decoration: underline;
}


/* ===== HORARIO CONTACTO ===== */

.schedule-card {
    border: 1px solid var(--garlo-300);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0,0,0,.05);
}

/* Barra superior (HOY) */
.schedule-today {
    background: linear-gradient(
        90deg,
        var(--garlo-1),
        var(--garlo-2)
    );
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
    color: #ffffff;
    transition: filter .25s ease, box-shadow .25s ease;
}

.schedule-today:hover {
    filter: brightness(.95);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* Quitar outline feo */
.schedule-today {
    outline: none;
}

/* Flecha */
.schedule-today i {
    font-size: 1.1rem;
    transition: transform .25s ease;
}

/* Rotación cuando está abierto */
.schedule-today[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Lista de días */
.schedule-list li {
    border-bottom: 1px dashed var(--garlo-300);
    font-size: .95rem;
    padding: .4rem 0;
    color: var(--garlo-700);
}

.schedule-list li:last-child {
    border-bottom: none;
}

/* Día actual */
.schedule-list li.today {
    font-weight: 700;
    color: var(--garlo-900);
}


/* ===== CIERRE CONTACTO ===== */
.contact-close {
    padding-top: 80px;
    padding-bottom: 80px;
}


/* ===== FOOTER ===== */

.footer-section {
    background-color: #29292C;
    padding: 2.5rem 0 2.5rem 0;
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

/* Íconos del footer */
.footer-icon i {
    font-size: 1.35rem;
    color: #FFFFFF;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-icon:hover i {
    color: #EB9C1A; /* Amarillo corporativo */
    transform: translateY(-3px);
}


/* ===== Dirección semántica del footer ===== */

/* Quita la cursiva por defecto del <address> */
.footer-address {
    font-style: normal;
}

/* Link de la dirección */
.footer-address-link {
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s ease;
}

/* Hover accesible */
.footer-address-link:hover {
    color: #EB9C1A;
    text-decoration: underline;
}

/* small screens adjustments */
@media (max-width: 991px){
    .nav-links-large{
        display:none !important;
    }
}

/* large screens: ensure logo on top and nav spaced below as requested */
@media (min-width: 992px){
    /* center layout */
    header .navbar-brand{ margin-bottom: 0; }
}

/* Accessibility: focus outlines */
a:focus, button:focus{
    outline: 3px solid rgba(235,156,26,.18);
    outline-offset: 2px;
}

/* Utility: alternative section background */
.bg-section-alt{
    background: linear-gradient(0deg, var(--section-alt), var(--garlo-5));
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* ===== Carousel arrows color ===== */
.carousel-control-prev:hover, .carousel-control-prev-icon,
.carousel-control-next:hover, .carousel-control-next-icon {
    filter: invert(74%) sepia(95%) saturate(650%) hue-rotate(8deg) brightness(105%);
}



/* ===== ANIMACIONES GLOBALES ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade desde izquierda */
.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade desde derecha */
.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}


@media (max-width: 991px) {
    .hero-products {
        text-align: center;
    }

    .hero-products-box {
        padding-left: 0;
    }

    .hero-line {
        display: none;
    }

    .hero-products .lead {
        margin: 0 auto;
    }

    .hero-products-image {
        margin-top: 2rem;
    }
}


/* ===== PRODUCTOS DESTACADOS · GRID ===== */

.products-grid img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
}

.product-highlight {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-highlight:hover {
    transform: translateY(-6px);
}

.product-highlight span {
    display: block;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--garlo-900);
}

/* Tablet */
@media (min-width: 768px) {
    .products-grid img {
        height: 100px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .products-grid img {
        height: 100px;
    }
}


/* ===== MARCAS QUE MANEJAMOS ===== */

.brands-section {
    background: linear-gradient(
        180deg,
        var(--section-alt),
        #ffffff
    );
}

.brand-card {
    background: #ffffff;
    border: 1px solid var(--garlo-300);
    border-radius: 14px;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.brand-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Desktop */
@media (min-width: 1200px) {
    .brand-card {
        height: 100px;
    }

    .brand-card img {
        max-height: 70px;
    }
}


/* ===== QUIÉNES SOMOS · TARJETA DESTACADA ===== */

.about-card {
    background: linear-gradient(
        180deg,
        #f9f9f9,
        #ffffff
    );
    border-radius: 18px;
    border: 1px solid var(--garlo-300);
    box-shadow: 0 14px 34px rgba(0,0,0,.06);
    max-width: 980px;
    margin: 0 auto;
}

.about-card p {
    max-width: 820px;
    margin: 0 auto 1rem;
    line-height: 1.75;
    color: var(--garlo-700);
}

/* Mobile ajustes */
@media (max-width: 575px) {
    .about-card {
        padding: 2rem 1.5rem;
    }
}


/* ===== POR QUÉ ELEGIR GARLO · IMÁGENES ===== */

.why-card {
    border-radius: 14px;
    border: 1px solid var(--garlo-300);
    transition: transform .25s ease, box-shadow .25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.why-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1rem;
}

/* Tablet */
@media (min-width: 768px) {
    .why-img {
        height: 180px;
    }
}


/* ===== FAMILIA DE PRODUCTOS · TARJETAS UNIFORMES ===== */

.product-family-card {
    background: #ffffff;
    border: 1px solid var(--garlo-300);
    border-radius: 14px;
    padding: 1.5rem 1rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 180px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-family-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    text-decoration: none;
}

/* Imagen */
.product-family-card img {
    max-width: 100px;
    height: 80px;
    object-fit: contain;
    margin-bottom: .75rem;
}

/* Texto */
.product-family-card span {
    font-weight: 600;
    color: var(--garlo-900);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.2;
    text-align: center;
}

/* Flecha */
.product-family-card i {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--garlo-1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: transform .25s ease, color .25s ease;
}

.product-family-card:hover i {
    transform: translateX(4px);
}

/* Ajustes por breakpoint */
@media (min-width: 768px) {
    .product-family-card {
        min-height: 200px;
    }
}

@media (min-width: 1200px) {
    .product-family-card {
        min-height: 220px;
    }
}

    .back-family-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--garlo-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color .2s ease;
}

.back-family-link:hover {
    color: var(--garlo-900);
    text-decoration: underline;
}



/* ===== ACABADOS · GRID ===== */

.finishes-section {
    background:
        linear-gradient(180deg, var(--section-alt), transparent 22%),
        linear-gradient(0deg, var(--section-alt), transparent 22%);
}

.finish-card {
    background: #ffffff;
    border: 1px solid var(--garlo-300);
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.finish-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.finish-img {
    max-width: 120px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

/* Título */
.finish-body h3 {
    font-size: 1.35rem;
    text-align: center;
    color: var(--garlo-1);
    letter-spacing: .3px;
    margin-bottom: .25rem;
}

/* Badge color */
.finish-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--garlo-300);
}

/* Ficha info */
.finish-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    font-size: .84rem;
    color: var(--garlo-700);
    line-height: 1.4;
    text-align: left;
}

.finish-list li {
    margin-bottom: .35rem;
}

.finish-list strong {
    font-weight: 600;
    color: var(--garlo-900);
}



/* Fallback de seguridad: mostrar contenido si JS falla */
.no-js .sector-inner,
.no-js .fade-in-section,
.no-js .fade-left,
.no-js .fade-right {
    opacity: 1 !important;
    transform: none !important;
}