/* Estilos generales del cuerpo */
body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Contenedor del navbar */
.navbar {
    background-color: #000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* Centra el contenido */
    align-items: center;
    height: 70px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Contenedor interno para controlar el ancho */
.navbar-container {
    width: 90%; /* Ajusta el tamaño del contenido */
    max-width: 1200px; /* Máximo ancho del navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar .logo img {
    height: 50px;
    width: auto;
}

/* Enlaces del navbar */
.navbar .nav-links {
    display: flex;
    gap: 20px; /* Aumenta el espacio entre los elementos */
}

/* Ajusta los enlaces */
.navbar .nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px; /* Agrega espacio interno */
}
.navbar .nav-links a:hover {
    color: white; /* Mantén el texto blanco */
    background: #003bb3; /* Opcional: un azul más oscuro al hacer hover */
    text-decoration: none;
}

/* Botón de contacto */
.navbar .contacto {
    background: #145eff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Botón menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

/* Responsive: Navbar en móviles */
@media screen and (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
    }

    .nav-links {
        display: flex; /* Cambia a flex para que la animación funcione */
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #000;
        text-align: center;
        padding: 10px 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 10px;
        display: block;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 40px;
        top: 20px;
    }
}


/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 600px; /* Altura inicial en escritorio */
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 0;
    padding-bottom: 30px;
    overflow: hidden;
    z-index: 1;
}

/* Estilos para el texto en el banner */
.banner h2 {
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.5em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Carrusel */
.slider {
    width: 100%;
    height: 100%;
    padding-bottom: 30px;
}

.slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animación del carrusel */
.slick-prev, .slick-next {
    z-index: 1;
    color: white;
    font-size: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}

/* Ajuste de videos en el banner */
.slider video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Ajuste de altura en dispositivos medianos */
@media (max-width: 1024px) {
    .banner {
        height: 450px;
        padding-bottom: 20px;
    }

    .banner h2 {
        font-size: 2.5em;
    }

    .banner p {
        font-size: 1.2em;
    }
}

/* Ajuste de altura en móviles */
@media screen and (max-width: 768px) {
    .banner {
        height: 10px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 10vh; /* Ajuste más equilibrado */
        /* padding-bottom: 0; */
        border-bottom: none;
    }

    .slider video {
        width: 100%;
        height: 30vh;
        object-fit: cover;
    }
}


/* Ajuste de texto en móviles */
@media (max-width: 768px) {
    .banner h2 {
        font-size: 2em;
    }

    .banner p {
        font-size: 1em;
        padding: 0 15px;
    }

    .slick-prev,
    .slick-next {
        font-size: 24px;
    }
}

/* Ajuste de tamaño de los puntos del carrusel */
.slick-dots {
    bottom: 10px;
}

@media (max-width: 768px) {
    .slick-dots li button:before {
        font-size: 10px;
    }
}
@media screen and (max-width: 768px) {
    .banner {
      background-image: url('assets/banner-mobile.jpeg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      height: 200px;
      overflow: hidden;
      position: relative;
    }
  
    .banner .slider {
      display: none; /* Oculta el carrusel solo en móvil */
    }
  }
  @media screen and (max-width: 768px) {
    .banner {
      background-image: url('assets/banner-mobile.jpeg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      height: 200px;
      position: relative;
      overflow: hidden;
    }
  
    .banner .slider {
      display: none; /* Oculta carrusel solo en móviles */
    }
  
    .banner-texto-mobile {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
      z-index: 2;
      padding: 1rem;
      box-sizing: border-box;
    }
  
    .banner-texto-mobile .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.4); /* Fondo traslúcido oscuro */
      z-index: 1;
    }
  
    .banner-texto-mobile .contenido-texto {
      position: relative;
      z-index: 2;
    }
  
    .banner-texto-mobile h1 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
  
    .banner-texto-mobile p {
      font-size: 0.9rem;
    }
  }
 /* Oculta el texto móvil en escritorio */
.banner-texto-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .banner-texto-mobile {
    display: flex;
  }
}
  
@media (max-width: 768px) {
    .banner-texto-mobile h1 {
      font-size: 2em;
      color: #0099ff;
    }
  
    .banner-texto-mobile p {
      font-size: 1.2em;
      color: white;
    }
  }
  
  @media (max-width: 768px) {
    .banner-texto-mobile .contenido-texto {
      margin-top: -150px; /* Puedes ajustar este valor */
    }
  }
  
/* Servicios */
.servicios {
    padding: 50px;
    text-align: center;
    background-color: #252525;
}

