:root {
  --color-bg: #111;
  --color-text: #222;
  --color-accent: #f6c000;
}
/* global.css — reset y base tipográfica */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Nota: footer y main están en layout.css — no los repetir acá */
/* layout.css — estructura base */

*  { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #d0d0d0;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

main {
  flex: 1;
  width: 100%;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


.load-more-container {
    text-align: center;
    margin: 30px 0;
}

#load-more-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

#load-more-btn:hover {
    transform: scale(1.05);
}

section {
  width: 100%;
  padding: 0;
}

/* También se repite en global, unificado aquí */
section:not(:first-child) { /* evita doble padding */ }

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}
.tit-seleccionar{
  margin-top: 20px;
}
.galeria{
  margin-top: 20px;
}

/*Manejo del spinner*/
.portada { position: relative; }

.img-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.img-spinner::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #ddd;
    border-top-color: #e6b800; /* amarillo de tu marca */
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.portada.loaded .img-spinner {
    display: none;
}
/*fin spinner*/

.portada img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portada.loaded img {
    opacity: 1;
}


/*conexion lenta*/

.lite-mode * {
  animation: none !important;
  transition: none !important;
}

/* Por defecto: normal visible, lite oculta */
.busca-lite   { display: none; }

/* En lite-mode: se invierten */
.lite-mode .busca-normal { display: none; }
.lite-mode .busca-lite   { display: block; }


.fallback-close-wrapper {
    position: absolute;
    top: -17px;
    right: 26px;
    z-index: 10000;
    width: 50px;
    height: 50px;
}

.fallback-wrapper {
    position: absolute;
    bottom: -70px;
    left: 0;
    right: 0;
    display: grid;
    /* grid-template-columns: 58px 1fr 58px; */
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
    z-index: 9999; 
} 

 .fallback-button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
}
.fallback-wrapper .popup-button.boton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.fallback-button:hover { background: rgba(0, 0, 0, 0.8); }



@media (max-width: 576px) {
  .container { padding: 0 30px; }
  .mfp-content { margin-top: -15px; }
}

/* ── Footer ── */
#footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background-color: #111;
  color: #fff;
  text-align: center;
  margin-top: auto;
}

.footer-btn {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  align-self: center;
}

.footer-copy {
  font-size: 20px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  #footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }
  .footer-btn { align-self: flex-start; }
}
/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1000;
}


.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
}

/* ===== MENU ===== */
.navbar-menu ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}


.navbar-menu a:hover {
  color: #f6c000;
}

/* ===== HAMBURGUESA ===== */
/* .navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
} */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px; /* FIX: área de toque más grande en mobile */
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: all 0.3s ease;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #111;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-menu.open {
    max-height: 300px;
  }

  .navbar-menu ul {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

   .navbar-menu a {
    font-size: 16px;    /* mínimo iOS para evitar zoom automático */
    padding: 6px 0;     /* FIX: área de toque más cómoda en cada link */
    display: block;
  }
  

  
}/* magnific-pop-base.css — base del plugin Magnific Popup */

/* ── Fondo ── */
.mfp-bg {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #0b0b0b;
  opacity: 0.8;
}

/* ── Wrapper ── */
.mfp-wrap {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
}

/* ── Contenedor ── */
.mfp-container {
  inset: 0;
  display: block;
}

.mfp-container::before { display: none !important; }

/* ── Contenido ── */
.mfp-content {
  position: relative;
  width: auto;
  max-width: 100%;
  /* margin: 0 auto; */
  display: block;
  margin-top: -40px;
}

