
:root {
    --dark: #121212;
    --gray: #1e1e1e;
    --accent: #ff6b00; /* Naranja Industrial */
    --blanco: #ffffff;
    --light: #f4f4f4;
    --industrial-yellow: #f4b400; 

}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Evita que el contenido quede debajo de la navbar */
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    padding-top: 80px; /* Esto empuja el contenido hacia abajo para que el logo no lo tape */
    overflow-x: hidden;
}





                                                /* NAVBAR */


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(18, 18, 18, 0.95); /* Fondo oscuro profesional */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}


.logo img {
    height:90px; /* Altura fija para que no tape todo */
    width: auto;  /* Mantiene la proporción */
    display: block;
}



.logo {
    font-family: 'Barlow Condensed';
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.logo span { color: var(--accent); }


.logo a {

    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 45px;
    /*Ajustaestevalorsegúnquétanaltoquieraselnavbar*/width: auto;
    /*Mantienelaproporciónoriginaldetulogo*/display: block;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05); /* Un pequeño efecto de escala al pasar el mouse */
}

/* Asegura que el contenedor del logo no tenga paddings extraños */
.logo {
    padding: 5px 0;
}



                                            /* Contenedor de enlaces */


/* 1. Contenedor principal: Alineación perfecta */
.nav-links {
    display: flex;
    align-items: center; /* Alinea los textos y el botón en el mismo eje central */
    gap: 10px; /* Reducimos el gap general para controlar el espacio con los márgenes de los links */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 2. Enlaces generales (hover con fondo suave) */
.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 2px;
    padding: 10px 14px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: relative;
    border-radius: 5px;
    transition: color 0.24s ease, background-color 0.24s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Se elimina el subrayado anterior */
.nav-links a::after {
    display: none;
}

.nav-links a:not(.btn-nav-quote):hover,
.nav-links a:not(.btn-nav-quote):focus-visible {
    color: var(--accent);
    background-color: #24201d;
}

/* 3. SOLUCIÓN: Clase especial para el Botón Cotizar */
.btn-nav-quote {
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    padding: 10px 22px !important; /* Un poco más de aire */
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    margin-left: 10px !important; /* Espacio extra respecto al enlace anterior */
    position: relative;
    top: -1px; /* AJUSTE FINO: Súbelo o bájalo un px para nivelar visualmente con el texto */
}

/* ELIMINAR LA RAYA NARANJA ESPECÍFICAMENTE EN EL BOTÓN */
.btn-nav-quote::after {
    display: none !important; /* Mata el pseudoelemento del botón */
}

/* Efectos Hover del Botón */
.btn-nav-quote:hover {
    background-color: #e65c00 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
    text-decoration: none !important;
}

/* Limpieza total de bordes/rayas en hover */
.nav-links li a:hover, 
.btn-nav-quote:hover {
    border-bottom: none !important;
    outline: none !important;
}






                                                   /* AGENDA REUNIÓN */




.description {
    color: #ccc; /* Color gris suave para el texto normal */
    line-height: 1.6;
}

.whatsapp-link {
    color: #ff6600; /* Naranja de acción */
    text-decoration: none; /* Quitamos el subrayado por defecto */
    font-weight: 600; /* Un poco más gruesa para que resalte */
    border-bottom: 1px solid transparent; /* Preparar el borde para el efecto */
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #ff8533; /* Un naranja más claro al pasar el mouse */
    border-bottom: 1px solid #ff8533; /* Aparece un subrayado elegante */
}

/* Evitamos que se ponga azul/morado si ya lo visitaron */
.whatsapp-link:visited {
    color: #ff6600;
}



                                                
                                                        /* HERO SLIDER */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(20px, 5vw, 80px);
    position: relative;
    overflow: hidden;}

.hero-slider .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-out;
    z-index: -1;
    will-change: transform, opacity;
}

.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide:nth-child(1) {
    animation: hero-pan-right 16s ease-in-out infinite alternate;
}

.hero-slider .slide:nth-child(2) {
    animation: hero-pan-left 16s ease-in-out infinite alternate;
}

.hero-slider .slide:nth-child(3) {
    animation: hero-pan-up 16s ease-in-out infinite alternate;
}

.hero-slider .slide:nth-child(4) {
    animation: hero-pan-down 16s ease-in-out infinite alternate;
}

@keyframes hero-pan-right {
    from { transform: scale(1.07) translateX(-0.7%); }
    to   { transform: scale(1.11) translateX(0.7%); }
}

@keyframes hero-pan-left {
    from { transform: scale(1.07) translateX(0.7%); }
    to   { transform: scale(1.11) translateX(-0.7%); }
}

@keyframes hero-pan-up {
    from { transform: scale(1.07) translateY(0.7%); }
    to   { transform: scale(1.11) translateY(-0.7%); }
}

@keyframes hero-pan-down {
    from { transform: scale(1.07) translateY(-0.7%); }
    to   { transform: scale(1.11) translateY(0.7%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .slide {
        animation: none;
        transform: scale(1.04);
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.20);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    text-align: center;
}

.hero-content .hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4.5rem, 9.4vw, 9.5rem);
    line-height: 0.84;
    margin: 0;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-wrap: balance;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.32));
    clip-path: inset(0 100% 0 0);
    animation: hero-title-wipe 1.35s cubic-bezier(0.77, 0, 0.18, 1) 0.38s forwards;
}

.hero-content .hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.7vw, 1.45rem);
    margin: clamp(18px, 2.2vw, 30px) 0 0;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-12px);
    animation: hero-eyebrow-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

@keyframes hero-title-wipe {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hero-eyebrow-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Contenedor Global para centrar y dar margen lateral */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Respiración lateral en móviles y desktop */
}

/* Espaciado entre Secciones */
section {
    padding: 140px 0; /* Mucho aire arriba y abajo de cada sección */
}

/* Ajuste específico para la sección Nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 120px; /* Espacio masivo entre el texto y las stats */
    align-items: center;
}

.about-text h2 {
    margin-bottom: 40px; /* Separación del título con el párrafo */
    display: inline-block;
}

