
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background-color: #fdfcf8;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header fijo */
header {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 75px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}


@media (max-width: 768px) {
  .logo {
    height: 60px;
  }
}



.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #3d4f3d;
  font-weight: 500;
}

.nav a:hover {
  color: #698d69;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 30px;
  text-align: center;
  border-radius: 10px;
}

.hero-text h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.section {
  padding: 50px 0;
  text-align: center;
}

h2 {
  color: #3d4f3d;
  margin-bottom: 20px;
}


/* Eventos */
.eventos-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.eventos-lista li {
  background: #e8f0e8;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: bold;
}

/* Galería Slider */
.slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Contacto */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

input, textarea, button {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #3d4f3d;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #5d7f5d;
}

/* Footer */
.footer {
  background: #f3f3f3;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.footer-contacto p {
  margin: 5px 0;
}

.footer-redes img {
  width: 32px;
  height: 32px;
  margin: 0 5px;
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp img {
  width: 50px;
  height: 50px;
}

/* MAPA RESPONSIVO */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  animation: fill-logo 2s ease forwards;
  filter: grayscale(100%) brightness(0);
}

.preloader-text {
  font-size: 16px;
  color: #555;
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
}

@keyframes fill-logo {
  0% {
    filter: grayscale(100%) brightness(0);
  }
  50% {
    filter: grayscale(50%) brightness(0.5);
  }
  100% {
    filter: grayscale(0%) brightness(1);
  }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

/* Menú Hamburguesa */
#menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #3d4f3d;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
  }

  .nav.active {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }

  .header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
