/* ═══════════════════════════════════════════════
   MAGA KITCHEN — closets.css
═══════════════════════════════════════════════ */

/* ── Nav active ── */
.nav-active { position: relative; }
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--red);
}

/* ══ HERO ══ */
.page-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero-img {
  position: absolute;
  inset: 0;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 56px;
  max-width: 580px;
}

.page-hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-h1 em { color: var(--red); font-style: italic; }

.page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}

/* ══ INTRO ══ */
.intro-section { background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.intro-img-wrap {
  overflow: hidden;
}

.intro-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.intro-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.intro-feat-icon {
  width: 36px;
  height: 36px;
  background: rgba(128,0,32,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.intro-feat h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 2px;
}

.intro-feat p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ══ TIPOS ══ */
.tipos-section { background: var(--cream); }

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tipo-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 28px 32px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}

.tipo-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.tipo-card-featured {
  border-color: var(--red);
  border-width: 1.5px;
}

.tipo-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 12px;
}

.tipo-icon {
  width: 56px;
  height: 56px;
  background: rgba(128,0,32,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
}

.tipo-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--black);
  margin-bottom: 10px;
}

.tipo-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.tipo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tipo-list li {
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tipo-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ══ GALERÍA ══ */
.galeria-section { background: var(--white); }

.galeria-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 560px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--light);
}

.galeria-large {
  grid-row: span 2;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}

.galeria-item:hover img { transform: scale(1.04); }

.galeria-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding: 24px 18px 16px;
  opacity: 0;
  transition: opacity .22s;
}

.galeria-item:hover .galeria-overlay { opacity: 1; }

.galeria-overlay h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 3px;
}

.galeria-overlay p {
  font-size: 11px;
  color: rgba(255,255,255,.6);
}

/* ══ PROCESO (hereda de style.css: .howit, .steps, .step) ══ */
/* Solo ajustes de padding */
.howit { padding: 80px 40px; }
.howit-header { text-align: center; margin-bottom: 48px; }
.howit-header .section-sub { margin: 0 auto; }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET ≤900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-hero { height: 460px; }
  .page-hero-h1 { font-size: 38px; }
  .page-hero-content { padding: 0 24px 44px; }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-img-wrap img { height: 320px; }
  .intro-features { grid-template-columns: 1fr 1fr; }

  .tipos-grid { grid-template-columns: 1fr; gap: 16px; }

  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .galeria-large { grid-row: span 1; }
  .galeria-item { height: 280px; }

  .howit { padding: 56px 24px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤600px
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .page-hero { height: 380px; }
  .page-hero-h1 { font-size: 30px; }
  .page-hero-content { padding: 0 20px 36px; max-width: 100%; }
  .page-hero-sub { font-size: 14px; }

  .intro-features { grid-template-columns: 1fr; }
  .intro-img-wrap img { height: 260px; }

  .galeria-item { height: 240px; }

  .howit { padding: 48px 20px; }

  /* Nav encima del WA btn */
  .nav { z-index: 401; }
}