.about-text .description {
    line-height: 2; /* Aumentar interlineado para mejorar legibilidad */
}

/* Espaciado de Servicios */
.section-title {
    margin-bottom: 80px; /* Espacio entre el título "SERVICIOS" y las cards */
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px; /* Espacio entre las tarjetas de servicios */
}

.card-info {
    padding: 40px 30px; /* Aire interno de la tarjeta */
    display: flex;
    flex: 1;
    flex-direction: column;
}





                                                /* Espaciado de la sección */



.about {
    padding: 120px 0 60px;
    background-color: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* El texto ocupa un poco más */
    gap: 100px; /* Margen generoso entre columnas */
    align-items: center;
}

.about-text h2 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--accent);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 4px;
    margin-bottom: 28px;
}

.about-text .description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 600px;
}

/* Stats Animadas */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-item {
    border-left: 4px solid var(--accent);
    padding-left: 30px;
}

.stat-number {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #666;
    margin-top: 5px;
}


.description strong {
    color: var(--accent); /* Utiliza la variable naranja que definimos */
    font-weight: 600;     /* Un poco más de peso visual */
}


/* Responsivo para móviles */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


                                                   /* Iconos */



.icon-section .section-subtitle {
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 5px;
    font-size: 1rem;
    color: var(--accent); /* Cambiado de #555 a naranja industrial */
    font-weight: 700;
    text-transform: uppercase;
}



.icon-section {
    background-color: var(--dark);
    padding: 110px 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.icon-section > .container {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.7fr);
    column-gap: clamp(48px, 7vw, 110px);
    align-items: start;
}

.icon-section .section-title {
    position: sticky;
    top: 120px;
    margin: 0;
    line-height: 0.98;
}

.icon-grid {
    display: block;
    border-top: 1px solid #303030;
    counter-reset: capability;
}

.icon-item {
    counter-increment: capability;
    display: grid;
    grid-template-columns: 40px 46px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding: 25px 10px;
    border-bottom: 1px solid #303030;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.icon-item::before {
    content: counter(capability, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    color: var(--accent);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 30px;
}

.icon-container {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    color: #d0d0d0;
    background: transparent;
    border: 0;
    clip-path: none;
    transition: color 0.3s ease;
}

.icon-container svg {
    width: 27px;
    height: 27px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: none;
}

.icon-item h3 {
    grid-column: 3;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin: 0 0 6px;
    letter-spacing: 1.5px;
}

.icon-item p {
    grid-column: 3;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
    max-width: 700px;
    margin: 0;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.infrastructure-details span {
    display: block;
    margin-bottom: 8px;
}

.infrastructure-details strong {
    color: #c7c7c7;
    font-weight: 600;
}

.icon-item:hover .icon-container {
    color: var(--accent);
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.018);
    padding-left: 16px;
}

@media (max-width: 900px) {
    .icon-section > .container {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .icon-section .section-title {
        position: static;
    }
}

@media (max-width: 768px) {
    .icon-section {
        padding: 80px 0;
    }

    .icon-section > .container {
        row-gap: 34px;
    }

    .icon-item {
        grid-template-columns: 30px 38px minmax(0, 1fr);
        column-gap: 12px;
        padding: 21px 0;
    }

    .icon-item:hover {
        padding-left: 0;
    }

    .icon-container {
        width: 30px;
        height: 30px;
    }

    .icon-container svg {
        width: 24px;
        height: 24px;
    }

    .icon-item h3 {
        font-size: 1.3rem;
    }
}

/* --- SECCIÓN TECNOLOGÍA --- */

.technology-section {
    padding: 100px 0;
    background: #161616;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #252525;
}

.technology-header {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.technology-header .section-title {
    margin-bottom: 0;
}

.technology-header p {
    max-width: 720px;
    color: #a8a8a8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 18px 0 0;
    text-align: justify;
    text-align-last: left;
}

.technology-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 900px;
    margin: 42px auto 0;
}

.technology-card {
    display: grid;
    grid-template-columns: 550px minmax(0, 1fr);
    height: 310px;
    min-height: 0;
    margin: 0;
    background: #1c1c1c;
    border: 1px solid #303030;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.technology-card:hover {
    transform: translateY(-4px);
    border-color: var(--industrial-orange);
}

.technology-image {
    height: 310px;
    min-height: 0;
    overflow: hidden;
    background: #121212;
}

.technology-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.technology-card:hover img {
    transform: none;
}

.technology-card-product .technology-image {
    background: #f3f3f3;
}

.technology-card-product img {
    object-fit: contain;
    padding: 14px;
}

.technology-card figcaption {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 38px 36px 34px;
    color: #f1f1f1;
}

.technology-card-title {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.technology-card-caption {
    display: block;
    margin-top: 14px;
    color: #b8b8b8;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
}

.technology-card-caption strong {
    color: #e8e8e8;
    font-weight: 700;
}

@media (max-width: 900px) {
    .technology-header p {
        margin-top: 18px;
        text-align: left;
    }

    .technology-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .technology-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .technology-image {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .technology-card figcaption {
        padding: 30px 28px 34px;
    }

}




                                              /* Contenedor de la Grilla */

.services-grid {
    display: grid;
    /* Define 3 columnas iguales que se ajustan solas */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; /* Espacio entre cards */
    margin-top: 60px;
}

                                                        /* Estilo de la Card */

.service-card {
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

/* Imagen con filtro industrial */

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    filter: grayscale(0%) brightness(1.04) contrast(1.04) saturate(1.08);
    transition: filter 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

                                /* Hover: La imagen cobra vida y la card se eleva */

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent); /* El naranja que definimos antes */
}

.service-card:hover .card-img {
    filter: grayscale(0%) brightness(1.08) contrast(1.06) saturate(1.12);
    transform: scale(1.025);
}


/* Cuando el mouse entra en la tarjeta, el h3 cambia de color */
.service-card:hover .card-info h3 {
    color: var(--accent); /* Tu variable naranja */
    transition: color 0.3s ease; /* Transición suave */
}





                                            /* Info dentro de la card */


.card-info h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #eee;
    margin-bottom: 12px; /* <-- Este es el ajuste clave */
    transition: color 0.3s ease;
}

.card-info p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5; /* Mejora la lectura del párrafo */
    color: #ccc;
    margin: 0; /* Limpiamos márgenes extra del párrafo */
}

.card-info .card-description-justified {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--industrial-orange);
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-card-link span {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.service-card:hover .service-card-link span,
.service-card:focus-within .service-card-link span {
    transform: translateX(5px);
}



/* --- HOVER SELECTIVO --- */

/* Solo el h3 cambia a amarillo cuando pasamos el mouse por la card */
.service-card:hover .card-info h3 {
    color: #f4b400; /* Amarillo industrial */
}



/* Opcional: El borde de la card también cambia a amarillo */
.service-card:hover {
    border-color: var(--industrial-yellow);
    transform: translateY(-8px); /* Pequeño desplazamiento hacia arriba */
}

/* Opcional: La imagen se aclara para mejorar el contraste */
.service-card:hover .card-img {
    filter: grayscale(0%) brightness(1.08) contrast(1.06) saturate(1.12);
}                                 





                                                    /* FOOTER */



footer { padding: 100px 10%; background: #0a0a0a; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid #333;
    color: white;
}

.btn-submit {
    background: var(--accent);
    border: none;
    padding: 15px 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

                                                    /* CONTACTO */


/* Sección General */

.contact-section {
    padding: 100px 0;
    background-color: var(--dark);
}

.contact-conversion {
    position: relative;
    max-width: 900px;
    margin: -8px 0 48px;
    padding: 26px 30px 26px 34px;
    overflow: hidden;
    border: 1px solid rgba(244, 180, 0, 0.25);
    background: linear-gradient(90deg, rgba(244, 180, 0, 0.08), rgba(255, 255, 255, 0.015));
}

.contact-conversion::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--industrial-orange), #f4b400);
}

.contact-conversion h3 {
    margin: 0 0 8px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.15;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.contact-conversion p {
    max-width: none;
    margin: 0;
    color: #b9b9b9;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-conversion {
        margin-bottom: 34px;
        padding: 22px 22px 22px 25px;
    }
}

/* Grilla principal */

.contact-grid {
    display: flex;
    flex-direction: row; /* Alineación horizontal por defecto */
    justify-content: space-between;
    gap: 80px; 
    align-items: start;
}

/* Asegura que el formulario y la sidebar ocupen su espacio */

.contact-form-container, .contact-sidebar {
    flex: 1; /* Dividen el espacio equitativamente */
}

.contact-sidebar {
    padding-left: clamp(80px, 9vw, 120px);
}

/* Columna de Datos: Volvemos a lista vertical */

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Espacio entre cada item vertical */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* REDUCCIÓN DE ICONOS: Ajustes clave */

.contact-icon {

    width: 32px; /* Reducido de 40px/50px */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent); /* Tu color naranja */
}

