/* =========================================
   CSS RESET - HERRELANDIA
   ========================================= */

/* 1. Eliminar márgenes y rellenos por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

/* 2. Ajuste de renderizado y suavizado */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* 3. Comportamiento base de elementos bloque */
body {
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 4. Reset de elementos multimedia */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 5. Reset de tipografía y enlaces */
a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* 6. Reset de formularios para heredar fuentes */
input, button, textarea, select {
    font: inherit;
}

/* 7. Eliminar espacios en tablas */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =========================================
   VARIABLES (Para asegurar consistencia)
   ========================================= */
:root {
    --primario: #1F2328;
    --secundario: #111827;
    --blanco: #FFFFFF;
    --acento: #F97316;
    --fuente: 'Inter', sans-serif;
}

/* =========================================
   HEADER & NAV BASE (Desktop)
   ========================================= */
header {
    background-color: var(--secundario);
    padding: 15px 0;
    border-bottom: 4px solid var(--acento);
    width: 100%;
    position: relative; /* Menú estático, no fijo */
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--blanco);
    text-transform: uppercase;
	width: 250px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: var(--blanco);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--acento);
}

.btn-nav-cta {
    background: var(--acento);
    color: var(--blanco);
    padding: 10px 22px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Clases auxiliares */
.mobile-only { display: none; }
.menu-toggle { display: none; cursor: pointer; }

/* =========================================
   RESPONSIVO Y MENÚ MÓVIL (Tablet / Phone)
   ========================================= */
@media (max-width: 992px) {
    .hide-mobile {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--blanco);
        transition: 0.3s ease-in-out;
    }

    /* Transformación a X cuando el menú esté activo (vía jQuery) */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: absolute;
        top: 100%; /* Justo debajo del header */
        left: -100%;
        flex-direction: column;
        background-color: var(--secundario);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        padding: 40px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-only {
        display: block;
    }

    .nav-menu .btn-nav-cta {
        display: inline-block;
        margin-top: 10px;
    }
}


/* =========================================
   ESTILOS EXCLUSIVOS DEL ELEMENTO MAIN
   ========================================= */

main {
    display: block;
    width: 100%;
    /* Aseguramos que el contenido empiece debajo del header estático */
    position: relative;
    /* Evita desbordamientos horizontales por animaciones o elementos mal posicionados */
    overflow-x: hidden;
    /* Fondo base por si alguna sección no cubre el total */
    background-color: var(--fondo);
}

/* Espaciado uniforme entre las secciones principales para mantener el ritmo visual */
main section {
    width: 100%;
    position: relative;
    /* Separación estándar industrial entre bloques de contenido */
    padding: 80px 0; 
}

/* =========================================
   RESPONSIVO DEL MAIN
   ========================================= */

/* Tablets */
@media (max-width: 992px) {
    main section {
        padding: 60px 0; /* Reducimos aire en pantallas medianas */
    }
}

/* Móviles */
@media (max-width: 480px) {
    main {
        /* Evitamos cualquier scroll lateral accidental en móviles */
        overflow-wrap: break-word;
    }
    
    main section {
        padding: 40px 0; /* Espaciado más compacto para scrolls largos en móvil */
    }
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    /* Altura impacto: ocupa gran parte de la pantalla visible */
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    /* Imagen de stock con overlay oscuro para que el texto resalte */
    background: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.75)), 
                url('img/fondo-herrelandia.jpg') center/cover no-repeat;
    color: var(--blanco);
    text-align: center;
    padding: 60px 20px;
}

.hero-content {
    /* Limitemos el ancho del contenido para que no se desparrame */
    max-width: 900px; 
    margin: 0 auto;
}

