/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER (negro) ===== */
header {
    background-color: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 3px solid #f97316;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
}

.logo:hover {
    color: #f97316;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.links-nav {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px;
    border-bottom: 2px solid transparent;
}

.links-nav:hover {
    border-bottom: 2px solid #f97316;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f97316;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.menu-hamburguesa {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-hamburguesa span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Animación cuando el menú está abierto */
.menu-hamburguesa.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-hamburguesa.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburguesa.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.pexels.com/photos/1216589/pexels-photo-1216589.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #f97316;
    color: white;
    border: 2px solid #f97316;
}

.btn-primary:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,115,22,0.3);
    cursor: pointer;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* ===== TÍTULOS ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0a0a0a;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f97316;
    margin: 1rem auto 0;
}

.page-title {
    font-size: 3rem;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
    padding: 20px 0;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* ===== SERVICIOS GRID ===== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    list-style-type: none;
}

.servicio-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 4px solid #eaeaea;
    transition: all 0.325s ease;
    position: relative;
    overflow: hidden;  
}

#refrigeracion {
    background: none; 
    color: white;      
    position: relative;
}

#refrigeracion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);  
    z-index: 1;
    border-radius: 16px;
}

#refrigeracion * {
    position: relative;
    z-index: 2;
}

#refrigeracion {
    background-image: url("../Imagenes-trabajos/fondo1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#refrigeracion .servicio-icon,
#refrigeracion h3,
#refrigeracion p,
#refrigeracion .servicio-lista {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#refrigeracion:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

#carpinteria {
    background: none;  
    color: white;      
    position: relative;
}

#carpinteria::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    border-radius: 16px;
}

#carpinteria * {
    position: relative;
    z-index: 2;
}

#carpinteria {
    background-image: url("../Imagenes-trabajos/carpinteria.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#carpinteria .servicio-icon,
#carpinteria h3,
#carpinteria p,
#carpinteria .servicio-lista {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#carpinteria:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

#herreria {
    background: none; 
    color: white;      
    position: relative;
}

#herreria::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    border-radius: 16px;
}

#herreria * {
    position: relative;
    z-index: 2;
}

#herreria {
    background-image: url("../Imagenes-trabajos/herreria.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#herreria .servicio-icon,
#herreria h3,
#herreria p,
#herreria .servicio-lista {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#herreria:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

#instalacion {
    background: none;  
    color: white;     
    position: relative;
}

#instalacion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); 
    z-index: 1;
    border-radius: 16px;
}

#instalacion * {
    position: relative;
    z-index: 2;
}

#instalacion {
    background-image: url("../Imagenes-trabajos/instalacion.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#instalacion .servicio-icon,
#instalacion h3,
#instalacion p,
#instalacion .servicio-lista {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#instalacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

#remodelacion {
    background: none; 
    color: white;      
    position: relative;
}


#remodelacion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);  
    z-index: 1;
    border-radius: 16px;
}

#remodelacion * {
    position: relative;
    z-index: 2;
}

#remodelacion {
    background-image: url("../Imagenes-trabajos/remodelacion.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ajustes de texto dentro de la tarjeta */
#remodelacion .servicio-icon,
#remodelacion h3,
#remodelacion p,
#remodelacion .servicio-lista {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Mantener el hover suave */
#remodelacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

#mantenimiento {
    background: none; 
    color: white;     
    position: relative;
}


#mantenimiento::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); 
    z-index: 1;
    border-radius: 16px;
}

/* Asegurar que el contenido esté por encima de la capa oscura */
#mantenimiento * {
    position: relative;
    z-index: 2;
}

#mantenimiento {
    background-position: center;
    background-image: url("../Imagenes-trabajos/Instalacion de Equipos/electricista-herramientas-trabajando-sitio-construccion_169016-5293.avif");
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ajustes de texto dentro de la tarjeta */
#mantenimiento .servicio-icon,
#mantenimiento h3,
#mantenimiento p,
#mantenimiento .servicio-lista {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#mantenimiento:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(249,115,22,0.1);
    border-color: #f97316;
}

.servicio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.servicio-card p {
    margin-bottom: 1rem;
}

.servicio-lista {
    list-style: none;
    margin-top: 1rem;
}