/* ── Imagen ── */
img.mfp-img {
    /* Proporción fija 9:16 */
  aspect-ratio: 9 / 16;

  /* Límites: nunca sale de la pantalla */
  max-height: 82vh;
  max-width: calc(82vh * 9 / 16); /* ancho máximo derivado del alto */

  /* Tamaño natural: crece hasta los límites */
  width: auto;
  height: auto;



  display: block;
  /* max-width: 90vw;
  max-height: 90vh; */
  /* width: auto;
  height: auto; */
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

/* ── Ocultos ── */
.mfp-hide { display: none !important; }

/* ── Botón cerrar (ocultado, reemplazado por Lottie) ── */
.mfp-close {
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 44px;
  font-size: 28px;
  color: #fff;
  opacity: 0.7;
  background: none;
  border: 0;
  cursor: pointer;
}

.mfp-close:hover { opacity: 1; }

/* ── Flechas (ocultadas, reemplazadas por Lottie) ── */
.mfp-arrow {
  position: absolute;
  top: 50%;
  width: 90px;
  height: 110px;
  margin-top: -55px;
  cursor: pointer;
  opacity: 0.6;
}

.mfp-arrow:hover { opacity: 1; }
.mfp-arrow-left  { left: 0; }
.mfp-arrow-right { right: 0; }

/* ── Figura ── */
.mfp-figure {
  margin: 0 auto;
  text-align: center;
}

/* ── Barra inferior ── */
.mfp-bottom-bar {
  position: absolute;
  left: 0;
  width: 100%;
}

.mfp-title { color: #f3f3f3; }

/* ── Contador (oculto) ── */
.mfp-counter {
  position: absolute;
  top: 20px; right: 0;
  background: rgba(0,0,0,.55);
  padding: 5px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  z-index: 9999;
  display: none !important;
}
/* components.css — componentes de UI */

/* ── Portada ── */
.portada {
  width: 100%;
  display: flex;
}

.portada img,
.portada picture {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Intro ── */
.intro {
  width: 100%;
  display: flex;
  justify-content: center;
}

.intro > img { width: 95%; }

/* ── Promo ── */
.promo > img {
  width: 70%;
  margin-bottom: -100px;
}

/* ── Modal legal ── */
#modalLegal { touch-action: manipulation; }

.modal-legal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-legal-box {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.modal-legal-cerrar {
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  background: #444;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
}

/* ── Título filtro ── */
/* Base: oculto, JS lo activa */
.tituloprin {
  display: none;
  width: 100%;
  min-height: 100px;
  /* background-size: contain; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 20px;
  opacity: 1;

   box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
  border-radius: 12px; /* opcional pero recomendado */

  /* transform: translateY(0);
  transition: all 0.6s ease; */
}
.tit-seleccionar img{
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
  border-radius: 12px; /* opcional pero recomendado */

}

/* .animar-titulo {
  animation: entradaPremium 0.8s ease;
}

@keyframes entradaPremium {
  0%   { opacity: 0; transform: translateY(40px); }
  60%  { opacity: 1; transform: translateY(-8px); }
  100% { transform: translateY(0); }
} */


.animar-titulo {
    animation: entradaPremium 2s ease forwards;
}

@keyframes entradaPremium {
    0%   { opacity: 0; transform: translateY(40px); }
    60%  { opacity: 1; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Tap Lottie (ícono de toque en cards) ── */
/* .tap-lottie {
  position: absolute;
  bottom: -4px;
  left: 60%;
  width: 60px;
  height: 60px;
  transform: translateX(22%);
  z-index: 10;
  pointer-events: none;
  opacity: 0.9;
} */


/*tap */

 /* ── Tap indicator CSS (reemplaza 70 instancias de Lottie) ── */
.item {
    position: relative; /* necesario si no lo tenía */
}





/* Reemplaza las ~70 instancias de Lottie */

   .tap-lottie {
  position: absolute;
  bottom: 60px;
  left: 60%;
  width: 60px;
  height: 60px;
  background: url('/img/Touch-animation-bb.webp')center/contain;
  transform: translateX(22%);
  z-index: 10;
  pointer-events: none;
  opacity: 0.9;

}

/* ── Contacto ── */
.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50vh;
  background-image: url('/img/fin-11.avif');
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  background-position-x: center;
}

.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.contacto > * {
  position: relative;
  z-index: 1;
}

.contacto a img:active { transform: scale(1.1); }

/* ── Enlaces (redes sociales) ──
   ÚNICO bloque (antes estaba duplicado en este mismo archivo) */
.enlaces {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 95vw;
}

.enlaces > a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: white;
}

.enlaces img {
  width: 65vw;
  max-width: 80%;
  transition: transform 0.25s ease;
  display: block;
}

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



.contactate {
  background-image: url("/img/filtros/contactate.avif");
  background-size: cover; /* 🔥 cambio clave */
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 180px;

  margin: 20px 0;
  position: relative;

  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
  border-radius: 12px; /* opcional pero recomendado */
}

/* ── Colores utilitarios (si los usás en HTML) ── */
.blue   { color: blue; }
.violet { color: rgb(143, 2, 199); }
.verde  { color: green; }

/* portfolio.css — galería y popup */

/* ── Grid ──
   Isotope maneja el posicionamiento — NO usar display:grid
   El ancho de cada item se controla con calc()            */
.portfolio-grid .item {
  width: calc(50% - 10px); /* mobile: 2 columnas, gap 16px */
  margin-bottom: 16px;
 display: block;
}

.portfolio-grid .item img {
  width: 100%;
  height: auto;        /* FIX: era height:100%, rompe con Isotope */
  object-fit: cover;
  display: block;
   /* aspect-ratio: 9/16; */
  border-radius: 18px;
}

/* ── Items ── */
.item { position: relative; }

.item img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ── Menú de filtros ── */
.portfolio-menu {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.portfolio-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.portfolio-menu .filter-btn {
  padding: 10px 18px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  background: #f1f1f1;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  user-select: none;
}

/* .portfolio-menu .filter-btn:hover {
  background: #ff3d00;
  color: #fff;
  transform: translateY(-2px);
} */
.portfolio-menu .filter-btn:hover {
    background: #c62d00;  /* mismo cambio en hover */
    color: #fff;
    transform: translateY(-2px);
}

/* .portfolio-menu .filter-btn.active {
  background: #ff3d00;
  color: #fff;
  border-color: #ff3d00;
  box-shadow: 0 6px 15px rgba(20, 20, 20, 0.7);
} */

.portfolio-menu .filter-btn.active {
    background: #c62d00;  /* rojo más oscuro → contraste 5.1:1 ✅ */
    color: #fff;
    border-color: #c62d00;
    box-shadow: 0 6px 15px rgba(20, 20, 20, 0.7);
}

/* ── Lottie wrappers (flechas y cierre del popup) ── */
.lottie-button {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

/* .lottie-close-wrapper {
  position: absolute;
  z-index: 10000;
} */

.lottie-close-wrapper {
 
position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10000;
  width: 50px;
  height: 50px;


}

.lottie-wrapper {
  position: absolute;
  bottom: -70px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.lottie-wrapper > #lottie-prev,
.lottie-wrapper > #lottie-next {
  width: 65px;
  height: 65px;
  cursor: pointer;
}

/* Sin fondo en ningún lottie */
#lottie-prev,
#lottie-next,
#lottie-close {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 9999;
}

/* ── Botón WhatsApp en popup ── */
.popup-button.boton a {
  background-color: #25d366 !important;
  padding: 14px 4px !important;
  border-radius: 10px !important;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: white !important;
}

.popup-button.boton a:hover {
  background-color: #228c15 !important;
  transform: scale(1.06);
  transition: 0.2s ease-in-out;
}

/* ── Magnific Popup: eliminar fondos y estilos no deseados ── */
.mfp-arrow,
.mfp-arrow::before,
.mfp-arrow::after {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.mfp-close { display: none; }


.mfp-content,
.mfp-figure {
  background: transparent !important;
}

.mfp-figure:after {
  background: transparent !important;
  box-shadow: none !important;
}

.mfp-figure {
  overflow: visible !important;
}

/* img.mfp-img {
  padding: 0 !important;
  background: none !important;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
} */

img.mfp-img {
  padding: 0 !important;
  background: none !important;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
  /* ↓ agregar estas dos líneas */
  /* max-width: 90vw;
  max-height: 85vh; */
  width: 95vw;
  height: auto;
  object-fit: contain;
}


/* ── Landscape en teléfonos pequeños (alto < 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {

  .portfolio-grid .item {
    /*width: calc(33.333% - 11px);*/
    width: calc(25% - 12px);  /* 4 columnas */

  }

  /* Reemplazá el height fijo por aspect-ratio vertical */
  .portfolio-grid .item img {
    height: auto;          /* deja que la proporción mande */
    aspect-ratio: 9/ 16;  /* proporción vertical, ajustá si tus fotos son más largas */
    
    object-fit: contain;
  }

 
  .portfolio-menu .filter-btn {
    font-size: 15px;
    padding: 7px 12px;
  }
  .fallback-button{
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .fallback-close-wrapper {
    top: 8px;
    right: 8px;
  }



}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}


.carousel-slide {
  min-width: 100%;
  height: 100%;
  /* background-size: cover;
  background-position: center; */
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicators .dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}

.carousel-indicators .dot.active {
  background: #fff;
}

/* ✅ NUEVO: la img ocupa todo el slide */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* responsive.css — todos los breakpoints organizados
   Reemplaza versionsana.css (que era difícil de mantener)
   Orden: mobile-first → de menor a mayor
*/

/* ─────────────────────────────────────
   MOBILE PEQUEÑO  ≤ 360px
───────────────────────────────────── */
@media (max-width: 360px) {

  .enlaces img {
    width: 75vw;
    height: auto;
  }

  .contacto a img {
    width: 48%;
  }

  .contacto {
    background-position-x: center;
  }

  img.mfp-img {
    width: 90vw;
    max-height: 90vh;
    height: auto;
  }

  .lottie-close-wrapper {
    top: -15px;
    right: 21px;
  }

  .lottie-wrapper {
    bottom: -80px;
  }

  .mfp-container::before {
    display: none;
  }

  .tituloprin {
    margin-bottom: 0;
  }

  h2 {
    font-size: 1.2em;
  }

  .contactate {
    min-height: 73px;
  }

  .popup-button.boton a {
    font-size: 24px;
  }
  .tituloprin {
    min-height: 69px;
    margin-bottom: 20px;
  }
  .fallback-wrapper {
    left: 25px;
    right: 25px;
  }
  .lite-mode .mfp-container{
    margin-bottom: 35px;

  }
  .lite-mode .fallback-close-wrapper {
     top: -18px;
    right: 26px;
  }

  .fallback-button{
    width: 60px;
    height: 60px;
    font-size: 30px;
  }



}





/* ─────────────────────────────────────
   MOBILE NORMAL  361px – 576px
───────────────────────────────────── */
@media (min-width: 361px) and (max-width: 414px) {
   
 /* Mobile portrait ≤ 414px */
  img.mfp-img {
    max-height: 72vh; /* deja espacio para botón WA + flechas */
    max-width: calc(72vh * 9 / 16);
    width: 95vw;
    height: auto;
  }


  .contactate {
    min-height: 80px;
            
  }

  .lottie-close-wrapper {
    top: -17px;
    right: 21px;
  }

  /* .mfp-container {
    margin-bottom: 200px;
  } */

  .popup-button.boton a {
    font-size: 24px;
  }
  .tituloprin {
    min-height: 86px;
    /* margin-bottom: 0; */
  }
  .contacto {
    background-position-x: center;
  }
  .contactar{
    display: block;
    min-height: 300px;
  }
  .fallback-wrapper{
    left:30px;
    right: 30px;
  }
  .lite-mode .fallback-close-wrapper {
    margin-bottom: 80px;
     top: -18px;
    right: 26px;
  }  
  .lite-mode .mfp-content{
    margin-top: -56px;
  }

}

@media(min-width: 390px) and (max-width: 430px)  {
  .lite-mode .fallback-button{
    width: 60px;
    height: 60px;
    font-size: 40px;

  }
    
  }



@media (min-width: 415px) and (max-width: 576px) {

  .enlaces img {
    width: 70vw;
  }

  .contactate {
    min-height: 120px;
    background-position-y: center;
    background-size: contain;
  }

  .tituloprin {
    min-height: 105px;
    margin-bottom: 20px;
  }

  .contacto {
    padding: 40px 15px;
    background-position-x: center;
  }

  img.mfp-img {
    /* max-width: 85vw;
    max-height: 85vh; */
    max-height: 85vh; /* deja espacio para botón WA + flechas */
    max-width: calc(85vh * 9 / 16);
  }

  .lottie-wrapper {
    bottom: -70px;
    align-items: center;
  }

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 60px;
    height: 60px;
  }

  .lottie-close-wrapper {
    top: -14px;
    right: 21px;
  }

  .mfp-container {
    margin-bottom: 50px;
  }
  
  .lite-mode .fallback-close-wrapper {
    /* margin-bottom: 80px; */
    top: -10px;
    right: 27px;
  }  
  
  .fallback-wrapper {
    left: 30px;
    right: 30px;
  }
  .popup-button.boton a{
    font-size: 30px;
  }
  .fallback-button{
    height: 50px;
    width: 50px;
  }

   .mfp-content { margin-top: -15px;}
}

h2 {
  font-size: 1.3em;
}

/* ─────────────────────────────────────
   MOBILE LANDSCAPE  ≤ 767px landscape
───────────────────────────────────── */
@media (max-width: 767px) and (orientation: landscape) {

  .mfp-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mfp-container {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mfp-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: -58px;
  }

  /* img.mfp-img {
    max-width: 95vw;
    max-height: 80vh !important;
    width: auto;
    height: 75vh;
    object-fit: contain;
  } */
  /* Landscape (cualquier teléfono) */

  img.mfp-img {
    max-height: 78vh;
    max-width: calc(78vh * 9 / 16);
  }


  .lottie-wrapper {
    bottom: -45px;
    align-items: center;
  }

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 65px;
    height: 65px;
  }

  .lottie-close-wrapper {
    top: 5px;
    right: 12px;
  }

  .lottie-button {
    width: 40px;
    height: 40px;
  }

  .popup-button.boton a {
    font-size: 14px;
  }

  .contacto {
    min-height: 40vh;
    background-position-x: center;
  }

  .contactate {
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: center;
    display: flex;
    /* width: 97vw; */
    width: 100%;
    min-height: 156px;
  }

  .tituloprin {
    display: none;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.5em;
  }
  .lite-mode .fallback-wrapper{
    bottom: -43px;
  }

  .portfolio-grid .item img {
  width: 100%;
  height: auto;        /* FIX: era height:100%, rompe con Isotope */
  object-fit: contain;
  display: block;
  aspect-ratio: 9/16; 
  border-radius: 18px;
}

.portfolio-grid .item {
    /*width: calc(33.333% - 11px);*/
    width: calc(25% - 12px);  /* 4 columnas */

  }
  .fallback-close-wrapper {
    top: 5px;
    right: 12px;
  }
}

/* ─────────────────────────────────────
   TABLET PORTRAIT  577px – 767px
───────────────────────────────────── */
@media (min-width: 577px) and (max-width: 768px) and (orientation: portrait) {

  .contacto {
    min-height: 40vh;
    background-position-x: center;
  }

  .mfp-container {
    height: 100vh !important;
    /* margin-top: 25px; */
    margin-top: 0;
    margin-bottom: 0;
  }

  .mfp-content {
    position: relative;
    width: auto;
    max-width: 90vw;
    margin: 0 auto;
    display: block;
    height: 98vh !important;
  }

  
  img.mfp-img {
    max-height: 85vh !important;
    max-width: calc(85vh * 9 / 16) !important;

  }

  .lottie-wrapper {
    /* bottom: 105px; */
    align-items: center;
  }

  .lottie-close-wrapper {
    right: 19px;
    top: -15px;
    width: 80px;
    height: 80px;
  }

  .lottie-button {
    width: 80px;
    height: 80px;
  }

  h2 {
    font-size: 1.6em;
  }

  .mfp-content a {
    font-size: 24px;
  }

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 95px;
    height: 95px;
  }
  .tituloprin{
    min-height: 182px;
  }
  .lottie-wrapper{
    bottom: 32px;
  }
  .fallback-wrapper{
    bottom: 50px;
  }
  figure {
    margin-top: 36px;
  }
  .fallback-close-wrapper{
    top: -11px;
    right: 8px;
    width: 50px;
    height: 50px;
  }
  .fallback-button{
    width: 70px;
    height: 70px;
    font-size: 55px;
  }
  .popup-button.boton a{
    font-size: 30px;

  }
}


/* ─────────────────────────────────────
   TABLET PORTRAIT  768px – 1023px
───────────────────────────────────── */
@media (min-width: 769px) and (max-width: 843px) and (orientation: portrait) {
  .mfp-container {
    margin-bottom: 242px;
  }

  img.mfp-img {
    width: 95vw;

  }

  .lottie-close-wrapper {
    width: 80px;
    height: 80px;
    top: -22px;
  }

  .lottie-button {
    width: 80px;
    height: 80px;
  }

  .mfp-content a {
    font-size: 22px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
  }
  .popup-button.boton a{
    font-size: 40px;
  }
  .tituloprin{
    min-height: 211px;
  }
  figure {
    margin-top: 150px;
  }
  .fallback-button{
    width: 75px;
    height: 75px;
    font-size: 60px;
    text-align: center;
  }
  .fallback-wrapper{
    bottom: -107px;
  }
  .lite-mode .popup-button.boton a{
    font-size: 50px;

  }
  .lottie-wrapper{
    bottom: -90px;
  }
}

@media (min-width: 913px) and (max-width: 1023px) and (orientation: portrait) {

  .portfolio-grid .item {
    width: calc(50% - 11px);
  }

  .mfp-container {
    margin-bottom: 190px;
  }

  .mfp-container::before {
    display: none;
  }


  .mfp-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 0 auto;
  }

  img.mfp-img {
    width: 76vw;
    max-height: 95vh;
    height: auto;
    object-fit: contain;
    border-radius: 18px !important;
  }

  .lottie-wrapper {
    bottom: -99px;
    align-items: center;
  }

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 80px;
    height: 80px;
  }

  .lottie-close-wrapper {
    top: 0;
    right: 10px;
    width: 80px;
    height: 80px;
  }

  .lottie-button {
    width: 85px;
    height: 85px;
  }

  .popup-button.boton a {
    margin-top: 15px;
    font-size: 2.5em;
  }

  .enlaces img {
    width: 70vw;
  }

  .contacto {
    background-image: url('/img/fin.avif');
    background-position-x: center;
  }

  .contactate {
    min-height: 180px;
  }

  .tituloprin {
    min-height: 215px;
  }

  h2 {
    font-size: 1.7em;
  }
}

