/* ============================================================
   HOME — estilos específicos de la página de inicio
   ============================================================ */

/* ── HERO ── */
#hero {
  height: calc(100vh - var(--header-h));
  min-height: 780px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  padding-top: 140px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,8,0.96) 26%, rgba(8,8,8,0.6) 55%, rgba(8,8,8,0.18) 100%),
    linear-gradient(to top, rgba(8,8,8,0.96) 0%, rgba(8,8,8,0.25) 38%, transparent 65%),
    url('/assets/img/hero/home-hero.jpg') center/cover no-repeat;
}
.hero-stripe {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--orange); z-index: 4;
}
.hero-body {
  position: relative; z-index: 2;
  padding: 0 var(--pad-x) 100px;
  max-width: 740px;
}
.hero-ey {
  font-family: var(--fc);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-ey::before { content: ''; width: 36px; height: 1px; background: var(--orange); }

.hero-title {
  font-family: var(--fd);
  font-size: clamp(46px, 6.8vw, 88px);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 30px;
}
.hero-title span { color: var(--orange); }

.hero-desc {
  font-size: 16px;
  line-height: 1.82;
  color: var(--w2);
  max-width: 520px;
  margin-bottom: 44px;
}
.hero-desc strong { color: var(--white); font-weight: 500; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  right: var(--pad-x); bottom: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
}
.hs { text-align: right; }
.hs-n { font-family: var(--fd); font-size: 44px; color: var(--orange); line-height: 1; }
.hs-hr { width: 20px; height: 1px; background: var(--orange); opacity: 0.5; margin: 7px 0 7px auto; }
.hs-l { font-family: var(--fc); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); opacity: 0.85; }

.hero-scroll {
  position: absolute; left: var(--pad-x); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--orange)); }
.hero-scroll-txt { font-family: var(--fc); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--w3); writing-mode: vertical-rl; transform: rotate(180deg); }

/* ── MARQUEE ── */
.mq-wrap { background: var(--orange); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; animation: mq 32s linear infinite; }
.mq-item { font-family: var(--fc); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; padding: 0 44px; }
.mq-dot { color: rgba(255,255,255,0.35); font-size: 20px; vertical-align: middle; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── POPULAR ── */
#popular { padding: 92px var(--pad-x); background: var(--b2); }
.pop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.pop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.pop-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pop-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.65s ease, filter 0.5s ease;
  filter: brightness(0.58) grayscale(8%);
}
.pop-card:hover .pop-bg { transform: scale(1.08); filter: brightness(0.82) grayscale(0%); }
.pop-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.08) 52%, transparent 100%);
}
.pop-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 3;
}
.pop-card:hover::after { transform: scaleX(1); }
.pop-body { position: relative; z-index: 2; padding: 22px 20px; }
.pop-tag { font-family: var(--fc); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); margin-bottom: 7px; }
.pop-name { font-family: var(--fd); font-size: 28px; line-height: 1; color: var(--white); }
.pop-sub { font-family: var(--fc); font-size: 12px; color: var(--w2); margin-top: 5px; letter-spacing: 0.04em; }
.pop-arr {
  position: absolute; top: 16px; right: 16px;
  z-index: 2; width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.22s, border-color 0.22s;
}
.pop-card:hover .pop-arr { opacity: 1; transform: translateY(0); background: var(--orange); border-color: var(--orange); }

/* ── ABOUT MINI ── */
#about-mini { padding: 92px var(--pad-x); background: var(--black); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.about-img {
  width: 100%; height: 100%;
  background: url('/assets/img/nosotros/equipo-almaco.jpg') center/cover;
  filter: brightness(0.72);
  transition: filter 0.5s;
}
.about-img-wrap:hover .about-img { filter: brightness(0.88); }
.ac-h { position: absolute; bottom: 0; left: 0; width: 38%; height: 3px; background: var(--orange); }
.ac-v { position: absolute; bottom: 0; left: 0; width: 3px; height: 28%; background: var(--orange); }
.about-badge { position: absolute; top: 24px; right: 24px; background: var(--orange); padding: 14px 18px; text-align: center; }
.about-badge-n { font-family: var(--fd); font-size: 22px; color: #fff; line-height: 1; }
.about-badge-l { font-family: var(--fc); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.88); margin-top: 4px; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--border);
}
.astat { padding: 22px 20px; background: var(--card); border-right: 1px solid var(--border); }
.astat:nth-child(2n) { border-right: none; }
.astat-n { font-family: var(--fd); font-size: 36px; color: var(--orange); line-height: 1; }
.astat-l { font-family: var(--fc); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--w2); margin-top: 5px; }

