:root {
    --color-black: #1a1a1a;
    --color-dark: #282828;
    --color-green: #9acd32; /* Verde limón */
    --color-dark-green: #587d13;
    --color-white: #ffffff;
    --color-light-gray: #f4f4f4;
    --font-family: 'Poppins', sans-serif;
}

/* --- Reseteo y Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-black);
    line-height: 1.6;
    background-color: var(--color-white);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding-left: 0;
}

.text-green {
    color: var(--color-green);
}

.text-white {
    color: var(--color-white);
}

.text-center {
    text-align: center;
}

/* --- Header y Navegación --- */
.main-header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-green);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--color-white);
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* --- Sección Hero --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 1rem;
    margin-top: 70px; /* Desplazamiento para el header fijo */
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem 3rem;
    border-radius: 10px;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
}

/* --- Secciones de Contenido --- */
.content-section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--color-light-gray);
}

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

/* --- Sección Compromiso --- */
.compromiso-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}
.compromiso-text {
    flex: 1;
}
.compromiso-carousel {
    flex: 1;
    max-width: 500px;
}
.swiper {
    overflow: hidden; /* Ensures rounded corners are visible */
    border-radius: 8px;
}
.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}
.swiper-button-next, .swiper-button-prev {
    /* Ocultar botones de navegación del carrusel */
    display: none;
}
.swiper-pagination-bullet-active {
    background: var(--color-green);
}

/* --- Sección Nosotros --- */
#nosotros {
    padding-bottom: 3rem;
}
.nosotros-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}
.nosotros-text {
    flex: 1.2;
}
.nosotros-image {
    flex: 1;
    max-width: 450px;
}
.nosotros-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- Misión y Visión --- */
#servicios {
    padding-top: 3rem;
}

.mision-vision-container {
    display: flex;
    gap: 2rem;
    padding: 4rem 0;
    justify-content: center;
}

.mision-vision-box {
    flex: 1;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--color-white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mision-vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* --- Sección Compromiso Ecológico --- */
#compromiso-ecologico .ecological-commitment-text {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Sección Diferencia --- */
.diferencia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.diferencia-card {
    background-color: var(--color-white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border-bottom: 5px solid var(--color-dark-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-in-out;
}
.diferencia-card:hover {
    transform: scale(1.05);
}
.diferencia-icon {
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out;
}
.diferencia-icon img {
    height: 60px;
    width: 60px;
    display: inline-block;
    /* No background color for PNGs */
}
.diferencia-card:hover .diferencia-icon {
    transform: scale(1.1);
}
.diferencia-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Sección Servicios --- */
.services-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
.servicios-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.servicios-box h3 {
    font-size: 1.5rem;
}
.servicios-box ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.servicios-box ul li {
    margin-bottom: 0.5rem;
}
.resistencia-table {
    width: 100%;
}
.resistencia-table td {
    padding: 0.5rem;
    background-color: var(--color-light-gray);
    margin: 0.25rem;
    border-radius: 4px;
    text-align: center;
}

.bombeo-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.bombeo-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.bombeo-text {
    flex: 1.2;
}
.bombeo-image {
    flex: 1;
    max-width: 450px;
}
.bombeo-image img {
    width: 100%;
    border-radius: 8px;
}
.bombeo-caracteristicas {
    background-color: #e9e9e9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}
.bombeo-caracteristicas h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.bombeo-caracteristicas ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* --- Sección Contacto --- */
.contact-intro {
    max-width: 700px;
    margin: -1rem auto 3rem auto;
}
.contacto-container {
    display: flex;
    gap: 3rem;
}
.contacto-form {
    flex: 1.5;
}
.contacto-info {
    flex: 1;
}
.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contacto-form input, .contacto-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #555;
    background-color: #333;
    color: var(--color-white);
    border-radius: 4px;
    font-family: var(--font-family);
}
.contacto-form input::placeholder, .contacto-form textarea::placeholder {
    color: #aaa;
}
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: flex-start;
    margin-bottom: 0;
}
.checkbox-container label {
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap; /* Asegura que el checkbox y el texto permanezcan en una sola línea */
    font-weight: 400;
    justify-content: flex-start;
}
.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-left: 0;
    accent-color: var(--color-green);
}
.checkbox-container a {
    color: var(--color-green);
    text-decoration: none;
}
.checkbox-container a:hover {
    text-decoration: underline;
}
.btn-submit {
    padding: 1rem;
    background-color: var(--color-green);
    color: var(--color-black);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-submit:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.info-list i {
    color: var(--color-green);
    font-size: 1.5rem;
}
.separator-green {
    border: 0;
    height: 2px;
    background-color: var(--color-green);
    margin: 1.5rem 0;
}
.company-details p {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 3rem 0 1.5rem 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-col {
    flex: 1;
}
.footer-col:first-child {
    flex-basis: 40%;
}
.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer-nav, .footer-contact {
    list-style: none;
    padding: 0;
}
.footer-nav li, .footer-contact li {
    margin-bottom: 0.8rem;
}
.footer-nav a, .footer-contact {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: var(--color-green);
}
.footer-contact i {
    margin-right: 0.5rem;
}
.footer-separator {
    margin: 0;
}
.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}
.footer-bottom p {
    margin-bottom: 0.5rem;
}
.footer-bottom a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: var(--color-green);
}

/* --- Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s;
}
.modal-content {
  background-color: #fefefe;
  color: var(--color-black);
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  border-radius: 8px;
  position: relative;
  animation: slideIn 0.3s;
}
.modal-content h2 {
    text-align: left;
}
.modal-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideIn { from {transform: translateY(-50px);} to {transform: translateY(0);} }

/* --- Media Queries para Responsividad --- */
@media (max-width: 992px) {
    .compromiso-container, .nosotros-container {
        flex-direction: column;
        text-align: center;
    }
    .compromiso-carousel {
        width: 100%;
        max-width: 100%;
    }
    .diferencia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bombeo-container {
        flex-direction: column;
    }
    .mision-vision-container {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .main-header {
        padding: 0.5rem 0;
    }
    .main-header .container {
        flex-direction: row; /* Keep logo and button in a row */
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        visibility: hidden;
        position: absolute;
        top: 70px; /* Height of header */
        left: 0;
        right: 0;
        background: var(--color-black);
        padding: 1rem 0;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 400ms ease-in-out;
    }

    .main-nav.nav-visible {
        visibility: visible;
        transform: scale(1, 1);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero {
        margin-top: 70px; /* Ajuste para el header más alto */
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .mision-vision-container, .contacto-container, .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        text-align: center;
    }
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    .diferencia-grid {
        grid-template-columns: 1fr;
    }
    .footer-col {
        text-align: center;
    }
    .footer-container, .footer-col {
        text-align: left;
    }
    .info-list li {
        justify-content: center;
    }
}