/* ============================================================
   home.css — estilos exclusivos de index.html (hero de portada)
   ============================================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,58,42,0.82) 0%,
    rgba(26,58,42,0.50) 60%,
    rgba(26,58,42,0.20) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--blanco);
  max-width: 700px;
  padding: 120px 0 80px;
  animation: heroIn 1s 0.3s both;
}
@keyframes heroIn {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verde-menta);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(184,217,192,0.4);
  border-radius: 100px;
}
.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blanco);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--verde-menta);
}
.hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Grid responsive de la sección "Sobre nosotros" (antes inline en index.html) */
@media (max-width: 768px) {
  section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero__content { padding: 100px 0 60px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
}

/* ── PLANTAS PREVIEW (tarjetas de categoría, enlazan a plantas.html?cat=…) ── */
.plantas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.card-planta {
  display: block;
  text-decoration: none;
  background: var(--blanco);
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 1px solid var(--crema-oscura);
  transition: var(--transicion);
}
.card-planta:hover {
  box-shadow: var(--sombra-media);
  transform: translateY(-4px);
  border-color: var(--verde-menta);
}
.card-planta__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.card-planta__body { padding: 16px; }
.card-planta__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-claro);
  margin-bottom: 6px;
}
.card-planta__name {
  font-size: 1rem;
  color: var(--verde-oscuro);
  font-weight: 600;
}
@media (max-width: 480px) {
  .plantas-grid { grid-template-columns: repeat(2, 1fr); }
}
