/* =========================
   RESET / BASE GLOBAL
   ========================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: #606366; /* Gris corporativo */
    background-color: #fff;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* =========================
     VARIABLES DE COLOR (Opcional)
     ========================= */
  /*
  :root {
    --color-azul: #2D69B9;
    --color-gris: #606366;
    --color-verde: #009E73;
    --color-blanco: #FFFFFF;
    --color-negro: #000000;
  }
  */
  
  /* =========================
     ENCABEZADO (HEADER)
     ========================= */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    padding: 1rem 2rem;
    /* position: relative; Para posicionar el menú en modo móvil */
    /* Ajustes para que el header sea fijo en la parte superior */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* O un valor alto para asegurar que quede encima del contenido */
  }

  img {
    max-width: 100%;
    height: 100px;
    display: flex;
  }

/* Asegúrate de que el bloque .logo se alinee a la izquierda */
.logo {
  text-align: left;
}
  
  .logo a {
    font-weight: bold;
    font-size: 1.4rem;
    color: #2D69B9; /* Azul ejemplo */
  }
  
  /* Ícono hamburguesa: oculto en pantallas grandes */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 1rem;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
  }
  
  /* =========================
     MENÚ NAVEGACIÓN (ESCRITORIO)
     ========================= */
  .navbar ul {
    list-style: none;
    display: flex; /* Menú horizontal por defecto */
    gap: 2rem;
  }
  
  .navbar a {
    color: #606366;
    transition: color 0.3s;
  }
  .navbar a:hover {
    color: #2D69B9;
  }

  /* Dropdown styles */
  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropbtn {
    display: flex;
    align-items: center;
  }

  .dropbtn .material-icons {
    font-size: 20px;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
  }

  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }

  .dropdown-content a:hover {background-color: #f1f1f1;}

  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* =========================
     ANIMACIÓN HAMBURGUESA (Opcional)
     ========================= */
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
  }
  
  /* =========================
     SECCIÓN HERO
     ========================= */

  /* .hero { */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* text-align: center; */
    /* height: 50vh; Ajustar a tu gusto */
    /* background: #c0c0c0; Ejemplo de fondo gris claro */
    /* padding: 2rem; */
    /* margin-top: 100px; */
  /* } */
  /* .hero-content { */
    /* max-width: 600px; */
  /* } */
  .hero {
    position: relative;
    align-items:self-start;
    overflow: hidden;
    margin-top: 100px;
    height: 100vh; /* Ajusta la altura según prefieras */
  }
  
  /* Contenedor del carrusel ocupa toda la sección */
  .carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;

  }
  
  /* Cada slide se superpone y se muestra/oculta mediante la opacidad */
  .carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  /* La imagen del slide activo */
  .carousel-slide.active {
    opacity: 1;
  }
  
  /* La imagen se ajusta al contenedor sin distorsionarse */
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero h1 {
    font-size: 5rem;
    color: #2d6ab9;
    margin-bottom: 0rem;
  }

  .hero h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0rem;
  }

  .hero p {
    font-size: 1.5rem;
    margin-bottom: 0rem;
  }
  .btn-hero {
    background-color: #009E73; /* Verde */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  .btn-hero:hover {
    background-color: #00785d; /* Tonalidad más oscura */
  }
  
  /* =========================
   CONTENIDO DEL HERO
   ========================= */
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 1rem;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.5);
  }

  /* =========================
     SECCIÓN SERVICIOS
     ========================= */
  .servicios {
    padding: 3rem 2rem;
    text-align: center;
    background-color:#f9f9f9;
  }
  .servicios h2 {
    font-size: 1.8rem;
    color: #2D69B9;
    margin-bottom: 2rem;
  }
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 6px;
  transition: box-shadow 0.3s;
}
  .servicio-card:hover {
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
  }
  
  .mas-servicio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #28a745;
    padding: 1rem;
    border-radius: 6px;
    transition: box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
    /* margin-top: 10rem;
    margin-bottom: 10rem; */
    width: 15rem;
    font-size: 1.1rem;
    margin: auto;
  } 

  .mas-servicio-card:hover {
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    background-color: #218838;
  }

  .mas-servicio-card a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
  }
  .mas-servicio-card a:hover {
    color: #00785d;
  }

  /* =========================
     SECCIÓN SOLUCIONES
     ========================= */
  .soluciones {
    padding: 3rem 2rem;
    text-align: center;
    background-color:#ffffff;
  }
  .soluciones h2 {
    font-size: 1.8rem;
    color: #2D69B9;
    margin-bottom: 2rem;
  }

  /* =========================
     SECCIÓN DE MARCAS
     ========================= */
  .brands {
    padding: 3rem 0;
    background-color: #fff;
    overflow: hidden;
    text-align: center;
  }
  
  .brands h2 {
    color: #2D69B9;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  .brands-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .brands-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 20s linear infinite;    /* Velocidad de la animación */
    padding: 1rem 0;
  }
  
  .brands:hover .brands-track {
    animation-play-state: paused;
  }
  
  .brand-item {
    height: 80px;
    width: 200px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .brand-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%) contrast(1); /* Grises */
    transition: all 0.3s ease;  /* Transición suave */
  }
  
  .brand-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.4);    /* Escala al pasar el mouse */
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200px * 10.8)); /* Width of one set of brands */
    }
  }
  .servicio-card h3 {
    font-size: 1.2rem;
    color: #2D69B9;
    margin-bottom: 0.8rem;
  }
  /* =========================
     SECCIÓN ACERCA DE
     ========================= */
  /* Contenedor principal de la sección "acerca" */
  .acerca {
    display: flex;                /* Activa Flexbox */
    justify-content: center;      /* Centra horizontalmente los elementos */
    align-items: center;          /* Centra verticalmente los elementos */
    flex-wrap: wrap;              /* Permite que se envuelvan en dispositivos pequeños */
    /* margin-top: 100px; */
    padding-top: 6rem;                /* Espacio interior opcional */
    padding-bottom: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }

  /* Estilo para el bloque de contenido textual */
  .acerca-content {
    flex: 1 1 300px;              /* Flexibilidad para crecer o encogerse; mínimo 300px */
    text-align: justify;           /* Centra el texto dentro del bloque */
    font-size: 22px;
    padding: 1rem;
  }

  /* Estilo para el bloque que contiene la imagen */
  .acerca-imagen {
    /* flex: 1 1 300px;              Flexibilidad similar al contenido textual */
    text-align: center;           /* Centra la imagen en su contenedor */
    padding: 1rem;
  }

  /* Asegura que la imagen se ajuste al ancho de su contenedor sin distorsión */
  .acerca-imagen img {
    max-width: 100%;
    height: 250px;
    display: inline-block;
  }

  /* =========================
     SECCIÓN CONTACTO
     ========================= */
  .contacto {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f5f5f5;
  }
  .contacto h2 {
    font-size: 1.8rem;
    color: #2D69B9;
    margin-bottom: 1rem;
  }
  .contacto p {
    margin-bottom: 2rem;
  }
  
  .contacto button {
    background-color: #2D69B9;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
  }
  .contacto button:hover {
    background-color: #1f4d8b;
  }

  /* Contenedor del formulario (para centrar y limitar el ancho) */
