/* Reset y estilos generales */
/* Importar la fuente Source Sans Pro */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;0,900;1,300;1,400;1,600;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
}

/* Botón de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Verde WhatsApp */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    /* Verde más oscuro */
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.desktop-only {
    display: block;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header con video de fondo */
header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#nosotros,
#servicios,
#proyectos,
#contacto {
    scroll-margin-top: 80px;
    /* Altura de tu navbar */
    padding-top: 80px;
    /* Espacio extra */
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-image {
    width: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.4;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background {
    background-image: url('images/background-image.jpg');
    /* TU IMAGEN AQUÍ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay más oscuro para mejor contraste */
    z-index: -1;
}

/* Sección de números */
.numbers-section {
    padding: 50px 0;
    background: white;
    display: flex;
    align-items: center;
    /* Altura mínima para mayor impacto */
}

.numbers-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    /* Espacio reducido entre número y texto */
    width: 100%;
}

.number-item:first-child {
    flex-shrink: 0;
}

.number-item:first-child h2 {
    font-size: 4rem;
    color: #dd222b;
    font-weight: 700;
    /* Más grueso */
    line-height: 1.1;
    /* Para que ocupe más altura */
    margin: 0;
    text-align: center;
    /* Alineado a la derecha para pegarse al texto */
}

.number-item:last-child {
    flex: 1;
}

.number-item:last-child p {
    font-size: 2.5rem;
    /* Texto muy grande */
    color: #dd222b;
    /* Mismo color azul */
    font-weight: 700;
    line-height: 1.1;
    /* Line-height ajustado */
    margin: 0;
    text-align: left;
    /* Alineado a la izquierda */
    padding-left: 20px;
    /* Pequeño espacio desde el número */
}

.number-item h2 {
    font-size: 5rem;
    color: #dd222b;
    font-weight: bold;
    margin: 0;
}

.number-item p {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    /* Inicialmente transparente */
    z-index: 1000;
    /* Más padding para más espacio */
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    /* Espacio a los lados */
}

.logo img {
    height: 100px;
    width: auto;
    margin-left: 10px;
    /* Espacio a la izquierda */
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin-right: 10px;
    /* Espacio a la derecha */
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    /* Inicialmente blanco para contraste con video */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #dd222b;
}

.nav-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* Navbar con scroll - fondo blanco */
.navbar.scrolled {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Padding reducido al hacer scroll */
}

.navbar.scrolled .bar {
    background: #333;
    /* Barras negras cuando tiene fondo blanco */
}

.navbar.scrolled .nav-link {
    color: #333;
    /* Texto negro cuando tiene fondo blanco */
}

.navbar.scrolled .nav-link:hover {
    color: #dd222b;
    /* Azul oscuro al hover */
}

.navbar.scrolled .social-icons a {
    color: #333;
    /* Iconos negros cuando tiene fondo blanco */
}

.navbar.scrolled .social-icons a:hover {
    color: #dd222b;
    /* Azul oscuro al hover */
}



/* Menú desplegable */
/*.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    position: relative;
}

.dropdown-item a {
    color: #333;
    padding: 12px 15px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.dropdown-item a:hover {
    background: #f5f5f5;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.dropdown-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
*/
/* Iconos sociales en navegación */
.social-icons a {
    /* Inicialmente blanco */
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #dd222b;
}

/* Contenido del header */
.header-content {
    text-align: left;
    color: white;
    padding: 0;
    /* Quitamos el padding anterior */
    margin: 0;
    padding-left: 5%;
    width: 100%;

    /* Centrado vertical */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-brochure {
    background: #4a90e2;
    color: white;
}

.btn-brochure:hover {
    background: #357abd;
    transform: translateY(-3px);
}

.btn-contact {
    background: #25D366;
    color: white;
}

.btn-contact:hover {
    background: #1da851;
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
}

/* Sección con imagen central */
.image-section {
    padding: 60px 0;
}

.image-section img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sección con gradiente */
.gradient-section {
    padding: 20px 0;
    /*background: linear-gradient(123deg, #dd222b 37%, #000000 78%);*/
    background: #dd222b;
    color: white;
}

.gradient-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gradient-content h2 {
    font-size: 2rem;
    flex: 1;
    min-width: 300px;
    font-weight: normal;
}

/* Sección Nosotros */
.about-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Más espacio entre imagen y texto */
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    /* Centramos el contenido */
    max-width: 1200px;
    /* Limitamos el ancho máximo */
    margin: 0 auto;
    /* Centramos horizontalmente */
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    /* Limitamos el ancho de la imagen */
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    /* Limitamos el ancho del texto */
}

.about-text h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 44px;
    /* Tamaño específico */
    font-weight: 700;
    /* Negrita */
    color: #dd222b;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-text h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 22px;
    /* Tamaño específico */
    font-weight: 600;
    /* Semi-negrita */
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    /* Tamaño específico */
    font-weight: 400;
    /* Normal */
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-quote {
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    /* Centramos la cita */
}

.about-quote p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.about-quote .quote {
    font-family: 'Source Sans Pro', sans-serif;
    font-style: italic;
    color: #dd222b;
    font-weight: 600;
    font-size: 1.2rem;
}

.quote {
    font-style: italic;
    color: #dd222b;
    font-weight: bold;
}

/* Sección parallax */

.parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/parallax-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}

