/* Variables de Colores */
:root {
    --primary-green: #04eb94;
    --primary-blue: #24345b;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --white: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* DEFINICIÓN DE FUENTE PERSONALIZADA: PIPPINNS */
/* -------------------------------------------------------------------------- */

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

/* Medium/SemiBold (Si tienes un archivo específico para esto) */
@font-face {
    font-family: 'Pippins';
    src: url('fonts/Pippins-Medium.woff2') format('woff2'),
         url('fonts/Pippins-Medium.woff') format('woff'),
         url('fonts/Pippins-Medium.ttf') format('truetype');
    font-weight: 500; /* O 600 para Semibold */
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Pippins-Bold.woff2') format('woff2'),
         url('fonts/Pippins-Bold.woff') format('woff'),
         url('fonts/Pippins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* -------------------------------------------------------------------------- */

/* Variables de Colores (asegúrate de que estén al principio del archivo) */
:root {
    --primary-green: #04eb94;
    --primary-blue: #24345b;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --white: #ffffff;
}

/* Reset Básico y Tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* AQUI SE CAMBIA PARA EL TEXTO GENERAL */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}
body {
  width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; /* AQUI SE CAMBIA PARA LOS TITULOS */
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

}

/* El resto de tu CSS permanece igual... */
p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-green);
    color: var(--primary-blue);
}

.primary-btn:hover {
    background-color: #03c779; /* Un poco más oscuro */
    transform: translateY(-2px);
}

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

.secondary-btn:hover {
    background-color: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px; /* Ajusta según el tamaño de tu logo */
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Ocultar por defecto en desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Variables de Colores (asegúrate de que estén al principio del archivo) */
:root {
    --primary-green: #04eb94;
    --primary-blue: #24345b;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --white: #ffffff;
}

/* ... (resto de tus estilos generales, header, etc.) ... */

/* Hero Section */
.hero-section {
    /* Aquí definimos la imagen de fondo */
    background: url('hero-bg.jpg') no-repeat center center/cover; /* Reemplaza 'hero-bg.jpg' con la ruta de tu imagen de fondo */
    color: var(--white);
    text-align: center;
    padding: 150px 0; /* Espaciado interno superior e inferior */
    display: flex;
    align-items: center; /* Centrar verticalmente el contenido */
    justify-content: center; /* Centrar horizontalmente el contenido */
    min-height: 70vh; /* Altura mínima de la sección (70% de la altura de la ventana) */
    position: relative;
    overflow: hidden; /* Asegura que la imagen no se desborde */
}

/* Overlay oscuro para mejorar la legibilidad del texto sobre la imagen */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Capa oscura (45% de opacidad) */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Asegura que el texto y los botones estén encima del overlay */
    animation: fadeIn 1.2s ease-out forwards; /* Animación de entrada más suave */
    max-width: 900px; /* Limita el ancho del texto para mejor legibilidad */
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.8rem; /* Tamaño de fuente más grande para el título principal */
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* Sombra para resaltar el texto */
    line-height: 1.2;
    font-weight: 700; /* Asegura que el título sea negrita */
}

.hero-section p {
    font-size: 1.4rem; /* Tamaño de fuente más grande para el subtítulo */
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: rgba(255, 255, 255, 0.9); /* Ligeramente menos blanco para contraste */
}

/* Ajustes para el botón dentro del hero */
.hero-section .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px; /* Botón más redondeado */
}

.hero-section .primary-btn {
    background-color: var(--primary-green);
    color: var(--primary-blue);
    border: 2px solid var(--primary-green);
}

.hero-section .primary-btn:hover {
    background-color: transparent; /* Fondo transparente al pasar el mouse */
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(4, 235, 148, 0.3); /* Sombra al pasar el mouse */
}


/* Animación de entrada para el contenido del hero */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries para Responsive Design del Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0;
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .hero-section .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0;
        min-height: 55vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}
/* Servicios Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Proyectos Section */
.bg-dark {
    background-color: var(--primary-blue);
    color: var(--white);
}