/* ─────────────────────────────────────
   TABLET LANDSCAPE  768px – 1023px
───────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {

  .mfp-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mfp-container {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mfp-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    bottom: 20px;
    height: 80vh;
  }

  img.mfp-img {
    max-width: 90vw;
    max-height: 90vh !important;
    width: auto;
    height: 78vh;
    object-fit: contain;
    border-radius: 18px;
  }

  .lottie-wrapper {
    align-items: center;
    bottom: -60px;
  }

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 50px;
    height: 50px;
  }

  .lottie-close-wrapper {
    top: -10px;
    right: 10px;
  }

  .lottie-button {
    width: 35px;
    height: 35px;
  }

  .popup-button.boton a {
    font-size: 15px;
  }

  /* .portfolio-grid .item {
    width: calc(33.333% - 11px);
  } */

  .portfolio-grid .item {
    /*width: calc(33.333% - 11px);*/
    width: calc(25% - 12px);  /* 4 columnas */

  }

  /* 3 columnas */

  .contactate {
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    width: 97vw;
    min-height: 204px;
    /* margin: 10px; */
  }

  .tituloprin {
    display: none;
    min-height: 209px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
  }
  .popup-button.boton a{
    font-size: 15px;
    padding: 9px 4px !important;
  }

  h2 {
    font-size: 1.7em;
  }
  .contacto{
    background-position-x: center;
  }
  .lite-mode .fallback-button {
    height: 40px;
    width: 40px;
  }
  .lite-mode .fallback-close-wrapper {
    width: 35px;
    height: 35px;
  }
  .lite-mode .fallback-close-wrapper {
    top: -10px;
    right: 29px;
  }
  .lite-mode .fallback-wrapper {
    bottom: -49px;
  }
  .lite-mode .popup-button.boton a{
    font-size: 15px;
    padding: 9px 4px !important;
  }
}

