/* Portada de HAYLOVIU (propuesta 3). Solo se carga en la portada. Usa las variables de style.css. */
.hv-portada { --hv-script: 'Great Vibes', cursive; --hv-papel-2: #F5EEE4; --hv-rubor-claro: #F8ECE8; --hv-oro-texto: #8C6B3A; color: var(--hv-tinta); }
.hv-portada * { box-sizing: border-box; }
.hv-portada h1, .hv-portada h2, .hv-portada h3 { font-family: var(--hv-titulos); color: var(--hv-tinta); letter-spacing: 0; }
.hv-portada .hv-script { font-family: var(--hv-script); font-weight: 400; color: var(--hv-salvia); line-height: 1; margin: 0; }

/* Botones redondos */
.hv-portada a.hv-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
    border-radius: 999px; font: 500 14px/1 'Montserrat', sans-serif; text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.hv-portada a.hv-btn--prim { background: var(--hv-salvia); color: #fff; border: 1px solid var(--hv-salvia); }
.hv-portada a.hv-btn--prim:hover, .hv-portada a.hv-btn--prim:focus-visible { background: var(--hv-tinta); border-color: var(--hv-tinta); color: #fff; }
.hv-portada a.hv-btn--sec { border: 1px solid var(--hv-tinta); color: var(--hv-tinta); background: transparent; }
.hv-portada a.hv-btn--sec:hover, .hv-portada a.hv-btn--sec:focus-visible { background: var(--hv-tinta); color: #fff; }
.hv-portada a.hv-btn--arena { background: var(--hv-arena); color: var(--hv-tinta); border: 1px solid var(--hv-arena); }
.hv-portada a.hv-btn--arena:hover, .hv-portada a.hv-btn--arena:focus-visible { background: #E3CCAE; }

/* Portada «invitación»: foto de fondo y tarjeta en el centro despejado */
.hv-hero { position: relative; display: grid; place-items: center; height: clamp(480px, 42vw, 640px); padding: 40px 20px; overflow: hidden; background: var(--hv-papel); }
.hv-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hv-tarjeta {
    position: relative; background: var(--hv-papel); width: 100%; max-width: 520px; text-align: center; padding: 44px 40px 40px;
    box-shadow: 0 30px 60px -30px rgba(58, 47, 42, .45);
}
.hv-tarjeta::after { content: ''; position: absolute; inset: 10px; border: 1px solid var(--hv-arena); pointer-events: none; }
.hv-tarjeta .hv-script { font-size: 38px; color: var(--hv-salvia); }
.hv-tarjeta h1 { font-weight: 500; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; margin: 8px 0 12px; }
.hv-ramita { display: block; margin: 0 auto; width: 120px; height: 18px; color: var(--hv-oro); }
.hv-tarjeta p:not(.hv-script) { color: var(--hv-tinta-suave); margin: 12px auto 24px; max-width: 360px; font-size: 15px; }
.hv-botones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* Secciones */
.hv-sec { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
.hv-tit { text-align: center; margin-bottom: 34px; }
.hv-tit .hv-script { font-size: 30px; }
.hv-tit h2 { font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); margin: 2px 0 6px; line-height: 1.1; }
.hv-centro { text-align: center; margin: 34px 0 0; }

/* Sellos de lacre */
.hv-sellos { list-style: none; display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin: 0; padding: 6px 0; }
.hv-sellos li { margin: 0; }
.hv-sello { display: block; text-decoration: none; text-align: center; width: 168px; color: var(--hv-tinta); }
.hv-sello__circ { display: block; width: 168px; height: 168px; border-radius: 50%; background: var(--hv-papel-2) center/cover; box-shadow: 0 0 0 6px var(--hv-papel), 0 0 0 7px var(--hv-arena); transition: transform .25s ease; }
.hv-sello:hover .hv-sello__circ, .hv-sello:focus-visible .hv-sello__circ { transform: scale(1.03); }
.hv-sello b { display: block; font-family: var(--hv-titulos); font-size: 24px; font-weight: 500; margin-top: 18px; }
.hv-sello small { display: block; font-size: 13px; color: var(--hv-tinta-suave); }

/* Cómo lo hacemos */
.hv-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: var(--hv-rubor-claro); padding: 52px max(24px, calc((100% - 1100px) / 2)); text-align: center; }
.hv-num { font-family: var(--hv-script); font-size: 44px; line-height: 1; color: var(--hv-oro-texto); margin: 0; }
.hv-pasos h3 { font-weight: 500; font-size: 25px; margin: 6px 0 4px; }
.hv-pasos p:not(.hv-num) { margin: 0 auto; color: var(--hv-tinta-suave); font-size: 14.5px; max-width: 280px; }

/* Los más queridos: las tarjetas son las de la tienda */
.hv-portada .woocommerce ul.products { margin: 0; }

/* myLOVIUS */
.hv-historia { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--hv-salvia-claro); }
.hv-historia img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.hv-historia__texto { padding: 56px max(24px, 6vw); align-self: center; }
.hv-historia__texto .hv-script { font-size: 40px; }
.hv-historia h2 { font-weight: 500; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.1; margin: 4px 0 14px; }
.hv-historia__texto p:not(.hv-script) { color: #4F4540; margin: 0 0 24px; max-width: 420px; }

/* Tienda física: texto a la izquierda, foto a la derecha */
.hv-tienda { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff; }
.hv-tienda img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 64% 55%; display: block; }
.hv-tienda__texto { padding: 56px max(24px, 6vw); align-self: center; justify-self: end; max-width: 620px; }
.hv-tienda .hv-script { font-size: 38px; }
.hv-tienda h2 { font-weight: 500; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.1; margin: 4px 0 14px; }
.hv-tienda__texto > p:not(.hv-script) { color: #4F4540; margin: 0 0 20px; max-width: 440px; }
.hv-tienda__datos b { font-weight: 600; }
.hv-tienda__datos { font-style: normal; display: grid; gap: 10px; margin: 0 0 24px; color: var(--hv-tinta); font-size: 15px; line-height: 1.5; }
.hv-tienda__datos a { color: var(--hv-salvia); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hv-tienda__datos a:hover { color: var(--hv-tinta); }
.hv-botones--izq { justify-content: flex-start; }

/* Opiniones, con botones y sin giro automático */
.hv-opiniones { text-align: center; padding: 72px 24px; max-width: 900px; margin: 0 auto; }
.hv-opiniones .hv-script { font-size: 30px; }
.hv-estrellas { display: flex; gap: 4px; justify-content: center; color: var(--hv-oro); margin-top: 10px; }
.hv-estrellas svg { width: 18px; height: 18px; fill: currentColor; }
.hv-op__pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 12px; }
.hv-op__pista::-webkit-scrollbar { display: none; }
.hv-op { flex: 0 0 100%; scroll-snap-align: center; margin: 0; padding: 0 8px; display: flex; flex-direction: column; justify-content: center; }
.hv-op blockquote { margin: 12px auto; padding: 0; border: 0; font-family: var(--hv-titulos); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--hv-tinta); max-width: 780px; }
.hv-op blockquote p { margin: 0; color: inherit; }
.hv-op figcaption { font-size: 14px; color: var(--hv-tinta-suave); }
.hv-controles { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 22px; }
.hv-controles button { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--hv-linea); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--hv-tinta); transition: background-color .2s ease, color .2s ease; }
.hv-controles button:hover, .hv-controles button:focus-visible { background: var(--hv-salvia); color: #fff; border-color: var(--hv-salvia); }
.hv-controles svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hv-controles > span { font-size: 13px; color: var(--hv-tinta-suave); min-width: 56px; }

/* Presupuesto a medida */
.hv-cta { margin: 0 auto 72px; max-width: 1152px; width: calc(100% - 48px); background: var(--hv-tinta); color: #F4EDE4; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.hv-cta .hv-script { font-size: 36px; color: var(--hv-arena); }
.hv-cta h2 { font-weight: 500; font-size: clamp(28px, 3vw, 34px); margin: 2px 0 6px; line-height: 1.1; color: #fff; }
.hv-cta p:not(.hv-script) { margin: 0; color: #D9CFC4; }

/* Móvil y tablet */
@media (max-width: 860px) {
    .hv-hero { display: block; height: auto; padding: 0 0 8px; }
    .hv-hero__img { position: static; display: block; height: 250px; object-position: 84% center; }
    .hv-tarjeta { margin: -34px auto 0; width: calc(100% - 28px); padding: 34px 22px 30px; }
    .hv-sec { padding: 48px 16px; }
    .hv-sellos { gap: 18px; }
    .hv-sello, .hv-sello__circ { width: 130px; }
    .hv-sello__circ { height: 130px; }
    .hv-pasos { grid-template-columns: 1fr; padding: 40px 20px; }
    .hv-historia { grid-template-columns: 1fr; }
    .hv-historia img { min-height: 260px; height: 260px; }
    .hv-historia__texto { padding: 36px 22px; }
    .hv-tienda { grid-template-columns: 1fr; }
    .hv-tienda img { min-height: 240px; height: 260px; order: -1; }
    .hv-tienda__texto { padding: 36px 22px; justify-self: stretch; max-width: none; }
    .hv-cta { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 30px 22px; margin-bottom: 44px; }
    .hv-opiniones { padding: 52px 16px; }
}
@media (prefers-reduced-motion: reduce) { .hv-sello__circ, .hv-btn { transition: none !important; } }

/* Ancho completo: Astra encierra el contenido en 1240 px; la portada necesita llegar de borde a borde */
body.hv-es-portada .site-content > .ast-container { max-width: none; width: 100%; padding: 0; display: block; }
body.hv-es-portada #primary { width: 100%; margin: 0; padding: 0; }
.hv-sellos li { flex: none; }

/* Ofertas: banda de fondo suave a todo el ancho */
.hv-banda { background: var(--hv-papel-2); }
.hv-banda .hv-sec { padding-top: 64px; padding-bottom: 64px; }

/* Carrusel de ofertas: se desplaza con las flechas o con el dedo; sin movimiento automático */
.hv-carrusel { position: relative; padding: 0 26px; }
.hv-carrusel__pista { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: auto; padding: 4px 2px 14px; margin: 0 -2px; }
.hv-carrusel__pista::-webkit-scrollbar { display: none; }
.hv-carrusel__pista:focus-visible { outline: 2px solid var(--hv-salvia); outline-offset: 4px; border-radius: 8px; }
html .hv-carrusel .woocommerce { margin: 0; }
html .hv-carrusel .woocommerce ul.products { display: flex !important; flex-wrap: nowrap !important; flex-direction: row !important; gap: 20px !important; margin: 0 !important; padding: 0; float: none; }
html .hv-carrusel .woocommerce ul.products::before, html .hv-carrusel .woocommerce ul.products::after { display: none !important; }
html .hv-carrusel .woocommerce ul.products li.product { flex: 0 0 calc((100% - 60px) / 4) !important; width: auto !important; max-width: none !important; margin: 0 !important; float: none; scroll-snap-align: start; }
.hv-carrusel__flecha {
    position: absolute; top: 34%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--hv-linea);
    background: #fff; color: var(--hv-tinta); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(58, 47, 42, .15); transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.hv-carrusel__flecha--izq { left: -6px; } .hv-carrusel__flecha--der { right: -6px; }
.hv-carrusel__flecha svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hv-carrusel__flecha:hover:not(:disabled), .hv-carrusel__flecha:focus-visible { background: var(--hv-salvia); color: #fff; border-color: var(--hv-salvia); }
.hv-carrusel__flecha:disabled { opacity: .35; cursor: default; }
@media (max-width: 1000px) { html .hv-carrusel .woocommerce ul.products li.product { flex: 0 0 calc((100% - 40px) / 3) !important; } }
@media (max-width: 700px) {
    .hv-carrusel { padding: 0; }
    html .hv-carrusel .woocommerce ul.products { gap: 14px !important; }
    html .hv-carrusel .woocommerce ul.products li.product { flex: 0 0 78% !important; }
    .hv-carrusel__flecha { width: 38px; height: 38px; top: 30%; }
    .hv-carrusel__flecha--izq { left: 4px; } .hv-carrusel__flecha--der { right: 4px; }
}

/* Botón discreto para repetir la animación de bienvenida */
.hv-confeti-boton { position: absolute; right: 16px; bottom: 14px; z-index: 3; width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
    border: 1px solid rgba(169, 134, 79, .55); border-radius: 50%; background: rgba(251, 247, 241, .85); color: #8C6A33;
    cursor: pointer; opacity: .88; transition: opacity .2s ease, transform .2s ease, background-color .2s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hv-confeti-boton:hover, .hv-confeti-boton:focus-visible { opacity: 1; background: #fff; transform: scale(1.06); }
.hv-confeti-boton:focus-visible { outline: 2px solid var(--hv-salvia, #5E6E5A); outline-offset: 2px; }
@media (max-width: 600px) { .hv-confeti-boton { right: 10px; bottom: 10px; width: 32px; height: 32px; } }
@media print { .hv-confeti-boton { display: none; } }
