/* =====================================================
   INICIO · Marbellín (rediseño)
   Paleta: blanco · dorado · rosado pastel
===================================================== */

:root {
  --oro: #c9a227;
  --oro-osc: #9c7a1c;
  --rosa-pastel: #fbe9ed;
  --rosa-suave: #f0d3d9;
  --rosa: #b76e79;
  --rosa-osc: #8a4b57;
  --texto: #3b2f33;
  --gris: #7a6e72;
  --blanco: #ffffff;
  --sombra: 0 14px 40px rgba(138, 75, 87, 0.14);
  --ease: cubic-bezier(.2,.7,.2,1);
}

main { overflow-x: hidden; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.8rem; border-radius: 999px; font-weight: 600; letter-spacing: .3px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-oro { background: linear-gradient(135deg, #d9b54a, var(--oro)); color: #2d2226; box-shadow: 0 10px 24px rgba(201,162,39,.35); }
.btn-oro:hover { box-shadow: 0 14px 30px rgba(201,162,39,.5); }
.btn-vidrio { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.btn-vidrio:hover { background: #fff; color: var(--rosa-osc); }
.btn-contorno { border-color: var(--rosa-osc); color: var(--rosa-osc); background: transparent; }
.btn-contorno:hover { background: var(--rosa-osc); color: #fff; }

/* ---------- Tipografía de bloques ---------- */
.eyebrow {
  font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--oro-osc); font-weight: 600; margin-bottom: .6rem;
}
.eyebrow-clara { color: #f3dc9a; }
.cabecera-bloque { text-align: center; margin-bottom: 3rem; }
.cabecera-bloque h2, .historia h2, .banda h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--rosa-osc); line-height: 1.15;
}
.cabecera-fila { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; flex-wrap: wrap; gap: 1rem; }
.enlace-ver { color: var(--rosa-osc); font-weight: 600; text-decoration: none; }
.enlace-ver:hover { color: var(--oro-osc); }

.bloque { padding: 6rem 6vw; }
.bloque-claro { background: var(--blanco); }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: calc(100vh - 150px); min-height: 520px; max-height: 900px;
  overflow: hidden; background: #2d2226; color: #fff;
}
#cover-images { position: absolute; inset: 0; }
#cover-images .cover-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; object-position: 30% 50%; display: block;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
#cover-images .cover-slide.active { opacity: 1; transform: scale(1); }

.hero-velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(45,34,38,.72) 0%, rgba(45,34,38,.25) 38%, transparent 60%),
    linear-gradient(to right, rgba(45,34,38,.35), transparent 55%);
}
.hero-contenido {
  position: absolute; left: 6vw; bottom: 12vh; z-index: 3; max-width: 560px;
  animation: subir 1s var(--ease) both .2s;
}
.hero-etiqueta { font-size: .8rem; letter-spacing: 4px; text-transform: uppercase; color: #f3dc9a; margin-bottom: .8rem; }
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: #f3dc9a; font-weight: 400; }
.hero-texto { margin: 1.1rem 0 1.8rem; font-size: clamp(.95rem, 1.6vw, 1.1rem); color: rgba(255,255,255,.92); max-width: 460px; }
.hero-acciones { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-indicadores {
  position: absolute; bottom: 28px; right: 6vw; z-index: 3;
  display: flex; gap: 10px; left: auto; transform: none;
}
.indicador { width: 26px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.5); transition: background .4s, width .4s; }
.indicador.activo { background: var(--oro); width: 48px; }

.hero-bajar {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255,255,255,.6); text-decoration: none;
  animation: rebote 2.2s ease-in-out infinite;
}

@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rebote { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* ---------- FRANJA ---------- */
.franja { background: linear-gradient(90deg, #d9b54a, var(--oro), #d9b54a); color: #2d2226; overflow: hidden; padding: 14px 0; }
.franja-pista { display: flex; gap: 22px; align-items: center; width: max-content; animation: marquesina 28s linear infinite; }
.franja-pista span { font-family: 'Playfair Display', serif; font-size: 1.15rem; letter-spacing: 1px; white-space: nowrap; }
.franja-pista i { font-size: .8rem; opacity: .7; }
@keyframes marquesina { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CATEGORÍAS ---------- */
.rejilla-categorias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1280px; margin: 0 auto; }
.cat-card {
  position: relative; min-height: 380px; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  text-decoration: none; color: var(--texto); isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(160deg, var(--tono), #fff 95%);
  transition: transform .8s var(--ease);
}
.cat-card::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,162,39,.55);
  border-radius: 16px; z-index: 0; transition: inset .5s var(--ease), border-color .5s;
}
.cat-texto { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .3rem; }
.cat-nombre { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--rosa-osc); line-height: 1.1; }
.cat-desc { font-size: .92rem; color: var(--gris); }
.cat-cuenta { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--oro-osc); margin-top: .4rem; }
.cat-flecha {
  position: absolute; top: 26px; right: 26px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--rosa-osc); box-shadow: var(--sombra);
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--sombra); }
.cat-card:hover .cat-fondo { transform: scale(1.08); }
.cat-card:hover::before { inset: 10px; border-color: var(--oro); }
.cat-card:hover .cat-flecha { background: var(--rosa-osc); color: #fff; transform: rotate(-45deg); }

/* ---------- PRODUCTOS DESTACADOS ---------- */
.rejilla-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; max-width: 1280px; margin: 0 auto; }
.pcard {
  background: var(--blanco); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--texto);
  box-shadow: 0 4px 18px rgba(138,75,87,.08); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: subir .8s var(--ease) both;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--sombra); }
