:root{
  --brand:#1e3a5f;
  --accent:#f28b82;       /* combina con tu banner */
  --text:#293044;
  --muted:#6b7280;
  --bg:#ffffff;
  --line:#eef0f3;
  --shadow:0 6px 20px rgba(20,25,38,.08);
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
}

/* Banner */
.top-banner {
  background: var(--accent);   /* color de fondo */
  color: #fff;                 /* texto blanco */
  text-align: center;
  font-size: clamp(12px, 2vw, 16px); /* 🔑 se adapta al ancho de pantalla */
  padding: 10px 0;             /* espacio arriba y abajo */

  width: 100%;                 /* ocupa siempre todo el ancho */
  max-width: 100vw;            /* nunca más ancho que el viewport */
  height: auto;                /* se ajusta al contenido */

  margin: 0;
  border: 0;
  display: block;

  position: relative;
  box-sizing: border-box;
  line-height: 1.4;
  word-wrap: break-word;       /* si el texto es largo, no se sale */
}

/* Ajustes finos para pantallas pequeñas */
@media (max-width: 768px) {
  .top-banner {
    font-size: 13px;
    padding: 8px 5px;          /* menos padding en tablets/móviles */
  }
}

@media (max-width: 480px) {
  .top-banner {
    font-size: 12px;
    padding: 6px 4px;          /* aún más compacto en celulares */
  }
}

/* Ocultar los mensajes por defecto */
.banner-message {
  display: none;
  transition: opacity 0.5s ease;
}



.navbar{
  position: sticky;    /* 👈 la fija arriba */
  top:0;
  left:0;
  right:0;
  z-index:1000;        /* 👈 se mantiene sobre el resto */
  
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 20px;
  background:#fff;
  border-bottom:1px solid #eee;
}

.brand{font-weight:800; font-size:20px; color:#222; letter-spacing:.5px}

.main-banner {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.main-banner picture,
.main-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;  /* recorta bien si cambian proporciones */
}

/* Botón hamburguesa en el header */
.menu-toggle{
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
}
.menu-toggle:hover{ color: var(--accent); }

/* Drawer lateral */
.sidebar{
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 280px;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 1100;            /* por encima de .navbar */
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar.open{ transform: translateX(0); }

.close-sidebar{
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  align-self: flex-end;
  cursor: pointer;
  color: var(--text);
}

.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.sidebar-nav a{
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.sidebar-nav a:hover{
  background: var(--line);
  color: var(--accent);
}

/* Fondo oscurecido */
.backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1090;
  opacity: 0;
  transition: opacity .2s ease;
}
.backdrop.show{ opacity: 1; }


.featured-head h2 {
  text-align: center;   /* Center the title */
  color: #f28b82;       /* Pink color */
  font-size: 32px;      /* Default font size for larger screens (matching "Quiénes Somos") */
  font-weight: bold;    /* Make the title bold */
  margin: 0;            /* Remove default margins */
  padding: 10px 0;      /* Adjust space above and below the title */
}

/* For tablets and smaller screens */
@media (max-width: 768px) {
  .featured-head h2 {
    font-size: 28px;   /* Matching font size for tablets */
    padding: 8px 0;    /* Less padding */
  }
}

@media (max-width: 480px) {
  .featured-head h2 {
    font-size: 24px;   /* Matching font size for mobile */
    padding: 6px 0;    /* Less padding for mobile */
  }
}

/* For very large screens (larger desktop) */
@media (min-width: 1200px) {
  .featured-head h2 {
    font-size: 36px;   /* Matching font size for very large screens */
    padding: 20px 0;   /* More padding for large screens */
  }
}



.product-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;  /* Make sure it takes full width */
}

.carousel-container {
  display: flex;
  justify-content: flex-start;
  animation: scroll-carousel 20s infinite linear;  /* Smooth and continuous scroll */
}

.carousel-slide {
  display: flex;
}

.carousel-item {
  flex: 0 0 25%;  /* Each image takes up 25% of the container width */
  padding: 10px;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* Animación para el desplazamiento automático */
@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-25%);  /* Shift the first 25% */
  }
  50% {
    transform: translateX(-50%);  /* Shift the next 25% */
  }
  75% {
    transform: translateX(-75%);  /* Shift the next 25% */
  }
  100% {
    transform: translateX(-100%);  /* Shift the final 25%, back to start */
  }
}





/* Eliminar márgenes innecesarios entre el carrusel y la sección "Quiénes Somos" */
.product-carousel {
  margin-bottom: 10px; /* Reducir espacio inferior del carrusel */
}

.quienes-somos {
  background-color: var(--bg);
  padding: 30px 20px;  /* Reducir padding superior e inferior */
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow);
  margin-top: 0; /* Eliminar margen superior */
}

.quienes-somos h2 {
  font-size: 32px;
  color: var(--accent); /* El mismo tono de color del banner */
  margin-bottom: 15px;  /* Reducir espacio inferior */
}

