/*
Theme Name: KV Studio 2026
Theme URI: https://www.kvstudio.es
Author: KV Studio
Description: Tema a medida para KV Studio Nails & Art (Barcelona). Rápido, SEO local, páginas de servicio y blog.
Version: 2.0.0
Text Domain: kv-studio
*/

:root {
    --bg: #FBF7F4;
    --bg-alt: #F4EBE6;
    --ink: #1F1B1B;
    --muted: #6A5F5F;
    --blush: #E9C9CF;
    --blush-dark: #C98E9C;
    --sage: #6F8472;
    --line: #E6DAD3;
    --white: #fff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(60, 30, 30, .08);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 1.6em; }
h3, .h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blush-dark); outline-offset: 3px; }

/* Botones */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 999px; font-weight: 600; border: 2px solid var(--ink); transition: transform .15s, background .15s, color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); background: var(--blush-dark); border-color: var(--blush-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 247, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item a { border-bottom-color: var(--blush-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0; background: radial-gradient(900px 400px at 85% 0%, var(--blush) 0, transparent 70%), var(--bg); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--sage); margin-bottom: 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-points { list-style: none; padding: 0; margin: 1.6em 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .92rem; }
.hero-img img { border-radius: 200px 200px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); width: 100%; max-height: 620px; }

/* Secciones */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head h2 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.service-card { text-decoration: none; transition: transform .2s, border-color .2s; display: block; }
.service-card:hover { transform: translateY(-4px); border-color: var(--blush-dark); }
.service-card h3, .service-card h2 { margin-bottom: .3em; }
.service-card p { color: var(--muted); }
.more { font-weight: 600; color: var(--blush-dark); }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1em; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.quote figcaption { font-weight: 600; color: var(--sage); }

/* Tarifas */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 2rem; }
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-box h3 { margin-bottom: .5em; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list b { color: var(--blush-dark); white-space: nowrap; }

/* Blog */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 22px; }
.post-card h3 { font-size: 1.35rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--blush-dark); }
.meta { color: var(--muted); font-size: .88rem; }
.post-cover img { border-radius: var(--radius); width: 100%; margin-bottom: 2rem; }
.entry { font-size: 1.06rem; }
.entry h2 { margin-top: 1.8em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry a { color: var(--blush-dark); font-weight: 500; }
.kv-toc { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 2rem; }
.kv-toc ol { margin: .6em 0 0; }
.cta-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 5vw, 44px); margin: 3rem 0; text-align: center; }
.cta-box h2 { margin-top: 0; }
.cta-box .btn-row { justify-content: center; }
.cta-box .btn { background: var(--blush); color: var(--ink); border-color: var(--blush); }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.pager { text-align: center; margin-top: 2rem; }
.pager .page-numbers { display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; }

/* Páginas internas */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 12px; background: linear-gradient(var(--bg-alt), var(--bg)); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1em; }
.crumbs a { text-decoration: none; }
.ticks, .steps { padding-left: 0; list-style: none; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: .6em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; margin-bottom: .8em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* FAQ */
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; color: var(--blush-dark); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 1.4em 0; }
.contact-list li { display: flex; flex-direction: column; margin-bottom: 1em; }
.contact-list b { color: var(--sage); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--ink); color: #D9CFCF; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer img { background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer-h { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blush); margin: 0 0 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-bottom { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid #3a3333; margin-top: 32px; padding-top: 20px; font-size: .88rem; }
.footer-bottom span { margin-right: auto; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); z-index: 90; }
.wa-float:hover { transform: scale(1.06); }

/* Galería Instagram (carrusel con Smash Balloon "Instagram Feed") */
.kv-gallery { position: relative; margin-bottom: 1.6rem; }
.kv-gal-track { overflow: hidden; }
.kv-gallery #sbi_images { display: flex !important; flex-wrap: nowrap !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 !important; scrollbar-width: none; }
.kv-gallery #sbi_images::-webkit-scrollbar { display: none; }
.kv-gallery #sbi_images .sbi_item { flex: 0 0 min(280px, 72vw) !important; width: auto !important; padding: 0 !important; scroll-snap-align: start; }
.kv-gallery #sbi_images .sbi_photo_wrap, .kv-gallery #sbi_images .sbi_photo { border-radius: var(--radius); overflow: hidden; }
.kv-gallery #sbi_load, .kv-gallery .sbi_follow_btn { display: none !important; }
.kv-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.kv-gal-prev { left: -6px; }
.kv-gal-next { right: -6px; }

/* Responsive */
@media (max-width: 860px) {
    .hero-in, .split, .footer-grid { grid-template-columns: 1fr; }
    .hero-img { order: -1; }
    .hero-img img { aspect-ratio: 4 / 3; max-height: 360px; border-radius: var(--radius); }
    .nav-toggle { display: block; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); display: none; }
    .nav.is-open { display: flex; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-cta { text-align: center; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