.second-parallax {
    background-image: url('../images/parallax-bg02.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.second-parallax .parallax-content h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 23px;
    /* Tamaño específico */
    line-height: 1.5;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-container {
    background: rgba(221, 34, 43, 0.7);
    /* Fondo azul adicional */
    padding: 40px 50px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.bold-text {
    font-weight: 700;
    /* Negrita */
    font-size: 23px;
    color: white;
}

.normal-text {
    font-weight: 400;
    /* Normal */
    font-size: 23px;
    color: white;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Overlay blanco más claro */
}

.parallax-content {
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.parallax-content h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 3rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.text-white-bold {
    color: white;
    font-weight: 700;
    /* Negrita */
    font-size: 3rem;
}

.text-blue {
    color: #dd222b;
    /* Azul que usas en las secciones */
    font-weight: 400;
    /* Negrita */
    font-size: 3rem;
}

.text-white {
    color: white;
    font-weight: 400;
    /* Normal (no negrita) */
    font-size: 3rem;
}



.second-parallax::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Sección ¿Por qué elegirnos? */
.why-us-section {
    padding: 80px 0;
    background: white;
}

.why-us-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 500;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #dd222b;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Sección Servicios */
.services-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 500;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.service-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2A2A2AB5;
    /* Negro con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.service-overlay h3 {
    color: white;
    font-size: 1.8rem;
    text-align: center;
}

.service:hover .service-image img {
    transform: scale(1.1);
}

.service:hover .service-overlay {
    background: #05264F;
    /* Azul oscuro al hacer hover */
    opacity: 0.95;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Más translúcido */
    z-index: 2000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    /* Blanco traslúcido */
    backdrop-filter: blur(10px);
    /* Efecto de desenfoque */
    -webkit-backdrop-filter: blur(10px);
    /* Para Safari */
    width: 65%;
    max-width: 650px;
    margin: auto;
    border-radius: 15px;
    position: relative;
    padding: 20px;
    min-height: 400px;
    max-height: 60vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Borde sutil */
    opacity: 0.9;
}

.modal-header {
    height: 40px;
    /* Espacio dedicado para la X */
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 2002;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    /* Espacio en los costados */
}

.modal-text {
    flex: 1;
}

.modal-text h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #dd222b;
    margin-bottom: 15px;
    margin-top: 10px;
    /* Espacio desde la cabecera */
}

.modal-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    /* Texto más pequeño */
    margin-bottom: 15px;
    line-height: 1.5;
    /* Menos espacio entre líneas */
    font-weight: 300;
}

.modal-text p strong {
    font-weight: 600;
    /* Partes específicas en negrita */
    color: #dd222b;
}

.modal-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-text li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    padding: 10px 0;
    /* Espacio vertical equilibrado */
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
    font-weight: 500;
    /* Un poco de negrita */
    color: #dd222b;
    /* Color azul */
    display: flex;
    align-items: center;
    /* Alinea viñeta y texto */
}

.modal-text li:before {
    content: '•';
    color: #dd222b;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    top: 50%;
    /* Centra la viñeta verticalmente */
    transform: translateY(-50%);
}



.gallery-container {
    position: relative;
    overflow: hidden;
    /* OCULTA lo que se desborda */
    width: 100%;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    /* TAMAÑO NORMAL */
}

.gallery-slide {
    flex: 0 0 33.333%;
    /* 3 imágenes = 33.333% cada una */
    padding: 0 5px;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    height: 150px;
    /* Más alto que ancho = vertical */
    object-fit: cover;
    border-radius: 6px;
}