.contact-icon svg {

    width: 18px; /* Icono interno muy pequeño y técnico */
    height: 18px;
    stroke-width: 1.5; /* Línea más fina para mayor elegancia */
}

/* Estilo de los textos de contacto */




.contact-text span {
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--industrial-orange);
}

.contact-link, .contact-text p {

    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem;
    font-weight: 400; 
    line-height: 1.4;
    color: white;
    text-decoration: none;
}

.contact-hours {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-hours p {
    margin: 0;
}

.contact-location {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.contact-location .contact-link {
    white-space: nowrap;
}

.contact-email {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.contact-email .contact-link + .contact-link::before {
    content: "·";
    margin-right: 12px;
    color: var(--industrial-orange);
}

@media (max-width: 600px) {
    .contact-location {
        display: block;
    }

    .contact-location .contact-link {
        white-space: normal;
    }
}

/* Estilos del Formulario Industrial (A la izquierda) */

.industrial-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
}

.industrial-form input, .industrial-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.industrial-form input::placeholder,
.industrial-form textarea::placeholder {
    color: #ffffff;
    opacity: 1;
}

.industrial-form input:focus, .industrial-form textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--accent);
}

.btn-submit {
    align-self: flex-start;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 35px;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    margin-top: 10px;
}

/* Responsivo: Vuelta a columna en móviles */
@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column-reverse; /* El formulario sube y los datos bajan */
        gap: 50px;
    }
}




                                      /* Enlaces generales de las tarjetas */


.service-card, 
.service-card:visited, 
.service-card:active {
    text-decoration: none;
    color: inherit; /* Hereda el color del contenedor padre */
}

/* Específicamente para el título h3 dentro de la card */
.service-card h3,
.service-card:visited h3 {
    color: #ffffff; /* Color blanco inicial */
    transition: color 0.3s ease;
}

/* Mantenemos el hover amarillo que ya tenías */
.service-card:hover h3 {
    color: #f4b400 !important; /* El !important asegura que gane al color de visitado */
}

/* Evitamos el subrayado azul en el email y teléfono del footer también */
.contact-link,
.contact-link:visited {
    text-decoration: none;
    color: #eee;
}


/* Quitamos el estilo de link por defecto a todos los enlaces de las cards */
.service-card a {
    text-decoration: none;
    color: inherit; /* Hereda el color del padre (blanco o gris) */
    display: flex; /* Para que el enlace ocupe todo el espacio */
    flex-direction: column;
    height: 100%;
}

/* Reset específico para el estado 'visitado' */
.service-card a:visited {
    color: inherit;
    text-decoration: none;
}

/* Aseguramos que el h3 sea blanco y cambie a amarillo solo en hover */
.service-card h3 {
    color: #ffffff !important; 
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #f4b400 !important; /* Amarillo industrial */
}


                                                      /* MAPA */


.map-section {
    padding: 90px 0;
    background-color: var(--dark);
}

.container-mapa {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    min-height: 380px;
    border: 1px solid #2e2e2e;
    background: #161616;
}

.location-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 64px);
    overflow: hidden;
}

.location-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--industrial-orange), #f4b400);
}