/* ─────────────────────────────────────
   TABLET/LAPTOP  844px – 932px
   (iPhone Max, algunos Android grandes)
───────────────────────────────────── */
@media (min-width: 844px) and (max-width: 932px) and (orientation: portrait) {
  .tituloprin {
    min-height: 200px;
  }

  h2 {
    font-size: 2.8em;
  }

  /* img.mfp-img {
    height: 60vh;
    width: auto;
    border-radius: 40px;
  } */
  .mfp-container {
    margin-bottom: 362px;
  }
  .lottie-close-wrapper {
    top: -21px;
    right: 20px;
    width: 80px;
    height: 80px;
  }

  .lottie-button {
    width: 80px;
    height: 80px;
  }
  .popup-button.boton a{
    font-size: 50px;
  }
  .contacto{
    background-position-x: center;
  }
  .mfp-content{
    margin-top: 267px;

  }
  img.mfp-img {
    height: auto;
    width: 80vw;
    border-radius: 40px;
  }
  .lottie-wrapper{
    bottom: -105px;
  }
  .fallback-button{
    width: 80px;
    height: 80px;
    font-size: 60px;
  }
  .fallback-wrapper{
    bottom: -120px;
    margin: 0 20px;

  }
  .lite-mode .popup-button.boton a{
    font-size: 50px;
    padding: 14px 43px!important;
  }

  .lottie-wrapper > #lottie-prev, .lottie-wrapper > #lottie-next {
    width: 80px;
    height: 80px;
  }



}

