/* FUENTE Y VARIABLES GLOBALES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #28a745; 
    --primary-hover: #218838; 
    --whatsapp-color: #25D366;
    --gradient-start: #28a745;
    --gradient-end: #2dce89;
    --dark-bg: #121212;
    --dark-card-bg: #1e1e1e;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --highlight-color: #2dce89;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* RESET Y ESTILOS BASE */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; text-decoration: none; outline: none; border: none; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--dark-bg); color: var(--text-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }
h2 { text-align: center; font-size: 2.8rem; margin-bottom: 4rem; }
.text-highlight { color: var(--highlight-color); }

/* BOTÓN PRINCIPAL */
.btn { display: inline-block; padding: 0.8rem 2.2rem; background: var(--primary-color); color: #fff; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; border: 2px solid var(--primary-color); }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-3px); }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 8%; background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: background 0.3s ease; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--text-light); }
.navbar a { margin: 0 1.5rem; font-size: 1rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; }
.navbar a:hover, .navbar a.active { color: var(--primary-color); }
#menu-btn { font-size: 1.8rem; color: var(--text-light); display: none; cursor: pointer; }

/* HERO SECTION */
.hero-section { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding-top: 8rem; }
.hero-content h1 { font-size: 4rem; line-height: 1.2; margin-bottom: 1.5rem; }
.text-gradient { background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem auto; }
.hero-image-container { margin-top: 3rem; max-width: 800px; width: 90%; }
.hero-image-container img { width: 100%; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

/* CLIENTES SECTION */
.clientes-section { background: var(--dark-card-bg); padding: 4rem 0; }
.clientes-section h3 { text-align: center; margin-bottom: 2.5rem; font-weight: 500; color: var(--text-muted); }
.logos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; align-items: center; }
.logos-grid span { text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--text-muted); opacity: 0.7; transition: opacity 0.3s ease; }
.logos-grid span:hover { opacity: 1; }

/* SERVICIOS / FUNCIONALIDADES SECTION */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--dark-card-bg); padding: 2rem; border-radius: 15px; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px var(--shadow-color); }
.card-image { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-light); }
.card p { color: var(--text-muted); line-height: 1.7; }

/* BENEFICIOS SECTION - **NUEVO ESPACIADO** */
section#beneficios { padding-top: 8rem; }
.testimonial-card { background: var(--dark-card-bg); padding: 2.5rem 2rem; border-radius: 15px; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px var(--shadow-color); }
.testimonial-card p { font-size: 1.1rem; font-style: italic; margin-bottom: 1.5rem; color: var(--text-muted); }
.testimonial-card h4 { font-size: 1.1rem; font-weight: 600; color: var(--highlight-color); }

/* CONTACTO SECTION - **NUEVO ESPACIADO** */
.contact-section { background: var(--dark-card-bg); padding-top: 8rem; }
.contact-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; color: var(--text-muted); line-height: 1.8; }
.contact-wrapper { max-width: 700px; margin: 3rem auto 0 auto; }
.contact-form { display: grid; gap: 1.5rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 1rem; background: #2a2a2a; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-light); font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--primary-color); }
.contact-form button { justify-self: center; width: auto; cursor: pointer; }



/* **ACTUALIZADO** PARALLAX IMAGE STYLE */
.parallax-image-container {
    position: relative; /* Necesario para posicionar el overlay y el contenido */
    display: flex; /* Habilita flexbox */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    text-align: center;
    min-height: 400px;
    background-image: url('https://images.pexels.com/photos/1779487/pexels-photo-1779487.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    margin: 2rem 0;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    overflow: hidden; /* Asegura que el overlay no se salga */
}

/* **NUEVO:** Overlay oscuro para legibilidad del texto */
.parallax-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay negro al 50% de opacidad */
    z-index: 1; /* Se asegura que el overlay esté debajo del texto */
}

/* **NUEVO:** Estilos para el contenedor del texto */
.parallax-content {
    position: relative; /* Para que se posicione correctamente */
    z-index: 2; /* Se asegura que el texto esté sobre el overlay */
    color: #fff;
    max-width: 700px;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra para resaltar el texto */
}

.parallax-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}


/* **NUEVO** WHATSAPP BUBBLE STYLE */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* FOOTER */
.footer { background: var(--dark-bg); padding: 4rem 0 2rem 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-grid div h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-light); }
.footer-grid div a { display: block; margin-bottom: 0.7rem; color: var(--text-muted); transition: color 0.3s ease; }
.footer-grid div a:hover { color: var(--primary-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary-color); }

/* ANIMACIONES DE SCROLL */
/* ANIMACIONES DE SCROLL */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* **NUEVO:** Clase 'visible' para el contenedor parallax (solo controla la opacidad) */
.parallax-image-container.visible {
    opacity: 1;
}


/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .header { padding: 1.5rem 4%; }
    #menu-btn { display: block; }
    .navbar { position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark-bg); padding: 1rem 4%; display: none; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--border-color); }
    .navbar.active { display: flex; }
    .navbar a { display: block; margin: 1rem 0; font-size: 1.2rem; }
    .hero-content h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
}
@media (max-width: 576px) {
    .grid-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}