.location-eyebrow {
    margin-bottom: 12px;
    color: var(--industrial-orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.location-panel h2 {
    margin: 0 0 22px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.location-panel address {
    margin: 0 0 18px;
    color: #e9e9e9;
    font-style: normal;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.location-panel p {
    max-width: 370px;
    margin: 0 0 28px;
    color: #aaa;
    font-size: 0.94rem;
    line-height: 1.65;
}

.map-directions-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: #f4b400;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.map-directions-link span {
    font-size: 1.05rem;
    transition: transform 0.25s ease;
}

.map-directions-link:hover span,
.map-directions-link:focus-visible span {
    transform: translateX(5px);
}

.map-wrapper {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid #303030;
    filter: grayscale(35%) saturate(0.8) contrast(1.05);
    transition: filter 0.4s ease;
}

.map-wrapper:hover,
.map-wrapper:focus-within {
    filter: grayscale(0%) saturate(1) contrast(1);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 380px;
}

@media (max-width: 760px) {
    .map-section {
        padding: 70px 0;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .location-panel {
        padding: 38px 30px 40px;
    }

    .map-wrapper {
        border-top: 1px solid #303030;
        border-left: 0;
    }

    .map-wrapper iframe {
        height: 320px;
    }
}





                                                             /* FLECHA ARRIBA */



.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #f4b400; /* Tu amarillo industrial */
    color: #333; /* Flecha en gris oscuro para contraste */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    z-index: 1000;
    opacity: 0; /* Invisible al principio */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top:hover {
    background-color: #ffffff; /* Cambia a blanco al pasar el mouse */
    transform: translateY(-5px); /* Pequeño salto hacia arriba */
}

/* Clase que se activará con JS al hacer scroll */

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}






                                                        /* SECCIONES dentro LAYOUT PAGINAS */




.service-hero {

    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--industrial-yellow);
}

.service-hero h1 {
    font-size: 3rem;
    color: var(--industrial-yellow);
    text-transform: uppercase;
}

/* Diseño en dos columnas para el detalle */

.grid-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
}

.text-block h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.text-block p {
    color: #eee;
    line-height: 1.8;
}

.industrial-border {
    border: 1px solid #333;
    padding: 10px;
    background: #111;
    width: 100%;
}

/* Galería de fotos inferior */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.gallery-grid img:hover {
    filter: grayscale(0%);
}

/* --- mas en 1600 --- */




                                                /* --- SECCIÓN CALIDAD Y CONTROL --- */


/* --- SECCIÓN CALIDAD --- */
.quality-control-section {
    padding: 70px 0 100px;
    background-color: var(--dark);
}

.container-quality {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.quality-row {
    display: flex;
    align-items: center; /* Centra verticalmente texto e imagen */
    gap: 80px; /* Espacio entre foto y párrafo */
    margin-bottom: 100px;
}

/* ESTO CREA EL DINAMISMO: Invierte el orden de los hijos */
.quality-row.row-reverse {
    flex-direction: row-reverse;
}

.quality-image {
    flex: 1; /* Ocupa el 50% */
}

.quality-image img {
    width: 100%;
    height: 450px; /* Altura fija para que sean simétricas */
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quality-text {
    flex: 1; /* Ocupa el 50% */
}

.quality-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}


                                            /* --- AJUSTE DE PROPORCIONES --- */


.quality-row {
    display: flex;
    align-items: center; 
    gap: 80px; 
    margin-bottom: 100px;
}

/* El texto ahora es más ancho (60%) */

.quality-text {
    flex: 1.5; /* Esto le da más peso al texto */
}

/* La imagen ahora es más chica (40%) */
.quality-image {
    flex: 1; /* Mantiene un tamaño menor comparado al 1.5 del texto */
    max-width: 450px; /* Límite de seguridad para que no crezca de más */
}

.quality-image img {
    width: 100%;
    height: auto; /* IMPORTANTE: Deja que la proporción la de la imagen original */
    aspect-ratio: 4 / 3; /* Fuerza una proporción fotográfica profesional */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ajuste fino para el párrafo */
.quality-text p {
    font-size: 1.2rem; /* Aumentamos un poco el tamaño para legibilidad */
    line-height: 1.8;
}





                                                /* --- RESPONSIVE TABLET Y MÓVIL --- */


@media (max-width: 992px) {
    .quality-row {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* En móvil volvemos a poner todo en una sola columna estándar */
    .quality-row, 
    .quality-row.row-reverse {
        flex-direction: column !important; 
        gap: 30px;
        margin-bottom: 70px;
        text-align: center;
    }

    .quality-image {
        width: 100%;
    }

    .quality-image img {
        height: 300px; /* Foto más baja en celulares */
    }
}



                                               /* --- TRATAMIENTO DE IMÁGENES --- */


.quality-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px; /* Bordes ligeramente más redondeados para modernidad */
    
    /* Efecto de Sombra Tendencia 2026: Soft Industrial Glow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(244, 180, 0, 0.05); /* Un sutil resplandor amarillo */
    
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efecto Hover: La imagen se acerca levemente al usuario */

.quality-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
                0 0 30px rgba(244, 180, 0, 0.1);
}


                                          /* --- TRATAMIENTO DE TEXTO (PÁRRAFOS) --- */

.quality-text {
    flex: 1.5;
    padding: 20px;
}

/* Estilo para el primer párrafo de cada bloque (Intro) */

.quality-text p:first-child {
    font-family: 'IBM Plex Sans Condensed', 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--industrial-yellow); /* Línea de acento lateral */
}

/* Estilo para los párrafos siguientes (Detalle) */

.quality-text p:not(:first-child) {
    font-size: 1.1rem;
    color: #a0a0a0; /* Gris más suave para jerarquía visual */
    margin-top: 15px;
    line-height: 1.8;
}



                                            /* --- TRATAMIENTO DE TEXTO (PÁRRAFOS) --- */


.quality-text p {
    text-align: justify; /* Justifica el texto */
    hyphens: auto;       /* Evita huecos grandes separando palabras con guiones si es necesario */
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}

/* Estilo para el primer párrafo de cada bloque (Intro) con la línea de acento */
.quality-text p:first-child {
    font-family: 'IBM Plex Sans Condensed', 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--industrial-yellow);
    margin-bottom: 20px;
}

/* Para los párrafos siguientes, mantenemos el justificado pero con un color más suave */
.quality-text p:not(:first-child) {
    color: #a0a0a0;
    margin-top: 15px;
}

.quality-text p:not(:first-child) strong {
    color: #ffffff;
    font-weight: 700;
}


                                            /* --- SECCIÓN CLIENTES --- */


.clients-section {
    padding: 80px 0;
    background-color: #F2F2F0; /* Gris cálido para integrar la sección con la estética industrial */
    text-align: center;
}

.container-clients {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 40px;
}

.clients-header {
    margin-bottom: 50px;
}

.clients-description {
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grilla de clientes */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 17px;
    border: 1px solid #e9ebee;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(23, 31, 44, 0.055);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.client-logo img {
    display: block;
    max-width: 72%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%); /* Tendencia: logos en gris */
    opacity: 0.68;
    transition: all 0.4s ease;
}

