/* Variables de colores y fuentes */
:root {
    --primary-color: #e31837; /* Rojo del logo */
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

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

.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }

/* Tipografía */
h1, h2, h3 { color: var(--dark-color); margin-bottom: 1rem; }
p { margin-bottom: 1rem; }

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background-color: #c4152f; }
.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}
.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Header & Nav */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo img {
    height: 60px; /* Ajusta según el tamaño de tu logo */
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('img/20230726_070223.jpg'); /* Ruta a la foto de los tanques */
    background-size: cover;
    background-position: center;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Oscurece la imagen para que el texto sea legible */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero h1 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
}
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }

/* Servicios Grid */
.section-title { text-align: center; margin-bottom: 3rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--light-bg);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
}
.footer h3, .footer h4 { color: var(--white); }
.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #FFF; }

/* Responsive Básico */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-container { flex-direction: column; height: auto; padding: 10px 0; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 10px; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-contact p { justify-content: center; }
}
/* --- Estilos específicos para páginas internas --- */

/* Page Header */
.page-header {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Service Details Layout */
.service-detail {
    display: flex;
    align-items: center;
    gap: 40px;
}
.service-detail.reverse-layout {
    flex-direction: row-reverse;
}
.service-content {
    flex: 1;
}
.service-image {
    flex: 1;
}
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.bg-light { background-color: var(--light-bg); }
.mt-3 { margin-top: 2rem; }

/* Listas de servicios */
.service-list {
    list-style: none;
    margin-top: 15px;
}
.service-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.service-list i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* Lista de columnas para equipos */
.equipment-list-container {
    max-width: 800px;
    margin: 0 auto 30px auto;
}
.equipment-columns {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 40px;
    list-style-position: inside;
}
.equipment-columns li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Galería de Equipos (Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 250px; /* Altura fija para uniformidad */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05); /* Efecto zoom al pasar el mouse */
}

/* Responsive para Servicios */
@media (max-width: 768px) {
    .service-detail, .service-detail.reverse-layout {
        flex-direction: column;
    }
    .equipment-columns {
        columns: 1;
    }
}