/* Estilos para la cuadrícula */
.servicios-cuadros {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Dos columnas */
    gap: 20px; /* Espacio entre los cuadros */
    width: 80%; /* Ancho limitado */
    margin: 0 auto; /* Centra la cuadrícula */
}

.servicio-cuadro {
    background-color: #1f1f1f;  /* Fondo oscuro para los cuadros */
    padding: 20px;
    border-radius: 10px;  /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Sombra para los cuadros */
}

.servicio-cuadro h3 {
    color: #0099ff;  /* Título en azul */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.servicio-cuadro p {
    color: #d9d9d9; /* Texto en gris claro */
    font-size: 1.1em;
    margin-bottom: 15px;
}

.imagen {
    text-align: center;
}

.imagen img {
    max-width: 100%;  /* Asegura que la imagen no se desborde */
    height: auto;
    border-radius: 10px;
    max-height: 200px; /* Limita la altura máxima de la imagen */
}

.servicios h2 {
    color: #0099ff; /* Título principal en azul */
    font-size: 2.5em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .servicios-cuadros {
        grid-template-columns: 1fr; /* Una columna */
        width: 90%; /* Un poco más de ancho en móviles */
    }
}
/* Sección "¿Por qué elegir ProFresh?" */
.por-que-escogernos {
    padding: 40px 20px;
    background-color: #252525;
    text-align: center;
}

.por-que-escogernos h2 {
    color: #0099ff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.por-que-escogernos p {
    color: #d9d9d9;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Contenedor de las razones */
.razones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las columnas */
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px; /* Limita el ancho máximo */
}

/* Cada tarjeta de razón */
.razon {
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 25px;
    width: 45%; /* Ajuste para que se dividan en dos columnas */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.razon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Íconos y títulos */
.razon i,
.razon h3 {
    color: #0099ff;
}

.razon i {
    font-size: 40px;
    margin-bottom: 15px;
}

.razon h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Párrafos */
.razon p {
    color: #d9d9d9;
    font-size: 1.1em;
    line-height: 1.5;
}



/* Responsividad para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .razones {
        flex-direction: column;
        align-items: center;
    }

    .razon {
        width: 80%; /* En pantallas pequeñas, las tarjetas ocupan el 80% */
        margin-bottom: 20px;
    }
}



/* Sobre nosotros */
.nosotros {
    padding: 50px;
    text-align: center;
    background-color: #252525;
}

.nosotros h2 {
    color: #0099ff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.nosotros p {
    color: #d9d9d9;
    font-size: 1.2em;
    max-width: 800px;  /* Limita el ancho del texto */
    margin: 0 auto;  /* Centra el texto */
    line-height: 1.6;
    text-align: justify;  /* Justifica el texto */
}

/* Agregar puntos aparte */
.nosotros p br {
    margin-bottom: 10px; /* Espacio entre párrafos */
}

/* Estilos para el formulario */
.contacto-form {
    background-color: #252525;
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 10px;
}

.contacto-form h2 {
    color: #0099ff;
    font-size: 2em;
    margin-bottom: 10px;
}

.contacto-form p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contacto-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form label {
    text-align: left;
    font-size: 1.1em;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #0099ff;
    border-radius: 5px;
    background-color: #333;
    color: white;
    outline: none;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #145eff;
    box-shadow: 0 0 10px rgba(20, 94, 255, 0.5);
}

.contacto-form button {
    background-color: #0099ff;
    color: white;
    padding: 12px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.contacto-form button:hover {
    background-color: #145eff;
    transform: scale(1.05);
}

/* Estilos para el teléfono con prefijo */
.telefono-container {
    display: flex;
    align-items: center;
    background-color: #333;
    border: 1px solid #0099ff;
    border-radius: 5px;
    overflow: hidden;
}

.prefix {
    background-color: #0099ff;
    color: white;
    padding: 12px;
    font-size: 1em;
    border-right: 1px solid #145eff;
}

.telefono-container input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 1em;
    background-color: #333;
    color: white;
    outline: none;
}


/* Footer */
.footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: relative;
}

/* Estilos para móviles */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner {
        height: 400px; /* Ajusté la altura del banner para móviles */
    }

    .banner h2 {
        font-size: 2.5em;
    }

    .slick-slide img {
        height: 100%;
        object-fit: cover;
    }

    .servicios, .nosotros {
        padding: 30px;
    }

    .footer {
        padding: 15px;
    }
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* Definir la animación de desvanecimiento */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}




/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h2, h3 {
    text-align: center;
}