/* ─────────────────────────────────────
   DESKTOP  1024px – 1368px landscape
───────────────────────────────────── */
/* @media (min-width: 1024px) and (max-width: 1368px) and (orientation: landscape) { */
@media (min-width: 1024px) and (max-width: 1280px) and (orientation: landscape) {

  .mfp-container {
    height: 100vh;
    margin-bottom: -30px;
  }

  .mfp-content {
    bottom: -54px;
  }

  /* img.mfp-img {
    max-width: 90vw;
    max-height: 85vh !important;
    width: auto;
    height: 75vh;
    object-fit: contain;
    border-radius: 18px;
  } */
   img.mfp-img {
    max-height: 80vh;
    max-width: calc(80vh * 9 / 16);
  }
  

  .popup-button.boton a {
    font-size: 1.8em;
  }

  .lottie-button {
    width: 80px;
    height: 80px;
  }

  .lottie-wrapper {
    align-items: center;
  }

  .lottie-close-wrapper {
    top: -23px;
    right: 3%;
    width: 70px;
    height: 70px;
  }


  .portfolio-grid .item {
    width: calc(25% - 12px);
  }

  /* 4 columnas */
  .contactate {
    min-height: 239px;
  }

  .contacto {
    background-image: url('/img/fin-1.avif');
    background-position-y: center;

  }

  .tituloprin {
    min-height: 242px;
  }

  h2 {
    font-size: 2.8em;
  }

  .portfolio-menu .filter-btn {
    font-size: 24px;
  }
  .lite-mode .fallback-close-wrapper {
    top: -17px;
    right: 15px;
  }
  .mfp-container {
    margin-bottom: 12px;
  }
  .lottie-button{
    width: 60px;
    height: 60px;
  }
  .fallback-button{
    width: 55px;
    height: 55px;
    font-size: 45px;
    text-align: center;

  }
  .lite-mode .popup-button.boton a{
    font-size: 2em;
  }
  .lite-mode .fallback-wrapper{
    bottom: -85px;
  }



}

