/* ══════════════════════════════════════════
   BETHEL · PÁGINA DE INICIO
   (usa además estilos.css)
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   PORTADA
══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}
/* Mancha cálida de fondo */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  right: -12vw; top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.22), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-texto > * { animation: subir 0.9s var(--ease) both; }
.hero-texto > :nth-child(2) { animation-delay: 0.08s; }
.hero-texto > :nth-child(3) { animation-delay: 0.16s; }
.hero-texto > :nth-child(4) { animation-delay: 0.24s; }
.hero-texto > :nth-child(5) { animation-delay: 0.32s; }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero h1 .acento { display: block; font-weight: 500; }

.hero-intro { color: var(--texto-2); font-size: clamp(1.02rem, 1.5vw, 1.15rem); font-weight: 300; line-height: 1.75; max-width: 480px; }
.hero-acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hero-puntos {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 28px;
  margin-top: 40px;
}
.hero-grid > * { min-width: 0; }
.hero-puntos li { display: flex; align-items: center; gap: 10px; color: var(--texto-2); font-size: 0.9rem; font-weight: 500; }
.hero-puntos span {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--superficie); color: var(--dorado-texto);
  box-shadow: var(--sombra-sm);
}
.hero-puntos .i { width: 18px; height: 18px; }

/* ── Composición de fotos ── */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 640px;
  justify-self: end;
  width: 100%;
  animation: aparecer 1.1s var(--ease) 0.15s both;
}
@keyframes aparecer { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Foto principal en forma de arco */
.hero-arco {
  position: absolute; top: 0; right: 0; bottom: 8%; left: 14%;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.hero-arco img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }

/* Foto pequeña del taller */
.hero-mini {
  position: absolute; left: 0; bottom: 0;
  width: 38%; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  border: 6px solid var(--fondo);
  box-shadow: var(--sombra);
}

/* Sello circular giratorio */
.sello {
  position: absolute; left: 4%; top: 6%;
  width: 120px; height: 120px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--solido);
  color: var(--sobre-solido-acento);
  box-shadow: var(--sombra);
}
.sello-texto { position: absolute; inset: 0; width: 100%; height: 100%; animation: girar 22s linear infinite; }
.sello-texto text { fill: currentColor; font-family: "Poppins", sans-serif; font-size: 9.6px; font-weight: 600; letter-spacing: 1px; }
.sello-logo { width: 38px; height: 38px; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Tarjeta del último mueble publicado */
.hero-novedad {
  position: absolute; right: -4%; bottom: 14%;
  display: flex; align-items: center; gap: 12px;
  max-width: 280px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: var(--superficie);
  box-shadow: var(--sombra);
  transition: transform 0.3s var(--ease);
  animation: aparecer 0.8s var(--ease) both;
}
.hero-novedad[hidden] { display: none; }
.hero-novedad:hover { transform: translateY(-3px); }
.hero-novedad img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.hero-novedad small { display: block; color: var(--dorado-texto); font-size: 0.68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hero-novedad strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.hero-novedad .i { color: var(--dorado-texto); }

/* ══════════════════════════════════════════
   ESPACIOS Y NOVEDADES
══════════════════════════════════════════ */
.espacios { padding-top: clamp(24px, 4vw, 48px); }
.novedades { padding-top: 0; }

/* ══════════════════════════════════════════
   TALLER (franja oscura)
══════════════════════════════════════════ */
.taller-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.taller-fotos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1.05;
}
.taller-fotos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radio); }
.taller-fotos img:first-child { grid-row: span 2; border-radius: 999px 999px var(--radio) var(--radio); }

.taller-texto .encabezado { margin-bottom: 28px; }

.etapas { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; counter-reset: etapa; }
.etapas li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--radio-sm);
  background: var(--fondo-2);
  border: 1px solid var(--borde);
  transition: border-color 0.3s;
}
.etapas li:hover { border-color: var(--borde-dorado); }
.etapa-icono {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--dorado-suave); color: var(--dorado-texto);
}
.etapas h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 2px; }
.etapas h3::before { counter-increment: etapa; content: counter(etapa) ". "; color: var(--dorado-texto); }
.etapas p { color: var(--texto-3); font-size: 0.85rem; line-height: 1.55; }

/* ══════════════════════════════════════════
   CÓMO COMPRAR
══════════════════════════════════════════ */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.paso {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: var(--sombra-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.paso:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.paso-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1;
  color: var(--fondo-3);
}
.paso-icono {
  width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--solido); color: var(--sobre-solido-acento);
}
.paso-icono .i { width: 24px; height: 24px; }
.paso h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; margin-bottom: 6px; }
.paso p { color: var(--texto-3); font-size: 0.9rem; }

/* ══════════════════════════════════════════
   PREGUNTAS FRECUENTES
══════════════════════════════════════════ */
.preguntas { padding-top: 0; }
.preguntas-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.preguntas .encabezado .texto { margin-bottom: 20px; }
/* El acordeón está en estilos.css */

/* ══════════════════════════════════════════
   VISÍTANOS
══════════════════════════════════════════ */
.visitanos { padding-top: clamp(24px, 4vw, 48px); }
.visitanos-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.visitanos-info .texto { margin: 14px 0 26px; }
/* La lista de datos (.datos) está en estilos.css */

.mapa {
  min-height: 400px;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--fondo-2);
  box-shadow: var(--sombra);
}
.mapa iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; justify-self: center; aspect-ratio: 1 / 1; }
  .hero-novedad { right: 0; }
  .taller-grid, .visitanos-grid, .preguntas-grid { grid-template-columns: 1fr; }
  .taller-fotos { aspect-ratio: 4 / 3; max-width: 640px; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
}

/* Celular en horizontal: pantalla baja, las fotos no deben ocuparla toda */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { max-width: 340px; aspect-ratio: 5 / 6; margin-bottom: 0; }
  .hero-novedad { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
}

@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-acciones .btn { flex: 1 1 100%; white-space: normal; }
  .hero-puntos { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 28px; }
  .hero-puntos li { font-size: 0.82rem; line-height: 1.3; }
  .hero-puntos span { flex-shrink: 0; width: 32px; height: 32px; }
  .hero-visual { aspect-ratio: 1 / 1.05; }
  .hero-visual:has(.hero-novedad:not([hidden])) { margin-bottom: 64px; }
  .hero-mini { width: 36%; }
  .sello { width: 92px; height: 92px; left: 0; top: 2%; }
  .sello-logo { width: 30px; height: 30px; }
  /* En el celular la tarjeta va debajo de las fotos, sin taparlas */
  .hero-novedad { left: 0; right: 0; bottom: -64px; max-width: none; }
  .hero-novedad small { letter-spacing: 0.5px; }

  .etapas { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; gap: 12px; }
  .paso { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px 52px 20px 20px; }
  .paso-num { top: 16px; right: 16px; font-size: 1.5rem; }
  .paso-icono { grid-row: span 2; margin: 0; }
  .paso h3 { align-self: end; font-size: 1.12rem; }

  .mapa, .mapa iframe { min-height: 300px; }
}
