/*
Theme Name: El Rincón de Niji
Theme URI: https://elrincondeniji.es
Author: El Rincón de Niji
Description: Tema artesanal y cálido para la tienda El Rincón de Niji.
Version: 1.0.0
Text Domain: el-rincon-de-niji
*/
:root {
    --ink: #3c3532;
    --muted: #766b66;
    --paper: #fffdf8;
    --cream: #f8f1e6;
    --rose: #d88f8a;
    --rose-dark: #b96262;
    --sage: #8ea18a;
    --sage-light: #dce6d8;
    --clay: #c97857;
    --gold: #d4a65a;
    --white: #fff;
    --border: rgba(60, 53, 50, .12);
    --shadow: 0 22px 60px rgba(83, 57, 43, .12);
    --radius: 26px;
    --wrap: min(1180px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
    margin: 0 0 .6em;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(3.3rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.2rem); }
h3 { font-size: 1.55rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.content-narrow { max-width: 820px; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    width: auto; height: auto; clip: auto; padding: .8rem 1rem;
    margin: 8px; background: var(--white); z-index: 99999;
}
.announcement { background: var(--ink); color: #fffaf3; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.announcement__inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--border); background: rgba(255,253,248,.94); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 92px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; color: var(--white); background: var(--rose);
    font-family: Georgia, serif; font-size: 1.5rem; transform: rotate(-7deg);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: Georgia, serif; font-size: 1.25rem; }
.brand__text small { margin-top: 5px; color: var(--muted); font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }
.custom-logo { width: auto; max-height: 70px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; align-items: center; padding: 0; margin: 0; list-style: none; }
.main-nav a { font-size: .91rem; font-weight: 650; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--rose-dark); }
.cart-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: .86rem; }
.cart-link b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; color: var(--white); background: var(--rose-dark); font-size: .72rem; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fffaf2 0%, #f8ede2 55%, #e8efe4 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(185,98,98,.2); }
.hero::before { width: 360px; height: 360px; top: -190px; left: -120px; }
.hero::after { width: 480px; height: 480px; right: -250px; bottom: -300px; }
.hero__grid { min-height: 690px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; padding-block: 70px; }
.hero__copy { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 18px; color: var(--rose-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; }
.hero__lead { max-width: 620px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.27rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
    padding: 12px 23px; border: 0; border-radius: 999px; font: inherit;
    font-size: .9rem; font-weight: 750; cursor: pointer; transition: .2s ease;
}
.button:hover, .woocommerce a.button:hover { transform: translateY(-2px); }
.button--primary, .woocommerce a.button.alt, .woocommerce button.button.alt { color: var(--white); background: var(--rose-dark); }
.button--soft { color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--border); }
.button--light { color: var(--ink); background: var(--white); }
.hero__notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .82rem; }
.hero__art { position: relative; min-height: 510px; }
.hero__sun { position: absolute; width: 390px; height: 390px; top: 44px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: #efd5b6; box-shadow: inset 0 0 0 25px rgba(255,255,255,.22); }
.craft-card { position: absolute; display: flex; flex-direction: column; justify-content: center; border: 8px solid rgba(255,255,255,.7); box-shadow: var(--shadow); }
.craft-card--main { width: 300px; height: 350px; top: 80px; left: 50%; transform: translateX(-50%) rotate(3deg); padding: 38px; border-radius: 150px 150px 38px 38px; color: var(--ink); background: #f3c8bd; text-align: center; }
.craft-card--main::after { content: ""; position: absolute; inset: 16px; border: 1px dashed rgba(60,53,50,.2); border-radius: inherit; }
.craft-card__icon { font-size: 5rem; filter: drop-shadow(0 10px 10px rgba(60,53,50,.1)); }
.craft-card strong { position: relative; z-index: 1; margin-top: 20px; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.1; }
.craft-card small { position: relative; z-index: 1; margin-top: 10px; color: var(--muted); }
.craft-card--yarn, .craft-card--baby { width: 150px; height: 150px; align-items: center; border-radius: 34px; font-weight: 700; }
.craft-card--yarn { left: 0; bottom: 28px; background: var(--sage-light); transform: rotate(-8deg); }
.craft-card--baby { right: -2px; top: 24px; background: #fff8e7; transform: rotate(9deg); }
.craft-card--yarn span, .craft-card--baby span { font-size: 3rem; }
.section { padding-block: 110px; }
.section--cream { background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.section-heading h2 { max-width: 700px; margin-bottom: 0; }
.section-heading--center { display: block; max-width: 720px; margin-inline: auto; text-align: center; }
.section-heading--center p:last-child { color: var(--muted); }
.text-link { color: var(--rose-dark); font-weight: 800; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 280px; padding: 30px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.7); transition: .25s ease; }
.category-card:nth-child(2n) { background: #f4ebe1; }
.category-card:nth-child(3n) { background: #eef3eb; }
.category-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -48px; bottom: -54px; border: 1px dashed rgba(60,53,50,.16); border-radius: 50%; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.category-card__icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 34px; border-radius: 22px; background: rgba(255,255,255,.7); font-size: 2.1rem; }
.category-card h3 { margin-bottom: 10px; }
.category-card p { max-width: 290px; color: var(--muted); font-size: .92rem; }
.category-card__arrow { color: var(--rose-dark); font-size: .82rem; font-weight: 800; }
.coming-soon { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 190px; max-width: 820px; margin: 0 auto; padding: 34px; border: 1px dashed rgba(185,98,98,.35); border-radius: var(--radius); background: rgba(255,255,255,.55); }
.coming-soon > span { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 auto; border-radius: 50%; color: var(--white); background: var(--rose); font-size: 2rem; }
.coming-soon strong { font-family: Georgia, serif; font-size: 1.55rem; }
.coming-soon p { margin: 4px 0 0; color: var(--muted); }
.story__grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 90px; }
.story__visual { position: relative; min-height: 560px; border-radius: 180px 180px 40px 40px; background: var(--sage-light); overflow: hidden; }
.story__visual::before { content: "🧶"; position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); font-size: 9rem; filter: drop-shadow(0 16px 20px rgba(60,53,50,.13)); }
.stitch { position: absolute; width: 360px; height: 360px; border: 2px dashed rgba(60,53,50,.15); border-radius: 50%; }
.stitch--one { left: -120px; top: -70px; }
.story__quote { position: absolute; left: 34px; right: 34px; bottom: 34px; padding: 25px 28px; border-radius: 22px; background: rgba(255,253,248,.88); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.story__quote span { color: var(--rose-dark); font-family: Georgia, serif; font-size: 3rem; line-height: .5; }
.story__quote p { margin: 4px 0 0; font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.35; }
.story__stamp { position: absolute; right: 18px; top: 38px; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 50%; color: var(--white); background: var(--clay); font-family: Georgia, serif; text-align: center; transform: rotate(10deg); }
.story__copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.values { display: grid; gap: 22px; margin: 32px 0 0; padding: 0; list-style: none; }
.values li { display: flex; align-items: center; gap: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.values li > span { color: var(--rose-dark); font-family: Georgia, serif; font-size: 1.35rem; }
.values div { display: flex; flex-direction: column; }
.values strong { font-size: .98rem; }
.values small { color: var(--muted); }
.custom-order { color: var(--white); }
.custom-order__inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 64px 70px; border-radius: 36px; background: var(--rose-dark); box-shadow: var(--shadow); }
.custom-order h2 { max-width: 720px; margin-bottom: 15px; }
.custom-order p { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); }
.custom-order .eyebrow { color: #ffe3db; }
.site-footer { margin-top: 50px; color: #f9f2e8; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 70px; padding-block: 72px; }
.brand--footer { margin-bottom: 20px; }
.brand--footer .brand__text small, .site-footer p { color: rgba(255,255,255,.65); }
.site-footer h2 { font-family: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.site-footer .text-link { color: #ffd8c7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .78rem; }
.page-hero { padding-block: 82px; background: var(--cream); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.entry-content { padding-block: 70px; }
.entry-content a { color: var(--rose-dark); text-decoration: underline; }
.post-grid { display: grid; gap: 24px; padding-block: 70px; }
.post-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.post-card__body { padding: 28px; }
.shop-shell { padding-block: 76px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .8rem; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--white); }
.woocommerce ul.products li.product img { border-radius: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font-family: Georgia, serif; font-size: 1.3rem; }
.woocommerce ul.products li.product .price { color: var(--rose-dark); font-weight: 800; }
.woocommerce span.onsale { min-width: 0; min-height: 0; padding: 8px 12px; border-radius: 999px; background: var(--rose-dark); line-height: 1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rose-dark); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sage); background: var(--cream); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sage); }
@media (max-width: 980px) {
    .main-nav { display: none; }
    .site-header__inner { min-height: 78px; }
    .hero__grid { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-block: 72px; }
    .hero__art { min-height: 480px; max-width: 560px; width: 100%; margin: 0 auto; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .story__grid { grid-template-columns: 1fr; gap: 50px; }
    .story__visual { min-height: 500px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    :root { --wrap: min(100% - 28px, 1180px); }
    .announcement__inner { justify-content: center; text-align: center; }
    .announcement__inner span:last-child { display: none; }
    .brand__text small, .cart-link > span:nth-child(2) { display: none; }
    .site-header__inner { gap: 12px; }
    .cart-link { margin-left: auto; }
    h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
    .section { padding-block: 78px; }
    .hero__art { min-height: 390px; }
    .hero__sun { width: 300px; height: 300px; }
    .craft-card--main { width: 245px; height: 285px; top: 58px; padding: 26px; }
    .craft-card__icon { font-size: 3.8rem; }
    .craft-card strong { font-size: 1.45rem; }
    .craft-card--yarn, .craft-card--baby { width: 112px; height: 112px; border-width: 5px; }
    .craft-card--yarn { left: -8px; }
    .craft-card--baby { right: -8px; }
    .craft-card--yarn small, .craft-card--baby small { display: none; }
    .section-heading { display: block; }
    .section-heading .text-link { display: inline-block; margin-top: 16px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 0; }
    .story__visual { min-height: 430px; }
    .custom-order__inner { display: block; padding: 42px 28px; }
    .custom-order .button { margin-top: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-bottom { flex-direction: column; gap: 3px; }
    .woocommerce ul.products { grid-template-columns: 1fr; }
}