/* Efecto al pasar el mouse */
.client-logo:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 32px rgba(23, 31, 44, 0.11);
}

.client-logo img:hover {
    filter: grayscale(0%); /* Recupera su color original */
    opacity: 1;
    transform: scale(1.04); /* Crece levemente */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 logos por fila en móvil */
        gap: 10px;
    }

    .client-logo {
        min-height: 92px;
        padding: 15px;
    }
    
    .client-logo img {
        max-width: 72%;
        max-height: 46px;
    }
}

@media (max-width: 480px) {
    .container-clients {
        padding: 0 20px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-logo {
        min-height: 88px;
    }
}







                                                      /*   FORMULARIO  */



.form-status-hidden { display: none; }

.form-status-visible {
    padding: 40px;
    background-color: #121212;
    border: 2px solid #ff6b00;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.status-content i {
    font-size: 3rem;
    color: #ff6b00;
    margin-bottom: 15px;
}

.status-content p {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.status-content span { color: #888; }

.btn-return {
    display: inline-block;
    margin-top: 20px;
    color: #ff6b00;
    text-decoration: none;
    border: 1px solid #ff6b00;
    padding: 10px 20px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-return:hover {
    background: #ff6b00;
    color: white;
}



.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Formulario más angosto y datos con mayor espacio */
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* En móvil, una columna */
        gap: 40px;
    }

    .contact-sidebar {
        padding-left: 0;
    }
}








                                                       /* LAYOUT PÁGINAS MODELOS */



/* --- VARIABLES --- */


:root {
    --industrial-yellow: #f4b400; /* Amarillo de tu logo/referencia */
    --industrial-orange: #ff6b00; /* Naranja de botones */
    --dark-bg: #121212;
    --light-text: #ffffff;
    --gray-text: #aaaaaa;
}

                                                /* --- SECCIÓN PRINCIPAL --- */


.service-hero {
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
}

.service-flex {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 80px;
}

                                            /* --- LADO DE LA IMAGEN --- */


.service-image-side {
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-image-side img {
    width: 100%;
    height: 500px;
    object-fit: cover;  
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

                                            /*  MARCO AMARILLO DECORATIVO */


.accent-frame {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;        
    border: 8px solid var(--industrial-yellow);
    z-index: 0;
}

/* --- LADO DEL TEXTO --- */


.service-text-side {
    flex: 1;
}

.service-tag {
    color: var(--industrial-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.service-main-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 4rem;
    color: var(--light-text);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.service-main-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--light-text); /* Efecto de borde técnico */
}

.service-lead-text {

    font-family: 'Inter', sans-serif;
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
}


.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.service-features li {
    color: var(--light-text);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '■'; /* Cuadrado industrial en lugar de punto */
    position: absolute;
    left: 0;
    color: var(--industrial-yellow);
}

/* --- BOTÓN --- */


.btn-industrial-cta {
    display: inline-block;
    background-color: var(--industrial-orange);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-industrial-cta:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}






                                 /* --- GALERÍA DE TRABAJOS (ESTILO INDUSTRIAL CLEAN) --- */




.work-gallery-section {
    background-color: #ffffff; 
    padding: 100px 0;
    width: 100%;
}


.container-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Cabecera de la sección */

.gallery-header {
    text-align: center;
    margin-bottom: 70px;
}

.gallery-tag {
    color: #f4b400; 
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.gallery-title {
    font-family: 'Barlow Condensed', sans-serif; 
    font-size: 3.5rem;
    color: #1a1a1a; /* Gris casi negro */
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.gallery-title span {
    color: #1a1a1a;
    -webkit-text-stroke: 0;
}

.gallery-line {
    width: 60px;
    height: 3px;
    background-color: #ff6b00; 
    margin: 25px auto 0;
}

                                    /* Grilla de 3 Columnas */


.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 30px; /* Espacio entre las tarjetas */
}

                                    /* Item Individual de Galería */

.gallery-item {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden; /* Importante para el efecto hover de imagen */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* Sombra suave */
}

/* Contenedor de la Imagen y Efecto Hover */

.gallery-image-box {
    width: 100%;
    height: 260px; /* Altura fija para que todas las fotos se alineen */
    overflow: hidden; /* Esconde el exceso de la imagen al hacer zoom */
    position: relative;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto cubra el área sin deformarse */
    filter: grayscale(20%) brightness(0.95); /* Leve filtro industrial inicial */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    display: block;
}

/* Efecto HOVER en la Imagen */

.gallery-item:hover .gallery-image-box img {
    transform: scale(1.08) translateX(-5px); /* Zoom suave y desplazamiento lateral */
    filter: grayscale(0%) brightness(1.05); /* Recupera color y brillo */
}

/* Texto debajo de la imagen */

.gallery-text {
    padding: 25px 20px;
    text-align: left;
}

.gallery-text h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.gallery-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666; 
    margin: 0;
}









/* RESPONSIVE: Para celulares */

@media (max-width: 900px) {
    .gallery-grid-3 {
        grid-template-columns: 1fr; /* Una columna por fila */
        gap: 40px;
    }
    
    .gallery-title {
        font-size: 2.8rem;
    }
}

    .service-hero h1 {

    font-size: 2rem;
    color: var(--industrial-yellow);
    text-transform: uppercase;
}



                                        /* --- ESTILOS HAMBURGUESA --- */



.hamburger {
    display: none; /* Oculto en desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* --- RESPONSIVE MÓVIL (Max 768px) --- */

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Se muestra en móvil */
    }

    .nav-links {
        position: fixed;
        left: -100%; /* Escondido a la izquierda */
        top: 0;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.98); /* Fondo oscuro industrial */
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0; /* Aparece al hacer click */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 1.5rem; /* Letras grandes para tocar con el dedo */
    }

    /* Animación de la X al abrir */

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}



                                        /* CENTRADO DEL HERO PALABRAS */





@media (max-width: 768px) {


    /* 1. Centrado absoluto del contenedor */


    .hero-content {
        position: absolute;
        /* Cambiamos 50% por 45% para "subirlo" visualmente */
        top: 45%; 
        left: 50%;
        transform: translate(-50%, -50%);
        
        width: 90%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        /* Añadimos un z-index para asegurar que esté sobre el overlay de la imagen */
        z-index: 10; 
    }



        /* 2. Tamaño de letra impactante para el título */


    .hero-content .hero-title {
        /* Bajamos un pelín el tamaño si ves que se amontona, 
           pero mantenemos la fuerza industrial */
        font-size: clamp(3.15rem, 15vw, 5.1rem);
        line-height: 0.88;
        margin: 0;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: -0.035em;
        color: #ffffff;
        /* Sombra de texto para mejorar legibilidad sobre fondos claros */
        text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }



     /* 3. Ajuste para el párrafo */

    .hero-content .hero-eyebrow {
        font-size: clamp(0.78rem, 3.6vw, 1rem);
        font-weight: 400;
        margin: 15px 0 0;
        color: #f0f0f0;
        max-width: none;
        letter-spacing: 0.2em;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content .hero-title,
    .hero-content .hero-eyebrow {
        animation: none;
        clip-path: none;
        opacity: 1;
        transform: none;
    }
}


                            /* --- CONTROL DE TAMAÑO DE IMAGEN CON MARCOS --- */



.service-image-side {
    position: relative;
    display: inline-block;
    padding: 20px; /* Espacio reservado para los marcos */
    margin: 10px auto;
    /* 1. ACHICAR EL CONTENEDOR: Cambia este valor para el tamaño general */
    width: 100%; 
    max-width: 400px; /* Si quieres que sea más chica, baja este número (ej. 350px) */
    box-sizing: border-box;
}

.service-image-side img {
    display: block;
    width: 100%; /* La imagen siempre llena el contenedor definido arriba */
    height: auto;
    position: relative;
    z-index: 3;
    border-radius: 2px;
}

/* Base de los marcos (se ajustan automáticamente al tamaño anterior) */

.service-image-side::before,
.service-image-side::after {
    content: '';
    position: absolute;
    /* 2. ACHICAR LOS MARCOS: Si la foto es muy chica, baja estos valores */
    width: 60px;  
    height: 60px;
    border: 4px solid #ff6b00;
    z-index: 1;
}

.service-image-side::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.service-image-side::after {
    bottom: 0;
    right: 0;
    border-top: none;
    border-left: none;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .service-image-side {
        display: block;
        max-width: 300px; /* Aún más chica en celulares para que no ocupe todo */
    }
}



                                    /* --- BARRA DE NAVEGACIÓN CON CONTRASTE --- */


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    /* Un gris grafito tenue para que no sea el mismo negro que el fondo */
    background-color: rgba(30, 30, 30, 0.95); ; 
    /* Agregamos un borde inferior muy fino para definir el límite */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Efecto de desenfoque para que se vea moderno */
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


                                    /* --- NAVEGACIÓN RESPONSIVE --- */


@media (max-width: 768px) {

    .hamburger {
        display: flex; /* Ahora sí se verá el botón */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #ff6b00; /* Naranja para que resalte */
    }

    .nav-links {
        display: none; /* Se oculta por defecto en móvil */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(30, 30, 30, 0.98);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    /* Clase que activará el JS para mostrar el menú */
    .nav-links.active {
        display: flex;
    }

    /* --- MARCO NARANJA IZQUIERDO --- */

    .service-image-side {
        display: block;
        width: 80%;       /* Reducimos un poco más para dar aire a los costados */
        margin: 40px auto; 
        padding: 20px;    /* ESPACIO CRÍTICO: permite que el marco izquierdo se vea */
    }

    .service-image-side::before,
    .service-image-side::after {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
}


                                        /* --- MARCOS NARANJA --- */


@media (max-width: 768px) {


/* 1. Contenedor: El secreto es el overflow visible */
.service-image-side {
    position: relative;
    display: block;
    width: 80%;           /* Espacio para que el marco no toque el borde del cel */
    margin: 40px auto;    /* Centra la foto */
    padding: 0;           /* Reseteamos padding */
    overflow: visible;    /* PERMITE que el marco se vea por fuera */
}

.service-image-side img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 5;           /* Foto al frente */
}

/* 2. Base de los marcos */
.service-image-side::before,
.service-image-side::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid #ff6b00;
    z-index: 1;           /* Marcos por detrás */
}

/* ESQUINA SUPERIOR IZQUIERDA: Usamos valores negativos */
.service-image-side::before {
    top: -15px;           /* Sube 15px por fuera de la foto */
    left: -15px;          /* Sale 15px hacia la izquierda */
    border-right: none;
    border-bottom: none;
}

/* ESQUINA INFERIOR DERECHA: Usamos valores negativos */

.service-image-side::after {
    bottom: -15px;        /* Baja 15px por fuera de la foto */
    right: -15px;         /* Sale 15px hacia la derecha */
    border-top: none;
    border-left: none;
}
    
}




@media (max-width: 768px) {

    

    /* Aseguramos que la galería de trabajos recientes tenga su propio aire */

    .work-gallery-section {
        margin-top: 40px;
        padding: 60px 5%;
        background-color: #ffffff; /* O el color que uses para el portfolio */
        clear: both; /* Evita que elementos flotantes se encimen */
    }
}




                                                /* LÍNEA AMARILLA */

/* Esto asegura que cualquier residuo de la línea desaparezca */
.accent-frame2, 
.gallery-line {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    .service-hero {
        height: auto !important;
        padding-bottom: 40px !important; /* El espacio que vos quieras hasta el final */
        border-bottom: 4px solid #f4b400 !important; /* Esta SI es tu raya de cierre */
    }

    .service-flex {
        gap: 20px !important; /* Reducimos el espacio interno */
    }
    
    /* Si la raya persiste entre secciones, es un margen del portfolio */
    .work-gallery-section {
        margin-top: 0 !important;
        padding-top: 60px !important;
    }
}

/* --- AJUSTES FINALES PARA MÓVILES --- */
@media (max-width: 768px) {
    /* Jerarquía más equilibrada para los títulos principales */
    #calidad .section-title,
    #iconos-servicios .section-title,
    #tecnologia .section-title,
    #servicios .section-title,
    #contacto .section-title {
        font-size: clamp(2.35rem, 11vw, 2.75rem);
        line-height: 1;
        letter-spacing: -0.02em;
        margin-bottom: 52px;
    }

    /* "Nosotros" conserva el color de marca y gana protagonismo */
    #nosotros .about-text h2 {
        font-size: clamp(2.25rem, 10vw, 2.7rem);
        line-height: 1;
        letter-spacing: 5px;
        margin-bottom: 32px;
    }

    /* Alineación consistente de los datos de contacto */
    #contacto .contact-info-block {
        width: 100%;
        gap: 28px;
    }

    #contacto .contact-item {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: start;
        column-gap: 14px;
        width: 100%;
    }

    #contacto .contact-icon {
        margin-top: 1px;
    }

    #contacto .contact-text,
    #contacto .contact-hours,
    #contacto .contact-location,
    #contacto .contact-email {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: baseline;
        gap: 5px 10px;
        min-width: 0;
    }

    #contacto .contact-text > span {
        grid-column: 1;
        grid-row: 1;
        white-space: nowrap;
    }

    #contacto .contact-text > a,
    #contacto .contact-text > p {
        grid-column: 2;
        margin: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #contacto .contact-email .contact-link + .contact-link::before {
        content: none;
    }
}




