/* Reset y estilos generales */
* {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
  }
  
  h1 { 
    font-size: 3.5em; 
  }
  
  h2 { 
    font-size: 2.7em; 
  }
  
  h3 { 
    font-size: 2em; 
  }
  
  p { 
    font-size: 1.25em; 
  }
  
  ul { 
    list-style: none; 
  }
  
  li { 
    font-size: 1.25em; 
  }
  
  button {
    font-size: 1.5em;
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,.5);
    box-shadow: 2px 2px 10px rgba(0,0,0,.5);
    background-color: #2563eb;
    cursor: pointer;
    color: #fff;
  }
  
  button:hover {
    background-color: #153986;
  }
  
  .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
  }
  
  /* Header */
  header {
    padding: 15px 0;
    background-color: #f8f8f8;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    width: 150px;
    height: auto;
  }
  
  nav {
    display: flex;
    gap: 20px;
  }
  
  nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    font-weight: 700;
  }
  
  nav a:hover {
    color: #2563eb;
  }
  
  header button a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    padding: 0 10px;
  }
  
  header button {
    padding: 0;
  }
  
  /* Hero section */
  #hero {
    background-color: #1322f3;
    padding: 50px 0;
  }
  
  #hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-text h1 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 20px;
  }
  
  .beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .beneficio-circle {
    background-color: #fff;
    color: #1322f3;
    border-radius: 50%;
    padding: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .beneficio-circle:hover {
    transform: scale(1.05);
  }
  
  .beneficio-circle p {
    margin: 0;
    font-size: 1em;
    font-weight: bold;
  }
  
  #hero {
    background-color: #1322f3;
    padding: 50px 0;
  }
  
  #hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-text h1 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 20px;
  }
  
  .hero-text p {
    font-size: 1.2em;
    color: #bebbbb;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
  }
  
  .hero-button {
    padding: 12px 25px;
    border-radius: 5px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
  }
  
  .hero-button:hover {
    background-color: #153986;
    text-decoration: none;
  }
  
  .hero-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 100%;
  }
  
  .hero-images img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
  }
  #hero-agenda {
    background-color: #1322f3;
    padding: 50px 0;
  }
  
  .hero-agenda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .hero-agenda-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .hero-agenda-text {
    flex: 1;
  }
  
  .hero-agenda-text h1 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 20px;
  }
  
  .beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .beneficio-circle {
    background-color: #fff;
    color: #1322f3;
    border-radius: 50%;
    padding: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .beneficio-circle:hover {
    transform: scale(1.05);
  }
  
  .beneficio-circle p {
    margin: 0;
    font-size: 1em;
    font-weight: bold;
  }
  
  .hero-agenda-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    grid-template-rows: repeat(2, auto);   /* 2 filas */
    gap: 15px;
    max-width: 100%;
  }
  
  .hero-agenda-images img {
    width: 100%;
    height: 320px; /* antes 180px */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  /* Sobre Nosotros*/
  #Sobre-Nosotros .container{
    margin: 0 auto;
    background-color:#f8f8f8 ;
    
  }
  #Sobre-Nosotros h2{
    margin-bottom: 50px;
    color: #2563eb;
    font-size: 2.5em;
  }
  #Sobre-Nosotros p{
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;

  }
  
  
  /* Servicios section */
  #Nuestros-Servicios {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
  }
  
  #Nuestros-Servicios .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  #Nuestros-Servicios h2 {
    margin-bottom: 50px;
    color: #2563eb;
    font-size: 2.5em;
  }
  
  .servicios {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .carta {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    transition: transform 0.3s;
  }
  
  .carta:hover {
    transform: translateY(-10px);
  }
  
  .carta img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
  }
  
  .carta h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
  }
  
  .carta p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
  }
  
  .carta button {
    color: #fff;
    border: 2px solid #153986;
    border-radius: 8px;
    font-size: 1.2em;
    transition: .3s;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    padding: 15px 30px;
  }
  
  .carta button a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 100%;
    height: 100%;
  }
  
  /* Por qué elegirnos section */
  #Porqueelegirnos {
    padding: 80px 0;
    background-color: #f8f8f8;
  }
  
  #Porqueelegirnos .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #Porqueelegirnos h2 {
    margin-bottom: 50px;
    color: #2563eb;
    font-size: 2.5em;
    text-align: center;
  }
  
  .beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .beneficio-item {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .beneficio-item:hover {
    transform: translateY(-5px);
  }
  
  .beneficio-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
  }
  
  .beneficio-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
  }
  
  .beneficio-item p {
    font-size: 1em;
    color: #666;
    margin: 0;
  }
  
  /* Contacto section */
  #ContactaConNosotros {
    padding: 60px 0;
    background-color: #1f2937;
    color: #fff;
  }
  
  #ContactaConNosotros h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
  }
  
  .contacto-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    align-items: flex-start;
  }
  
  .contacto-imagen {
    flex: 1;
  }
  
  .contacto-imagen img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px #949090;
  }
  
  .contacto-content {
    flex: 1;
    display: flex;
    gap: 30px;
  }
  
  .contacto-info {
    flex: 2;
  }
  
  .info-contacto-con-iconos ul {
    padding: 0;
    margin: 20px 0;
  }
  
  .info-contacto-con-iconos li {
    margin-bottom: 15px;
    list-style: none;
  }
  
  .info-contacto-con-iconos a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7db5be;
    font-size: 1.1em;
    text-decoration: none;
    transition: color .3s;
  }
  
  .info-contacto-con-iconos a:hover {
    color: #2258cc;
  }
  
  .info-contacto-con-iconos .icon {
    width: 25px;
    height: 25px;
  }
  
  .tecnico-titulo {
    font-weight: 700;
    margin: 15px 0;
    color: #fff;
    font-size: 1.1em;
  }
  
  .tecnico-info {
    margin-top: 25px;
    line-height: 1.6;
  }
  
  .contacto-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  
  .contacto-logo img {
    max-width: 150px;
    height: auto;
    align-self: flex-start;
  }
  
  /* Footer */
  .footer-refrialaska {
    background-color: #222e3f;
    color: #9ca3af;
    padding: 40px 0 20px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
  }
  
  .footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  .footer-title {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
  }
  
  .footer-text {
    font-size: .95em;
    line-height: 1.6;
    margin: 8px 0;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-link {
    color: #9ca3af;
    font-size: .95em;
    line-height: 1.8;
    text-decoration: none;
    transition: color .3s;
  }
  
  .footer-link:hover {
    color: #fff;
  }
  
  .footer-services {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-services li {
    margin-bottom: 8px;
    line-height: 1.5;
  }
  
  .footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    margin-top: 20px;
  }
  
  .copyright-text {
    font-size: .9em;
    color: #9ca3af;
    margin: 0;
  }
  
  /* Modales */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.8);
    overflow-y: auto;
  }
  
  .modal-container {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .modal-content {
    background-color: #f8f8f8;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    position: relative;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    animation: .3s fadeIn;
  }
  
  @keyframes fadeIn {
    from { 
      opacity: 0;
      transform: translateY(-20px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    z-index: 10;
  }
  
  .modal-body {
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .modal-content h2 {
    color: #153f79;
    text-align: center;
  }
  .galeria-titulo {
    font-size: 1.3em;
    color: #2563eb;
    margin: 25px 0 15px;
    font-weight: 700;
    
  }
  
 /* Contenedor de galería - SOLO SCROLL MANUAL */
.galeria-container {
  width: 100%;
  overflow-x: auto; /* Permite scroll horizontal */
  padding: 20px 0;
  scrollbar-width: auto ; 
  cursor: grab; 
}

.galeria-container:active {
  cursor: grabbing;
}

.galeria-imagenes {
  display: flex;
  gap: 15px;
  width: max-content; /* Ancho según contenido (sin límite) */
  padding-bottom: 10px; /* Espacio para scrollbar */
}

/* Imágenes (mantén tus estilos) */
.galeria-imagenes img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #2563eb;
  flex-shrink: 0; /* Evita que se encojan */
  transition: transform 0.3s;
}

/* Efecto hover opcional */
.galeria-imagenes img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .galeria-imagenes {
      animation: slide-modal-mobile 25s linear infinite;
  }
  
  .galeria-imagenes img {
      width: 220px;
      height: 160px;
  }
  
}
  
  /* Imagen ampliada */
  .imagen-ampliada-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .imagen-ampliada-modal img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: 15px;
  }
  
  .imagen-descripcion {
    color: #fff;
    text-align: center;
    max-width: 90%;
  }
  
  .cerrar-imagen {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: 700;
    cursor: pointer;
  }
  
  /* Media Queries */
  @media (max-width: 992px) {
    .contacto-container {
      flex-direction: column;
    }
    
    .contacto-content {
      flex-direction: column;
      width: 100%;
    }
    
    .contacto-logo {
      justify-content: center;
      margin-top: 30px;
    }
    
    .contacto-logo img {
      max-width: 200px;
    }
    
    .modal-content {
      max-width: 90%;
    }
    
    .modal-body {
      padding: 25px;
    }
  }
  
  @media (max-width: 768px) {
    header .container {
      flex-direction: column;
      align-items: flex-start;
    }
    
    nav {
      flex-direction: column;
      gap: 10px;
      margin: 10px 0;
    }
    
    header button {
      margin-top: 10px;
    }
    
    .hero-buttons {
      flex-direction: column;
      gap: 10px;
    }
    
    .hero-button {
      width: 100%;
    }
    
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
    
    .hero-buttons {
      justify-content: center;
    }
    
    .hero-images {
      grid-template-columns: 1fr;
      max-width: 100%;
    }
    
    .beneficios-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      max-width: 500px;
    }
    
    .footer-section {
      flex: 100%;
      margin-bottom: 25px;
    }
    
    .footer-title {
      margin-bottom: 10px;
    }
    
    .modal-body {
      padding: 20px;
    }
    
    
    .galeria-imagenes img {
      width: 250px;
      height: 180px;
    }
    
    .close {
      font-size: 25px;
      right: 15px;
      top: 10px;
    }
    
    .imagen-ampliada-modal img {
      max-width: 95%;
    }
    
    .cerrar-imagen {
      top: 10px;
      right: 20px;
      font-size: 30px;
    }
  }
  
  @media (max-width: 576px) {
    .modal-container {
      padding: 10px;
    }
    
    .modal-content {
      max-width: 95%;
    }
    
    .modal-body {
      padding: 15px;
    }
    
    .galeria-imagenes img {
      width: 220px;
      height: 150px;
    }
    
    h2 {
      font-size: 1.5em;
      margin-right: 30px;
    }
  }
  /* Sección Marcas*/