.form-contacto {
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
}

/* Cada grupo de label + input/textarea */
.form-contacto .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Los labels tendrán un ancho fijo y se alinean a la derecha */
.form-contacto label {
  flex: 0 0 120px;  /* ancho fijo para el label */
  margin-right: 1rem;
  text-align: right;
  font-weight: bold;
}

/* Los inputs y textarea ocuparán el resto del espacio */
.form-contacto input[type="text"],
.form-contacto input[type="email"],
.form-contacto textarea {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/* Permite que el textarea se pueda redimensionar verticalmente */
.form-contacto textarea {
  resize: vertical;
}
  
  /* =========================
     PIE DE PÁGINA
     ========================= */
  .footer {
    text-align: center;
    background-color: #2D69B9;
    color: #fff;
    padding: 1rem;
  }

  /* =========================
     SERVICE DETAIL PAGE
     ========================= */
  .service-detail {
    padding: 120px 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .service-detail h1 {
    font-size: 2.5rem;
    color: #2D69B9;
    margin-bottom: 1.5rem;
  }

  .service-detail p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
  }

  /* =========================
     VER MAS LINK
     ========================= */
  .ver-mas {
    margin-top: auto;
    padding-top: 1rem;
    color: #2D69B9;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
  }

  .ver-mas:hover {
    color: #1f4d8b;
  }
  
  /* =========================
     MEDIA QUERIES: <= 760px
     ========================= */
  @media (max-width: 760px) {
    /* Mostrar hamburguesa */
    .hamburger {
      display: flex; 
    }
  
    /* Por defecto, ocultar el menú */
    .navbar ul {
      display: none; 
      flex-direction: column;
      gap: 1rem;
      position: absolute;
      top: 100px; /* Ajustar según altura del header */
      right: 0;
      background-color: #fff;
      padding: 1rem 2rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
  
    /* Si navbar-show está presente, se muestra */
    .navbar.navbar-show ul {
      display: flex;
    }
  
    /* Ajustes de la cabecera */
    .header {
      padding: 1rem; 
    }
  
    /* Secciones con menos columnas en servicios */
    .servicios-grid {
      grid-template-columns: 1fr; /* una sola columna */
    }

    /* Mobile dropdown styles */
    .dropdown {
        position: static;
    }

    .dropdown-content {
        display: none; /* Hide by default on mobile */
        position: static;
        box-shadow: none;
        min-width: unset;
        padding-left: 1rem; /* Indent dropdown links */
        background-color: transparent;
    }

    .dropdown-content.show {
        display: block; /* Show when toggled */
    }

    .dropdown-content a {
        padding: 8px 0;
        color: #606366; /* Match other nav links */
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }
  
    /* Ajustes en hero */
    .hero {
      height: 100vh;
      padding: 2rem 1rem;
    }
    .hero h1 {
      font-size: 3rem;
    }

    .hero h2 {
      font-size: 1.5rem;
    }

    .hero h3 {
      font-size: 1rem;
    }

    /* .acerca-imagen img {
      height: 150px;
    } */
  }