/* style.css ACTUALIZADO */

/* PALETA DE COLORES */
:root {
    --primary: #FF5722; /* Naranja Fuego */
    --dark-bg: #121212; 
    --card-bg: #1E1E1E; 
    --text-main: #E0E0E0;
    --text-muted: #B0B0B0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
}

/* TIPOGRAFÍA INDUSTRIAL */
h1, h2, h3, .logo-text, .btn {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-fuego {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.6); /* Un poco más de brillo */
}

/* =========================================
   NAVBAR (MENÚ) - ESTILO INDUSTRIAL PRO
   ========================================= */
.navbar {
    background: rgba(0, 0, 0, 0.6) !important; /* Un poco más oscuro */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    transition: all 0.3s ease;
}

/* LOGO */
.navbar-brand.logo-text {
    font-size: 2rem; 
    font-weight: 700;
    letter-spacing: 1px;
}

/* ENLACES NORMALES (Servicios, Trabajos) */
.navbar-nav .nav-link {
    font-family: 'Oswald', sans-serif; /* Tipografía técnica */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    margin-left: 20px;
    position: relative; /* Necesario para la línea animada */
    padding-bottom: 5px;
}

/* La línea naranja invisible por defecto */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary); /* Naranja */
    transition: width 0.3s ease-in-out; /* Animación suave */
}

/* Al pasar el mouse, la línea crece al 100% */
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* BOTÓN COTIZAR (Efecto Llenado) */
.btn-nav {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary) !important; /* Texto naranja inicial */
    border: 1px solid var(--primary);
    padding: 8px 25px;
    margin-left: 20px;
    background: transparent;
    position: relative;
    overflow: hidden; /* Para que el efecto no se salga del botón */
    z-index: 1;
    transition: color 0.4s ease;
}

/* Capa oculta que se deslizará */
.btn-nav::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 0%; /* Empieza vacía */
    height: 100%;
    background: var(--primary);
    z-index: -1; /* Se pone detrás del texto */
    transition: width 0.3s ease-in-out;
    transform: skewX(-20deg); /* Inclinación industrial */
    transform-origin: left;
}

/* Al pasar el mouse */
.btn-nav:hover {
    color: white !important; /* El texto cambia a blanco */
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4); /* Resplandor */
}

.btn-nav:hover::before {
    width: 150%; /* Se llena todo el botón (150% por la inclinación) */
}

/* =========================================
   AJUSTES PARA CELULAR (RESPONSIVE)
   ========================================= */
@media (max-width: 991px) {
    /* Fondo oscuro sólido para que se lea el menú al abrirlo */
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98); /* Casi negro solido */
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        border: 1px solid #333;
        text-align: center; /* ESTO CENTRA TODO */
    }

    /* Quitar el margen izquierdo que usamos en PC */
    .navbar-nav .nav-link {
        margin-left: 0 !important; 
        display: block; /* Ocupa todo el ancho */
        padding: 15px 0; /* Más espacio para el dedo */
        font-size: 1.3rem; /* Letra más grande en cel */
        border-bottom: 1px solid rgba(255,255,255,0.05); /* Línea divisoria sutil */
    }

    /* Quitar línea divisoria del último elemento */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Ajuste específico para el botón Cotizar en celular */
    .btn-nav {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%; /* Botón ancho completo */
        display: block;
    }

    /* Ajuste de tamaños de fuente generales para móvil */
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .display-4 { font-size: 2.5rem; } /* Títulos de sección más chicos */
}


/* =========================================
   NUEVA HERO SECTION A PANTALLA COMPLETA
   ========================================= */
.hero-section {
    /* CAMBIO CRÍTICO: Usar 100vh para ocupar toda la pantalla */
    height: 100vh; 
    min-height: 650px; /* Para evitar problemas en celulares horizontales */
    
    background-image: url('img/her.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    /* Asegura que el contenido no choque con el header más alto */
    padding-top: 80px; 
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado un poco más oscuro arriba para que resalte el menú */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(18,18,18,1) 100%);
}

/* TÍTULO PRINCIPAL MÁS GRANDE Y CON MÁS SOMBRA */
.hero-title {
    font-size: 4.5rem; /* Mucho más grande */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    /* Sombra fuerte para que se lea sobre las chispas */
    text-shadow: 0 4px 8px rgba(0,0,0,0.9); 
}

/* NUEVO ESTILO PARA EL SUBTÍTULO QUE SE PERDÍA */
.hero-subtitle {
    font-size: 1.6rem; /* Aumentado significativamente */
    color: #ffffff; /* Blanco puro, ya no gris */
    font-weight: 400;
    /* Sombra para garantizar lectura */
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    max-width: 900px; /* Evita que se haga una línea eterna en pantallas gigantes */
    margin-left: auto;
    margin-right: auto;
}

/* BOTONES PRINCIPALES MÁS LLAMATIVOS */
.hero-section .btn {
    padding: 15px 40px; /* Más grandes */
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-fuego {
    background-color: var(--primary);
    border: none;
    color: white;
    border-radius: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-fuego:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.5); /* Sombra naranja más intensa */
    background-color: #e64a19;
    color: white;
}
.btn-outline-light {
    border-width: 2px;
}
.btn-outline-light:hover {
    background-color: white;
    color: black;
}


