/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Previene scroll horizontal en animaciones */
}

/* Encabezado con animación de entrada */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out forwards;
  
    align-content: stretch;
    flex-wrap: wrap;
    flex-direction: column;
  
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00bcd4;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 80%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00bcd4;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav a:hover {
    color: #00bcd4;
    transform: translateY(-2px);
}

/* Sección Hero con efecto de onda de agua */
.hero {
    height: 100vh;
    background: url('images/industrial-Water.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden; /* Para contener la onda de agua */
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Efecto de onda de agua en la parte inferior */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%2300bcd4"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%2300bcd4"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%2300bcd4"/></svg>');
    background-size: cover;
    animation: wave 15s linear infinite;
    opacity: 0.6;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1200px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Efecto de agua para el botón */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #00bcd4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover {
    background: #008c9e;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 140, 158, 0.3);
}

.btn:hover:before {
    left: 100%;
}

/* Animaciones de sección mejoradas */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de resaltado para títulos de sección */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #00bcd4, #008c9e);
    transition: width 1s ease;
}

section.show h2::after {
    width: 100%;
}

/* Animación para elementos de la lista en servicios */
.services ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 30px;
}

.services ul li:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #00bcd4;
    border-radius: 50%;
}

.services.show ul li {
    opacity: 1;
    transform: translateX(0);
}

.services.show ul li:nth-child(1) {
    transition-delay: 0.2s;
}

.services.show ul li:nth-child(2) {
    transition-delay: 0.4s;
}

.services.show ul li:nth-child(3) {
    transition-delay: 0.6s;
}

/* Animación de parallax suave para las secciones */
section {
    position: relative;
    padding: 80px 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Efecto de agua para la sección de contacto */
.contact {
    background: linear-gradient(to bottom, white, #e6f7f9);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%2300bcd4"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

/* Pie de página */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00bcd4, #008c9e, #00bcd4);
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}
/* Estilos mejorados para la sección Sobre Nosotros */
.about {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #e6f7f9 100%);
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Añadir burbujas decorativas para efecto acuático */
.about::before,
.about::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.05);
    z-index: 0;
}

.about::before {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -100px;
    animation: float 15s infinite ease-in-out;
}

.about::after {
    width: 200px;
    height: 200px;
    top: -70px;
    left: -70px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-5deg); }
}

/* Contenedor para el contenido */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Estilos para la columna de texto */
.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.about.show .about-text {
    transform: translateY(0);
    opacity: 1;
}

/* Estilos para la columna de imagen */
.about-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background: url('images/water-technology.jpg') no-repeat center center/cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.2s;
}

.about.show .about-image {
    transform: translateY(0);
    opacity: 1;
}

/* Efecto de ondulación en la imagen */
.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 188, 212, 0.2), transparent);
    animation: wave-effect 5s infinite linear;
}

@keyframes wave-effect {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Estilos para el título */
.about h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.about h2::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 60px;
    height: 3px;
    background: #00bcd4;
    transform: translateX(-50%);
}

/* Estilos para el texto del párrafo */
.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* Destacados */
.about-highlight {
    color: #00bcd4;
    font-weight: bold;
}

/* Tarjetas de valores o beneficios */
.about-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.value-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: calc(33.33% - 20px);
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.about.show .value-card {
    transform: translateY(0);
    opacity: 1;
}

.about.show .value-card:nth-child(1) { transition-delay: 0.3s; }
.about.show .value-card:nth-child(2) { transition-delay: 0.5s; }
.about.show .value-card:nth-child(3) { transition-delay: 0.7s; }

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    color: #00bcd4;
    font-size: 25px;
}

.value-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Contador de estadísticas */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    margin-top: 50px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    width: calc(25% - 20px);
    min-width: 150px;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00bcd4;
    margin-bottom: 5px;
}

.stat-label {
    color: #555;
    font-size: 0.9rem;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .about {
        padding: 80px 15px;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .value-card {
        width: 100%;
    }
    
    .stat-item {
        width: calc(50% - 20px);
    }
}