@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --color-1: white;
  --text-color: #333333;
  --accent-color: #43b248;
}

html {
  scroll-snap-type: y mandatory;
}

body {
  font-family: "Lato", serif;
  overflow-x: hidden;
}

.navpadding {
  margin-left: 30px;
  height: 100%;
  width: auto;
}

.navpadding2 {
  margin-right: 30px;
}

.sec1 {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 10px;
  overflow: hidden;
}

.image-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.imgsec1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.green-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 93, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

.sec1 h1 {
  position: absolute;
  color: white;
  font-weight: 400;
  font-size: 45px;
  top: 50%;
  left: 0;
  text-align: center;
  width: 100%;
  font-family: "Playfair Display", serif;
  transform: translateY(-50%);
  z-index: 10;
}

footer {
  background-color: #144816;
  color: white;
  padding-top: 80px;
  padding-left: 120px;
  padding-right: 120px;
  padding-bottom: 20px;
}

.flogo {
  width: auto;
  height: 75px;
}

footer li,
footer p {
  font-size: 14px;
}

footer .text-green-600 {
  font-size: 18px;
}

.scroll-info {
  top: 1rem;
}

h1 {
  font-weight: 300;
  font-size: 1rem;
}

.specialbtn2 {
  background-color: #43b248;
  color: white;
  border: unset;
  border-radius: 2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.specialbtn2:hover {
  background: linear-gradient(43deg, var(--myColor1) 0%, var(--myColor2) 46%, var(--myColor3) 100%);
  transition: --myColor1 0.4s, --myColor2 0.5s, --myColor3 0.2s;
  --myColor1: #43b248;
  --myColor2: #d4b757;
  --myColor3: #ffdb98;
}

.specialbtn2:not(:hover) {
  background: linear-gradient(var(--myColor1), var(--myColor2));
  transition: --myColor1 0.4s, --myColor2 0.5s, --myColor3 0.2s;
}

@property --myColor1 {
  syntax: '<color>';
  initial-value: #43b248;
  inherits: false;
}

@property --myColor2 {
  syntax: '<color>';
  initial-value: #43b248;
  inherits: false;
}

@property --myColor3 {
  syntax: '<color>';
  initial-value: #43b248;
  inherits: false;
}

/* 👇 GALERÍA EN GRID VARIADO - Versión desktop */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
  padding: 40px;
  max-width: 1300px;
  margin: 0 auto;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Variaciones en el grid */
.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

/* Versión móvil de la galería - oculta por defecto */
.mobile-gallery {
  display: none;
  padding: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.mobile-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  height: 300px;
}

.mobile-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Media queries para dispositivos móviles */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    padding: 30px;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    padding: 20px;
    gap: 10px;
  }
  
  .sec1 h1 {
    font-size: 40px;
  }
}

/* En móviles, mostramos la versión móvil y ocultamos la versión grid */
@media (max-width: 576px) {
  .gallery-grid {
    display: none !important; /* Ocultamos completamente la versión grid */
  }
  
  .mobile-gallery {
    display: block; /* Mostramos la versión móvil en una sola columna */
  }
  
  .sec1 h1 {
    font-size: 35px;
  }
}
