/* --- GENERAL --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

.hero {
  background: url('hero.webp') center/cover no-repeat;
  height: 100vh;
  color: white;
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  background-color: rgba(56, 86, 21, 0.8);
  width: 100%;
  padding: 40px 20px;
}

.logo {
  width: 140px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  text-align: center;
  font-weight: 400;
  margin: 0;
}

h1 .grande {
  font-size: 3rem;
  font-weight: bold;
  display: block;
}

.btn {
  background-color: white;
  color: #385615;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 10px;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

section {
  padding: 40px 20px;
  text-align: center;
  background: white;
  margin-bottom: 20px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 10px 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

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

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

footer {
  text-align: center;
  padding: 20px;
  background-color: #385615;
  color: white;
}

/* --- RESPONSIVE FORM --- */
@media (max-width: 600px) {
  body {
    margin: 0;
    padding: 0;
  }

  form {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* --- GALERÍA CARRUSEL --- */
.galeria-scroll {
  text-align: center;
  padding: 3rem 1rem;
}

.galeria-scroll h2 {
  color: #385615;
  margin-bottom: 2rem;
}

.carrusel-contenedor {
  position: relative;
  width: 1080px;
  margin: auto;
  overflow: hidden;
}

.carrusel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carrusel {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}

.carrusel img {
  width: 350px;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.carrusel img:hover {
  transform: scale(1.03);
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(56, 86, 21, 0.8);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carrusel-btn.left {
  left: 10px;
}

.carrusel-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .carrusel-contenedor {
    width: 100%;
  }

  .carrusel img {
    width: 100vw;
    height: 200px;
    margin: 0;
    border-radius: 0;
  }
}

/* --- SECCIÓN VENTAJAS --- */
.ventajas {
  background-color: #f9f9f9;
  padding: 3rem 1rem;
  text-align: center;
}

.ventajas h2 {
  color: #385615;
  margin-bottom: 2rem;
}

.ventajas-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.ventaja-item {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.ventaja-item:hover {
  transform: translateY(-5px);
}

.ventaja-item img {
  width: 64px;
  height: auto;
  margin-bottom: 1rem;
}

.ventaja-item h3 {
  font-size: 1.1rem;
  color: #385615;
  margin: 0.5rem 0;
}

.ventaja-item p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* --- CTA SECTION --- */
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 4rem 2rem;
  background: #f8f8f8;
  border-top: 2px solid #ddd;
}

.cta-box {
  flex: 1 1 300px;
  background: white;
  padding: 2.5rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.cta-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
  line-height: 1;
}

.cta-box h3 {
  font-size: 1.4rem;
  color: #385615;
  margin-bottom: 0.8rem;
}

.cta-box p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cta-btn {
  display: inline-block;
  background: #385615;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.cta-btn.secondary {
  background: white;
  color: #385615;
  border: 2px solid #385615;
}

.cta-btn:hover {
  background: #2e460f;
  color: white;
}

/* --- TOP BAR IDIOMAS --- */
.top-bar {
  background-color: #f8f8f8;
  color: #333;
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.top-bar a {
  color: #385615;
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.3rem;
}

.top-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
  }
}

/* --- QUIENES SOMOS --- */
.quienes-somos {
  background-color: #f9f9f9;
  padding: 3rem 1.5rem;
  text-align: center;
}

.contenido-centrado {
  max-width: 800px;
  margin: 0 auto;
}

.quienes-somos h2 {
  color: #385615;
  margin-bottom: 1rem;
}

.quienes-somos p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.descubre-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background-color: #385615;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.descubre-btn:hover {
  background-color: #2e460f;
}

/* --- CARRUSEL LOGOS --- */
.carrusel-logos {
  background: white;
  padding: 2rem 1rem;
  overflow: hidden;
}

.carrusel-logos-wrapper {
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.carrusel-logos-track {
  display: flex;
  gap: 2rem;
  animation: desplazamiento 40s linear infinite;
  width: max-content;
}

.carrusel-logos-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.carrusel-logos-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes desplazamiento {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}