/* LA IMAGEN DE HIDROLAVADOS EN RESPONSIVE   */


@media (max-width: 768px) {
    .service-hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 80px 20px 40px !important; /* Espacio arriba, lados y abajo */
        border-bottom: 4px solid #f4b400 !important;
    }

    .service-flex {
        display: flex !important;
        flex-direction: column !important; /* Apilamos: Imagen arriba, texto abajo */
        align-items: center !important;
        gap: 40px !important; /* Espacio real entre foto y texto */
    }

    .service-image-side {
        width: 100% !important; /* Que ocupe todo el ancho disponible */
        max-width: 450px !important; /* Pero que no se deforme si la pantalla es ancha */
        display: block !important;
        order: 1; /* Aseguramos que sea lo primero que se ve */
    }

    .service-image-side img {
        width: 100% !important;
        height: auto !important;
        display: block;
        border-radius: 4px; /* Opcional: un toque técnico */
        object-fit: cover;
    }

    .service-text-side {
        width: 100% !important;
        text-align: center !important; /* Centramos el texto para estética móvil */
        order: 2;
    }

    /* Ajuste para la lista de puntos (checks) en móvil */
    .service-features {
        display: inline-block; /* Para que el text-align center del padre no los rompa */
        text-align: left; 
        margin: 20px 0 !important;
    }
}


