/* ✅ CORRECTO - Declara CADA fuente por separado */

/* Gotham Black */
@font-face {
  font-family: 'Gotham Black';
  src: url('fonts/GothamBlack.ttf') format('truetype'),
       url('fonts/Gotham-Black.otf') format('opentype');
  font-weight: 900; /* o bold */
  font-style: normal;
}

/* Gotham Light */
@font-face {
  font-family: 'Gotham Light';
  src: url('fonts/GothamLight.ttf') format('truetype'),
       url('fonts/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* Gotham Book */
@font-face {
  font-family: 'Gotham Book';
  src: url('fonts/GothamBook.ttf') format('truetype'),
       url('fonts/Gotham-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Gotham Thin */
@font-face {
  font-family: 'Gotham Thin';
  src: url('fonts/GothamThin.ttf') format('truetype'),
       url('fonts/Gotham-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

/* Gotham XLight */
@font-face {
  font-family: 'Gotham XLight';
  src: url('fonts/GothamXLight.ttf') format('truetype'),
       url('fonts/Gotham-XLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

/* Gotham Ultra */
@font-face {
  font-family: 'Gotham Ultra';
  src: url('fonts/GothamUltra.ttf') format('truetype'),
       url('fonts/Gotham-Ultra.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}
/* En tu CSS */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  animation: none;
}
.whatsapp-float img {
  width: 35px;
  height: 35px;
}
/* Tooltip - Mensaje emergente */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid #333;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}
/* Notificación roja */
.whatsapp-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: pulse-red 2s infinite;
}
/* Animación de flotar */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* Animación para la notificación roja */
@keyframes pulse-red {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.header {
  font-family: 'Gotham Light', sans-serif;
  background-color: transparent; /* Cambiado a transparente */
  height: 80px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 7;
  transition: background-color 0.1s ease; /* Transición suave */
}
.header.scrolled {
  background-color: rgba(246, 229, 213, 0.8);
}
.nav {
  display: flex;
  justify-content: space-between;
  max-width: 992px;
  margin: 0 auto;
}
.nav-link {
  color: #262626;
  text-decoration: none;
  transition: color 0.1s ease; /* Transición para los links */
}
.logo {
  line-height: 80px;
}
.nav-menu {
  display: flex;
  margin-right: 0px;
  list-style: none;
  margin-top: -5px;
}
.nav-menu-item {
  font-family: 'Gotham Light', sans-serif;
  font-size: 19px;
  margin: 0 10px;
  line-height: 80px;
  text-transform: uppercase;
  width: max-content;
}
.nav-menu-link {
  padding: 8px 12px;
  border-radius: 3px;
}
.nav-menu-link:hover, .nav-menu-link_active {
  text-decoration: none;
  font-family: 'Gotham Black', sans-serif;
  color: rgb(107, 73, 73);
}
/* TOGGLE */
.nav-toggle {
  color: white;
  background: none;
  border: none;
  font-size: 30px;
  padding: 0 20px;
  line-height: 60px;
  cursor: pointer;
  display: none;
}
/* MOBILE */
@media (max-width: 1270px) {
  .header {
    height: 60px;
    background-color: #F6E5D5;
  }
  .logo {
    font-size: 25px;
    padding: 0 20px;
    line-height: 60px;
  }
  .nav-menu {
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #F6E5D5;
    position: fixed;
    top: 60px;
    width: 100%;
    padding: 20px 0;
    height: calc(100% - 60px);
    overflow-y: auto;
    left: 100%;
    transition: left 0.3s;
  }
  .nav-menu-item {
    line-height: 70px;
  }
  .nav-menu-link:hover, .nav-menu-link_active {
    background: none;
    text-decoration: none;
    font-weight: bold;
    color: rgb(107, 73, 73);
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu_visible {
    left: 0;
  }
  .nav-toggle:focus:not(:focus-visible) {
    outline: none;
  }
}
/* -----HOME----- */
.inicio {
  width: 100%;
  height: 400px;
  background-image: url(images/trigo01.webp);
  background-position: center;
  background-size: cover;
  background-attachment: fixed; /* Esto hace que la imagen sea fija */
  text-align: center;
}
.inicio-amasan {
  width: 100%;
  height: 400px;
  background-image: url(images/panencontranos.JPG);
  background-position: center;
  background-size: cover;
  background-attachment: fixed; /* Esto hace que la imagen sea fija */
  text-align: center;
}
.inicio-venta {
  width: 100%;
  height: 400px;
  background-image: url("images/producencontranos.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed; /* Esto hace que la imagen sea fija */
  text-align: center;
}
.don-paisa {
  max-width: 150px;
  height: auto;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  margin-top: 120px;
}
.frase-agroecologico {
font-family: 'Gotham Black', sans-serif;  font-size: 3rem;
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  margin: 0;
  letter-spacing: 1px;
}
/* Responsive */
@media (max-width: 768px) {
  .frase-agroecologico {
    font-size: 1.6rem;
    padding: 0 20px;
  }
  .don-paisa {
    max-width: 200px;
    margin-bottom: 15px;
  }
}
@media (max-width: 480px) {
  .frase-agroecologico {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
  }
  .don-paisa {
    max-width: 150px;
  }
}
.mision-vision-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
font-family: 'Gotham Black', sans-serif;
	font-size: 3rem;
  margin-bottom: 20px;
  color: #262626;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #A58F72;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
font-family: 'Gotham Light';
	font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
/* Grid de pilares */
.mision-vision-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
/* Grid de pilares */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.pilar-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pilar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #A58F72;
}
/* Contenedor del icono */
.pilar-icon {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}
/* Imágenes de iconos */
.pilar-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
}
.pilar-card:hover .pilar-icon-img {
  transform: scale(1.1);
}
.pilar-title {
  font-family: 'Gotham Black', sans-serif;
  font-size: 1.8rem;
  color: #262626;
  margin-bottom: 20px;
  
  position: relative;
}
.pilar-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #A58F72;
}
.pilar-description {
font-family: 'Gotham Light';
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}
/* Lista de valores */
.valores-list {
  width: 100%;
  text-align: left;
}
.valor-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.valor-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.valor-icon {
  background: #A58F72;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}
.valor-text {
font-family: 'Gotham Light';  color: #262626;
  font-size: 1rem;
}
/* Decoración de las tarjetas */
.pilar-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #A58F72, #8a7860);
  border-radius: 0 0 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pilar-card:hover .pilar-decoration {
  opacity: 1;
}
/* Responsive */
@media (max-width: 1024px) {
  .pilares-grid {
    gap: 30px;
  }
  .pilar-card {
    padding: 30px 20px;
  }
  .pilar-icon {
    width: 90px;
    height: 90px;
  }
  .pilar-icon-img {
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 768px) {
  .pilares-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .pilar-icon {
    width: 80px;
    height: 80px;
  }
  .pilar-icon-img {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 480px) {
  .mision-vision-section {
    padding: 60px 20px;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
  .pilar-card {
    padding: 25px 20px;
  }
  .pilar-title {
    font-size: 1.6rem;
  }
  .valor-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .valor-icon {
    margin-right: 0;
  }
  .pilar-icon {
    width: 70px;
    height: 70px;
  }
  .pilar-icon-img {
    width: 50px;
    height: 50px;
  }
}
.simple-parallax2 {
  height: 300px;
  position: relative;
  overflow: hidden;
}
.parallax-bg2 {
  position: absolute;
  top: 10;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('images/parallax-3.jpg');
  background-size: 150%;
  background-position: center top;
  background-attachment: fixed;
}
/* Para tablets */
@media (max-width: 1024px) {
  .simple-parallax2 {
    height: 250px;
  }
  .parallax-bg2 {
    height: 100%;
    background-attachment: scroll; /* Mejor rendimiento en tablets */
	 background-position: center top; 
  }
}
/* Para móviles grandes */
@media (max-width: 768px) {
  .simple-parallax2 {
    height: 200px;
  }
  .parallax-bg2 {
    height: 100%;
    background-attachment: scroll; /* Desactiva parallax en móviles */
    background-position: center top;
  }
}
/* Para móviles pequeños */
@media (max-width: 480px) {
  .simple-parallax2 {
    height: 150px;
  }
}
/* Para dispositivos muy pequeños */
@media (max-width: 360px) {
  .simple-parallax2 {
    height: 120px;
  }
}
/* Opcional: Optimizar para dispositivos con pantalla táctil */
@media (hover: none) and (pointer: coarse) {
  .parallax-bg2 {
    background-attachment: scroll; /* Desactiva parallax en táctiles */
  }
}

/* NOSOTROS */
.nosotros-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  font-family: 'Gotham Black', sans-serif;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-family: 'Gotham Black', sans-serif;	
  font-size: 3rem;
  margin-bottom: 20px;
  color: #262626;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #A58F72;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  font-family: 'Gotham Light';
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Collage Grid MODIFICADO - ahora para 9 imágenes */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 15px;
  margin-bottom: 50px;
}
.collage-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease; /* Transición más suave */
}
.collage-item:hover {
  transform: scale(1.02); /* Reducido de 1.05 a 1.02 para menos movimiento */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Sombra más sutil */
  z-index: 2;
}
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease; /* Transición más suave */
}
.collage-item:hover img {
  transform: scale(1.03); /* Reducido de 1.1 a 1.03 para menos zoom */
}
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Default para todas */
  transition: all 0.4s ease;
}

/* Alineaciones específicas */
.item-1 img { object-position: 50% 20%; } /* Centrado horizontal, 20% desde arriba */
.item-2a img { object-position: 50% 20%; } /* 25% desde izquierda, 10% desde arriba */
.item-2b img { object-position: 50% 20%; } /* 75% desde izquierda, 15% desde arriba */
.item-2c img { object-position: 50% 20%; } /* 20% desde izquierda, 80% desde arriba */
.item-2d img { object-position: 50% 35%; } /* 80% desde izquierda, 90% desde arriba */
.item-3 img { object-position: 50% 70%; } /* Centrado horizontal, 70% desde arriba */
.item-4 img { object-position: 50% 25%; } /* Centrado horizontal, casi en el tope */
.item-5 img { object-position: 50% 50%; } /* Centrado horizontal, casi en el fondo */
.item-6 img { object-position: 50% 50%; } /* Centrado horizontal, 30% desde arriba */

/* NUEVO GRID para 9 imágenes - Desktop */
.item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}
/* Las 4 imágenes que reemplazan a item-2 */
.item-2a {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.item-2b {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}
.item-2c {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.item-2d {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}
.item-3 {
  grid-column: 1 / 2;
  grid-row: 2 / 4;
}
.item-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.item-5 {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}
.item-6 {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

/* Botón Conocenos */
.nosotros-accion {
  text-align: center;
  margin-top: 40px;
}
.btn-conocenos {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #A58F72;
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Gotham Black', sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #A58F72;
  box-shadow: 0 5px 15px rgba(165, 143, 114, 0.3);
}
.btn-conocenos:hover {
  background: white;
  color: #A58F72;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(165, 143, 114, 0.4);
}
.btn-icon {
  font-size: 1.2rem;
}

/* Responsive - EFECTOS MÁS SUTILES EN PANTALLAS PEQUEÑAS */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .collage-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 150px);
  }
  
  .item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .item-2a { grid-column: 3 / 4; grid-row: 1 / 2; }
  .item-2b { grid-column: 1 / 2; grid-row: 2 / 3; }
  .item-2c { grid-column: 2 / 3; grid-row: 2 / 3; }
  .item-2d { grid-column: 3 / 4; grid-row: 2 / 3; }
  .item-3 { grid-column: 1 / 2; grid-row: 3 / 5; }
  .item-4 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .item-5 { grid-column: 3 / 4; grid-row: 4 / 5; }
  .item-6 { grid-column: 2 / 3; grid-row: 4 / 5; }
  
  /* Efectos más sutiles en tablet */
  .collage-item:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  .collage-item:hover img {
    transform: scale(1.02);
  }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {
  .collage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 120px);
    gap: 10px;
  }
  
  .item-1,
  .item-2a,
  .item-2b,
  .item-2c,
  .item-2d,
  .item-3,
  .item-4,
  .item-5,
  .item-6 {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
  
  /* Efectos mínimos en móvil para mayor estabilidad */
  .collage-item:hover {
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .collage-item:hover img {
    transform: scale(1.01);
  }
}

@media (max-width: 480px) {
  .nosotros-section {
    padding: 60px 20px;
  }
  .collage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 100px);
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  /* Efectos casi imperceptibles en móviles pequeños */
  .collage-item:hover {
    transform: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  }
  .collage-item:hover img {
    transform: none;
  }
}
/* FRASE trigo - Mobile First */
.parallax-section {
  position: relative;
  height: 200px; /* Base para móvil */
  overflow: hidden;
}

.parallax-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('images/frase-trigo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Por defecto sin parallax */
}

.parallax-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

.parallax-text {
  color: white;
  max-width: 600px;
  padding: 0 20px;
}

.parallax-frase {
font-family: 'Gotham Black', sans-serif;  font-size: 1.4rem; /* Base móvil */
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;

}

.parallax-subtitulo {
font-family: 'Gotham Book', sans-serif;  font-size: 0.85rem; /* Base móvil */
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Móvil Pequeño (hasta 375px) - Ya está cubierto con base */

/* Móvil Normal (376px - 425px) */
@media (min-width: 376px) {
  .parallax-section {
    height: 220px;
  }
  .parallax-frase {
    font-size: 1.6rem;
  }
  .parallax-subtitulo {
    font-size: 0.9rem;
  }
}

/* Móvil Grande (426px - 576px) */
@media (min-width: 426px) {
  .parallax-section {
    height: 250px;
  }
  .parallax-frase {
    font-size: 1.8rem;
  }
  .parallax-subtitulo {
    font-size: 0.95rem;
  }
}

/* Tablet Pequeña (577px - 768px) */
@media (min-width: 577px) {
  .parallax-section {
    height: 300px;
  }
  .parallax-frase {
    font-size: 2rem;
  }
  .parallax-subtitulo {
    font-size: 1rem;
  }
}

/* Tablet Grande (769px - 1024px) */
@media (min-width: 769px) {
  .parallax-section {
    height: 350px;
  }
  .parallax-frase {
    font-size: 2.2rem;
  }
  .parallax-subtitulo {
    font-size: 1.1rem;
  }
}

/* Desktop (1025px en adelante) */
@media (min-width: 1025px) {
  .parallax-section {
    height: 400px; /* Más alto en desktop */
  }
  .parallax-frase {
    font-size: 2.5rem;
  }
  .parallax-subtitulo {
    font-size: 1.2rem;
  }
  .parallax-image {
    background-attachment: fixed; /* Solo parallax en desktop */
  }
}

/* Pantallas muy grandes */
@media (min-width: 1440px) {
  .parallax-section {
    height: 450px;
  }
  .parallax-frase {
    font-size: 2.8rem;
  }
}
/* PRODUCTOS */
.productos-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
font-family: 'Gotham Black', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #262626;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #A58F72;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
font-family: 'Gotham Light';  font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
/* Grid de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.producto-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #A58F72;
}
.producto-imagen {
  margin-bottom: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-imagen img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: all 0.3s ease;
}
.producto-card:hover .producto-imagen img {
  transform: scale(1.1);
}
.producto-nombre {
font-family: 'Gotham Black';  font-size: 1.4rem;
  color: #262626;
  margin-bottom: 15px;
}
.producto-descripcion {
font-family: 'Gotham Light';  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}
.producto-acciones {
  margin-top: auto;
}
/* Botones */
.btn-detalles {
  display: inline-block;
  background: #A58F72;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Gotham Black';
  transition: all 0.3s ease;
  border: 2px solid #A58F72;
}
.btn-detalles:hover {
  background: white;
  color: #A58F72;
  transform: scale(1.05);
}
/* Sección de catálogo */
.catalogo-section {
  background: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #A58F72;
  max-width: 800px;
  margin: 0 auto;
}
.catalogo-title {
font-family: 'Gotham Black', sans-serif;  font-size: 1.8rem;
  color: #262626;
  margin-bottom: 15px;
}
.catalogo-descripcion {
font-family: 'Gotham Light';  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-catalogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #262626;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Gotham Black';
  transition: all 0.3s ease;
  border: 2px solid #262626;
}
.btn-catalogo:hover {
  background: white;
  color: #262626;
  transform: scale(1.05);
}
.catalogo-icon {
  font-size: 1.2rem;
}
/* Responsive */
@media (max-width: 768px) {
  .productos-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .catalogo-section {
    padding: 30px 20px;
    margin: 0 20px;
  }
  .catalogo-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .productos-section {
    padding: 60px 20px;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
  .producto-card {
    padding: 25px 20px;
  }
  .producto-nombre {
    font-size: 1.3rem;
  }
  .btn-detalles, .btn-catalogo {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}
.popup-content {
  background: white;
  border-radius: 20px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.popup.active .popup-content {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}
.popup-close:hover {
  background: #A58F72;
  color: white;
  transform: rotate(90deg);
}
#popupImagenSrc {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px 20px 0 0;
  display: block;
}
/* Cambiar botón a elemento button */
.btn-detalles {
  display: inline-block;
  background: #A58F72;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #A58F72;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-detalles:hover {
  background: white;
  color: #A58F72;
  transform: scale(1.05);
}
/* Responsive para el popup */
@media (max-width: 768px) {
  .popup-content {
    max-width: 95%;
    max-height: 95%;
  }
  .popup-caption {
    padding: 15px 20px;
  }
  .popup-caption h4 {
    font-size: 1.3rem;
  }
  .popup-close {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
}
.simple-parallax {
  height: 300px;
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('images/parallax-2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* Para tablets */
@media (max-width: 1024px) {
  .simple-parallax {
    height: 250px;
  }
  .parallax-bg {
    height: 110%;
    background-attachment: scroll; /* Mejor rendimiento en tablets */
  }
}
/* Para móviles grandes */
@media (max-width: 768px) {
  .simple-parallax {
    height: 200px;
  }
  .parallax-bg {
    height: 100%;
    background-attachment: scroll; /* Desactiva parallax en móviles */
    background-position: center center;
  }
}
/* Para móviles pequeños */
@media (max-width: 480px) {
  .simple-parallax {
    height: 150px;
  }
}
/* Para dispositivos muy pequeños */
@media (max-width: 360px) {
  .simple-parallax {
    height: 120px;
  }
}
/* Opcional: Optimizar para dispositivos con pantalla táctil */
@media (hover: none) and (pointer: coarse) {
  .parallax-bg {
    background-attachment: scroll; /* Desactiva parallax en táctiles */
  }
}
/* CAMPO MESA */
.proceso-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.page-title {
  text-align: center;
font-family: 'Gotham Black', sans-serif;  
  font-size: 3rem;
  margin-bottom: 20px;
  color: #262626;
}
.proceso-subtitle {
  text-align: center;
font-family: 'Gotham Light';  font-size: 1.3rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
/* Timeline Zig-Zag */
.timeline-zigzag {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 80px;
}
/* Línea vertical central */
.timeline-zigzag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #A58F72, #8a7860);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 1;
}
.paso-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  min-height: 250px;
}
/* Elementos comunes */
.paso-contenido, .paso-imagen {
  width: 45%;
  position: relative;
}
/* Contenido (tarjetas de texto) */
.paso-contenido {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  z-index: 2;
}
.paso-contenido:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #A58F72;
}
/* Imágenes */
.paso-imagen img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 3px solid white;
}
.paso-imagen img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
/* Posicionamiento izquierda/derecha */
.izquierda {
  margin-right: auto;
}
.derecha {
  margin-left: auto;
}
/* Números de paso */
.step-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #A58F72;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gotham Black', sans-serif;
  font-size: 1rem;
  z-index: 3;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #A58F72;
}
/* Números para contenido izquierda */
.paso-contenido.izquierda .step-number {
  right: -60px;
}
/* Números para contenido derecha */
.paso-contenido.derecha .step-number {
  left: -60px;
}
/* Iconos y texto */
.step-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
}
.step-title {
font-family: 'Gotham Black';  font-size: 1.6rem;
  color: #262626;
  margin-bottom: 10px;
  text-align: center;
}
.step-description {
font-family: 'Gotham Light';  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
/* Estadísticas */
.estadisticas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.estadistica-item {
  background: white;
  padding: 40px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.estadistica-item:hover {
  transform: translateY(-5px);
  border-color: #A58F72;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.estadistica-number {
font-family: 'Gotham Black', sans-serif;  font-size: 2.5rem;
  color: #A58F72;
  margin-bottom: 10px;
}
.estadistica-text {
font-family: 'Gotham Light';  color: #262626;
  font-size: 1.1rem;
}
/* Responsive */
@media (max-width: 768px) {
  .timeline-zigzag::before {
    left: 30px;
  }
  .paso-item {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 80px;
  }
  .paso-contenido, .paso-imagen {
    width: 100%;
    margin: 0 0 20px 0 !important;
  }
  .paso-imagen img {
    height: 200px;
  }
  /* Números en móvil */
  .paso-contenido .step-number {
    left: 50% !important;
    right: auto !important;
    top: -20px;
    transform: translateX(-50%);
  }
  .estadisticas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .estadisticas {
    grid-template-columns: 1fr;
  }
  .paso-contenido {
    padding: 25px 20px;
  }
  .step-title {
    font-size: 1.4rem;
  }
  .step-icon {
    font-size: 2rem;
  }
}

  /* ENCONTRANOS */
.encontranos-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
font-family: 'Gotham Black', sans-serif;  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #262626;
}

.images-grid {
  display: flex;
  gap: 0;
  justify-content: center;
  height: 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-card {
  flex: 1;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.image-card:nth-child(2) {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: -15%;
}

.image-card:not(:hover) {
  flex: 1;
  filter: grayscale(100%);
}

.image-card:hover {
  flex: 2;
  z-index: 2;
  filter: grayscale(0%);
}

.images-grid:hover .image-card:not(:hover) {
  filter: grayscale(100%) brightness(0.8);
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.image-card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.image-card:hover .card-overlay {
  opacity: 1;
}

.content-wrapper {
  text-align: center;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.image-card:hover .content-wrapper {
  transform: translateY(0);
}

.card-title {
font-family: 'Gotham Black';  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.info-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #C1D38E;
  color: white;
  text-decoration: none;
  border-radius: 25px;
font-family: 'Gotham Black'; 
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-btn:hover {
  background-color: #6D774D;
  transform: scale(1.1);
	color: white;
}

/* ===== CORRECCIONES PARA CELULAR ===== */

/* Para todos los móviles (hasta 768px) */
@media (max-width: 768px) {
  .images-grid {
    flex-direction: column;
    height: auto;
    border-radius: 15px;
    gap: 0;
  }
  
  .image-card {
    height: 250px;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%) !important; /* Quitar clip-path */
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    filter: grayscale(0%) !important; /* Mostrar siempre en color */
    flex: none !important; /* Quitar flex grow */
  }
  
  .image-card:nth-child(2) {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%) !important;
    margin-left: 0 !important;
  }
  
  /* Mostrar siempre el overlay en móviles */
  .card-overlay {
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  }
  
  .content-wrapper {
    transform: translateY(0) !important; /* Mostrar siempre el contenido */
  }
  
  .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .info-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  /* Desactivar efectos hover en móviles */
  .image-card:hover {
    flex: none !important;
    transform: none !important;
  }
  
  .image-card:hover .card-image {
    transform: none !important;
  }
}

/* Tablet (768px - 1024px) - MANTENER COMPORTAMIENTO ORIGINAL */
@media (max-width: 1024px) and (min-width: 769px) {
  .images-grid {
    height: 400px;
  }
  
  .image-card {
    min-width: 250px;
  }
  
  .image-card:hover {
    flex: 1.8;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
}

/* Ajustes específicos para móviles más pequeños */
@media (max-width: 576px) {
  .images-grid {
    border-radius: 12px;
  }
  
  .image-card {
    height: 220px;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .info-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .image-card {
    height: 200px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
}

/* FOTO*/

.simple-parallax3 {
  height: 300px;
  position: relative;
  overflow: hidden;
}
.parallax-bg3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('images/parallax-4.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* Para tablets */
@media (max-width: 1024px) {
  .simple-parallax3 {
    height: 250px;
  }
  .parallax-bg3 {
    height: 110%;
    background-attachment: scroll; /* Mejor rendimiento en tablets */
  }
}
/* Para móviles grandes */
@media (max-width: 768px) {
  .simple-parallax3 {
    height: 200px;
  }
  .parallax-bg3 {
    height: 100%;
    background-attachment: scroll; /* Desactiva parallax en móviles */
    background-position: center center;
  }
}
/* Para móviles pequeños */
@media (max-width: 480px) {
  .simple-parallax3 {
    height: 150px;
  }
}
/* Para dispositivos muy pequeños */
@media (max-width: 360px) {
  .simple-parallax3 {
    height: 120px;
  }

}
/* Opcional: Optimizar para dispositivos con pantalla táctil */
@media (hover: none) and (pointer: coarse) {
  .parallax-bg3 {
    background-attachment: scroll; /* Desactiva parallax en táctiles */
  }
}
/* BUSCADOR */
.buscador-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.page-title {
  text-align: center;
font-family: 'Gotham Black', sans-serif;  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #262626;
}
/* Buscador */
.search-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  text-align: center;
}
/* Filtros - Solo provincia */
.filters {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.filters select {
  min-width: 300px;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1rem;
}
.filters select:focus {
  outline: none;
  border-color: #A58F72;
}
.clear-btn {
  padding: 15px 30px;
  background: #A58F72;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1rem;
}
.clear-btn:hover {
  background: #8a7860;
  transform: scale(1.05);
}
/* Lista de Resultados - 3 POR FILA */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Grupo por Provincia */
.province-group {
  margin-bottom: 50px;
}
.province-header {
font-family: 'Gotham Black', sans-serif;  font-size: 1.8rem;
  color: #262626;
  margin-bottom: 30px;
  text-align: center;
  
  position: relative;
  padding-bottom: 15px;
}
/* Línea divisora entre provincias */
.province-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: #A58F72;
}
/* Grid de locales - 3 por fila */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.location-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.location-name {
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  color: #262626;
  margin-bottom: 8px;
  font-weight: bold;
}
.location-address {
  color: #666;
  margin-bottom: 5px;
  line-height: 1.4;
  font-size: 0.9rem;
}
.location-city {
  color: #A58F72;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.location-meta {
  margin-top: 10px;
}
.location-hours {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 8px;
  display: block;
}
.location-phone {
  color: #A58F72;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}
.location-phone:hover {
  text-decoration: underline;
}
/* Estados vacíos */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
/* Responsive */
@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    width: 100%;
  }
  .filters select, .clear-btn {
    width: 100%;
    min-width: auto;
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .province-header {
    font-size: 1.5rem;
  }
}
/* CREDITOS */
.footer {
  background: #262626;
  color: white;
  padding: 50px 20px 20px;
font-family: 'Gotham Light';
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}
.footer-desc {
  color: #ccc;
  line-height: 1.6;
  max-width: 300px;
}
/* Contacto */
.footer-contact h4, .footer-social h4 {
  color: #A58F72;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #ccc;
}
.contact-item a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-item a:hover {
  color: #A58F72;
}
.contact-icon {
  width: 20px;
  text-align: center;
}
/* Redes Sociales */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}
.social-link:hover {
  color: #A58F72;
  transform: translateX(5px);
}
.social-icon {
  width: 20px;
  text-align: center;
}
/* Línea separadora */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #A58F72, transparent);
  margin: 30px 0 20px;
}
/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: #999;
  font-size: 0.9rem;
}
.footer-copyright {
  text-align: left;
}
.footer-credits {
  text-align: right;
}
/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-desc {
    max-width: 100%;
  }
  .contact-item {
    justify-content: center;
  }
  .social-links {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-copyright, .footer-credits {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer {
    padding: 40px 20px 20px;
  }
  .footer-content {
    gap: 25px;
  }
}

/* Historia Simple con 3 imágenes */
.historia-simple {
    padding: 80px 20px;
    background: #f8f8f8;
}

.page-title {
    text-align: center;
font-family: 'Gotham Black';    font-size: 3rem;
    margin-bottom: 60px;
    color: #262626;
}

/* Bloques de historia */
.historia-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.historia-block.reverse {
    flex-direction: row-reverse;
}

.historia-text {
    flex: 1;
}

.historia-text h2 {
font-family: 'Gotham Light';    font-size: 2rem;
    color: #262626;
    margin-bottom: 20px;
    position: relative;
}

.historia-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #A58F72;
}

.historia-text p {
font-family: 'Gotham Light';    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Contenedor de 3 imágenes */
.historia-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 300px;
}

.historia-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.historia-image:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.historia-image:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.historia-image:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.historia-image:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .historia-block {
        gap: 40px;
    }
    
    .historia-images {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .historia-block,
    .historia-block.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
    }
    
    .historia-images {
        height: 300px;
        width: 100%;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .historia-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .historia-simple {
        padding: 60px 20px;
    }
    
    .historia-images {
        height: 250px;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    
    .historia-image:first-child,
    .historia-image:nth-child(2),
    .historia-image:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: auto;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .historia-text h2 {
        font-size: 1.6rem;
    }
}

.location-card {
  position: relative; /* Para posicionar el botón de Instagram de forma absoluta */
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: 120px; /* Asegura que haya espacio para el botón */
}

.instagram-container {
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.instagram-btn {
  display: block;
  transition: all 0.3s ease;
}

.instagram-icon {
  width: 30px; /* Ajusta el tamaño según tu imagen */
  height: 30px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.instagram-btn:hover .instagram-icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.location-info {
  margin-right: 40px; /* Espacio para que no se superponga con el botón de Instagram */
}
/* Sección Nuestros Amigos */
.amigos-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-family: 'Gotham Black', sans-serif;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #262626;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #A58F72;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-family: 'Gotham Light', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* El resto del CSS de la grilla y popup se mantiene igual */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
    filter: grayscale(100%) brightness(0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Alineaciones con porcentajes personalizados */
.slide-1 { object-position: 50% 10%; }
.slide-2 { object-position: 50% 60%; }
.slide-3 { object-position: 50% 30%; }
.slide-4 { object-position: 50% 40%; }
.slide-5 { object-position: 50% 60%; }
.slide-6 { object-position: 50% 20%; }
.slide-7 { object-position: 50% 20%; }
.slide-8 { object-position: 50% 20%; }
.slide-9 { object-position: 50% 20%; }
.slide-10 { object-position: 50% 20%; }
.slide-11 { object-position: 50% 20%; }
.slide-12 { object-position: 50% 20%; }
.slide-13 { object-position: 50% 20%; }
.slide-14 { object-position: 50% 20%; }
.slide-15 { object-position: 50% 20%; }

.grid-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.grid-item:hover {
    transform: translateY(-5px);
}
/* Popup Styles - MÁS PEQUEÑO */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.popup-content {
    position: relative;
    max-width: 70%; /* Reducido de 95% a 70% */
    max-height: 70%; /* Reducido de 95% a 70% */
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: -50px; /* Mover fuera de la imagen */
    right: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.5);
}

#popupImage {
    max-width: 90%; /* La imagen ocupa 90% del contenedor */
    max-height: 90%; /* La imagen ocupa 90% del contenedor */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: white; /* Fondo blanco para imágenes con transparencia */
    padding: 10px; /* Espacio interno */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive para el popup */
@media (max-width: 1024px) {
    .popup-content {
        max-width: 80%; /* Un poco más grande en tablets */
        max-height: 80%;
    }
    
    .popup-close {
        top: -45px;
        font-size: 2.2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 85%; /* Más grande en móviles */
        max-height: 85%;
    }
    
    .popup-close {
        top: -40px;
        right: 10px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    #popupImage {
        max-width: 95%;
        max-height: 95%;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 90%; /* Casi toda la pantalla en móviles pequeños */
        max-height: 90%;
    }
    
    .popup-close {
        top: -35px;
        right: 5px;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    #popupImage {
        max-width: 98%;
        max-height: 98%;
        padding: 5px;
    }
}

/* Para controlar el tamaño máximo absoluto */
#popupImage {
    max-width: 800px !important; /* Tamaño máximo absoluto */
    max-height: 600px !important; /* Tamaño máximo absoluto */
}

/* Versión alternativa - Tamaño fijo más pequeño */
.popup-content.fixed-size {
    max-width: 600px;
    max-height: 500px;
}

#popupImage.fixed-size {
    max-width: 550px;
    max-height: 450px;
}

/* Responsive para el popup */
@media (max-width: 1024px) {
    .popup-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .popup-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .popup {
        padding: 15px;
    }
    
    .popup-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .popup-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
    
    #popupImage {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .popup {
        padding: 10px;
    }
    
    .popup-close {
        top: 8px;
        right: 12px;
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }
}

/* Para imágenes muy grandes o muy pequeñas */
#popupImage.large-image {
    width: 100%;
    height: auto;
}

#popupImage.small-image {
    width: auto;
    height: 80%;
}

/* Efecto de carga suave */
#popupImage {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active #popupImage {
    opacity: 1;
}
/* Responsive para la sección */
@media (max-width: 768px) {
    .amigos-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .amigos-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}