/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente global y espacio para el header fijo */
body {
  font-family: Arial, sans-serif;
  padding-top: 80px;
  background-color: white;
  transition: opacity 0.5s ease-in-out;
}

body.fade-out {
  opacity: 0;
}

/* ---------- Encabezado Fijo (Sticky Header) ---------- */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #66c766;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.3s ease-in-out;
}

.sticky-header:hover {
  background: #5ab55a;
}

.sticky-header .logo {
  max-width: 100px;
  height: auto;
}

/* ---------- Menú Desplegable ---------- */
.menu-toggle {
  background: #00796b;
  padding: 10px 16px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.menu-desplegable {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background: white;
  z-index: 1500;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  transition: right 0.3s ease-in-out;
  padding: 20px;
}

.menu-desplegable ul {
  list-style: none;
  padding: 0;
}

.menu-desplegable ul li {
  margin: 15px 0;
}

.menu-desplegable ul li a {
  color: #00796b;
  text-decoration: none;
  font-weight: bold;
}

.menu-desplegable.active {
  right: 0;
}

.menu-cerrar {
  text-align: right;
  font-size: 20px;
  cursor: pointer;
  color: #00796b;
  font-weight: bold;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1400;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.submenu-list {
  display: none;
  padding-left: 15px;
}

.submenu-toggle {
  cursor: pointer;
  color: #00796b;
  font-weight: bold;
}

.submenu-list li a {
  font-weight: normal;
}

.submenu.open .submenu-list {
  display: block;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: 40px 20px;
  background-color: white;
}

.hero-text {
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-text h2 {
  color: #2e7d32;
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-text p {
  color: #333;
  font-size: 18px;
}

.hero-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Secciones ---------- */
section {
  padding: 40px 20px;
  margin: 20px auto;
  background: #ffffff;
  border-radius: 0;
  max-width: 800px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

section h2 {
  margin-bottom: 20px;
}

/* ---------- Formularios ---------- */
form {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

form label {
  text-align: left;
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2e7d32;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  font-size: 16px;
  margin-bottom: 20px;
}

button {
  background: #66c766;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s;
}

button:hover {
  background: #5ab55a;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  background: #333;
  color: white;
  padding: 20px;
  margin-top: 20px;
}

/* ---------- Tarjetas Misión y Visión ---------- */
.card-container.full-width {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 100%;
  padding: 40px 5%;
  background-color: white;
}

.card.full-card {
  background-color: white;
  border-left: 8px solid #4caf50;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.card.full-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  margin-bottom: 15px;
}

.card-title.green {
  color: #2e7d32;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.card.full-card p {
  font-size: 17px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .sticky-header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .hero {
    height: auto;
    padding-top: 20px;
  }

  section {
    max-width: 90%;
    padding: 30px;
  }

  button {
    font-size: 14px;
  }

  .card.full-card {
    padding: 30px 20px;
  }

  .card.full-card p {
    font-size: 16px;
  }
}

.servicios {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.servicios h2 {
  font-size: 32px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.servicios-intro {
  font-size: 18px;
  color: #444;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.servicio-card {
  background: #fff;
  border-left: 6px solid #66c766;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.servicio-card:hover {
  transform: translateY(-6px);
}

.icono {
  font-size: 36px;
  margin-bottom: 15px;
}

.servicio-card h3 {
  font-size: 20px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-button img {
  width: 50px;
  height: 60px;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}