/* ── STRIP ── */
.strip { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 400px; gap: 3px; overflow: hidden; }
.strip-cell { overflow: hidden; position: relative; }
.strip-img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.75s ease, filter 0.5s ease;
  filter: brightness(0.58) grayscale(8%);
}
.strip-cell:hover .strip-img { transform: scale(1.07); filter: brightness(0.82) grayscale(0%); }
.strip-cell::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,8,8,0.75) 0%, transparent 55%);
}
.strip-cell::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.38s ease;
}
.strip-cell:hover::after { transform: scaleX(1); }
.strip-label { position: absolute; bottom: 20px; left: 20px; z-index: 3; font-family: var(--fc); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.strip-num { position: absolute; top: 20px; right: 20px; z-index: 3; font-family: var(--fc); font-size: 11px; color: rgba(242,237,232,0.3); transition: color 0.3s; }
.strip-cell:hover .strip-num { color: var(--orange); }

/* ── MENU CTA ── */
#menu-cta { padding: 92px var(--pad-x); background: var(--b3); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 52px; }
.menu-card {
  background: var(--card);
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  position: relative; overflow: hidden;
  transition: background 0.3s, border-bottom-color 0.3s;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
}
.menu-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px; background: var(--orange);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.32s ease;
}
.menu-card:hover::before { transform: scaleY(1); }
.menu-card:hover { background: #1a1a1a; border-bottom-color: var(--orange); }
.menu-card.dev { opacity: 0.7; pointer-events: none; }
.menu-card.dev::before { display: none; }
.menu-icon {
  width: 42px; height: 42px;
  background: var(--og12); border: 1px solid var(--og30);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.menu-icon svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; }
.menu-title { font-family: var(--fd); font-size: 32px; line-height: 1; color: var(--white); margin-bottom: 10px; }
.menu-desc { font-family: var(--fc); font-size: 13px; color: var(--w3); letter-spacing: 0.04em; line-height: 1.6; margin-bottom: 20px; }
.menu-link { font-family: var(--fc); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 8px; transition: gap 0.2s; }
.menu-link svg { stroke: var(--orange); fill: none; }
.menu-card:hover .menu-link { gap: 14px; }

.dev-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fc); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--orange);
  background: var(--og12); border: 1px solid var(--og30);
  padding: 5px 12px;
  margin-bottom: 12px;
}
.dev-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.6); } }

/* ── SEO CONTENT block (AEO friendly) ── */
.seo-content { background: var(--b2); padding: 80px var(--pad-x); border-top: 1px solid var(--border); }
.seo-inner { max-width: var(--container); margin: 0 auto; }
.seo-content .heading { margin-bottom: 50px; }
.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 80px;
}
.seo-block h3 {
  font-family: var(--fc);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 14px;
}
.seo-block p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--w2);
}
.seo-block strong { color: var(--white); font-weight: 500; }

/* ── RESPONSIVE específico home ── */
@media (max-width: 1399px) {
  .hero-stats { gap: 20px; }
  .hs-n { font-size: 38px; }
}
@media (max-width: 1199px) {
  .hero-body { max-width: 60%; }
  .hs-n { font-size: 34px; }
  .hs-l { font-size: 9px; }
}
@media (max-width: 1099px) {
  #hero { min-height: 720px; padding-top: 120px; }
  .hero-stats { display: none; }
  .hero-body { max-width: 100%; }
  .pop-grid { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .seo-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 859px) {
  #hero {
    height: auto;
    min-height: 560px;
    padding-top: 100px;
  }
  .hero-body { padding: 0 var(--pad-x) 70px; }
  .hero-stats, .hero-scroll { display: none; }
  .pop-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .strip { grid-template-columns: 1fr; height: auto; }
  .strip-cell { height: 220px; }
  .menu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  #hero { min-height: 480px; padding-top: 90px; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .pop-grid { grid-template-columns: 1fr; }
  .hero-body { padding: 0 var(--pad-x) 60px; }
}
