/**************************************/
/* LOGO Y ENCABEZADO */
/**************************************/
.logo-central {
  max-width: 520px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .logo-central {
    max-width: 300px;
  }
}

.encabezado-principal {
  padding: 60px 0;
}

.slogan {
  font-family: 'Alex Brush', cursive;
  font-size: 2.6rem;
  font-weight: normal;
  color: #fff;
  margin-top: 0.5rem;
  text-transform: none;
  position: relative;
  left: 60px;
}

@media (max-width: 768px) {
  .slogan {
    font-size: 1.8rem;
    left: 0;
    text-align: center;
  }
}


/**************************************/
/* BOTÓN OUTLINE PRIMARIO */
/**************************************/
.btn-outline-primary {
  font-weight: 600;
  border-width: 2px;
}


/**************************************/
/* LISTAS DE DOS COLUMNAS */
/**************************************/
.list-columns {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 0;
}

.list-columns ul {
  flex: 1 1 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-columns li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  text-align: justify;
}

.list-columns li i {
  margin-right: 8px;
  margin-top: 3px;
}


/**************************************/
/* FRASE “ALIADO ESTRATÉGICO” Y SEPARADORES */
/**************************************/
.claim {
  background: #f6f9ff;
  border-left: 4px solid var(--prim);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}

.claim .quote {
  color: var(--prim);
  font-weight: 800;
  margin: 0 .25rem;
}

.claim-separator {
  background: #000;
  padding: 28px 0;
}

.claim-separator .claim-text {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

/*
.claim-separator .claim-text {
  font-family: 'Allura', cursive;
  font-weight: 400;
  letter-spacing: 0;
}
*/


/**************************************/
/* FORMULARIO DE CONTACTO */
/**************************************/
#contacto .form-label {
  font-weight: 600;
}

#contacto .form-control,
#contacto .form-select {
  min-height: 44px;
}


/**************************************/
/* BOTÓN SUBIR AL TOP */
/**************************************/
#btnSubir {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  font-size: 18px;
  background-color: #0d6efd;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  backdrop-filter: blur(3px);
}

#btnSubir:hover {
  background-color: #0b5ed7;
}


/**************************************/
/* GALERÍA HORIZONTAL CON SCROLL */
/**************************************/
.gallery-wrapper {
  position: relative;
  height: 220px;
  overflow-x: auto;
  overflow-y: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.img-gallery {
  height: 200px;
  width: 300px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.img-gallery:hover {
  transform: scale(1.05);
}

/**************************************/
/* GALERÍA RESPONSIVE ESTILO GRID */
/**************************************/
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 10px;
}

.gallery a {
  flex: 1 1 calc(33.333% - 20px); /* 3 columnas en desktop */
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/**************************************/
/* RESPONSIVE TABLET */
/**************************************/
@media (max-width: 768px) {
  .gallery a {
    flex: 1 1 calc(50% - 20px); /* 2 columnas */
    max-width: calc(50% - 20px);
  }

  .img-gallery {
    width: 250px;
    height: 160px;
  }

  .gallery-wrapper {
    height: 180px;
  }
}

/* ============================== */
/* GALERÍA DE PROYECTOS GENERAL  */
/* ============================== */
.gallery-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.gallery-track a {
  flex: 0 0 100%;
  scroll-snap-align: start;
  text-align: center;
}

.img-gallery {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Estilo para escritorio opcional */
@media (min-width: 768px) {
  .gallery-track a {
    flex: 0 0 300px;
  }

  .img-gallery {
    height: 200px;
  }
}
/* ===========================
   GALERÍA SLIDER RESPONSIVE
   =========================== */
.gallery-slider{
  position: relative;
}
.gal-viewport{
  overflow: hidden;
}
.gal-track{
  display: flex;
  gap: 16px;                 /* separación entre items */
  will-change: transform;
  transition: transform .4s ease;
}
.gal-item{
  display: block;
  flex: 0 0 100%;            /* Mobile: 1 por vista */
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.gal-item img{
  width: 100%;
  height: 280px;             /* Alto uniforme */
  object-fit: cover;
  display: block;
}

/* Flechas */
.gal-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.gal-btn:hover{ background: rgba(0,0,0,.75); }
.gal-prev{ left: 6px; }
.gal-next{ right: 6px; }

/* Tablet */
@media (min-width: 576px){
  .gal-item img{ height: 300px; }
}

/* Desktop (≥992 px): 4 por vista */
@media (min-width: 992px){
  .gal-item{
    flex: 0 0 calc((100% - 3 * 16px) / 4); /* 4 columnas con gap */
    max-width: calc((100% - 3 * 16px) / 4);
  }
  .gal-item img{ height: 220px; }
}

/* Opcional: pausa flechas en mobile si estorban */
@media (max-width: 575.98px){
  .gal-btn{ width: 36px; height: 36px; }
}
/* Evita colapso del viewport mientras cargan imágenes */
.gal-viewport{ min-height: 220px; }
@media (min-width: 576px){ .gal-viewport{ min-height: 300px; } }
@media (min-width: 992px){ .gal-viewport{ min-height: 220px; } }