/* ─────────────────────────────────────
   DESKTOP PORTRAIT  ≥ 1024px portrait
───────────────────────────────────── */
@media (min-width: 1024px) and (orientation: portrait) {

  img.mfp-img {
    /* height: 60vh; */
    width: 80vw;
  }

  .mfp-content {
    bottom: -113px;
  }

  .lottie-wrapper {
    bottom: -132px;
    align-items: center;
  }

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 120px;
    height: 120px;
  }

  .lottie-close-wrapper {
    top: -23px;
    right: 0;
    width: 80px;
    height: 80px;
  }

  .lottie-button {
    width: 90px;
    height: 90px;
  }

  .popup-button.boton a {
    font-size: 4em;
  }

  .contacto {
    background-image: url('/img/fin.avif');
    background-position-x: center;
  }

  .contactate {
    min-height: 250px;
  }

  .tituloprin {
    min-height: 240px;
  }

  h2 {
    font-size: 2.8em;
  }

  .mfp-container {
    margin-bottom: 344px;
  }
  .fallback-button{
    width: 80px;
    height: 80px;
    font-size: 60px;
  }
  .fallback-wrapper{
    bottom: -120px;
    margin-left: 20px;
    margin-right: 20px;
  }


}

/* ─────────────────────────────────────
   DESKTOP WIDE  ≥ 1281px landscape
───────────────────────────────────── */
@media (min-width: 1281px) and (max-width: 1366px) and (orientation: landscape) {
  .contacto {
    min-height: 70px;
    background-position-x: center;
  }

  .tituloprin {
    min-height: 316px;
  }

  .contactate {
    min-height: 286px;
  }

  .portfolio-menu .filter-btn {
    font-size: 24px;
  }

  .portfolio-grid .item {
    width: calc(25% - 12px);
  }

  /* 4 columnas */
  h2 {
    font-size: 3em;
  }

  img.mfp-img {
    height: 85vh;
    width: auto;
  }

  .lottie-close-wrapper {
    top: -11px;
    width: 60px;
    height: 60px;
  }

  .lottie-button {
    width: 60px;
    height: 60px;
  }

  .popup-button.boton a {
    font-size: 24px;
  }
  .fallback-button {
    width: 75px;
    height: 75px;
    font-size: 50px;
  }

}