.bg-dark h2, .bg-dark h3 {
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(36, 52, 91, 0.9), rgba(36, 52, 91, 0));
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 5px;
}

/* Variables de Colores (asegúrate de que estén al principio del archivo) */
:root {
    --primary-green: #04eb94;
    --primary-blue: #24345b;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --white: #ffffff;
}

/* ... (resto de tus estilos generales, header, hero, servicios, proyectos) ... */

/* Clientes Section - Adaptación para Swiper */
.clients-section h2 {
    margin-bottom: 40px; /* Más espacio debajo del título */
}

/* Contenedor del carrusel Swiper */
.client-swiper {
    width: auto;
    height: auto;
    padding: 0 40px; /* Espacio para las flechas de navegación */
}

.client-swiper .swiper-wrapper {
    align-items: center; /* Centrar verticalmente los logos */
}

.client-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Ajuste automático de altura */
	weight; auto;
}

/* Estilo para los logos dentro del carrusel */
.client-logo {
    padding: 10px; /* Espacio alrededor de cada logo */
	height: 100%; 
}

.client-logo img {
    max-height: 150px; /* Tamaño máximo del logo */
    width: auto;
    filter: grayscale(100%); /* Logos en escala de grises */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.client-logo img:hover {
    filter: grayscale(0%); /* Color al pasar el mouse */
    opacity: 1;
    transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
}

/* Estilos para la paginación (puntos debajo del carrusel) */
.client-swiper .swiper-pagination {
    position: static; /* Para que no esté pegado al bottom del carrusel */
    margin-top: 25px;
    margin-bottom: 0;
}

.client-swiper .swiper-pagination-bullet {
    background-color: rgba(36, 52, 91, 0.4); /* Puntos inactivos */
    opacity: 1;
    transition: background-color 0.3s ease;
}

.client-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-green); /* Punto activo */
}

/* Estilos para las flechas de navegación */
.client-swiper .swiper-button-next,
.client-swiper .swiper-button-prev {
    color: var(--primary-blue); /* Color de las flechas */
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: rgba(4, 235, 148, 0.2); /* Fondo semitransparente */
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    top: 50%; /* Centrar verticalmente */
    transform: translateY(-50%);
}

.client-swiper .swiper-button-next:hover,
.client-swiper .swiper-button-prev:hover {
    background-color: var(--primary-green);
    color: var(--primary-blue);
}

.client-swiper .swiper-button-next::after,
.client-swiper .swiper-button-prev::after {
    font-size: 1rem; /* Tamaño del icono de flecha */
    font-weight: 700;
}

/* Media Queries para ocultar flechas en pantallas muy pequeñas si no se desean */
@media (max-width: 640px) {
    .client-swiper .swiper-button-next,
    .client-swiper .swiper-button-prev {
        display: none; /* Ocultar flechas en móviles pequeños */
    }
    .client-swiper {
        padding: 0; /* No se necesita padding si no hay flechas */
    }
}

/* ... (resto de tus estilos de contacto, footer y media queries generales) ... */
/* Variables de Colores (asegúrate de que estén al principio del archivo) */
:root {
    --primary-green: #04eb94;
    --primary-blue: #24345b;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    --white: #ffffff;
}

/* ... (resto de tus estilos generales, header, hero, servicios, proyectos, clientes) ... */

/* Contacto Section - Nueva Estructura */
.contact-section h2 {
    margin-bottom: 40px;
}

.contact-content-whatsapp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start; /* Alinea los elementos al inicio */
}