.services-intro {
    max-width: 780px;
    margin: 0;
    color: #a8a8a8;
    font-size: 1.1rem;
    line-height: 1.7;
}

.services .section-title {
    margin-bottom: 1.25rem;
}

.services .services-grid {
    margin-top: 2.5rem;
}

.contact-location address {
    display: inline;
    font-style: normal;
}

.related-services {
    padding: 1.5rem 5% 4rem;
    background: #111;
}

.related-services h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
}

.related-services nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}

.related-services a {
    color: #c4c4c4;
    text-decoration: none;
}

.related-services a:hover,
.related-services a:focus-visible {
    color: #ff6b00;
}

.faq-section {
    padding: 6rem 0;
    background: #111;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2.5rem;
    background: #333;
    border: 1px solid #333;
}

.faq-item {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: #151515;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .35s ease, box-shadow .35s ease;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: #ff6b00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.faq-item::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -100px;
    right: -100px;
    border-radius: 50%;
    background: rgba(255, 107, 0, .09);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.faq-item:hover {
    z-index: 1;
    transform: translateY(-5px);
    background: #191919;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.faq-item h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.55rem;
    text-transform: uppercase;
    transition: color .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.faq-item:hover h3 {
    color: #ff6b00;
    transform: translateX(6px);
}

.faq-item p {
    margin: 0;
    color: #aaa;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services .section-title { margin-bottom: 1rem; }
    .services .services-grid { margin-top: 2rem; }
    .faq-section { padding: 4rem 0; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item::before,
    .faq-item::after,
    .faq-item h3 {
        transition: none;
    }

    .faq-item:hover,
    .faq-item:hover h3 {
        transform: none;
    }
}

.service-hero {
    position: relative;
    border-bottom: 0 !important;
}

.service-divider {
    position: relative;
    z-index: 2;
    height: 10px;
    margin: -5px 0;
    overflow: hidden;
}

.service-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #ff6b00 0%, #f4b400 48%, #ff6b00 100%);
    background-size: 200% 100%;
    transform-origin: center;
}

@media (hover: hover) and (pointer: fine) {
    .service-divider:hover::before {
        animation: service-divider-color-shift .85s ease;
    }
}

@keyframes service-divider-color-shift {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .service-divider:hover::before { animation: none; }
}

/* Carrusel local de la micropágina Aislación térmica */
.service-image-side.insulation-carousel {
    flex: 0 1 560px;
    width: 100%;
    max-width: 560px;
    padding: 0;
    margin: 18px auto 42px;
    display: block;
    isolation: isolate;
}

.service-image-side.insulation-carousel::before,
.service-image-side.insulation-carousel::after {
    width: 84px;
    height: 84px;
    border-width: 4px;
}

.service-image-side.insulation-carousel::before {
    top: -14px;
    left: -14px;
}

.service-image-side.insulation-carousel::after {
    right: -14px;
    bottom: 22px;
}

.insulation-carousel-viewport {
    position: relative;
    z-index: 3;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
    cursor: pointer;
}

.insulation-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 520ms cubic-bezier(.22, .68, .24, 1);
    will-change: transform;
}

.insulation-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.service-image-side.insulation-carousel .insulation-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.service-image-side.insulation-carousel .insulation-slide img.service-image-contain {
    object-fit: contain;
}

.insulation-carousel-button {
    position: absolute;
    z-index: 5;
    top: calc(50% - 22px);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.78);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.insulation-carousel-button:hover,
.insulation-carousel-button:focus-visible {
    background: #ff6b00;
    border-color: #ff6b00;
    transform: scale(1.06);
    outline: none;
}

.insulation-carousel-prev { left: 14px; }
.insulation-carousel-next { right: 14px; }

.insulation-carousel-dots {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
}

.insulation-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #ff6b00;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: width .25s ease, border-radius .25s ease, background-color .25s ease;
}