/* ─────────────────────────────────────
   DESKTOP XL  ≥ 1367px
───────────────────────────────────── */
@media (min-width: 1367px) {

  img.mfp-img {
    max-height: 80vh;
    /* max-width: 70vw; */
    height: 80vh;
    border-radius: 18px;
  }

  .portfolio-grid .item {
    width: calc(25% - 12px);
  }

  /* 4 columnas */
  .lottie-wrapper {
    align-items: center;
  }

  h2 {
    font-size: 3em;
  }

  .lottie-close-wrapper {
    top: -38px;
    right: 4px;
    width: 80px;
    height: 80px;
  }
  .lottie-button {
    width: 90px;
    height: 90px;
  }
  .tituloprin {
    min-height: 285px;
  }

  .contactate {
    min-height: 284px;
  }
  .popup-button.boton a{
    font-size: 30px;
  }
  .lite-mode .popup-button.boton a{
    font-size: 35px;
  }
  .lite-mode .fallback-wrapper{
    bottom: -81px;
  }
  .fallback-button {
    width: 60px;
    height: 60px;
    font-size: 60px;
  }
  .fallback-close-wrapper{
    top: -30px;
    right: 12px;
    width: 65px;
    height: 65px;
  }
  .mfp-content{
    margin-top: -74px;
  }
  
  

}