.hero-tag {
    display: block;
    color: var(--acento);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem; /* Tamaño base para desktop */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* BOTONES DEL HERO */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background-color: var(--acento);
    color: var(--blanco);
    padding: 16px 32px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-secondary {
    border: 2px solid var(--blanco);
    color: var(--blanco);
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover { background-color: var(--acento-hover); }
.btn-secondary:hover { background: var(--blanco); color: var(--secundario); }

/* =========================================
   RESPONSIVO HERO
   ========================================= */

/* Tablets (iPad, etc) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Móviles (Smartphone) */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh; /* Ajuste de altura para pantallas pequeñas */
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column; /* Botones uno sobre otro en móvil */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

/* =========================================
   TRUST BAR (MEJORADA CON VOLUMEN)
   ========================================= */
.trust-bar {
    background-color: var(--blanco);
    border-bottom: 1px solid #E5E7EB;
    width: 100%;
    /* Damos un padding generoso arriba y abajo para que la barra tenga cuerpo */
    padding: 40px 0 !important; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-bar-container { /* Asumiendo que usas un contenedor o aplicas al padre */
    display: flex;
    flex-wrap: nowrap; /* En desktop mantenemos la línea */
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.trust-item {
    display: flex;
    flex-direction: row; /* Icono al lado del texto */
    align-items: center;
    gap: 15px; /* Más espacio entre icono y texto */
    color: var(--secundario);
    font-weight: 800; /* Texto más robusto */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Un ligero sombreado de texto para dar relieve (opcional) */
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

.trust-item i {
    color: var(--acento);
    font-size: 1.8rem; /* Iconos más grandes para que no se vean planos */
    /* Efecto de sombra sutil al icono para darle profundidad */
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

/* Agregamos un separador visual entre elementos para romper la planicie */
.trust-item:not(:last-child) {
    border-right: 2px solid #F1F5F9;
    padding-right: 40px;
}

/* =========================================
   AJUSTES PARA QUE NO SE VEA PLANO
   ========================================= */
.trust-bar {
    /* Sombra exterior suave para que la barra "flote" sobre la siguiente sección */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/******************************************************************************************************************************************/

/* =========================================
   ABOUT SUMMARY (ANCHO LIMITADO)
   ========================================= */
.about-summary {
    background-color: var(--blanco);
    padding: 100px 0;
    width: 100%;
}

/* El container fuerza el límite de 1200px */
.about-summary .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 60px; /* Espacio equilibrado */
    align-items: center;
}

/* ESTILO DE LA IMAGEN CON VOLUMEN */
.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    max-width: 550px; /* Evita que la imagen crezca demasiado en monitores gigantes */
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 15px 15px 0px var(--secundario); 
    transition: all 0.4s ease;
}

.about-img:hover img {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0px var(--acento);
}

/* CONTENIDO DE TEXTO */
.about-text {
    padding-right: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secundario);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gris-acero);
    margin-bottom: 20px;
    line-height: 1.7;
}

.link-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--acento);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.link-more:hover {
    border-bottom-color: var(--acento);
    padding-left: 5px;
}

/* =========================================
   RESPONSIVO ABOUT SUMMARY
   ========================================= */

@media (max-width: 992px) {
    .about-grid {
        gap: 40px;
    }
    .about-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-summary {
        padding: 60px 0;
    }
    .about-grid {
        grid-template-columns: 1fr; /* Una columna en tablets y móviles */
        text-align: center;
    }
    .about-img img {
        margin: 0 auto;
        max-width: 100%;
        box-shadow: 10px 10px 0px var(--secundario);
    }
    .about-text {
        padding-right: 0;
    }
}

/*****************************************************************************************************************************************/
/* =========================================
   SERVICES GRID HOME (ANCHO LIMITADO)
   ========================================= */
.services-grid-home {
    background-color: var(--fondo);
    padding: 80px 0;
    width: 100%;
}

/* El contenedor es el que manda el límite de 1200px */
.services-grid-home .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--secundario);
}

/* Grid limitado por el container padre */
.services-grid-home .grid {
    display: grid;
    /* 4 columnas fijas en escritorio */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 40px;
}

/* Tarjetas con estilo de bloque sólido */
.service-card {
    background: var(--blanco);
    padding: 30px;
    border-top: 5px solid var(--secundario);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--acento);
}

.service-card i {
    font-size: 2rem;
    color: var(--acento);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gris-acero);
}

/* =========================================
   RESPONSIVO SERVICES (CONTROLADO)
   ========================================= */

/* Tablets */
@media (max-width: 1024px) {
    .services-grid-home .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* Móviles */
@media (max-width: 600px) {
    .services-grid-home .grid {
        grid-template-columns: 1fr; /* 1 columna */
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   LOCATIONS (SEO LOCAL)
   ========================================= */
/* =========================================
   ESTILO: ZONAS DE COBERTURA (MEJORADO)
   ========================================= */

.locations-featured {
    background-color: var(--secundario); /* El azul oscuro profundo */
    padding: 100px 0;
    width: 100%;
    color: var(--blanco);
}

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

/* Títulos de sección */
.locations-featured .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.locations-featured .section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 10px 0;
}

.locations-featured .section-title span {
    color: var(--acento); /* Naranja */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Grid de Tarjetas */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Estilo de la Card */
.location-card {
    background: rgba(255, 255, 255, 0.05); /* Un toque de luz sobre el fondo oscuro */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--acento);
}

/* Imagen de la Card */
.location-img {
    height: 200px;
    overflow: hidden;
}

.location-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-img img {
    transform: scale(1.1);
}

/* Contenido de la Card */
.location-content {
    padding: 25px;
}

.location-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--blanco);
}

