  body {
  background-color: hsl(199, 71%, 79%);
  

  font-family: "Raleway", "Ubuntu";
 
}

/* Logo central */

header{
    display:flex;
    justify-content:center;
}

#logoNavbar{
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: hsl(199, 71%, 79%);
    width: 100%;
    transition: opacity .4s ease;
}

.banner {
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/*Carrousel de logos*/
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.logo-carousel{
    height: 250px;
    object-fit: contain;
}
 
/*Carrousel de logos responsive*/
@media (max-width:768px){

    .logo-carousel{
        height:90px;
    }

}

/* En pantallas chicas */
@media (max-width: 768px) {
  #logoNavbar img {
    height: 25vh;       /* ocupa el 25% de la pantalla */
  }
}

/* En pantallas grandes */
@media (min-width: 769px) {
  #logoNavbar img {
    max-height: 150px;  /* límite de altura en escritorio */
  }
}

/* Tipografía */
h1, h2 {
  color: lab(10.63% 2.71 -7.62);
  font-family: 'Ubuntu', serif;
  text-align: center;
  padding: 20px;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }

p, #primero1 {
  color: lab(0.26% 0.02 -0.85);
  font-size: 17px;
  margin: 4%;
  text-indent: 10%;
}

/* Footer base */
.site-footer {
  position: relative;
  background: #212529;
  color: #f8f9fa;
  padding: 12px 0;
  box-sizing: border-box;
  overflow: hidden;               /* evita que el footer provoque scroll horizontal */
}

/* Contenedor centrado (mantiene el ancho visual del sitio) */
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;                /* 20px "gutter" interno */
  height: 1px;                    /* ocupa espacio mínimo, no cambia la altura del footer */
}

/* Logo: 20px desde el borde izquierdo del viewport */
.footer-logo {
  position: absolute;
  left: 20px;                     /* 20px desde el borde izquierdo solicitado */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
}
.footer-logo img {
  height: 50px;
  max-height: 50px;
  width: auto;
  display: block;
}

#textoFooter{
  margin-right: 0;

}

/* Texto: 20px desde el borde derecho del viewport */
/* max-width calculado para no provocar overflow ni ampliar la página */
.footer-edge-text {
  position: absolute;
  right: 20px;                    /* 20px desde el borde derecho solicitado */
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 10;
  max-width: calc(100% - 160px);  /* deja espacio para logo + márgenes; evita scroll horizontal */
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 0;
}

/* Lista y enlaces */
.footer-edge-text ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-edge-text li {
  margin: 0;
  padding: 0;
  white-space: normal;
}
.footer-edge-text a.wa { color: #28a745; text-decoration: none; }
.footer-edge-text a.ig { color: #7a418b; text-decoration: none; }

/* RESPONSIVE: en pantallas pequeñas ambos elementos vuelven al flujo y se centran */
@media (max-width: 767.98px) {
  .site-footer { padding: 10px 0; }

  

  .footer-logo img { height: 44px; max-height: 44px; }

  

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
  }
}

/* Protección extra en pantallas muy angostas */
@media (max-width: 420px) {
  .footer-edge-text { font-size: 0.9rem; max-width: 92%; right: 12px; left: 12px; }
  .footer-logo img { height: 40px; max-height: 40px; }
}


/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30vh;   /* 30% de la altura de la pantalla */
  right: 20px;
  z-index: 100;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
}

/* Ajustes en pantallas chicas */
@media (max-width: 768px) {
  h1 { font-size: 20px; }
  h2 { font-size: 20px; }
  p, #primero1, li { font-size: 12px; }
  .whatsapp-float img { width: 50px; }
}
