/*
Theme Name: Kefirosa
Theme URI: https://kefirosa.com
Author: Kefirosa
Author URI: https://kefirosa.com
Description: Tema custom para Kefirosa — kéfir orgánico artesanal hecho en Guatemala. Landing de una sola página con pedidos por WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kefirosa
Tags: one-page, custom-colors, custom-logo, custom-menu, e-commerce
*/

:root {
  /* Paleta basada en el logo de Kefirosa */
  --green-dark:  #2d5a3d;
  --green-deep:  #1f4029;
  --green-mid:   #4a7a5c;
  --green-soft:  #6a9078;
  --green-light: #d9e8de;
  --green-bg:    #f4f9f5;

  --pink-soft:   #fce4e4;
  --pink-mid:    #f5c8c8;
  --pink-deep:   #e8a5a5;

  --burgundy:    #8b3a4f;
  --burgundy-soft: #f5e0e5;

  --cream:       #fdf8f0;
  --cream-deep:  #f5ecdc;
  --yellow:      #ffd966;
  --yellow-bg:   #fff8e1;

  --white: #ffffff;
  --text-dark: #2d2a26;
  --text-mid:  #5a544c;
  --text-light:#8b8478;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-body); background:var(--cream); color:var(--text-dark); overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; }

/* ─── NAV ─── */
.site-nav { position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(253,248,240,0.93); backdrop-filter:blur(12px); border-bottom:1.5px solid rgba(45,90,61,0.12); padding:12px 32px; display:flex; align-items:center; justify-content:space-between; }
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img { height:50px; width:auto; }
.nav-logo-text { font-family:var(--font-display); font-size:26px; font-weight:700; color:var(--green-dark); letter-spacing:-0.5px; font-style:italic; }
.nav-links { display:flex; gap:28px; list-style:none; align-items:center; }
.nav-links a { text-decoration:none; font-size:14px; font-weight:700; color:var(--text-mid); transition:color .2s; }
.nav-links a:hover { color:var(--green-dark); }
.nav-cta { background:var(--green-dark); color:white!important; padding:10px 22px; border-radius:40px; font-size:14px; font-weight:800; text-decoration:none; transition:background .2s,transform .15s; display:inline-flex; align-items:center; gap:6px; }
.nav-cta:hover { background:var(--green-deep); transform:translateY(-1px); }

/* ─── HERO ─── */
.hero { min-height:100vh; background:linear-gradient(160deg,var(--cream) 0%,var(--pink-soft) 55%,var(--green-light) 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:120px 24px 80px; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; width:520px; height:520px; background:radial-gradient(circle,var(--pink-mid) 0%,transparent 70%); border-radius:50%; top:-150px; right:-120px; opacity:.6; }
.hero::after { content:''; position:absolute; width:420px; height:420px; background:radial-gradient(circle,var(--green-light) 0%,transparent 70%); border-radius:50%; bottom:-100px; left:-100px; opacity:.7; }
.hero-badge { position:relative; display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.7); border:1.5px solid var(--green-light); border-radius:40px; padding:9px 20px; font-size:13px; font-weight:700; color:var(--green-dark); margin-bottom:28px; animation:fadeDown .6s ease both; }
.hero h1 { font-family:var(--font-display); font-size:clamp(44px,7.5vw,82px); font-weight:600; color:var(--green-dark); line-height:1.05; margin-bottom:20px; letter-spacing:-1px; animation:fadeDown .7s ease .1s both; position:relative; }
.hero h1 em { font-style:italic; color:var(--burgundy); font-weight:500; }
.hero-sub { position:relative; font-size:clamp(16px,2.5vw,20px); color:var(--text-mid); max-width:540px; line-height:1.65; margin-bottom:36px; font-weight:600; animation:fadeDown .7s ease .2s both; }
.hero-pills { position:relative; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:40px; animation:fadeDown .7s ease .3s both; }
.hero-pill { background:rgba(255,255,255,0.75); border:1.5px solid var(--green-light); border-radius:40px; padding:8px 18px; font-size:13px; font-weight:700; color:var(--green-dark); }
.hero-btn { position:relative; display:inline-flex; align-items:center; gap:10px; background:var(--green-dark); color:var(--cream); font-size:16px; font-weight:800; padding:16px 36px; border-radius:50px; text-decoration:none; box-shadow:0 8px 30px rgba(45,90,61,0.25); transition:transform .2s,box-shadow .2s,background .2s; animation:fadeDown .7s ease .4s both; margin-bottom:48px; }
.hero-btn:hover { transform:translateY(-3px); box-shadow:0 14px 40px rgba(45,90,61,0.35); background:var(--green-deep); }

/* HERO VIDEO */
.hero-video-wrap { position:relative; z-index:1; width:100%; max-width:640px; animation:fadeDown .7s ease .5s both; }
.hero-video-frame { border-radius:20px; overflow:hidden; border:3px solid rgba(255,255,255,0.5); box-shadow:0 16px 60px rgba(45,90,61,0.25); background:rgba(45,90,61,0.15); aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; cursor:pointer; transition:transform .2s; position:relative; }
.hero-video-frame:hover { transform:scale(1.01); }
.play-btn { width:64px; height:64px; border-radius:50%; background:white; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,0.18); }
.play-btn svg { width:28px; height:28px; fill:var(--green-dark); margin-left:4px; }
.hero-video-label { color:var(--green-dark); font-size:15px; font-weight:800; }
.hero-video-sublabel { color:var(--text-mid); font-size:12px; font-weight:600; }
#heroVideo { width:100%; height:100%; object-fit:cover; display:none; position:absolute; inset:0; border-radius:17px; }
#videoInput { display:none; }

