/*
Theme Name: Bonitera
Theme URI: https://bonitera.com
Description: Tema de la tienda Bonitera (hogar, belleza y gadgets). Tema hijo de Twenty Twenty-Five.
Author: Bonitera
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: bonitera
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
strong, b { font-weight: 700; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(194 24 91 / .28); }
.is-style-outline > .wp-block-button__link:hover { box-shadow: none; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }

/* ---------- Barra de anuncio ---------- */
.nv-announce { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); text-align: center; font-size: .85rem; font-weight: 600; padding: .55rem 1rem; letter-spacing: .01em; }
.nv-announce p { margin: 0; }
.nv-announce strong { color: #F9B4CF; }

/* ---------- Encabezado ---------- */
.nv-header { border-bottom: 1px solid var(--wp--preset--color--accent-6); background: var(--wp--preset--color--base); position: sticky; top: 0; z-index: 50; }
.admin-bar .nv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nv-header { top: 46px; } }
.nv-header__row { gap: 1.25rem; padding-block: .9rem; }
.nv-logo { font-family: 'Italiana', 'Cormorant Garamond', Georgia, serif; font-size: 2.1rem; font-weight: 400; letter-spacing: .06em; line-height: 1; margin: 0; }
.nv-logo a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.nv-nav { font-weight: 600; font-size: .95rem; }
.nv-nav a { text-decoration: none; }
.nv-nav a:hover { color: var(--wp--preset--color--accent-1); }
.nv-header__tools { gap: .75rem; align-items: center; }
.nv-header .wp-block-search { min-width: 220px; }
.nv-header .wp-block-search__inside-wrapper { border-radius: 999px; border: 1px solid var(--wp--preset--color--accent-6); background: var(--wp--preset--color--accent-5); padding: 2px 4px 2px 14px; }
.nv-header .wp-block-search__input { border: 0; background: transparent; font-size: .9rem; }
.nv-header .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--accent-1); color: #fff; border: 0; padding: .45rem; margin: 0; }
@media (max-width: 900px) {
	.nv-header .wp-block-search { display: none; }
}

/* ---------- Hero ---------- */
.nv-hero { background: radial-gradient(1200px 500px at 85% -10%, #FAD0E1 0%, transparent 60%), var(--wp--preset--color--accent-5); padding-block: clamp(3rem, 8vw, 6rem); }
.nv-eyebrow { display: inline-block; background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--accent-1); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .8rem; border-radius: 999px; margin: 0; }
.nv-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; margin-block: 1.1rem .9rem; }
.nv-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent-1); }
.nv-hero__lead { font-size: 1.15rem; color: var(--wp--preset--color--accent-4); max-width: 34rem; }
.nv-hero__tiles { display: grid; gap: 1rem; }
.nv-tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 20px; background: var(--wp--preset--color--base); box-shadow: 0 10px 30px rgb(43 21 48 / .07); text-decoration: none; color: var(--wp--preset--color--contrast); transition: transform .2s ease; }
.nv-tile:nth-child(2) { margin-left: 2.5rem; }
.nv-tile:hover { transform: translateX(6px); }
.nv-tile__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.nv-tile__icon svg { width: 28px; height: 28px; }
.nv-tile strong { display: block; font-size: 1.1rem; }
.nv-tile span { font-size: .9rem; color: var(--wp--preset--color--accent-4); }
.nv-bg-coral { background: #FFE8DE; color: #B4431F; }
.nv-bg-rose  { background: #FCE4EE; color: #C2185B; }
.nv-bg-teal  { background: #EDE4FB; color: #6D28D9; }
@media (max-width: 781px) { .nv-tile:nth-child(2) { margin-left: 0; } }

/* ---------- Beneficios ---------- */
.nv-benefits { border-bottom: 1px solid var(--wp--preset--color--accent-6); padding-block: 1.75rem; }
.nv-benefits__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.nv-benefit { display: flex; gap: .85rem; align-items: center; }
.nv-benefit svg { flex: none; width: 36px; height: 36px; color: var(--wp--preset--color--accent-1); }
.nv-benefit strong { display: block; font-size: .95rem; }
.nv-benefit span { font-size: .85rem; color: var(--wp--preset--color--accent-4); }
@media (max-width: 900px) { .nv-benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .nv-benefits__grid { grid-template-columns: 1fr; } }

/* ---------- Secciones ---------- */
.nv-section { padding-block: clamp(3rem, 6vw, 5rem); }
.nv-section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.nv-section__head h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.03em; }
.nv-section__head p { margin: .4rem 0 0; color: var(--wp--preset--color--accent-4); }
.nv-link-arrow { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--accent-1); white-space: nowrap; }
.nv-link-arrow:hover { text-decoration: underline; }

/* ---------- Categorías ---------- */
.nv-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.nv-cat { position: relative; overflow: hidden; border-radius: 28px; padding: 2rem; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--wp--preset--color--contrast); transition: transform .2s ease, box-shadow .2s ease; }
.nv-cat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(43 21 48 / .1); }
.nv-cat svg { width: 64px; height: 64px; }
.nv-cat h3 { margin: 1.5rem 0 .35rem; font-size: 1.6rem; letter-spacing: -.02em; }
.nv-cat p { margin: 0 0 1.25rem; font-size: .92rem; opacity: .8; }
.nv-cat .nv-cat__cta { font-weight: 700; }
.nv-cat::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgb(255 255 255 / .45); z-index: 0; }
.nv-cat > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .nv-cats { grid-template-columns: 1fr; } .nv-cat { min-height: 0; } }

/* ---------- Productos ---------- */
.nv-products .wc-block-product { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 20px; padding: .75rem .75rem 1.25rem; transition: box-shadow .2s ease, transform .2s ease; }
.nv-products .wc-block-product:hover { box-shadow: 0 14px 34px rgb(43 21 48 / .09); transform: translateY(-3px); }
.nv-products .wc-block-components-product-image img { border-radius: 14px; }
.nv-products .wp-block-post-title { font-size: 1rem; font-weight: 700; }
.nv-products .wp-block-post-title a { text-decoration: none; }
.nv-products .wc-block-components-product-price { font-weight: 800; color: var(--wp--preset--color--accent-1); }
.nv-empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--wp--preset--color--accent-6); border-radius: 24px; color: var(--wp--preset--color--accent-4); }

/* ---------- Franja WhatsApp ---------- */
.nv-cta { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nv-cta h2 { color: inherit; margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.nv-cta p { margin: 0; opacity: .8; }

/* ---------- Pie de página ---------- */
.nv-footer { background: var(--wp--preset--color--accent-5); border-top: 1px solid var(--wp--preset--color--accent-6); padding-block: 3.5rem 1.5rem; font-size: .92rem; }
.nv-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.nv-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.nv-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.nv-footer a { text-decoration: none; color: var(--wp--preset--color--accent-4); }
.nv-footer a:hover { color: var(--wp--preset--color--accent-1); }
.nv-footer__brand p { color: var(--wp--preset--color--accent-4); max-width: 22rem; }
.nv-pay { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.nv-pay span { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; padding: .3rem .6rem; font-size: .78rem; font-weight: 700; color: var(--wp--preset--color--contrast); }
.nv-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--accent-6); color: var(--wp--preset--color--accent-4); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.nv-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .nv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .nv-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.nv-wa { position: fixed; right: 20px; bottom: 20px; z-index: 99; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgb(0 0 0 / .2); transition: transform .2s ease; }
.nv-wa:hover { transform: scale(1.07); }
.nv-wa svg { width: 30px; height: 30px; }
