/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

header {
    background-color: #1c1c1c; /* Línea para cambiar el color del fondo del header */
    padding: 1px 0; /* Línea para ajustar el tamaño del fondo negro */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    width: 100px; /* Ajusta el tamaño del logo según el nuevo tamaño del header */
}

nav {
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    font-weight: bold; /* Utiliza Roboto Bold */
    font-size: 16px; /* Tamaño de fuente para los enlaces del menú */
    transition: all 0.3s ease;
}

/* Cambiar el color al pasar el cursor */
.nav-links a:hover {
    background-color: #009ABE; /* Azul turquesa (puedes cambiar este valor si deseas otro color) */
    color: #1c1c1c;
    border-radius: 4px;
}

.cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold; /* Utiliza Roboto Bold */
}

.cta-button:hover {
    background-color: #0056b3;
}

.cta-button-primary {
    background-color: #28a745;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-left: 20px;
    font-weight: bold; /* Utiliza Roboto Bold */
}

.cta-button-primary:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .cta-button-primary {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Menú tipo hamburguesa */

.menu-toggle {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1100;
}

@media (max-width: 768px) {
    nav {
        display: none;
        width: 100%;
        background-color: #1c1c1c;
        flex-direction: column;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }

    .nav-links li {
        margin: 10px 0;
    }
}


/* Hero Section with Video Background */
.hero-section {
    position: relative;
    height: 80vh; /* Ajusta la altura de la sección */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Asegura que el video quede detrás del contenido */
    object-fit: cover;
}

.hero-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para mayor legibilidad */
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.hero-section h1 {
    font-size: 2.5rem; /* Tamaño de texto para el título principal */
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-cta {
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-cta:hover {
    background-color: #218838;
}

.hero-secondary-cta {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-secondary-cta:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

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

    .hero-cta, .hero-secondary-cta {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Sección Servicios */
.servicios-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Fondo claro para contraste */
    text-align: center;
}

.servicios-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #009ABE; /* Color del título de la sección */
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Diseño responsive */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.servicio:hover {
    transform: translateY(-5px); /* Efecto de elevación al pasar el cursor */
}

.servicio h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #009ABE; /* Color de los títulos de los servicios */
}

.servicio p {
    font-size: 0.9rem;
    color: #555;
}

/* Carousel Section */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content; /* Permite que el track se ajuste a su contenido */
}

.servicio {
    flex: 0 0 300px; /* Ajusta el ancho de cada servicio */
    margin: 0 10px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.servicio img {
    width: 100%; /* La imagen se adapta al tamaño del contenedor */
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.servicio h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.servicio p {
    font-size: 0.9rem;
    color: #555;
}

.grabbing {
    cursor: grabbing !important;
}

.carousel-track {
    cursor: grab;
}

/* Desactivar la selección de texto e imágenes durante el arrastre */
.carousel-track {
    user-select: none; /* Desactiva la selección de texto en la pista del carrusel */
    -webkit-user-select: none; /* Compatibilidad con navegadores WebKit */
    -ms-user-select: none; /* Compatibilidad con Internet Explorer/Edge */
}

.servicio {
    user-select: none; /* Desactiva la selección de texto */
    -webkit-user-select: none;
    -ms-user-select: none;
}

.servicio img {
     width: 100%;
    height: 200px; /* Altura fija */
    object-fit: cover; /* Asegura que la imagen se recorte proporcionalmente */
    border-radius: 5px;
    margin-bottom: 10px;
  	pointer-events: none; /* Evita que las imágenes sean seleccionables o reciban clics */
}

/* Sección Nosotros */
.nosotros-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Fondo claro */
    text-align: center;
}

.nosotros-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
  	color: #009ABE; /* Color del título de la sección */
}

.nosotros-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Diseño responsive */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.valor-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px); /* Efecto de elevación al pasar el cursor */
}

.valor-item h3 {
    color: #009ABE;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.valor-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000000;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
  	max-width: 100%;
}
}

.valor-item p {
    font-size: 0.9rem;
    color: #555;
}

.nosotros-mv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    text-align: left;
}

.nosotros-mv .mision,
.nosotros-mv .vision {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nosotros-mv h3 {
    color: #009ABE;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.nosotros-mv p {
    font-size: 0.95rem;
    color: #555;
}

.justificado {
    text-align: justify;
}

.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.valor-item {
    flex: 1 1 calc(33.333% - 20px); /* 3 por fila con margen */
    max-width: calc(33.333% - 20px);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.valor-item:nth-child(n+4) {
    flex: 1 1 calc(50% - 20px); /* 2 en la segunda fila */
    max-width: calc(50% - 20px);
}

/* Sección de Contacto */
.contacto-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Fondo claro */
    text-align: center;
}

.contacto-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #009ABE; /* Color del título */
}

.contacto-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-info, .contacto-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    max-width: 500px;
}

.contacto-info h3, .contacto-form h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #009ABE;
}

.contacto-info p {
    font-size: 0.9rem;
    color: #555;
    text-align: left;
}

.contacto-form input, .contacto-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contacto-form button {
    background-color: #009ABE;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contacto-form button:hover {
    background-color: #007b9e;
}

/* Ajustes para la Imagen de Contacto */
.contacto-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos, incluyendo la imagen */
    text-align: left;
}

.contacto-imagen {
    margin-top: 15px;
    width: 100%; /* La imagen ocupará el ancho completo del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Añade un ligero efecto de sombra */
}

.carousel-wrapper {
    position: relative; /* Corregido */
}

/* Ocultar flechas en móvil */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

/* Botones de navegación del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid #00B5DF; /* Color azul Hoomie */
    color: #00B5DF;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-btn:hover {
    background-color: #00B5DF;
    color: #fff;
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    scroll-snap-type: x mandatory;
  }

  .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 16px;
  }

  .servicio {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
    .valores-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .valor-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .valor-item:nth-child(5) {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0 auto; /* Centrar horizontalmente */
    }
}