.hero-scroll { position:absolute; bottom:28px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--green-mid); font-size:12px; font-weight:700; animation:bounce 2s infinite; }
.hero-scroll svg { width:20px; height:20px; }

/* ─── QUÉ ES ─── */
.what-outer { background:white; }
.what-section { padding:100px 24px 40px; max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.what-text h2 { font-family:var(--font-display); font-size:clamp(32px,4.5vw,52px); font-weight:600; color:var(--green-dark); line-height:1.1; margin-bottom:22px; letter-spacing:-1px; }
.what-text h2 em { font-style:italic; color:var(--burgundy); font-weight:500; }
.what-text p { font-size:16px; line-height:1.75; color:var(--text-mid); font-weight:600; margin-bottom:16px; }
.what-text strong { color:var(--green-dark); }
.what-visual { background:var(--cream); border-radius:var(--radius-lg); padding:30px; border:2px solid var(--cream-deep); display:flex; flex-direction:column; gap:14px; }
.stat-row { display:flex; align-items:flex-start; gap:14px; padding:16px; background:white; border-radius:var(--radius-md); border:1.5px solid var(--cream-deep); }
.stat-emoji { font-size:26px; flex-shrink:0; margin-top:2px; }
.stat-info strong { display:block; font-size:16px; font-weight:900; color:var(--green-dark); margin-bottom:3px; }
.stat-info span { font-size:12.5px; color:var(--text-mid); font-weight:600; line-height:1.55; }

.what-photos { max-width:1100px; margin:0 auto; padding:20px 24px 80px; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.photo-slot { border-radius:var(--radius-md); overflow:hidden; aspect-ratio:4/3; background:var(--green-light); border:2px dashed var(--green-mid); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; cursor:pointer; position:relative; transition:background .2s; }
.photo-slot:hover { background:#cae0d2; }
.photo-slot input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.photo-slot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:none; }
.photo-icon { font-size:28px; pointer-events:none; }
.photo-label { font-size:13px; font-weight:700; color:var(--green-dark); pointer-events:none; text-align:center; padding:0 8px; }

/* ─── SECTION HEADERS ─── */
.section-label { text-align:center; margin-bottom:16px; }
.section-label span { font-size:11px; font-weight:800; letter-spacing:2.5px; text-transform:uppercase; color:var(--burgundy); background:var(--burgundy-soft); padding:6px 16px; border-radius:40px; }
.section-title { text-align:center; font-family:var(--font-display); font-size:clamp(30px,4.5vw,48px); font-weight:600; color:var(--green-dark); margin-bottom:12px; letter-spacing:-1px; }
.section-title em { font-style:italic; color:var(--burgundy); font-weight:500; }
.section-sub { text-align:center; font-size:15px; color:var(--text-mid); font-weight:600; max-width:680px; margin:0 auto 48px; line-height:1.65; }

/* ─── BENEFITS ─── */
.benefits-section { padding:100px 24px; background:var(--green-bg); }
.benefits-inner { max-width:900px; margin:0 auto; }
.benefit-accordion { display:flex; flex-direction:column; gap:14px; }
.benefit-item { border:2px solid var(--green-light); border-radius:var(--radius-md); overflow:hidden; transition:border-color .3s,box-shadow .3s; background:white; }
.benefit-item.open { border-color:var(--green-mid); box-shadow:0 8px 32px rgba(45,90,61,0.12); }
.benefit-header { display:flex; align-items:center; gap:18px; padding:22px 26px; cursor:pointer; user-select:none; transition:background .2s; }
.benefit-header:hover { background:var(--green-bg); }
.benefit-emoji-wrap { width:52px; height:52px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; transition:transform .3s; }
.benefit-item.open .benefit-emoji-wrap { transform:scale(1.08); }
.benefit-header-text { flex:1; }
.benefit-header-text h3 { font-family:var(--font-display); font-size:19px; font-weight:600; color:var(--green-dark); margin-bottom:3px; letter-spacing:-0.3px; }
.benefit-header-text p { font-size:13px; color:var(--text-light); font-weight:600; }
.benefit-chevron { width:32px; height:32px; border-radius:50%; background:var(--green-light); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:transform .35s,background .3s; }
.benefit-chevron svg { width:16px; height:16px; stroke:var(--green-mid); transition:stroke .3s; }
.benefit-item.open .benefit-chevron { transform:rotate(180deg); background:var(--green-dark); }
.benefit-item.open .benefit-chevron svg { stroke:white; }
.benefit-body { max-height:0; overflow:hidden; transition:max-height .45s cubic-bezier(.4,0,.2,1); }
.benefit-body-inner { padding:22px 26px 26px; border-top:1.5px solid var(--green-light); }
.benefit-body-inner > p { font-size:15px; line-height:1.75; color:var(--text-mid); font-weight:600; margin-bottom:18px; }
.benefit-points { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.benefit-point { display:flex; align-items:flex-start; gap:10px; background:var(--green-bg); border-radius:var(--radius-sm); padding:12px 14px; }
.benefit-point-dot { width:8px; height:8px; border-radius:50%; background:var(--green-mid); flex-shrink:0; margin-top:5px; }
.benefit-point span { font-size:13px; font-weight:700; color:var(--text-dark); line-height:1.4; }
.benefit-science { margin-top:16px; background:linear-gradient(135deg,var(--pink-soft),var(--burgundy-soft)); border-left:3px solid var(--burgundy); border-radius:0 var(--radius-sm) var(--radius-sm) 0; padding:14px 16px; font-size:13px; color:var(--burgundy); font-weight:700; font-style:italic; }

/* ─── FLAVORS ─── */
.flavors-section { padding:100px 24px; background:white; }
.flavors-inner { max-width:980px; margin:0 auto; }
.acidity-note { background:var(--yellow-bg); border:2px solid var(--yellow); border-radius:var(--radius-md); padding:18px 22px; margin-bottom:40px; display:flex; gap:14px; align-items:flex-start; }
.acidity-note p { font-size:14px; color:#7a5a00; font-weight:700; line-height:1.65; }
.flavors-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-bottom:60px; }
.flavor-card { background:var(--cream); border-radius:var(--radius-md); border:2px solid var(--cream-deep); overflow:hidden; transition:box-shadow .25s,border-color .25s; }
.flavor-card.open { border-color:var(--green-mid); box-shadow:0 8px 32px rgba(45,90,61,0.15); }
.flavor-card-header { padding:24px 18px 16px; text-align:center; cursor:pointer; transition:background .2s; user-select:none; }
.flavor-card-header:hover { background:rgba(45,90,61,0.05); }
.flavor-emoji { font-size:40px; margin-bottom:10px; }
.flavor-name { font-family:var(--font-display); font-size:17px; font-weight:600; color:var(--green-dark); margin-bottom:5px; letter-spacing:-0.3px; }
.flavor-desc-short { font-size:12px; color:var(--text-mid); font-weight:600; line-height:1.4; margin-bottom:12px; }

.acidity-meter { display:flex; justify-content:center; gap:3px; margin-bottom:4px; }
.bulgarito { font-size:17px; filter:grayscale(1) opacity(.25); transition:filter .2s; }
.bulgarito.active { filter:grayscale(0) opacity(1); }
.acidity-label { font-size:11px; color:var(--text-light); font-weight:700; text-align:center; }

.flavor-body { max-height:0; overflow:hidden; transition:max-height .45s cubic-bezier(.4,0,.2,1); }
.flavor-body-inner { padding:16px 16px 18px; border-top:1.5px solid var(--cream-deep); }
.ctrl-label { font-size:11px; font-weight:800; color:var(--text-mid); text-transform:uppercase; letter-spacing:1px; margin-bottom:7px; }
.size-btns { display:flex; gap:8px; margin-bottom:14px; }
.size-btn { flex:1; padding:9px 4px; border-radius:10px; border:2px solid var(--cream-deep); background:white; font-size:13px; font-weight:800; color:var(--text-mid); cursor:pointer; text-align:center; transition:all .2s; font-family:var(--font-body); }
.size-btn.sel, .size-btn:hover { border-color:var(--green-mid); background:var(--green-light); color:var(--green-dark); }
.qty-row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.qty-btn { width:32px; height:32px; border-radius:50%; border:2px solid var(--green-mid); background:white; font-size:18px; font-weight:800; color:var(--green-mid); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s,color .2s; font-family:var(--font-body); line-height:1; }
.qty-btn:hover { background:var(--green-mid); color:white; }
.qty-num { font-size:18px; font-weight:900; color:var(--green-dark); min-width:24px; text-align:center; }
.order-btn { width:100%; padding:12px; border-radius:12px; border:none; background:var(--green-dark); color:white; font-size:13px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:transform .2s,box-shadow .2s,background .2s; font-family:var(--font-body); }
.order-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(45,90,61,0.3); background:var(--green-deep); }
.order-btn svg { width:16px; height:16px; flex-shrink:0; }

.flavor-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:16px; }
.fphoto-slot { border-radius:var(--radius-md); overflow:hidden; aspect-ratio:1; background:var(--green-light); border:2px dashed var(--green-mid); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; position:relative; transition:background .2s; }
.fphoto-slot:hover { background:#cae0d2; }
.fphoto-slot input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.fphoto-slot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:none; }
.fphoto-slot .p-icon { font-size:22px; pointer-events:none; }
.fphoto-slot .p-lbl { font-size:11px; font-weight:700; color:var(--green-dark); pointer-events:none; text-align:center; padding:0 4px; }

/* ─── HOW ─── */
.how-section { padding:100px 24px; background:var(--cream); }
.steps { max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:0; position:relative; }
.steps::before { content:''; position:absolute; left:31px; top:40px; bottom:40px; width:2px; background:linear-gradient(to bottom,var(--green-mid),var(--burgundy)); border-radius:2px; }
.step { display:flex; gap:24px; align-items:flex-start; padding:20px 0; }
.step-num { width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,var(--green-dark),var(--green-mid)); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:24px; font-weight:700; color:white; flex-shrink:0; box-shadow:0 4px 16px rgba(45,90,61,0.3); position:relative; z-index:1; }
.step-content { background:white; border-radius:var(--radius-md); padding:22px 24px; flex:1; border:1.5px solid var(--cream-deep); }
.step-content h3 { font-family:var(--font-display); font-size:18px; font-weight:600; color:var(--green-dark); margin-bottom:6px; letter-spacing:-0.3px; }
.step-content p { font-size:14px; color:var(--text-mid); font-weight:600; line-height:1.6; }
.step-content strong { color:var(--burgundy); }

