/* ============================================================
   LAYOUT.CSS
   La estructura de la página: encabezado, portada, franjas, pasos, pie de página y cuadrículas.
   Las animaciones del sello giratorio y la entrada del título están en la sección "Portada".

   Contenido:
   1. Cuadrículas
   2. Encabezado, menú y botón del pedido
   3. Portada (hero): fondo, título y sello giratorio
   4. Encabezado de las páginas internas
   5. Filas de colecciones (Medicinales, Aromáticas...)
   6. Franja verde oscura "Pedir una planta tiene que ser fácil"
   7. Pasos numerados y bloque final (CTA)
   8. Pie de página
   9. Variantes de sección y utilidades
   ============================================================ */

/* ---------- Cuadrículas ---------- */
.grid {
  display: grid;
  gap: 28px 22px;
}

.g4 {
  grid-template-columns: repeat(4,1fr);
}

.g3 {
  grid-template-columns: repeat(3,1fr);
}

.g2 {
  grid-template-columns: repeat(2,1fr);
}

/* ---------- Encabezado, menú y botón del pedido ---------- */
.announce {
  background: var(--g900);
  color: #dfe8cf;
  text-align: center;
  font-size: .8rem;
  padding: 9px 16px;
  font-weight: 500;
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238,241,227,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand b {
  display: block;
  font: 400 1.25rem/1.05 var(--serif);
  color: var(--g800);
}

.brand small {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--g600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--out);
}

.nav a[aria-current] {
  font-weight: 700;
  color: var(--g800);
}

.nav a[aria-current]::after {
  transform: scaleX(1);
}

@media (hover:hover) and (pointer:fine) {
  .nav a:hover::after {
    transform: scaleX(1);
  }
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--g800);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: transform 160ms var(--out),background-color 160ms ease;
}

.cart-btn svg {
  width: 18px;
  height: 18px;
}

.cart-btn:active {
  transform: scale(.97);
}

.cart-btn i {
  font-style: normal;
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--g900);
  font-size: .75rem;
  display: grid;
  place-items: center;
  transition: transform 200ms var(--out);
}

.cart-btn i.bump {
  transform: scale(1.3);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Portada (hero): fondo, título y sello giratorio ---------- */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh,780px);
  display: flex;
  align-items: center;
  border-radius: 0 0 56px 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(../assets/fondo.webp) center/cover;
  transform: scale(1.05);
  animation: slow 26s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,rgba(14,26,12,.94) 10%,rgba(22,41,26,.66) 58%,rgba(22,41,26,.4));
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding-block: 80px 96px;
}

.hero h1 {
  max-width: 13ch;
}

.hero p {
  font-size: 1.12rem;
  max-width: 44ch;
  margin: 24px 0 34px;
  color: #dbe5c9;
}

.hero [data-in] {
  animation: in 760ms var(--out) both;
  animation-delay: calc(var(--d,0)*90ms);
}

.seal {
  position: relative;
  justify-self: center;
  width: min(380px,100%);
  aspect-ratio: 1;
  animation: pop 900ms var(--out) 300ms both;
}

.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 48s linear infinite;
}

.seal text {
  font: 600 17px var(--sans);
  letter-spacing: .14em;
  fill: var(--gold);
}

.seal img {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

/* ---------- Encabezado de las páginas internas ---------- */
.phead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: clamp(48px,6vw,80px) 0 clamp(40px,5vw,60px);
  border-radius: 0 0 44px 44px;
}

.phead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(../assets/fondo.webp) center/cover;
}

.phead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,rgba(14,26,12,.94),rgba(22,41,26,.7));
}

.phead h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem,5vw,3.8rem);
}

.phead p {
  color: #dbe5c9;
  margin-top: 18px;
  max-width: 52ch;
}

/* ---------- Filas de colecciones (Medicinales, Aromáticas...) ---------- */
.rl {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px 8px;
  border-top: 1px solid var(--g800);
  transition: background-color 200ms ease,color 200ms ease;
}