.quienes-somos p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px auto;  /* Reducir margen inferior */
}

.quienes-somos .container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Media Queries para dispositivos pequeños y tabletas */

/* Tablet (pantallas medianas) */
@media (max-width: 768px) {
  .quienes-somos h2 {
    font-size: 28px;
    margin-bottom: 12px;  /* Reducir aún más el espacio */
  }

  .quienes-somos p {
    font-size: 16px;
    margin-bottom: 15px;  /* Reducir espacio inferior */
  }

  .quienes-somos .container {
    padding: 0 10px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .quienes-somos h2 {
    font-size: 24px;
    margin-bottom: 10px;  /* Reducir espacio inferior */
  }

  .quienes-somos p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;  /* Reducir espacio inferior */
  }

  .quienes-somos .container {
    padding: 0 5px;
  }
}

/* Dispositivos muy grandes */
@media (min-width: 1200px) {
  .quienes-somos h2 {
    font-size: 36px;
    margin-bottom: 25px;  /* Reducir espacio inferior */
  }

  .quienes-somos p {
    font-size: 20px;
  }
}









/* ===== TRUST BADGES ===== */
.trust-badges{
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.badges-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;             /* móvil */
}

.badge{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}

.badge:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20,25,38,.12);
}

.badge i{
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--accent);
  line-height: 1;
}

.badge h3{
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 800;
}

.badge p{
  grid-column: 2 / -1;   /* texto debajo del título, alineado al icono */
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: clamp(13px, 2.2vw, 15px);
  line-height: 1.45;
}

/* Responsivo */
@media (min-width: 640px){
  .badges-grid{ grid-template-columns: repeat(2, 1fr); }  /* tablets */
}
@media (min-width: 992px){
  .badges-grid{ grid-template-columns: repeat(4, 1fr); }  /* desktop */
  .badge{ padding: 16px 18px; }
}











/* Footer */
.footer {
  background-color: var(--accent); /* Utilizando el color de acento para combinar */
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-logo-img {
  max-width: 120px;
  height: auto;
   filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 20px;  /* Mantener los íconos en fila con un espacio entre ellos */
  justify-content: center; /* Centrar los íconos en el footer */
}

.footer-social-icon {
  color: #fff;
  font-size: 24px;  /* Un tamaño de íconos adecuado */
}

.footer-social-icon:hover {
  color: var(--brand); /* Iconos de redes sociales en color de marca al pasar el ratón */
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 20px;  /* Espacio inferior para mantener el diseño limpio */
}

/* Media Queries para diferentes dispositivos */

/* Móviles (pantallas pequeñas) */
@media (max-width: 480px) {
  .footer-content {
    padding: 10px;
  }

  .footer-logo-img {
    max-width: 100px; /* Reducir el tamaño del logo en móviles */
  }

  .footer-social {
    gap: 15px;
  }

  .footer-social-icon {
    font-size: 22px; /* Reducir el tamaño de los íconos en móviles */
  }
}

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
  .footer-social {
    gap: 20px;
  }

  .footer-logo-img {
    max-width: 110px; /* Ajustar el logo para pantallas medianas */
  }

  .footer-social-icon {
    font-size: 26px;  /* Ajustar el tamaño de los íconos para pantallas medianas */
  }
}

/* Escritorios y pantallas grandes */
@media (min-width: 1200px) {
  .footer-content {
    flex-direction: row;  /* Mostrar los íconos y logo en línea */
    justify-content: space-between;  /* Separar logo e íconos */
  }

  .footer-logo-img {
    max-width: 150px; /* Aumentar el tamaño del logo en pantallas grandes */
  }

  .footer-social {
    gap: 30px;  /* Mayor espacio entre los íconos */
  }

  .footer-social-icon {
    font-size: 28px; /* Aumentar el tamaño de los íconos para pantallas grandes */
  }
}


.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Centers the logo */
}

.logo {
  max-width: 120px;  /* Adjust logo size */
  height: auto;
}











/* Estilos generales */
.testimonios {
  background-color: #f0f8ff;
  padding: 50px 0;
}

.section-head h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ff6f61;
}

.section-head .section-sub {
  text-align: center;
  font-size: 1.2rem;
  color: #777;
}

.carousel {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
}

.testimonio-card {
  flex-shrink: 0;
  min-width: 320px;
  max-width: 400px;
  margin: 0 15px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.testimonio-card:hover {
  transform: scale(1.05);
}

.testimonio-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.testimonio-author {
  font-size: 1.2rem;
  color: #ff6f61;
  font-weight: bold;
}

.carousel-btn {
  display: none; /* Si no deseas flechas */
}

/* Responsividad */
@media (max-width: 768px) {
  .testimonio-card {
    min-width: 250px;
    max-width: 280px;
  }
  .carousel {
    width: 100%;
  }
}