/* ─── CTA ─── */
.cta-section { padding:100px 24px; background:linear-gradient(135deg,var(--green-dark) 0%,var(--green-deep) 100%); text-align:center; position:relative; overflow:hidden; color:white; }
.cta-section::before { content:''; position:absolute; width:500px; height:500px; background:radial-gradient(circle,rgba(245,200,200,0.18) 0%,transparent 70%); border-radius:50%; top:-200px; right:-100px; }
.cta-section::after { content:''; position:absolute; width:380px; height:380px; background:radial-gradient(circle,rgba(255,255,255,0.08) 0%,transparent 70%); border-radius:50%; bottom:-150px; left:-100px; }
.cta-section h2 { font-family:var(--font-display); font-size:clamp(30px,5vw,52px); font-weight:600; color:white; margin-bottom:16px; position:relative; letter-spacing:-1px; }
.cta-section h2 em { font-style:italic; color:var(--pink-mid); font-weight:500; }
.cta-section > p { font-size:18px; color:rgba(255,255,255,0.85); font-weight:600; margin-bottom:40px; position:relative; }
.cta-freshness { display:inline-flex; align-items:center; gap:10px; background:rgba(255,255,255,0.15); border:1.5px solid rgba(255,255,255,0.3); border-radius:var(--radius-md); padding:14px 24px; margin-bottom:32px; color:white; font-size:15px; font-weight:700; position:relative; }
.cta-buttons { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; position:relative; }
.btn-wa { display:inline-flex; align-items:center; gap:10px; background:white; color:var(--green-dark); font-size:16px; font-weight:800; padding:16px 36px; border-radius:50px; text-decoration:none; box-shadow:0 8px 30px rgba(0,0,0,0.18); transition:transform .2s; }
.btn-wa:hover { transform:translateY(-3px); }
.btn-wa svg { width:22px; height:22px; }

