/*
Theme Name: Fibras Capilares
Theme URI: https://fibrascapilares.com.ar
Author: Juan
Description: Tema a medida para fibras capilares (afiliación Mercado Libre) optimizado para SEO y conversión. Preparado para escalar a WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fibras-capilares
*/

:root{
	--ink:#14181c; --ink2:#2a3138; --muted:#5b6670;
	--bg:#fff; --soft:#f5f7f8; --line:#e6eaed;
	--brand:#0f766e; --brand-d:#0b5a54; --brand-soft:#d8f0ec;
	--cta:#ff6a1a; --cta-d:#e2570e; --ok:#16a34a; --gold:#f5a623; --off:#e11d48;
	--radius:14px; --shadow:0 6px 24px rgba(20,24,28,.08); --shadow-l:0 2px 10px rgba(20,24,28,.06);
	--wrap:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.65;font-size:17px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.2;color:var(--ink);margin:0 0 .5em}
h1{font-size:2.3rem;font-weight:800;letter-spacing:-.02em}
h2{font-size:1.8rem;font-weight:800;letter-spacing:-.01em}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1rem}

.fc-container{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
.fc-narrow{max-width:760px}
.fc-section{padding:56px 0}
.fc-h2-center{text-align:center}
.fc-section-sub{text-align:center;color:var(--muted);margin:-.3rem auto 2rem;max-width:620px}

/* Announce bar */
.fc-announce{background:var(--ink);color:#fff;font-size:.9rem;text-align:center;padding:9px 0}
.fc-announce a{color:#ffd8a8;font-weight:700}
.fc-announce strong{color:#fff}

/* Header */
.fc-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid var(--line)}
.fc-header-inner{display:flex;align-items:center;gap:20px;height:66px}
.fc-logo{font-size:1.35rem;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.fc-logo span{color:var(--brand)}
.fc-nav{margin-left:auto}
.fc-menu{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.fc-menu a{color:var(--ink2);font-weight:600;font-size:.95rem}
.fc-menu a:hover{color:var(--brand);text-decoration:none}
.fc-header-cta{background:var(--brand);color:#fff;padding:9px 16px;border-radius:10px;font-weight:700;font-size:.92rem}
.fc-header-cta:hover{background:var(--brand-d);text-decoration:none}
.fc-burger{display:none;background:none;border:0;font-size:1.6rem;cursor:pointer;color:var(--ink)}

/* CTA button */
.fc-cta{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--cta);color:#fff;border-radius:12px;padding:14px 26px;font-weight:800;font-size:1.08rem;text-align:center;box-shadow:0 8px 20px rgba(255,106,26,.28);transition:transform .08s ease,background .15s ease;line-height:1.2}
.fc-cta:hover{background:var(--cta-d);text-decoration:none;transform:translateY(-1px)}
.fc-cta:active{transform:translateY(0)}
.fc-cta-sub{font-size:.72rem;font-weight:600;opacity:.92}
.fc-cta--wide{display:flex;width:100%}

/* Hero */
.fc-hero{background:linear-gradient(180deg,var(--soft),#fff);padding:52px 0 44px;border-bottom:1px solid var(--line)}
.fc-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:center}
.fc-eyebrow{display:inline-block;background:var(--brand-soft);color:var(--brand-d);font-weight:700;font-size:.85rem;padding:5px 12px;border-radius:999px;margin-bottom:14px}
.fc-hero h1{font-size:2.7rem}
.fc-hero h1 span{color:var(--brand)}
.fc-hero-sub{font-size:1.15rem;color:var(--ink2);margin-bottom:18px}
.fc-hero-bullets{list-style:none;padding:0;margin:0 0 22px}
.fc-hero-bullets li{padding:4px 0;font-weight:600;color:var(--ink2)}
.fc-hero-cta-wrap{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.fc-hero-price{display:flex;flex-direction:column;line-height:1.1}
.fc-hero-scarcity{margin-top:14px;color:var(--off);font-weight:600;font-size:.95rem}
.fc-hero-media{position:relative;text-align:center}
.fc-hero-media img{margin:0 auto;filter:drop-shadow(0 20px 40px rgba(20,24,28,.18))}
.fc-hero-tag{position:absolute;top:10px;right:10px;background:var(--ok);color:#fff;font-weight:800;font-size:.85rem;padding:7px 13px;border-radius:999px;box-shadow:var(--shadow-l)}
.fc-media-link{display:block;cursor:pointer}
.fc-media-link img{transition:transform .15s ease}
.fc-media-link:hover img{transform:scale(1.02)}

/* Prices */
.fc-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:8px 0}
.fc-price-now{font-size:1.7rem;font-weight:800;color:var(--ink)}
.fc-price-old{text-decoration:line-through;color:var(--muted);font-size:1rem}
.fc-price-off{background:#fde7ec;color:var(--off);font-weight:800;font-size:.8rem;padding:3px 9px;border-radius:6px}
.fc-price--pdp .fc-price-now{font-size:2.2rem}
.fc-price-note{flex-basis:100%;color:var(--muted);font-size:.85rem;font-weight:500}

/* Trust bar */
.fc-trust{background:var(--ink);color:#fff;padding:16px 0}
.fc-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.fc-trust-item{display:flex;align-items:center;gap:9px;justify-content:center;font-size:.92rem;font-weight:600}
.fc-trust-ico{font-size:1.25rem}

/* Pain */
.fc-pain{background:#fff}
.fc-pain h2{margin-bottom:.7em}
.fc-pain-solution{font-size:1.15rem;background:var(--brand-soft);border-left:4px solid var(--brand);padding:16px 20px;border-radius:0 10px 10px 0;color:var(--ink)}

/* Steps */
.fc-steps{background:var(--soft)}
.fc-steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:26px}
.fc-step{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 22px;text-align:center;box-shadow:var(--shadow-l)}
.fc-step-n{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;background:var(--brand);color:#fff;border-radius:50%;font-weight:800;font-size:1.2rem;margin-bottom:12px}

/* Product grid + cards */
.fc-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.fc-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.fc-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-l);transition:box-shadow .15s ease,transform .1s ease}
.fc-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.fc-card--featured{border-color:var(--brand);box-shadow:0 8px 26px rgba(15,118,110,.16)}
.fc-card-badge{position:absolute;top:12px;left:12px;z-index:2;background:var(--ink);color:#fff;font-size:.72rem;font-weight:800;padding:5px 10px;border-radius:6px}
.fc-card--featured .fc-card-badge{background:var(--brand)}
.fc-card-img{display:block;background:var(--soft);padding:18px}
.fc-card-img img{aspect-ratio:1;object-fit:contain;margin:0 auto}
.fc-card-body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.fc-card-title{font-size:1.02rem;margin:0}
.fc-card-title a{color:var(--ink)}
.fc-card-rating{font-size:.85rem;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fc-card-pitch{font-size:.9rem;color:var(--ink2);margin:0;flex:1}
.fc-card .fc-cta{margin-top:4px}
.fc-card-more{text-align:center;font-size:.85rem;font-weight:600;margin-top:2px}
.fc-help-line{text-align:center;color:var(--muted);margin-top:24px}

/* Stars */
.fc-stars{color:var(--gold);letter-spacing:1px}
.fc-star-empty{color:#d8dde1}

/* Why */
.fc-why{background:var(--soft)}
.fc-why-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center}
.fc-check-list{list-style:none;padding:0;margin:0 0 22px}
.fc-check-list li{position:relative;padding:8px 0 8px 30px}
.fc-check-list li:before{content:"✔";position:absolute;left:0;top:8px;color:var(--ok);font-weight:800}
.fc-why-proof{display:grid;gap:14px}
.fc-proof-big{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;text-align:center;box-shadow:var(--shadow-l)}
.fc-proof-big strong{display:block;font-size:2rem;color:var(--brand);font-weight:800}
.fc-proof-big span{color:var(--muted);font-size:.9rem}

/* Reviews */
.fc-review{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:0;box-shadow:var(--shadow-l)}
.fc-review-stars{margin-bottom:8px;font-size:1.05rem}
.fc-review blockquote{margin:0 0 12px;font-size:1.02rem;color:var(--ink2)}
.fc-review figcaption{font-weight:700;font-size:.9rem}
.fc-review figcaption span{color:var(--ok);font-weight:600}

/* FAQ accordion */
.fc-accordion{display:grid;gap:10px;margin-top:22px}
.fc-acc-item{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.fc-acc-item summary{cursor:pointer;padding:16px 20px;font-weight:700;list-style:none;position:relative}
.fc-acc-item summary::-webkit-details-marker{display:none}
.fc-acc-item summary:after{content:"+";position:absolute;right:18px;top:14px;font-size:1.4rem;color:var(--brand);font-weight:400}
.fc-acc-item[open] summary:after{content:"–"}
.fc-acc-body{padding:0 20px 16px;color:var(--ink2)}
.fc-acc-body p{margin:0}

/* CTA band */
.fc-cta-band{background:linear-gradient(135deg,var(--brand),var(--brand-d));color:#fff;padding:56px 0;text-align:center}
.fc-cta-band h2{color:#fff}
.fc-cta-band p{color:rgba(255,255,255,.9);max-width:620px;margin:0 auto 22px;font-size:1.1rem}
.fc-cta-band .fc-cta{background:#fff;color:var(--cta-d);box-shadow:0 8px 22px rgba(0,0,0,.18)}
.fc-cta-band .fc-cta:hover{background:#fff5ef}

/* SEO prose */
.fc-seo{background:var(--soft)}
.fc-seo p{color:var(--ink2)}

/* Breadcrumb */
.fc-breadcrumb{background:var(--soft);border-bottom:1px solid var(--line);font-size:.85rem;color:var(--muted);padding:11px 0}
.fc-breadcrumb span{margin:0 4px;color:#aeb6bc}
.fc-breadcrumb--post{background:none;border:0;padding:0 0 10px}

/* PDP */
.fc-pdp-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}
.fc-pdp-media{position:relative;background:var(--soft);border-radius:var(--radius);padding:30px;text-align:center;position:sticky;top:86px}
.fc-pdp-media img{margin:0 auto;object-fit:contain;aspect-ratio:1}
.fc-pdp-badge{position:absolute;top:14px;left:14px;background:var(--brand);color:#fff;font-size:.78rem;font-weight:800;padding:6px 12px;border-radius:6px}
.fc-pdp-info h1{font-size:1.9rem}
.fc-pdp-rating{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.92rem;margin-bottom:10px;flex-wrap:wrap}
.fc-pdp-tagline{font-size:1.12rem;color:var(--ink2)}
.fc-pdp-rinde{font-weight:700;color:var(--ok)}
.fc-pdp-colors{margin:18px 0}
.fc-pdp-colors-label{font-weight:700;display:block;margin-bottom:8px;font-size:.9rem}
.fc-color-dots{display:flex;gap:8px;flex-wrap:wrap}
.fc-color-dot{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:default}
.fc-color-dot[data-c="negro"]{background:#1a1a1a}
.fc-color-dot[data-c="castano-oscuro"]{background:#3b2314}
.fc-color-dot[data-c="castano-medio"]{background:#6b4423}
.fc-color-dot[data-c="castano-claro"]{background:#8a5a2b}
.fc-color-dot[data-c="castano-rojizo"]{background:#7a3b1f}
.fc-color-dot[data-c="rubio"]{background:#c99a4e}
.fc-color-dot[data-c="rubio-medio"]{background:#d8b06a}
.fc-color-dot[data-c="rubio-claro"]{background:#e6cf95}
.fc-color-dot[data-c="gris"]{background:#9aa0a6}
.fc-color-dot[data-c="blanco"]{background:#f2f2f2}
.fc-pdp-colors-note{display:block;color:var(--muted);font-size:.82rem;margin-top:8px}
.fc-pdp-info .fc-cta{display:flex;width:100%;margin-top:6px}
.fc-pdp-scarcity{color:var(--off);font-weight:600;font-size:.92rem;margin-top:10px}
.fc-pdp-trust{list-style:none;display:flex;gap:16px;flex-wrap:wrap;padding:14px 0 0;margin:0;font-size:.88rem;font-weight:600;color:var(--ink2)}
.fc-pdp-desc{background:var(--soft)}

/* Sticky buy (mobile) */
.fc-sticky-buy{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 18px rgba(0,0,0,.08);transform:translateY(110%);transition:transform .2s ease;display:none}
.fc-sticky-buy.is-visible{transform:translateY(0)}
.fc-sticky-inner{display:flex;align-items:center;gap:14px;padding:10px 20px}
.fc-sticky-info{display:flex;flex-direction:column;line-height:1.1}
.fc-sticky-info strong{font-size:1.15rem}
.fc-sticky-info span{font-size:.78rem;color:var(--muted);max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-sticky-buy .fc-cta{margin-left:auto;padding:11px 22px}
.fc-sticky-buy .fc-cta-sub{display:none}

/* Footer */
.fc-footer{background:var(--ink);color:#c7ced4;padding:48px 0 0;margin-top:20px}
.fc-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;padding-bottom:34px}
.fc-footer h4{color:#fff;font-size:1rem;margin-bottom:12px}
.fc-footer ul{list-style:none;padding:0;margin:0}
.fc-footer li{padding:4px 0}
.fc-footer a{color:#c7ced4}
.fc-footer a:hover{color:#fff}
.fc-logo--footer{color:#fff;display:inline-block;margin-bottom:10px}
.fc-footer-bottom{border-top:1px solid #2a3138;padding:18px 0}
.fc-disclaimer{font-size:.78rem;color:#8b949c;margin-bottom:8px}
.fc-copy{font-size:.82rem;color:#8b949c;margin:0}

/* WhatsApp float */
.fc-wa{position:fixed;right:18px;bottom:18px;z-index:70;width:54px;height:54px;background:#25d366;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.6rem;box-shadow:var(--shadow);text-decoration:none}

/* Blog */
.fc-archive-head{text-align:center;max-width:640px;margin:0 auto 30px}
.fc-post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-l);display:flex;flex-direction:column}
.fc-post-card-img img{aspect-ratio:16/9;object-fit:cover;width:100%}
.fc-post-card-body{padding:18px}
.fc-post-card-body h2{font-size:1.15rem}
.fc-post-card-body h2 a{color:var(--ink)}
.fc-inline-cta{background:var(--brand-soft);border-radius:10px;padding:14px 18px;text-align:center;font-size:1.05rem}
.fc-post-meta{color:var(--muted);font-size:.85rem;margin-top:-.4rem}
.fc-post-cta{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:26px;text-align:center;margin-top:34px}
.fc-prose h2{margin-top:1.6em}
.fc-prose ul{padding-left:1.2em}
.fc-prose li{margin:.3em 0}
.fc-pagination{margin-top:30px;text-align:center}
.fc-pagination .page-numbers{display:inline-block;padding:8px 13px;border:1px solid var(--line);border-radius:8px;margin:0 3px;color:var(--ink2)}
.fc-pagination .current{background:var(--brand);color:#fff;border-color:var(--brand)}

/* Responsive */
@media(max-width:960px){
	.fc-hero-grid{grid-template-columns:1fr;gap:28px}
	.fc-hero h1{font-size:2.1rem}
	.fc-hero-media{order:-1;max-width:340px;margin:0 auto}
	.fc-why-grid{grid-template-columns:1fr;gap:26px}
	.fc-pdp-grid{grid-template-columns:1fr;gap:26px}
	.fc-pdp-media{position:static;max-width:420px;margin:0 auto}
	.fc-grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
	body{font-size:16px}
	h1{font-size:1.9rem}h2{font-size:1.5rem}
	.fc-section{padding:40px 0}
	.fc-nav{position:absolute;top:66px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);max-height:0;overflow:hidden;transition:max-height .25s ease;margin:0}
	.fc-nav.is-open{max-height:420px}
	.fc-menu{flex-direction:column;gap:0;padding:8px 20px}
	.fc-menu li{border-bottom:1px solid var(--line)}
	.fc-menu a{display:block;padding:13px 0}
	.fc-burger{display:block;margin-left:auto}
	.fc-header-cta{display:none}
	.fc-trust-grid{grid-template-columns:repeat(2,1fr);gap:12px}
	.fc-steps-grid,.fc-grid-3{grid-template-columns:1fr}
	.fc-sticky-buy{display:block}
	.fc-footer-grid{grid-template-columns:1fr;gap:22px}
}
@media(max-width:460px){
	.fc-grid-4{grid-template-columns:1fr}
	.fc-hero h1{font-size:1.75rem}
	.fc-cta{padding:13px 20px;font-size:1rem}
}

/* Popup captación de emails */
.fc-pop{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px}
.fc-pop[hidden]{display:none}
.fc-pop-backdrop{position:absolute;inset:0;background:rgba(20,24,28,.6);backdrop-filter:blur(2px)}
.fc-pop-card{position:relative;background:#fff;border-radius:16px;max-width:440px;width:100%;padding:34px 30px 26px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:fc-pop-in .25s ease}
@keyframes fc-pop-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.fc-pop-x{position:absolute;top:10px;right:14px;background:none;border:0;font-size:1.7rem;line-height:1;color:var(--muted);cursor:pointer}
.fc-pop-x:hover{color:var(--ink)}
.fc-pop-emoji{font-size:2.4rem;display:block;margin-bottom:6px}
.fc-pop-card h3{font-size:1.4rem;margin-bottom:8px}
.fc-pop-card p{color:var(--ink2);margin-bottom:16px}
.fc-pop-form{display:flex;flex-direction:column;gap:10px}
.fc-pop-form input{width:100%;padding:13px 15px;border:1.5px solid var(--line);border-radius:10px;font-size:1rem;font-family:inherit}
.fc-pop-form input:focus{outline:none;border-color:var(--brand)}
.fc-pop-err{color:var(--off);font-size:.88rem;font-weight:600;margin:0}
.fc-pop-mini{font-size:.78rem;color:var(--muted);margin:12px 0 0}
body.fc-pop-open{overflow:hidden}