.contact-info {
    color: var(--white);
    background-color: var(--primary-blue); /* Fondo para la información de contacto */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info i {
    color: var(--primary-green);
    font-size: 1.3rem;
    width: 25px; /* Para alinear bien los íconos */
    text-align: center;
}

/* Estilos para el botón flotante de WhatsApp (ya existente, solo se asegura de que esté definido) */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde WhatsApp */
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float i {
    margin-top: 0px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Verde WhatsApp más oscuro */
}


/* Estilos para la tarjeta de WhatsApp */
.whatsapp-card {
    background-color: var(--white); /* Fondo blanco para la tarjeta de WhatsApp */
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ocupa la altura disponible */
}

.whatsapp-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.whatsapp-card p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.whatsapp-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    background-color: #25d366; /* Verde WhatsApp */
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-cta-btn:hover {
    background-color: #128c7e; /* Verde WhatsApp más oscuro */
    transform: translateY(-2px);
}

.whatsapp-cta-btn i {
    font-size: 1.3rem;
}

.whatsapp-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 20px;
    font-style: italic;
}

/* Mapa (asegúrate de que esté definido) */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    grid-column: 1 / -1; /* El mapa ocupa todo el ancho */
    margin-top: 30px;
}

.map-container iframe {
    border-radius: 8px;
}

/* ... (resto de tus estilos de footer y media queries generales) ... */

/* Media Queries para Responsive Design de Contacto */
@media (max-width: 768px) {
    .contact-content-whatsapp {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 30px;
    }

    .contact-info, .whatsapp-card {
        padding: 25px;
        text-align: center; /* Centrar textos en móvil */
    }

    .contact-info p {
        justify-content: center; /* Centrar iconos y texto en mobile */
    }

    .social-links {
        justify-content: center; /* Centrar iconos sociales en mobile */
        margin-top: 15px;
    }

    .whatsapp-card h3 {
        font-size: 1.3rem;
    }

    .whatsapp-cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px 0; /* Más padding arriba */
    border-top: 5px solid var(--primary-green);
    font-size: 0.95rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar contenido del footer */
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 200px es el mínimo para columnas */
    gap: 30px;
    width: 100%; /* Ocupa todo el ancho del contenedor */
    margin-bottom: 40px;
    text-align: left; /* Alineación de texto por defecto */
}

.footer-brand {
    text-align: center; /* Centrar logo y eslogan */
}

.footer-logo {
    height: 60px; /* Tamaño del logo en el footer */
    margin: 0 auto 15px auto; /* Centrar el logo y espacio debajo */
}

.footer-brand .slogan {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.footer-links-group h3,
.footer-social h3 {
    color: var(--primary-green); /* Títulos de sección en verde */
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links-group ul {
    padding: 0;
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 8px;
}

.footer-links-group a {
    color: rgba(255, 255, 255, 0.8); /* Enlaces con menor opacidad */
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--primary-green);
}

.social-icons {
    display: flex;
    justify-content: flex-start; /* Alinear iconos a la izquierda por defecto */
    gap: 15px;
    margin-top: 10px;
}

.footer-social .social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-green);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separador sutil */
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Media Queries para Responsive Design del Footer */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        text-align: center; /* Centrar todos los textos */
    }

    .footer-brand,
    .footer-links-group,
    .footer-social {
        margin-bottom: 20px;
    }
    .footer-social .social-icons {
        justify-content: center; /* Centrar iconos sociales en mobile */
    }

    .footer-links-group ul {
        display: flex; /* Para que los enlaces se vean como una fila en mobile si se desea */
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px; /* Espacio entre enlaces */
    }
    .footer-links-group ul li {
        margin-bottom: 0;
    }
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde WhatsApp */
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float i {
    margin-top: 0px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Verde WhatsApp más oscuro */
}

/* Animaciones (ejemplos simples) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries para Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        display: none; /* Ocultar por defecto */
        width: 100%;
    }

    .nav-list.active {
        display: flex; /* Mostrar cuando el menú esté activo */
    }

    .menu-toggle {
        display: block; /* Mostrar el ícono de hamburguesa */
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .hero-section {
        padding: 100px 0;
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services-grid,
    .projects-grid,
    .clients-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .service-item, .project-item, .client-logo {
        margin: 0 auto; /* Centrar elementos en mobile */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 15px;
    }
    .menu-toggle {
        top: 20px;
        right: 15px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}