/* ─── FOOTER ─── */
.site-footer { background:var(--green-deep); padding:48px 24px 32px; text-align:center; color:rgba(255,255,255,0.85); }
.footer-wordmark { font-family:var(--font-display); font-style:italic; font-weight:600; font-size:42px; color:white; letter-spacing:-1px; margin-bottom:6px; }
.footer-tagline { font-family:var(--font-display); font-style:italic; font-size:16px; color:var(--pink-soft); margin-bottom:18px; font-weight:500; }
.site-footer p { font-size:13px; color:rgba(255,255,255,0.55); font-weight:600; margin-bottom:4px; }
.footer-phone { font-size:15px!important; color:white!important; margin-top:10px!important; }

/* ─── ANIM ─── */
@keyframes fadeDown { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:translateY(0)} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
.fade-in { opacity:0; transform:translateY(24px); transition:opacity .6s ease,transform .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width:768px) {
  .site-nav { padding:10px 16px; }
  .nav-links { display:none; }
  .nav-logo img { height:42px; }
  .what-section { grid-template-columns:1fr; gap:32px; padding-bottom:20px; }
  .benefit-points { grid-template-columns:1fr; }
  .steps::before { left:27px; }
  .what-photos { grid-template-columns:1fr 1fr; }
  .flavor-gallery { grid-template-columns:1fr 1fr; }
  .flavors-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
}