.rl:last-child {
  border-bottom: 1px solid var(--g800);
}

.rl .rn {
  font: 400 clamp(1.8rem,4vw,3rem)/1 var(--serif);
  display: block;
  transition: transform 300ms var(--out);
}

.rl p {
  color: var(--muted);
  transition: color 200ms ease;
}

.rl .rc {
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rl .rc::after {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  background: no-repeat center/18px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324421f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}

.rl:active .rn {
  transform: scale(.98);
}

@media (hover:hover) and (pointer:fine) {
  .rl:hover {
    background: var(--g800);
    color: #fff;
  }
  .rl:hover .rn {
    transform: translateX(14px);
  }
  .rl:hover p {
    color: #cfdcba;
  }
  .rl:hover .rc::after {
    background-color: var(--gold);
    box-shadow: none;
  }
}

/* ---------- Franja verde oscura "Pedir una planta tiene que ser fácil" ---------- */
.band {
  position: relative;
  isolation: isolate;
  background: var(--g900);
  color: #e8efd9;
  border-radius: 56px;
  margin-inline: min(2vw,24px);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url(../assets/fondo.webp) center/cover;
  opacity: .16;
}

.why {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
}

.why h2 {
  max-width: 12ch;
  position: sticky;
  top: 110px;
  align-self: start;
  color: #fff;
}

.why li {
  list-style: none;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}

.why li:last-child {
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.why b {
  font: 400 1.35rem/1.2 var(--serif);
  color: var(--gold);
}

.why span {
  color: #cfdcba;
}

/* ---------- Pasos numerados y bloque final (CTA) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 36px;
}

.st {
  border-top: 2px dashed var(--g600);
  padding-top: 22px;
}

.st b {
  font: 400 4.2rem/1 var(--serif);
  color: var(--g600);
  display: block;
  margin-bottom: 8px;
}

.st p {
  color: var(--muted);
  max-width: 30ch;
  margin-top: 6px;
}

.cta {
  background: var(--gold);
  color: var(--g900);
  border-radius: 260px 260px 32px 32px;
  padding: clamp(56px,8vw,96px) 20px clamp(40px,6vw,64px);
  text-align: center;
}

.cta p {
  margin: 14px auto 28px;
  max-width: 44ch;
}

.cta .acts {
  justify-content: center;
}

.cta .btn.ghost {
  color: var(--g900);
  box-shadow: inset 0 0 0 1.5px var(--g900);
}

/* ---------- Pie de página ---------- */
.ftr {
  background: var(--g900);
  color: #cbd8b6;
  padding: 72px 0 28px;
  margin-top: 72px;
  border-radius: 56px 56px 0 0;
}

.ftr .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.ftr h3 {
  font: 400 1.1rem var(--serif);
  color: #fff;
  margin-bottom: 14px;
}

.ftr a, .ftr p {
  display: block;
  font-size: .9rem;
  margin-bottom: 8px;
}

.ftr a:hover {
  color: #fff;
}

.ftr .brand b {
  color: #fff;
}

.ftr .brand small {
  color: #9fb18a;
}

.ftr .bot {
  grid-column: 1/-1;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Variantes de sección y utilidades ---------- */
.sec-flush {
  padding-top: 0;
}

.sec-top-sm {
  padding-top: 36px;
}

.head-spaced {
  margin: 72px 0 24px;
}

.head-spaced-lg {
  margin: 88px 0 24px;
}

.faq {
  max-width: 760px;
}

.split {
  align-items: center;
  gap: 56px;
}

.split-top {
  align-items: start;
  gap: 56px;
}

.acts-spaced {
  margin-top: 28px;
}

.arch-img {
  border-radius: 200px 200px 28px 28px;
  box-shadow: var(--sh);
}

.steps,
.vals,
.why ul {
  list-style: none;
  padding: 0;
}

.form-title {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.btn-block {
  width: 100%;
}