.pcard-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, var(--rosa-suave), #fff 90%);
  display: grid; place-items: center;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-inicial { font-family: 'Playfair Display', serif; font-size: 4rem; color: rgba(138,75,87,.25); }
.pcard-tag {
  position: absolute; top: 14px; left: 14px; background: var(--blanco); color: var(--rosa-osc);
  font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
}
.pcard-cuerpo { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pcard-nombre { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--rosa-osc); line-height: 1.2; }
.pcard-precio { font-size: 1.05rem; font-weight: 700; color: var(--oro-osc); }
.pcard-precio small { font-weight: 400; color: var(--gris); font-size: .8rem; }
.pcard-docena { font-size: .82rem; color: var(--gris); }
.pcard-ver { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .9rem; color: var(--rosa-osc); }
.pcard-ver i { transition: transform .3s; }
.pcard:hover .pcard-ver i { transform: translateX(5px); }

/* ---------- HISTORIA ---------- */
.historia { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; max-width: 1280px; margin: 0 auto; background: linear-gradient(180deg, var(--rosa-pastel), #fff); }
.historia p { color: var(--texto); line-height: 1.75; margin: 1rem 0 1.8rem; }
.valores { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.valor {
  background: #fff; border-radius: 18px; padding: 26px 22px; box-shadow: 0 4px 18px rgba(138,75,87,.07);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.valor:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.valor i { font-size: 1.5rem; color: var(--oro); margin-bottom: .9rem; }
.valor h3 { font-family: 'Playfair Display', serif; color: var(--rosa-osc); font-size: 1.2rem; margin-bottom: .4rem; }
.valor p { font-size: .92rem; color: var(--gris); line-height: 1.55; }

/* ---------- BANDA ---------- */
.banda {
  position: relative; overflow: hidden; text-align: center; padding: 7rem 6vw;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,162,39,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 45%),
    linear-gradient(135deg, #8a4b57, #b76e79);
  color: #fff;
}
.banda-contenido { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.banda h2 { color: #fff; margin-bottom: .8rem; }
.banda p { margin-bottom: 2rem; color: rgba(255,255,255,.9); }
.banda .btn-oro { color: #2d2226; }

/* ---------- VISÍTANOS ---------- */
.visitanos { background: var(--rosa-pastel); }
.rejilla-tiendas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.tienda { background: #fff; border-radius: 20px; padding: 32px 28px; text-align: left; box-shadow: 0 4px 18px rgba(138,75,87,.07); transition: transform .4s var(--ease); }
.tienda:hover { transform: translateY(-5px); }
.tienda > i { font-size: 1.6rem; color: var(--oro); margin-bottom: 1rem; }
.tienda h3 { font-family: 'Playfair Display', serif; color: var(--rosa-osc); margin-bottom: .6rem; font-size: 1.25rem; }
.tienda p { color: var(--gris); line-height: 1.6; font-size: .95rem; }
.tienda-cta { background: linear-gradient(160deg, #fff, #fbe9ed); display: flex; flex-direction: column; }
.tienda-cta .btn { margin-top: auto; align-self: flex-start; color: #2d2226; }
.tienda-cta > i { color: #25d366; }

/* ---------- Animación al aparecer (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .rejilla-categorias { grid-template-columns: repeat(2, 1fr); }
  .historia { grid-template-columns: 1fr; }
  .rejilla-tiendas { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bloque { padding: 4rem 5vw; }
  .hero { height: calc(100vh - 110px); min-height: 480px; }
  #cover-images .cover-slide { object-position: 22% 50%; }
  .hero-contenido { left: 5vw; right: 5vw; bottom: 14vh; }
  .hero-indicadores { right: auto; left: 5vw; }
  .hero-bajar { display: none; }
  .rejilla-categorias { grid-template-columns: 1fr; }
  .cat-card { min-height: 260px; }
  .valores { grid-template-columns: 1fr; }
  .rejilla-productos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pcard-cuerpo { padding: 14px; }
  .pcard-nombre { font-size: 1rem; }
  .btn { padding: .8rem 1.3rem; }
}

/* ---------- Respetar preferencia de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- PIE DE PÁGINA ---------- */
.pie { background: #2d2226; color: #e9dde0; padding: 4.5rem 6vw 1.5rem; font-size: .92rem; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; max-width: 1280px; margin: 0 auto; }
.pie-logo { width: 170px; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 1rem; }
.pie-marca p { line-height: 1.6; color: #cbbcc0; max-width: 300px; }
.pie-redes { display: flex; gap: 10px; margin-top: 1.2rem; }
.pie-redes a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.25); transition: background .3s, color .3s, transform .3s; }
.pie-redes a:hover { background: var(--oro); color: #2d2226; transform: translateY(-3px); }
.pie h3 { font-family: 'Playfair Display', serif; color: #f3dc9a; font-size: 1.1rem; margin-bottom: 1rem; }
.pie ul { list-style: none; padding: 0; }
.pie li { margin-bottom: .55rem; }
.pie a { color: #e9dde0; text-decoration: none; transition: color .3s; }
.pie a:hover { color: #f3dc9a; }
.pie p { margin-bottom: .55rem; color: #cbbcc0; line-height: 1.5; }
.pie-derechos { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #a89aa0; font-size: .8rem; }
@media (max-width: 900px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pie-grid { grid-template-columns: 1fr; } }

/* ---------- AJUSTES DEL HERO (v3) ---------- */
.hero-contenido { bottom: 7vh; max-width: 520px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.hero-etiqueta { margin-bottom: .6rem; }
.hero-texto { margin: .9rem 0 1.4rem; }
.hero-indicadores { bottom: 96px; right: 6vw; }
.hero-bajar { bottom: 18px; }
@media (max-width: 640px) {
  .hero-contenido { bottom: 10vh; }
  .hero-indicadores { bottom: 92px; left: 5vw; right: auto; }
}

/* Monograma decorativo en categorías (mientras no hay fotos) */
.cat-fondo::after {
  content: attr(data-letra);
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  font-family: 'Playfair Display', serif; font-size: 9rem; line-height: 1;
  color: rgba(138,75,87,.14); transition: transform .8s var(--ease), color .6s;
}
.cat-card:hover .cat-fondo::after { transform: translate(-50%, -6px) scale(1.06); color: rgba(138,75,87,.22); }
.historia { max-width: none; }
.historia > * { max-width: 560px; }
.valores { max-width: 620px; justify-self: end; }
@media (max-width: 1024px) { .valores { justify-self: stretch; max-width: none; } .historia > * { max-width: none; } }

/* ---------- MÓVIL: portada completa arriba, texto debajo ---------- */
@media (max-width: 640px) {
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: #2d2226; }
  #cover-images { position: relative; inset: auto; aspect-ratio: 3 / 2; width: 100%; }
  #cover-images .cover-slide { object-position: center; }
  .hero-velo { display: none; }
  .hero-contenido {
    position: relative; left: auto; right: auto; bottom: auto; max-width: none;
    padding: 28px 6vw 34px; background: linear-gradient(180deg, #2d2226, #3b2f33);
  }
  .hero-indicadores { bottom: 12px; left: 50%; transform: translateX(-50%); right: auto; }
  .hero h1 { font-size: 2.2rem; }
  .hero-texto { margin: .7rem 0 1.2rem; }
  .hero-acciones .btn { flex: 1 1 100%; }
  .whatsapp-bubble span { display: none; }
}

/* Categorías con foto: la foto ocupa la tarjeta y se oculta la letra decorativa */
.cat-fondo.con-foto { background-size: cover; background-position: center top; }
.cat-fondo.con-foto::after { display: none; }
.cat-fondo.con-foto { transition: transform .8s var(--ease), background-size .8s var(--ease); }
.cat-card:hover .cat-fondo.con-foto { transform: none; background-size: 108%; }