.image-overlay {
    display: none;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    /* CENTRADOS VERTICALMENTE */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}



.gallery-prev svg,
.gallery-next svg {
    width: 20px;
    height: 20px;
}

/* Sección Proyectos */
.projects-section {
    background: white;
    padding: 80px 20px 0;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 500;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.clients-section{
    flex-direction: column;
}

.clients-section h3{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #08086D;
    font-weight: 600;
}

.project {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 109, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-overlay h3 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.project:hover img {
    transform: scale(1.05);
}

.project:hover .project-overlay {
    opacity: 1;
}

/*************************************************************************************/
/*Videos*/
/* Videos section */
.videos-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.videos-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #08086D;
    font-weight: 600;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 videos en fila */
    gap: 15px;
}

.video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    /* Relación vertical (9:16) típica de móviles */
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Muestra TODO el video sin recortar */
    object-position: center;
}

.video-item p {
    margin-top: 10px;
    font-weight: 500;
    color: #333;
}

/* Para pantalla completa */
.video-item video::-webkit-media-controls-fullscreen-button {
    display: none;
    /* Ocultar botón de pantalla completa si causa problemas */
}

.video-item video:fullscreen {
    object-fit: contain;
    /* IMPORTANTE: mostrar completo en pantalla completa */
    background: #000;
}


/* Sección Certificaciones *********************************************/
/*.certifications-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.certifications-section h2 {
    font-size: 2.5rem;
    color: #08086D;
    margin-bottom: 10px;
}

.certifications-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.certifications-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.certifications-slider,
.clients-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container {
    position: relative;
    z-index: 10;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 25%;
    padding: 0 10px;
}

.slide img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #00aaff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    color: #05264F;    
    background: rgba(8, 8, 109, 0.1);    
}

.slider-prev {
    left: 0;    
}

.slider-next {
    right: 0;    
}
*/
/* Sección Clientes ***************************************************/
.clients-section {
    padding: 60px 0;
    background: white;
    text-align: center;
    display: flex;
    justify-content: center;
}

.clients-section .project img{
    width: auto;
}

.clients-section h2 {
    font-size: 1.8rem;
    color: #dd222b;
    margin-bottom: 30px;
}

.clients-section .container {
    padding: 15px;
    background: #f9f9f9;
}

.proyectos{
    overflow: hidden;
    cursor: pointer;
}


.proyectos img {
    max-width: 100%;
}

.proyectos:hover .project-overlay {
    opacity: 1;
}

/*

.clients-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}



/* Footer */
footer {
    background: #000;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section .social-icons {
    display: flex;
    gap: 15px;
}

.footer-section .social-icons a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-container {
    position: relative;
    z-index: 10;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 25%;
    padding: 0 10px;
}

.slide img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #00aaff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    color: #05264F;
    background: rgba(8, 8, 109, 0.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sección Contacto **********************************************************************/
.contact-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: #08086D;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #08086D;
    width: 20px;
}

/* Formulario *******************************************************************/
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #08086D;
}

.btn-submit {
    background: #08086D;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #05264F;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        gap: 40px;
    }

    .about-text h2 {
        font-size: 36px;
    }

    .about-text h3 {
        font-size: 20px;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 5%;
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .header-content h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .header-buttons {
        justify-content: center;
        gap: 15px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 10px;
    }

    .logo img {
        height: 60px;
    }

    .gradient-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .modal-body {
        flex-direction: column;
    }

    .parallax-content h2 {
        font-size: 2.5rem;
    }

    .text-white-bold,
    .text-blue,
    .text-white {
        font-size: 2.5rem;
    }

    .second-parallax .parallax-content h2 {
        font-size: 21px;
    }

    .bold-text,
    .normal-text {
        font-size: 21px;
    }

    .text-container {
        padding: 30px 40px;
        max-width: 800px;
    }

    .slide {
        min-width: 33.33%;
    }

    .number-item:first-child h2 {
        font-size: 2.5rem;
    }

    .number-item:last-child p {
        font-size: 2.2rem;
    }

    .clients-section {
        padding: 50px 0;
    }

    .clients-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .proyectos img {
        max-width: 95%;
        border-radius: 8px;
    }

    .videos-section {
        margin-top: 70px;
        padding-top: 35px;
    }

    .videos-section h3 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .video-item video {
        height: 200px;
    }
}

