/* VARIABLES DE DISEÑO INDUSTRIAL */
:root {
    --primary-color: #F4C522; /* Amarillo Grúa/Industrial */
    --dark-bg: #1A1A1A;
    --text-light: #F4F4F4;
    --text-dark: #333333;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* NAVEGACIÓN */
.navbar {
    background-color: var(--dark-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    color: #fff;
    font-size: 1.8rem;
}

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

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--dark-bg) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background-image: url('img/hero-tanque.webp'); /* AQUI CARGA EL HERO */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Oscurece la foto para leer el texto */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: #fff;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1.1rem;
    margin: 10px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* SECCIONES GENERALES */
.section-container {
    padding: 80px 5%;
}

.bg-light {
    background-color: #f9f9f9;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
}

.section-title h2 span {
    color: var(--primary-color);
}

/* GRID EQUIPOS (FLOTA) */
.grid-flota {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-equipo {
    background: #fff;
    padding: 20px;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.card-equipo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.card-equipo h3 {
    margin-bottom: 10px;
    color: var(--dark-bg);
}

/* GRID SERVICIOS */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-servicio {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-servicio img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.servicio-info {
    padding: 20px;
}

.servicio-info h3 {
    color: var(--dark-bg);
    margin-bottom: 10px;
}

/* CONTACTO FOOTER */
.contacto-section {
    background-color: var(--dark-bg);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.contacto-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contacto-container > p {
    margin-bottom: 60px; /* Aquí está la separación ampliada */
    font-size: 1.1rem;
    color: #ccc;
}

.contacto-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-item {
    flex: 1; /* Esto obliga a que ambas columnas midan exactamente lo mismo */
    min-width: 280px;
    background-color: #222; /* Fondo sutil para estructurar la columna */
    padding: 40px 20px;
    border-radius: 8px;
}

.info-item h3 {
    margin-bottom: 15px;
    color: #fff;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.info-item a {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* FOOTER Host833 */
footer {
    background-color: #000;
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer .credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* RESPONSIVE MÓVIL (CORREGIDO PARA SUBPÁGINAS) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Apila el logo arriba y el menú abajo */
        padding: 15px 5%;
    }
    .navbar ul {
        display: flex; /* Esto revive el menú que estaba oculto */
        flex-wrap: wrap; /* Si no caben en una línea, bajan al siguiente renglón */
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }
    .navbar a {
        font-size: 0.85rem;
    }
    .btn-nav {
        padding: 5px 10px;
    }
    /* Compensamos el espacio porque el menú ahora es más alto */
    .hero, .page-header {
        margin-top: 110px; 
    }
    .hero h1, .header-content h1 {
        font-size: 2.2rem;
    }
    .contacto-info {
        gap: 20px;
        flex-direction: column;
    }
}


/* =========================================
   ESTILOS PARA PÁGINAS INTERNAS (SUBPÁGINAS)
   ========================================= */

/* Cabeceras Internas */
.page-header {
    height: 40vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px; /* Compensa la barra de navegación fija */
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.header-content h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.header-content h1 span {
    color: var(--primary-color);
}

.header-content p {
    color: #ccc;
    font-size: 1.2rem;
}

/* Catálogo Detallado (Diseño Horizontal) */
.catalogo-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.catalogo-item.reverse {
    flex-direction: row-reverse; /* Voltea el diseño para que no sea aburrido */
}

.catalogo-img {
    flex: 1;
}

.catalogo-img img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 400px;
}

.catalogo-info {
    flex: 1;
}

.catalogo-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.catalogo-info h2 span {
    color: #666;
    font-size: 1.5rem;
}

.catalogo-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.specs-list {
    list-style: none;
    margin-bottom: 30px;
}

.specs-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.specs-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Ajuste móvil para el catálogo */
@media (max-width: 768px) {
    .catalogo-item, .catalogo-item.reverse {
        flex-direction: column;
        padding: 15px;
    }
    .header-content h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   ESTILOS ESPECÍFICOS DE LA GALERÍA
   ========================================= */

/* Grid de Galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Item Individual de Galería */
.galeria-item {
    position: relative;
    overflow: hidden; /* Mantiene el zoom de la foto adentro */
    border-radius: 8px;
    height: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Efecto suave de zoom */
}

/* Capa oscura interactiva (Overlay) */
.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro al hover */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease; /* Aparece suave */
}

.overlay-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay-text p {
    color: #fff;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s; /* Un ligero retraso */
}

/* EFECTOS HOVER (AL PASAR EL MOUSE) */
.galeria-item:hover img {
    transform: scale(1.1); /* Zoom ligero a la foto */
}

.galeria-item:hover .galeria-overlay {
    opacity: 1; /* Muestra el texto */
}

.galeria-item:hover .overlay-text h3,
.galeria-item:hover .overlay-text p {
    transform: translateY(0); /* El texto sube a su posición original */
}

/* Ajuste móvil para galería */
@media (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr; /* Una columna en celulares chicos */
    }
}

/* =========================================
   ESTILOS PARA COTIZACIÓN (3 PASOS)
   ========================================= */

/* Grid de los Pasos */
.pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Tarjeta de cada Paso */
.paso-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
    position: relative;
    transition: transform 0.3s;
}

.paso-card:hover {
    transform: translateY(-10px);
}

/* El círculo del número */
.paso-numero {
    background-color: var(--dark-bg);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    margin: 0 auto 20px auto;
}

.paso-card h3 {
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.paso-card p {
    color: #555;
    font-size: 1.1rem;
}

/* Sección del Botón Final */
.cta-cotizacion {
    text-align: center;
    background-color: var(--dark-bg);
    padding: 60px 20px;
    border-radius: 8px;
    color: #fff;
}

.cta-cotizacion h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-cotizacion p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón Gigante de WhatsApp */
.btn-whatsapp-gigante {
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-gigante:hover {
    background-color: #1ebe5d;
    transform: scale(1.05);
    color: #fff;
}