@media (max-height: 700px)and (orientation: portrait) {
  .mfp-container {
    margin-bottom: 50px;
  }


}

@media (max-height: 414px)and (orientation: landscape) {

  .lottie-wrapper>#lottie-prev,
  .lottie-wrapper>#lottie-next {
    width: 50px;
    height: 50px;
  }

  .lottie-wrapper {
    bottom: -46px;
  }
  .contactate{
    min-height: 203px;
    background-position-y: center;
    background-size: contain;
  }

   

}


.seo-text {
  max-width: 700px;
  /* legibilidad óptima en desktop */
  margin: 16px auto;
  padding: 8px 16px;
  text-align: center;
}

.seo-text h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.9rem);
  /* responsive sin media queries */
  font-weight: 600;
  line-height: 1.5;
  color: #111;
  margin: 0;
}

.seo-text p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: #222;
  margin-bottom: 20px;
  font-weight: 600;
}

body {
  font-family: 'Poppins', sans-serif;
}

h1,
h2,
.navbar-logo {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}


/* ═══════════════════════════════════════
   MEJORAS VISUALES - La Matanza Clasificados
═══════════════════════════════════════ */

/* 1 · Navbar con acento dorado */
.navbar {
  border-bottom: 3px solid #f6c000;
}

/* 2 · Fondo con textura sutil */
body {
  background-color: #e8e6e0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.02) 40px,
    rgba(0, 0, 0, 0.02) 80px
  );
}

/* 3 · Texto principal con tarjeta */
.seo-text {
  background: #fff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #f6c000;
}

/* 4 · Filtros con sombra */
.portfolio-menu .filter-btn {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

/* 5 · Cards con hover */
.portfolio-grid .item img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-grid .item:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* 6 · Footer con línea dorada */
#footer {
  border-top: 4px solid #f6c000;
}