/* =========================================
   ¿Quienes somos? Section
   ========================================= */
   

.font-oswald {
    font-family: 'Oswald', sans-serif;
}


/* Efecto al pasar el mouse por la imagen */
#nosotros:hover .border-fuego-decor {
    transform: translate(10px, 10px); /* El marco se mueve un poco */
}

/* Asegurar que el texto lead se vea bien */
.lead {
    font-size: 1.15rem;
    font-weight: 300;
}



/* =========================================
   Nuestros Servicios Section
   ========================================= */

/* === SECCIÓN SERVICIOS PRO === */

/* Diseño de la Tarjeta */
.service-card-pro {
    background: #1a1a1a; /* Fondo gris muy oscuro */
    border: 1px solid #333;
    padding: 40px 30px;
    position: relative;
    overflow: hidden; /* Para que el número de fondo no se salga */
    transition: all 0.4s ease;
    height: 100%; /* Para que todas midan lo mismo */
    z-index: 1;
}

/* Efecto Hover (Al pasar el mouse) */
.service-card-pro:hover {
    transform: translateY(-10px); /* Sube un poco */
    border-color: var(--primary); /* El borde se pone naranja */
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.15); /* Resplandor naranja tenue */
}

/* El número de fondo (01, 02...) */
.card-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03); /* Casi invisible */
    transition: 0.4s;
    z-index: -1;
}

.service-card-pro:hover .card-number {
    color: rgba(255, 87, 34, 0.1); /* Se pone naranja muy suave al pasar mouse */
    transform: scale(1.1);
}

/* El Icono */
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #252525;
    border-radius: 5px; /* Ligeramente redondeado */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid #444;
    transition: 0.4s;
}

.service-card-pro:hover .icon-wrapper {
    background: var(--primary); /* El fondo del icono se llena de naranja */
    color: white;
    border-color: var(--primary);
}

/* El Link de "Cotizar" */
.btn-link-fuego {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.btn-link-fuego:hover {
    color: var(--primary);
    letter-spacing: 2px; /* Se estira un poco al pasar mouse */
}

/* === NUEVA SECCIÓN CONTACTO (SIN CAJAS) === */

/* Eliminamos los bordes del wrapper anterior, ahora los inputs son los protagonistas */

.dark-input-open {
    background-color: transparent !important; /* Fondo transparente */
    border: none !important;
    border-bottom: 2px solid #333 !important; /* Solo línea inferior */
    color: white !important;
    border-radius: 0; /* Ángulos rectos */
    padding-left: 0; /* Alineado totalmente a la izquierda */
    transition: 0.3s;
}

.dark-input-open:focus {
    background-color: transparent !important;
    border-color: var(--primary) !important; /* La línea se pone naranja */
    box-shadow: none !important;
    padding-left: 10px; /* Pequeña animación al escribir */
}

.dark-input-open::placeholder {
    color: #444;
}

/* Ajuste del Mapa Oscuro (Se mantiene igual, funciona perfecto) */
.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
    display: block;
}

/* Ajustes Responsive */
@media (max-width: 991px) {
    .contact-wrapper {
        border-radius: 8px; /* En celular se apilan */
    }
    .border-start {
        border-left: none !important;
        border-top: 1px solid #333 !important;
    }
    .p-5 {
        padding: 2rem !important; /* Menos padding en celular */
    }
}

/* === SELECT MODERNO INDUSTRIAL === */

.dark-input-open {
    /* 1. EL TRUCO DE ORO: Fuerza al navegador a usar su versión oscura nativa */
    color-scheme: dark; 
    
    /* 2. Diseño de la caja cerrada */
    background-color: transparent;
    color: #fff;
    border: none;
    border-bottom: 2px solid #333;
    border-radius: 0;
    padding: 12px 0;
    font-size: 1rem;
    cursor: pointer;
    
    /* 3. Quitar la flecha fea por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* 4. Poner nuestra propia flecha naranja moderna */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px; /* Espacio para que el texto no tape la flecha */
}

/* Estado Focus (Cuando le das clic) */
.dark-input-open:focus {
    outline: none;
    border-bottom-color: var(--primary); /* Línea naranja al abrir */
    background-color: rgba(255, 255, 255, 0.05); /* Un brillo muy sutil */
}

/* Estilo de las opciones (Para navegadores que lo soportan como Chrome/Edge) */
.dark-input-open option {
    background-color: #121212; /* Fondo Negro */
    color: #e0e0e0; /* Texto gris claro */
    padding: 15px;
}

/* === CORRECCIÓN: QUITAR FLECHAS DE INPUTS DE TEXTO === */

/* Esto selecciona los campos de Nombre, Teléfono y Mensaje */
input.dark-input-open, 
textarea.dark-input-open {
    background-image: none !important; /* Borra la flecha */
    padding-right: 0; /* Recupera el espacio de la derecha */
}

