/* =============================================================
   5. Portada: tarjetas
   ============================================================= */
.hero { padding-block: 22px 56px; }
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; perspective: 1400px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 250px; padding: 22px; border-radius: var(--radius); overflow: hidden;
  color: #fff; isolation: isolate; background: var(--forest-2);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  box-shadow: 0 10px 30px rgba(18, 53, 31, 0.18);
  animation: rise 0.9s var(--ease-out) both;
}
.deck > :nth-child(2) { animation-delay: 0.08s; }
.deck > :nth-child(3) { animation-delay: 0.16s; }
.deck > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.tile:hover { --lift: -6px; box-shadow: 0 26px 50px rgba(18, 53, 31, 0.32); }
.tile[href="#servicios"] > img { object-position: 50% 85%; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: inherit; transition: transform 0.9s var(--ease-out); }
.tile:hover > img { transform: scale(1.06); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 28, 16, 0.1) 0%, rgba(10, 28, 16, 0.78) 100%);
}
.tile h2 { font-size: 1.35rem; margin-bottom: 0.35rem; overflow-wrap: anywhere; hyphens: auto; }
.tile--soon h2 { font-size: 1.8rem; }
.tile p { font-size: 0.98rem; line-height: 1.5; opacity: 0.95; }
.tile .go {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--forest); display: grid; place-items: center; font-size: 1.15rem;
  transition: transform 0.35s var(--ease-out);
}
.tile:hover .go { transform: rotate(45deg); }

/* Tarjeta principal */
.tile--main { grid-column: 1 / -1; min-height: 700px; padding: 26px; }
.tile--main .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; margin-bottom: 0.7rem; }
.tile--main h1 { font-size: clamp(3.4rem, 17vw, 6.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 0.7rem; }
.tile--main .tagline { font-size: 1.1rem; max-width: 30ch; margin-bottom: 1.4rem; }
.mvv {
  display: grid; gap: 14px; padding: 18px; border-radius: 20px;
  background: rgba(18, 53, 31, 0.72); border: 1px solid rgba(255, 255, 255, 0.28);
}
@supports (backdrop-filter: blur(10px)) {
  .mvv { background: rgba(18, 53, 31, 0.42); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
}
.mvv h2 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf-soft); margin: 0 0 0.2rem; }
.mvv p { font-size: 0.92rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.chips li { padding: 0.28rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); }

/* Tarjeta "Próximamente" */
.tile--soon {
  grid-column: 1 / -1; min-height: 210px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(160deg, var(--forest), var(--forest-2));
  border: 2px dashed rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.tile--soon::before { display: none; }
.tile--soon:hover { --lift: 0px; box-shadow: none; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: auto;
  padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.cta-row { margin-top: 18px; }
.cta-big {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem; width: 100%;
  padding: 1.35rem 1rem; border-radius: 22px; background: var(--forest); color: #fff;
  font-family: var(--display); font-size: clamp(1.15rem, 3.4vw, 1.5rem); font-weight: 700;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.cta-big:hover { transform: translateY(-3px); background: var(--forest-2); }
.cta-note { text-align: center; margin-top: 0.7rem; font-size: 0.92rem; color: var(--mute); }

/* =============================================================
   6. Cinta
   ============================================================= */
.marquee { overflow: hidden; background: var(--forest); color: var(--paper); padding-block: 16px; }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
@keyframes slide { to { transform: translateX(-50%); } }
