:root {
  --verde-principal: #568203;
  --rojo-rosa: #A52A2A;
  --amarillo-dorado: #FFD700;
  --marron-semilla: #8B4513;
  --gris-claro: #F5F5F5;
  --negro: #000000;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #212121;
}

/* Header */
header.hero {
  background: url('imagenes/fondo-naturaleza-tec.png') center/cover no-repeat;
  padding-top: 60px;
  position: relative;
}

header.hero .container {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--negro);
  padding: 40px 50px;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Logo */
.logo {
  width: 120px;
  max-width: 35%;
  margin: 20px 0;
}

/* Título */
h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--rojo-rosa);
}

/* Frase animada */
.frase-proceso {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--verde-principal);
  max-width: 500px;
  animation: floatFade 4s ease-in-out infinite;
  margin: 10px auto 30px;
  text-align: center;
}

@keyframes floatFade {
  0%, 100% { opacity: 0.4; transform: translateY(2px); }
  50% { opacity: 1; transform: translateY(0); }
}

/* Lotties */
#lottie-planta,
#aguacate-animado {
  display: block;
  margin: auto;
}

#lottie-planta {
  width: 220px;
  height: 220px;
}

#aguacate-animado {
  width: 200px;
  height: 200px;
  position: absolute;
  bottom: 20px;
  animation: caminarAguacate 12s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes caminarAguacate {
  0% { left: -200px; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 50%; transform: translateX(-50%); }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Botones */
.btn-primary, .main-menu a {
  background-color: var(--verde-principal);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover, .main-menu a:hover {
  background-color: var(--amarillo-dorado);
  color: var(--negro);
}

.btn-secondary {
  background-color: var(--verde-principal);
}

.btn-secondary:hover {
  background-color: var(--amarillo-dorado);
  color: var(--negro);
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Pasos */
.step {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid var(--verde-principal);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
  text-align: center;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background-color: #f9fff4;
  border-left-color: var(--amarillo-dorado);
}

.step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background: url('imagenes/fondo-tierra-negra.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.footer-redes {
  margin-top: 20px;
}

.footer-redes a {
  color: white;
  margin: 0 10px;
  font-size: 1.4rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-redes a:hover {
  color: var(--amarillo-dorado);
}

.footer-redes .telefono {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

/* Mosaico borde */
body:not(.no-mosaico)::before {
  content: "";
  display: block;
  width: 100%;
  height: 60px;
  background: url('imagenes/borde-aguacates.png') repeat-x;
  background-size: contain;
}

body.no-mosaico::before,
body.login-page::before {
  content: none !important;
  display: none !important;
}

body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.login-container {
  margin: 0 !important;
}

/* Menú principal */
.main-menu.top {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  padding: 10px 0;
}

/* Icono hamburguesa */
.hamburguesa {
  display: none;
  font-size: 28px;
  color: var(--verde-principal);
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 1002;
  cursor: pointer;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    position: absolute;
    top: 100px;
    right: 30px;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1001;
  }

  .main-menu.mostrar {
    display: flex;
  }

  .main-menu a {
    display: block;
    margin: 10px 0;
    padding: 12px 16px;
    text-align: left;
    color: #333;
    background-color: transparent;
    border-radius: 6px;
    font-weight: bold;
  }

  .hamburguesa {
    display: block;
  }

  #lottie-planta {
    width: 140px;
    height: 140px;
  }

  #aguacate-animado {
    width: 80px;
    height: 80px;
  }

  .step-image {
    max-height: 140px;
  }
}

/* Extra para PC grandes */
@media (min-width: 1024px) {
  header.hero .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
  }
}
/* Oculta el menú por defecto */
.oculto {
  display: none;
}

/* Muestra el menú cuando se activa con JS */
.mostrar {
  display: flex;
  flex-direction: column;
}
