* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
  font-family:'Roboto',Arial,sans-serif !important;
}

html {
  font-size: 16px;
  background:#F0EEEC;
  color: #333;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F0EEEC ;
  color: #333;

  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.2px;
}


/* ======================= */
/* LISTA */
/* ======================= */
.refs-list-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}


.refs-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px;
}


.refs-list li {
  font-size: 15px;
  color: #767371;
  margin-bottom: 10px;
  line-height: 1.5;
}


.refs-list li strong {
  color: #525151;
  font-weight: 700;
}


.refs-list-wrapper::before {
  content: "Referencias";
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #767371;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}


@media (max-width: 600px) {
  .refs-list-wrapper {
    padding: 0 12px;
  }

  .refs-list li {
    font-size: 14px;
  }
  .refs-list-wrapper::before {
    font-size: 22px;
  }
}
/* ======================= */
/* GALERÍA */
/* ======================= */


.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  grid-auto-flow: dense;
}


.group {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto; 
  gap: 10px;
  min-height: 0;
  height: 100%;
}


.group.cols-1 { grid-column: span 1; }
.group.cols-2 { grid-column: span 2; }
.group.cols-3 { grid-column: span 3; }
.group.cols-4 { grid-column: span 4; }
.group.cols-5 { grid-column: span 5; }
.group.cols-6 { grid-column: span 6; }


.group.two-cols {
  grid-template-columns: repeat(2, 1fr); 
  grid-template-rows: 1fr auto;         
}

.group{
    overflow: hidden;
}
/* contenedor de imagen */
.group .item {
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-height: 0;
  height: 100% !important;
}


.group .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
}

/* caption */
.group .group-caption {
  grid-column: 1 / -1;
  padding-top: 6px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #333;
}


.group.tall { grid-row: span 2; }
.group.span-3 { grid-row: span 3; }


/* ======================= */
/* FOOTER */
/* ======================= */

.footer{color:#B9B6B3; padding-top: 30px; padding-bottom: 30px; text-align:center;font-family:"Segoe UI",sans-serif}
.footer p{color:#B9B6B3;margin-bottom:15px;font-size:14px}
.footer-links{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
.footer-links a{color:#B9B6B3;text-decoration:none;font-size:14px;transition:color .3s ease}
.footer-links a:hover{color:#B9B6B3}

/* ======================= */
/* RESPONSIVE */
/* ======================= */

/* MÓVILES */
@media (max-width: 767px) {
  
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto; 
    gap: 20px;
    padding: 16px;
  }


  .group,
  .group.cols-1, .group.cols-2, .group.cols-3,
  .group.cols-4, .group.cols-5, .group.cols-6 {
    grid-column: span 1 !important;
    width: 100%;
    display: block;
    height: auto;
    overflow: visible;
  }


  .group:not(.two-cols) {
    display: flex;
    flex-direction: column;
  }


  .group.two-cols {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); /* dos columnas iguales */
    grid-template-rows: 180px auto;        
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  
  .group.two-cols .item {
    width: 100%;
    height: 100%;
    min-height: 0; 
    overflow: hidden;
    display: block;
  }

  .group.two-cols .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center center;
    display: block;
  }

  /* Para grupos normales (una imagen) dejamos la imagen fluida */
  .group:not(.two-cols) .item img {
    width: 100%;
    height: auto;           
    object-fit: cover;      
    display: block;
  }

  /* Caption debajo */
  .group .group-caption {
    margin-top: 10px;
    padding: 8px 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    background: transparent;
    max-height: none;
    overflow: visible;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 950px) {

  
}

/* ESCRITORIO PEQUEÑO */
@media (min-width: 929px) and (max-width: 1199px) {
 
  
 .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;  /* separación entre los bloques */
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .footer p {
    margin: 0;
  }
}

/* PANTALLAS GRANDES */
@media (min-width: 1200px) and (max-width: 1599px) {
  
 
  .footer-links {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .footer p {
    margin: 0;
  }
}

/* PANTALLAS MUY GRANDES */
@media (min-width: 1600px) {
  
  
  .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;  /* separación entre los bloques */
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .footer p {
    margin: 0;
  }
}


@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .group.cols-3 { grid-column: span 4; }
}



@media (max-width: 600px) {


  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto; 
    gap: 20px;
    padding: 16px;
  }

 
  .group,
  .group.cols-1, .group.cols-2, .group.cols-3,
  .group.cols-4, .group.cols-5, .group.cols-6 {
    grid-column: span 1 !important;
    width: 100%;
    display: block;
    height: auto;
    overflow: visible;
  }


  .group:not(.two-cols) {
    display: flex;
    flex-direction: column;
  }


  .group.two-cols {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: 180px auto;       
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }


  .group.two-cols .item {
    width: 100%;
    height: 100%;
    min-height: 0; 
    overflow: hidden;
    display: block;
  }

  
  .group.two-cols .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center center;
    display: block;
  }


  .group:not(.two-cols) .item img {
    width: 100%;
    height: auto;           
    object-fit: cover;      
    display: block;
  }


  .group .group-caption {
    margin-top: 10px;
    padding: 8px 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    background: transparent;
    max-height: none;
    overflow: visible;
  }
}