@media (max-width: 768px) {

    .desktop-only {
        display: none;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .about-text h3 {
        font-size: 18px;
    }

    .about-text p {
        font-size: 15px;
    }

    .about-quote {
        padding: 30px 20px;
    }

    .about-quote p {
        font-size: 1.1rem;
    }

    .about-quote .quote {
        font-size: 1rem;
    }

    .gallery-slide {
        min-width: 100%;
        flex: 0 0 50%;
        /* En móvil mostrar 1 imagen */
    }

    .gallery-slide img {
        height: 120px;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 5%;
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .header-content h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .header-buttons {
        justify-content: center;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 15px;
        min-height: 300px;
    }

    .modal-body {
        gap: 20px;
        padding: 0 5px;
    }

    .modal-text h2 {
        font-size: 20px;
    }

    .modal-text p {
        font-size: 0.9rem;
    }

    .modal-text li {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .numbers-section {
        min-height: 300px;
        padding: 60px 0;
    }

    .numbers-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .number-item:first-child h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .number-item:last-child p {
        font-size: 1.8rem;
        text-align: center;
        padding-left: 0;
        max-width: 400px;
    }

    .number-item h2 {
        font-size: 4rem;
    }

    .number-item p {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 80px;
        justify-content: flex-start;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }

    .social-icons {
        margin-top: 20px;
        justify-content: center;
        width: 100%;
        gap: 20px;
    }

    .navbar.scrolled .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: #333;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }

    .dropdown-item.active .submenu {
        display: block;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .parallax-content h2 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .parallax-content h2 br {
        display: none;
        /* Elimina el salto de línea en móvil */
    }

    .text-white-bold,
    .text-blue,
    .text-white {
        font-size: 2rem;
    }

    .second-parallax .parallax-content h2 {
        font-size: 19px;
    }

    .bold-text,
    .normal-text {
        font-size: 19px;
    }

    .text-container {
        padding: 25px 30px;
        max-width: 90%;
    }

    .slide {
        min-width: 50%;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .project {
        height: 400px;
    }

    .videos-section {
        margin-top: 60px;
        padding-top: 30px;
    }

    .videos-section h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 600px;
        margin: 0 auto;
    }

    .video-item video {
        height: 250px;
    }
}

@media (max-width: 576px) {

    .header-content {
        padding: 0 4%;
    }

    .header-content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .logo img {
        height: 50px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-menu {
        padding-top: 70px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-text h3 {
        font-size: 16px;
    }

    .about-text p {
        font-size: 14px;
    }

    .modal-text p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .modal-text li {
        font-size: 0.8rem;
        padding: 5px 0;
        padding-left: 15px;
    }


    .modal-content {
        width: 98%;
        max-width: 98%;
        padding: 10px;
        min-height: 250px;
        max-height: 85vh;
    }

    .modal-body {
        gap: 15px;
    }

    .modal-text h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }

    .number-item h2 {
        font-size: 3rem;
    }

    .number-item p {
        font-size: 1.2rem;
    }

    .number-item:first-child h2 {
        font-size: 2.5rem;
    }

    .number-item:last-child p {
        font-size: 1.4rem;
    }

    .numbers-section {
        min-height: 250px;
        padding: 40px 0;
    }

    .parallax-content h2 {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    .parallax-content h2 br {
        display: none;
    }

    .gallery-slide {
        flex: 0 0 100%;
    }

    .gallery-slide img {
        height: 100px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }

    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .parallax-content h2 {
        font-size: 1.6rem;
    }

    .text-white-bold,
    .text-blue,
    .text-white {
        font-size: 1.6rem;
    }

    .second-parallax .parallax-content h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .bold-text,
    .normal-text {
        font-size: 17px;
    }

    .text-container {
        padding: 20px 25px;
    }

    .features,
    .services,
    .projects {
        grid-template-columns: 1fr;
    }

    .slide {
        min-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .videos-section {
        margin-top: 50px;
        padding-top: 25px;
    }

    .videos-section h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .videos-grid {
        gap: 20px;
    }

    .video-item video {
        height: 200px;
    }

    .video-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .header-content h1 {
        font-size: 2.8rem;
        max-width: 650px;
    }

    .nav-container {
        width: 95%;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .number-item:first-child h2 {
        font-size: 2.5rem;
    }

    .number-item:last-child p {
        font-size: 1.8rem;
    }

    .clients-section h2 {
        font-size: 2.3rem;
        margin-bottom: 40px;
    }

    .proyectos img {
        max-width: 90%;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .video-item video {
        height: 220px;
    }

    .background-image {
        height: 100%;

    }
}