.location-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

/* Enlace / Botón */
.location-link {
    display: inline-flex;
    align-items: center;
    color: var(--acento);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.location-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.location-link:hover {
    letter-spacing: 0.5px;
}

.location-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 768px) {
    .locations-featured {
        padding: 60px 0;
    }
    
    .locations-featured .section-title h2 {
        font-size: 1.8rem;
    }
    
    .location-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 20px;
    }
}

/* =========================================
   FINAL CTA (SECCIÓN DE CONVERSIÓN)
   ========================================= */
.final-cta {
    background-color: var(--blanco);
    padding: 100px 0;
    width: 100%;
}

/* Limitamos el contenido para que no se desparrame en 4K */
.final-cta .cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secundario);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--gris-acero);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

/* Estilo específico WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: var(--blanco);
    padding: 18px 35px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* =========================================
   RESPONSIVO FINAL
   ========================================= */

/* Tablets */
@media (max-width: 992px) {
    .final-cta h2 {
        font-size: 2.2rem;
    }
    
    .location-links {
        gap: 20px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .locations h2 {
        font-size: 1.4rem;
    }

    .location-links {
        flex-direction: column;
        gap: 15px;
    }

    .final-cta {
        padding: 60px 0;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-whatsapp, .final-cta .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* =========================================
   FOOTER (ESTILO INDUSTRIAL OSCURO)
   ========================================= */
footer {
    background-color: var(--primario); /* El color más oscuro */
    color: var(--blanco);
    padding: 80px 0 30px 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Tres columnas: Info(40%), Links(25%), Contacto(35%) */
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
}

/* 1. Brand Info */
.footer-info .logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-info .logo span {
    color: var(--acento);
}

.footer-info p {
    color: #94A3B8;
    line-height: 1.6;
    max-width: 300px;
}

/* 2. Links */
.footer-links h4, 
.footer-contact h4 {
    color: var(--blanco);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--acento);
    padding-left: 5px;
}

/* 3. Contacto */
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94A3B8;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--acento);
    font-size: 1.1rem;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: #64748B;
    font-size: 0.9rem;
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* =========================================
   RESPONSIVO FOOTER
   ========================================= */

/* Tablets */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* Pasa a 2 columnas */
        gap: 40px;
    }
    
    .footer-info {
        grid-column: span 2; /* El logo ocupa todo el ancho arriba */
        text-align: center;
    }
    
    .footer-info p {
        margin: 0 auto;
    }
}

/* Móviles */
@media (max-width: 600px) {
    footer {
        padding: 60px 0 30px;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
        gap: 40px;
    }

    .footer-info, .footer-links, .footer-contact {
        grid-column: span 1;
    }

    .footer-contact p {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}


/* =========================================
   ESTILOS GENERALES DE PÁGINAS INTERNAS
   ========================================= */

/* 1. Page Header (Cabecera de Título) */
.page-header {
    background-color: var(--primario);
    padding: 100px 0;
    text-align: center;
    color: var(--blanco);
    border-bottom: 5px solid var(--acento);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--acento);
    font-weight: 600;
    letter-spacing: 2px;
}

/* =========================================
   INTRODUCCIÓN / HISTORIA
   ========================================= */
.about-intro {
    padding: 100px 0;
    background-color: var(--blanco);
}

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

.about-grid-nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text-nosotros .tag {
    color: var(--acento);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.about-text-nosotros h2 {
    font-size: 2.5rem;
    color: var(--secundario);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-text-nosotros p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-acero);
}

.about-img-nosotros img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--fondo);
}

/* =========================================
   VALORES (3 COLUMNAS)
   ========================================= */
.valores {
    padding: 100px 0;
    background-color: var(--fondo);
}

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

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.valor-card {
    background: var(--blanco);
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: 0.3s;
}

.valor-card:hover {
    border-top: 5px solid var(--acento);
    transform: translateY(-10px);
}

.valor-card i {
    font-size: 3rem;
    color: var(--acento);
    margin-bottom: 25px;
}

.valor-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secundario);
}

.valor-card p {
    font-size: 1rem;
    color: var(--gris-acero);
    line-height: 1.6;
}

/* =========================================
   INFRAESTRUCTURA / TALLER
   ========================================= */