/* Asegura que SOLO el 'select' (la lista) mantenga la flecha */
select.dark-input-open {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

/* RESPONSIVE - AJUSTES PARA CELULAR */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .navbar-brand.logo-text { font-size: 1.8rem; }
    /* En celular el menú colapsado necesita fondo sólido para leerse */
    .navbar-collapse {
        background: rgba(0,0,0,0.95);
        padding: 20px;
        margin-top: 15px;
        border-radius: 5px;
    }
    .btn-nav { margin-left: 0; margin-top: 10px; display: block; text-align: center;}
    .hero-section .btn { width: 100%; margin-bottom: 10px; } /* Botones verticales en cel */
    .hero-section .btn-lg.me-3 { margin-right: 0 !important; }
}

/* === CORRECCIÓN DE SCROLL DEL MENÚ === */
/* Esto hace que al dar clic, la página baje suavemente */
html {
    scroll-behavior: smooth;
}

/* Esto le dice a TODAS las secciones que respeten el espacio del menú */
section {
    scroll-margin-top: 120px; /* Ajusta este número si sientes que le falta o le sobra espacio */
}

/* === FOOTER INDUSTRIAL CON EFECTO DE IMAGEN === */

.footer-industrial {
    background-color: #0a0a0a; /* Negro muy profundo */
    border-top: 1px solid #222;
    overflow: hidden; /* Para que la imagen no se salga */
}

/* LA IMAGEN DE FONDO (Fuego/Humo) */
.footer-bg-image {
    position: absolute;
    top: 0;
    right: 0; /* Pegada a la derecha */
    width: 60%; /* Ocupa el 60% del ancho */
    height: 100%;
    /* Usamos una imagen de humo/fuego naranja */
    background-image: url('img/foo.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Muy sutil, casi transparente */
    
    /* MÁSCARA MÁGICA: Hace que la imagen se desvanezca hacia la izquierda */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
    pointer-events: none; /* Para poder dar clic a los botones encima */
}

/* BOTONES DE REDES SOCIALES */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Circulares */
    background-color: #1a1a1a;
    color: white;
    font-size: 1.2rem;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-btn:hover {
    background-color: var(--primary); /* Se pone naranja */
    color: white;
    transform: translateY(-3px) rotate(8deg); /* Pequeña animación divertida */
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
}

.ls-1 {
    letter-spacing: 1px;
}


/* === GALERÍA DE TRABAJOS === */

.bg-dark-industrial {
    background-color: #121212;
}

/* Botones de Filtro */
.filter-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-filter {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 20px;
    border-radius: 30px; /* Redondeados */
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Tarjeta de Galería */
.gallery-card {
    position: relative;
    overflow: hidden; /* IMPORTANTE: Para que la imagen no se salga al hacer zoom */
    border-radius: 4px;
    cursor: pointer;
    height: 300px; /* Altura fija para uniformidad */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen al espacio sin deformar */
    transition: transform 0.5s ease;
}

/* Efecto Overlay (Capa oscura con texto) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo negro semitransparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Invisible por defecto */
    transition: opacity 0.3s ease;
}

/* Animación Hover */
.gallery-card:hover .gallery-img {
    transform: scale(1.1); /* Zoom suave a la imagen */
}

.gallery-card:hover .gallery-overlay {
    opacity: 1; /* Aparece el texto */
}

.zoom-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .zoom-icon {
    transform: translateY(0); /* El icono sube suavemente */
}


/* === WHATSAPP FLOTANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    /* Animación de Latido */
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* === SECCIÓN GARANTÍAS (VALORES) === */

.testimonial-card {
    background: #151515; /* Un gris apenas más claro que el fondo */
    border: 1px solid #333; /* Borde sutil */
    border-radius: 4px; /* Bordes rectos industriales */
    transition: all 0.3s ease;
    height: 100%; /* Para que todas midan lo mismo de alto */
    position: relative;
    z-index: 1;
}

/* Efecto al pasar el mouse (Hover) */
.testimonial-card:hover {
    border-color: var(--primary); /* El borde se pone naranja */
    transform: translateY(-10px); /* La tarjeta "flota" hacia arriba */
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.1); /* Resplandor suave */
    background: #1a1a1a;
}

/* Estilo de los Iconos (Escudo, Cronómetro, Martillo) */
.testimonial-card i {
    font-size: 3.5rem; /* Iconos grandes */
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s ease;
    
    /* Gradiente naranja en el texto del icono (Truco moderno) */
    background: -webkit-linear-gradient(45deg, #FF5722, #FFC107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pequeña animación del icono al pasar el mouse */
.testimonial-card:hover i {
    transform: scale(1.1) rotate(-5deg); /* Crece y gira un poquito */
}

/* Texto de descripción */
.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
}

/* === AJUSTE DEL LOGO (Más grande) === */
.navbar-brand img {
    max-height: 100px; /* Aumentamos de 60px a 100px */
    width: auto;      /* Mantiene la proporción para que no se deforme */
    padding: 5px 0;   /* Un pequeño respiro arriba y abajo */
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse por el logo (Opcional) */
.navbar-brand:hover img {
    transform: scale(1.05); /* Se agranda un poquitito */
}