.servicio-lista li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.servicio-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* ===== SOBRE NOSOTROS ===== */
.sobre-nosotros {
    padding: 5rem 0;
    background-color: white;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-texto h2 {
    font-size: 2.2rem;
    color: #0a0a0a;
    margin-bottom: 1.5rem;
    position: relative;
}

.sobre-texto h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f97316;
    margin-top: 0.8rem;
}

.sobre-texto p {
    color: #4a4a4a;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.sobre-imagen {
    height: 450px;
    border-radius: 16px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('../Imagenes-trabajos/refrigeracion.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 4px solid #f97316;
}

.btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

/* ===== PÁGINA GALERÍA ===== */
.pagina-galeria {
    padding: 4rem 0;
    background-color: #fafafa;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.seccion-galeria {
    padding: 20px;
}

.galeria-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(249,115,22,0.15);
}

.galeria-img {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.03);
}

.galeria-texto {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #0a0a0a;
    border-top: 1px solid #eee;
    background-color: white;
}

.avance-servicios {
    padding: 5rem 0;
    background-color: #fafafa;
}

.frase {
    background-color: #0a0a0a;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.frase-texto {
    font-size: 2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    color: #f97316;
}

/* ===== PÁGINA DE CONTACTO ===== */
.pagina-contacto {
    padding: 4rem 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contacto-card {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f97316;
}

.contacto-card h3 {
    color: #0a0a0a;
    margin-bottom: 0.5rem;
}

.contacto-card a {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
}

.contacto-redes {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.red-social {
    background-color: #0a0a0a;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.red-social:hover {
    background-color: #f97316;
}

.contacto-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.contacto-form h3 {
    margin-bottom: 1.5rem;
    color: #0a0a0a;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contacto-form textarea {
    max-width: 400px;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #f97316;
}

.clientes-importantes {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.clientes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    list-style-type: none;
}

.cliente-card {
    flex: 0 0 auto;           /* No se estiran ni encogen */
    width: 210px;              
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* IMPORTANTE: Así NO se deforman los logos */
.cliente-logo {
    width: 150px;              
    height: 120px;              
    object-fit: contain;       /* Clave: la imagen se ajusta SIN deformarse */
    margin: 0 auto;
    display: block;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.cliente-card:hover .cliente-logo {
    filter: grayscale(0%);
}

.cliente-nombre {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    font-family: 'Inter', sans-serif;
}

/* ============================================
ANTES Y DESPUÉS - REMODELACIÓN (ÚNICA)
============================================ */
.antes-despues-remodelacion {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: -0.5rem;
    margin-bottom: 3rem;
}

.remodelacion-comparador {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.comparador-simple {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.img-antes,
.img-despues {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Por defecto: solo se ve el ANTES */
.img-despues {
    opacity: 0;
}

/* Cuando se agrega la clase, se ve el DESPUÉS */
.comparador-simple.mostrar-despues .img-antes {
    opacity: 0;
}

.comparador-simple.mostrar-despues .img-despues {
    opacity: 1;
}

.btn-ver-transformacion {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.btn-ver-transformacion:hover {
    background: #1a252f;
    transform: scale(1.05);
}

.remodelacion-descripcion {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
    background-color: #0a0a0a;
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid #f97316;
}

/*RESPONSIVE SECTION*/

/* Desktop: horizontal */
@media (min-width: 769px) {
    .clientes-grid {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .comparador-simple {
        height: 300px;
    }
    
    .btn-ver-transformacion {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .clientes-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .cliente-card {
        width: 260px;          /* Tarjetas un poco más anchas en móvil */
    }
    
    .cliente-logo {
        width: 140px;          /* Logos más grandes en móvil */
        height: 90px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contacto-form textarea {
        max-width: 250px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contacto-redes {
        flex-direction: column;
    }

    .frase-texto {
        font-size: 1.5rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sobre-imagen {
        height: 300px;
        order: -1;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .galeria-img {
        height: 200px;
    }

    .logo {
        font-size: 1rem;
        line-height: 1.2;
    }

    .menu-hamburguesa {
        display: block;  /* Mostrar botón en móvil */
        margin-left: auto;
        padding: 5px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;  /* Ajustá según la altura de tu header */
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        margin-left: 0;  /* Reset para que no empuje en móvil */

    }
    
    .nav-links.active {
        left: 0;  /* Mostrar menú */
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        color: white;
    }
    
    .nav-links a:hover {
        background-color: #f97316;
        color: white;
    }
}