.taller-info {
    padding: 100px 0;
    background-color: var(--blanco);
}

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

.taller-flex {
    display: flex;
    justify-content: bbetween;
    gap: 100px;
    align-items: flex-start;
}

.taller-content {
    flex: 1;
}

.taller-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secundario);
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.check-list li {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primario);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.check-list i {
    color: var(--acento);
    font-size: 1.2rem;
}

/* Stats (Números destacados) */
.taller-stats {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-item {
    background: var(--primario);
    padding: 40px;
    color: var(--blanco);
    text-align: center;
    border-radius: 4px;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--acento);
}

.stat-item .label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVO PÁGINA NOSOTROS
   ========================================= */

/* Tablets y Pantallas Medianas (Laptops pequeñas) */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.8rem;
    }

    .about-grid-nosotros {
        gap: 40px;
    }

    .about-text-nosotros h2 {
        font-size: 2rem;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en lugar de 3 */
    }

    .taller-flex {
        gap: 50px;
    }
}

/* Móviles (Smartphones) */
@media (max-width: 768px) {
    /* Ajuste de Cabecera */
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Ajuste Historia */
    .about-intro {
        padding: 60px 0;
    }

    .about-grid-nosotros {
        grid-template-columns: 1fr; /* Una sola columna vertical */
        text-align: center;
        gap: 50px;
    }

    .about-img-nosotros {
        order: -1; /* La imagen sube arriba del texto en móvil */
        max-width: 500px;
        margin: 0 auto;
    }

    .about-img-nosotros img {
        box-shadow: 10px 10px 0px var(--fondo); /* Sombra más pequeña */
    }

    /* Ajuste Valores */
    .valores {
        padding: 60px 0;
    }

    .valores-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    .valor-card {
        padding: 40px 20px;
    }

    /* Ajuste Infraestructura y Stats */
    .taller-info {
        padding: 60px 0;
    }

    .taller-flex {
        flex-direction: column; /* Apilado vertical */
        gap: 40px;
        text-align: center;
    }

    .check-list li {
        justify-content: center; /* Centramos los iconos y texto */
    }

    .taller-stats {
        flex: 1 1 auto;
        width: 100%;
        flex-direction: row; /* En móvil, los dos stats uno al lado del otro */
        gap: 15px;
    }

    .stat-item {
        flex: 1;
        padding: 25px 15px;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .taller-stats {
        flex-direction: column; /* Stats vuelven a ser verticales en pantallas mini */
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}



/* =========================================
   SUPER PRO: DETAILED SERVICES SECTION
   ========================================= */

.services-list {
    background-color: var(--blanco);
    padding: 120px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* LIMITACIÓN DE ANCHO ESTRICTA */
.services-list .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BLOQUE DE SERVICIO: DISEÑO PREMIUM */
.service-block {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-bottom: 180px; /* Espaciado épico entre servicios */
    position: relative;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-block.reverse {
    flex-direction: row-reverse;
}

/* CONTENEDOR DE IMAGEN CON EFECTO INDUSTRIAL */
.service-image {
    flex: 1;
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--acento);
    border-left: 5px solid var(--acento);
    z-index: 1;
}

.service-image img {
    width: 100%;
    max-width: 580px;
    height: 400px; /* Altura fija para consistencia visual */
    object-fit: cover; /* Recorte profesional de imagen */
    display: block;
    filter: grayscale(20%) contrast(1.1);
    box-shadow: 30px 30px 0px var(--fondo);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-block:hover .service-image img {
    filter: grayscale(0%);
    transform: translate(10px, 10px);
    box-shadow: 15px 15px 0px var(--acento);
}

/* CONTENEDOR DE INFORMACIÓN */
.service-info {
    flex: 1;
    position: relative;
}

.service-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(17, 35, 40, 0.05);
    position: absolute;
    top: -70px;
    left: -20px;
    z-index: 0;
    letter-spacing: -5px;
}

.service-info h2 {
    font-size: 3rem;
    color: var(--secundario);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.service-info h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background-color: var(--acento);
    margin-top: 15px;
}

.service-info p {
    font-size: 1.15rem;
    color: var(--gris-acero);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
}

/* FICHA TÉCNICA (SPEC LIST) SUPER PRO */
.spec-list {
    list-style: none;
    padding: 40px;
    background: linear-gradient(145deg, var(--fondo), #ffffff);
    border-radius: 0 30px 0 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.02);
    margin-bottom: 40px;
}

.spec-list li {
    font-size: 1rem;
    color: var(--primario);
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.spec-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.spec-list li strong {
    color: var(--acento);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    min-width: 130px;
    display: inline-block;
}

/* BOTÓN DE ACCIÓN REFINADO */
.btn-service {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background-color: var(--secundario);
    color: var(--blanco);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.4s;
    border: none;
    cursor: pointer;
}

.btn-service:hover {
    background-color: var(--acento);
    padding-right: 50px;
}

.btn-service::after {
    content: '→';
    margin-left: 10px;
    transition: 0.3s;
}

/* =========================================
   RESPONSIVO SUPER PRO: DETAILED SERVICES
   ========================================= */

/* Tablets y Laptops Pequeñas (1024px hacia abajo) */
@media (max-width: 1024px) {
    .service-block {
        gap: 50px;
        margin-bottom: 120px;
    }

    .service-info h2 {
        font-size: 2.2rem;
    }

    .service-number {
        font-size: 6rem;
        top: -50px;
    }

    .service-image img {
        height: 350px; /* Reducimos altura para balancear */
    }
}

/* Móviles Grandes y Tablets Verticales (768px hacia abajo) */
@media (max-width: 768px) {
    .services-list {
        padding: 60px 0;
    }

    .service-block, 
    .service-block.reverse {
        flex-direction: column; /* Columna única */
        text-align: center;
        gap: 40px;
        margin-bottom: 100px;
    }

    /* Imagen en Móvil */
    .service-image {
        width: 100%;
        order: -1; /* La imagen siempre va primero */
    }

    .service-image img {
        height: 300px; /* Altura optimizada para pulgar */
        max-width: 100%;
        box-shadow: 15px 15px 0px var(--fondo); /* Sombra reducida */
    }

    .service-image::before {
        width: 60px;
        height: 60px;
        top: -10px;
        left: -10px;
    }

    /* Información en Móvil */
    .service-info {
        width: 100%;
    }

    .service-number {
        position: relative;
        top: 0;
        left: 0;
        font-size: 3.5rem;
        margin-bottom: 10px;
        display: block;
        opacity: 0.2; /* Un poco más visible al ser más pequeña */
    }

    .service-info h2 {
        font-size: 1.8rem;
    }

    .service-info h2::after {
        margin: 15px auto 0; /* Centramos el subrayado naranja */
    }

    /* Ficha Técnica en Móvil */
    .spec-list {
        padding: 25px 20px;
        text-align: left; /* Mantenemos el texto técnico a la izquierda */
        border-radius: 0 20px 0 20px;
    }

    .spec-list li {
        flex-direction: column; /* Título arriba, valor abajo */
        gap: 5px;
    }

    .spec-list li strong {
        min-width: auto;
        font-size: 0.7rem;
    }
}

/* Móviles Pequeños (480px hacia abajo) */
@media (max-width: 480px) {
    .service-image img {
        height: 250px;
    }

    .service-info h2 {
        font-size: 1.5rem;
    }

    .btn-service {
        width: 100%; /* Botón de ancho completo para facilitar el clic */
        justify-content: center;
    }
}



/* =========================================
   ESTILO: GALERÍA DE PROYECTOS (1200px)
   ========================================= */

.gallery-home {
    padding: 100px 0;
    background-color: #ffffff;
}

.gallery-home .container {
    max-width: 1200px; /* Límite estricto */
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid de la Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
    gap: 20px;
    margin-bottom: 50px;
}

/* Ítem de la Galería */
.gallery-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    background-color: var(--secundario);
}

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

/* Efecto Hover: La imagen se acerca y oscurece */
.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}

/* Overlay con Información */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
    padding: 20px;
    background: rgba(17, 35, 40, 0.7); /* Color primario con transparencia */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Aparece al pasar el mouse */
}

.gallery-info h3 {
    color: var(--blanco);
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
}

.gallery-info p {
    color: var(--acento); /* Color naranja para la ubicación */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* CTA debajo de la galería */
.gallery-cta {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.gallery-cta p {
    font-size: 1.2rem;
    color: var(--secundario);
    margin-bottom: 25px;
    font-weight: 600;
}

/* =========================================
   RESPONSIVO: GALERÍA
   ========================================= */

/* Tablets */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* Móviles */
@media (max-width: 768px) {
    .gallery-home {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* 1 sola columna */
        gap: 15px;
    }

    .gallery-item {
        height: 300px; /* Un poco más baja en móvil */
    }

    /* En móvil, hacemos que el texto sea visible siempre o con un toque */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
    }

    .gallery-info h3 {
        font-size: 1.1rem;
    }
}