.marcas-section {
  padding: 50px 0;
  background: #f5f7fa;
  overflow: hidden;
  border-top: 1px solid #e1e5eb;
  border-bottom: 1px solid #e1e5eb;
  text-align: center;
  color: #2563eb;
}

.marcas-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marcas-slide {
  display: flex;
  animation: slide 25s linear infinite; 
  width: calc(150px * 12); /* Ajusta según cantidad de logos */
  align-items: center;
}

/* Animación principal (debe estar definida) */
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Mueve hasta la mitad del contenido duplicado */
}

/* Estilos para los logos */
.marcas-slide img {
  height: 60px;
  width: auto;
  margin: 0 25px;
  object-fit: contain;
  filter: none; /* Logos en color */
  opacity: 1;
  transition: transform 0.3s ease;
}

/* Efecto hover opcional */
.marcas-slide img:hover {
  transform: scale(1.1);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .marcas-slide {
      animation: slide-mobile 20s linear infinite;
  }
  
  .marcas-slide img {
      height: 40px;
      margin: 0 15px;
  }
  
  @keyframes slide-mobile {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
  }
}
/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.whatsapp-icon {
  margin-top: 4px;
}
@media (max-width: 768px) {
  .hero-agenda-content {
    flex-direction: column; /* Deja que el texto y las imágenes se apilen */
    align-items: flex-start; /* Alinea a la izquierda para mejor lectura */
  }
  
  .hero-agenda-text {
    flex: none; /* Quita el comportamiento flex-grow */
    width: 100%; /* Ocupa todo el ancho disponible */
    margin-bottom: 30px; /* Espacio abajo para separar de imágenes */
  }
  
  .hero-agenda-text h1 {
    font-size: 1.8em; /* Ajusta tamaño del título para pantallas pequeñas */
  }
  
  .hero-agenda-images {
    flex: none;
    width: 100%;
    grid-template-columns: 1fr 1fr; /* Dos columnas en imágenes */
    grid-template-rows: auto; /* Permite que las filas se ajusten */
    gap: 10px;
  }
  
  .hero-agenda-images img {
    height: 200px; /* Ajusta altura para móviles, que no sea tan alta */
  }
}