.insulation-carousel-dots button.is-active {
    width: 28px;
    border-radius: 8px;
    background: #ff6b00;
}

/* Las fotografías de Fireproofing son verticales: se conserva su encuadre completo. */
.service-image-side.fireproofing-carousel {
    flex-basis: 380px;
    max-width: 380px;
}

.fireproofing-carousel .insulation-carousel-viewport {
    aspect-ratio: 3 / 4;
}

/* Revestimiento combina fotos verticales y horizontales sin recortar ninguna. */
.revestimiento-carousel .insulation-carousel-viewport {
    background: #0b0b0b;
}

.service-image-side.revestimiento-carousel .insulation-slide img {
    object-fit: contain;
}

.hidrolavados-carousel .insulation-carousel-viewport {
    background: #0b0b0b;
}

.service-image-side.hidrolavados-carousel .insulation-slide img {
    object-fit: contain;
}

/* Arenados combina la portada horizontal con fotografías verticales de taller. */
.arenados-carousel .insulation-carousel-viewport {
    background: #0b0b0b;
}

.services-general-page .service-main-title {
    margin-bottom: 12px;
}

.fireproofing-page .service-main-title {
    margin-bottom: 12px;
}

.service-page .service-flex {
    align-items: flex-start;
}

.service-page .service-text-side {
    align-self: flex-start;
    margin-top: 30px;
    transform: none;
}

.service-page-carousel .service-text-side {
    margin-top: 18px;
}

.service-page .service-main-title {
    color: #f4b400;
}

.service-page .service-lead-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin-bottom: 16px;
}

.service-page .service-lead-text:last-of-type {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .service-image-side.fireproofing-carousel {
        width: min(78%, 360px) !important;
        max-width: 360px !important;
    }

    .service-page .service-text-side {
        margin-top: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .service-image-side.insulation-carousel {
        flex: none !important;
        width: min(92%, 540px) !important;
        max-width: 540px !important;
        margin: 32px auto 26px !important;
        padding: 0 !important;
    }

    .service-image-side.insulation-carousel::before,
    .service-image-side.insulation-carousel::after {
        width: 64px;
        height: 64px;
    }

    .insulation-carousel-button {
        width: 40px;
        height: 40px;
    }

    .service-page .service-flex {
        gap: 28px !important;
    }

    .service-page .service-image-side {
        margin-bottom: 0 !important;
    }

    .revestimiento-carousel .insulation-carousel-viewport {
        transition: aspect-ratio 260ms ease;
    }

    .arenados-carousel .insulation-carousel-viewport {
        transition: aspect-ratio 260ms ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .insulation-carousel-track { transition: none; }
}


/* SEO/GEO: contenido ampliado de servicios */
.breadcrumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6d6d6d;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #d85c00;
    text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.service-details {
    background: #f4f4f2;
    color: #202020;
    padding: 72px 24px;
}

.service-details-container {
    max-width: 1180px;
    margin: 0 auto;
}

.service-details h2 {
    margin: 0 0 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
}

.service-details-container > p {
    max-width: 900px;
    margin: 0 0 42px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 58px;
}

.service-details-grid article,
.service-faq {
    background: #fff;
    border-top: 4px solid #ff6b00;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.service-details h3 {
    margin: 0 0 12px;
    font-family: "IBM Plex Sans Condensed", "Inter", sans-serif;
    font-size: 1.2rem;
}

.service-details-grid p,
.service-faq p,
.service-cta p {
    margin: 0;
    line-height: 1.65;
}

.service-faq {
    margin-bottom: 40px;
}

.service-faq h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.service-faq h3:not(:first-of-type) {
    margin-top: 26px;
}

.service-cta {
    padding: 34px;
    background: #171717;
    color: #fff;
}

.service-contact-section {
    padding: 72px 24px;
    background: #171717;
    color: #fff;
}

.service-contact-section .service-cta {
    padding: 0;
}

.service-cta h2 {
    margin-bottom: 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1;
    text-transform: uppercase;
}

.service-cta p {
    margin-bottom: 22px;
}

.service-cta a {
    display: inline-block;
    margin: 8px 14px 0 0;
    padding: 12px 18px;
    border: 1px solid #ff6b00;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.service-cta a:first-of-type {
    background: #ff6b00;
}

.service-cta a:hover,
.service-cta a:focus-visible {
    background: #fff;
    border-color: #fff;
    color: #171717;
}

@media (max-width: 820px) {
    .breadcrumbs {
        padding-top: 84px;
    }

    .service-details {
        padding: 52px 20px;
    }

    .service-contact-section {
        padding: 52px 20px;
    }

    .service-details-grid {
        grid-template-columns: 1fr;
    }

    .service-cta a {
        display: block;
        width: fit-content;
    }
}
