/* =========================================================
   SAVI PLANT'S — Juguería y Productos Naturales "Vida Divina"
   Sistema de diseño
   ========================================================= */

:root{
  /* Color — Full palette (marca/hostelería) */
  --navy:        #0B1F45;
  --navy-light:  #16306e;
  --blue:        #1D5FFF;
  --lime:        #7CC624;
  --lime-dark:   #5FA318;
  --yellow:      #FFC629;
  --yellow-dark: #F0AE00;
  --cream:       #FAF9F4;
  --white:       #FFFFFF;
  --ink:         #14213D;
  --ink-soft:    #5B6478;
  --border:      #E7E4D9;

  /* Tipografía */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1.2rem + 0.875vw, 1.75rem);
  --text-2xl:  clamp(1.75rem, 1.5rem + 1.25vw, 2.35rem);
  --text-3xl:  clamp(2.1rem, 1.7rem + 2vw, 3.25rem);

  /* Spacing (base 4pt) */
  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --space-16: 64px; --space-24: 96px;

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

  --shadow-sm: 0 2px 10px rgba(11,31,69,0.07);
  --shadow-md: 0 12px 32px rgba(11,31,69,0.14);
  --shadow-lg: 0 24px 60px rgba(11,31,69,0.22);

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0,0,0.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.15; font-weight:700; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; border:none; background:none; }
section{ padding: clamp(3rem, 7vw, 6rem) 0; }
.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 var(--space-6); }

:focus-visible{ outline: 3px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .hero-media, .float-btn, .reveal, .fruit-pill{ animation: none !important; transition: none !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-display); font-weight:600;
  font-size: var(--text-xs); letter-spacing:.08em; text-transform:uppercase;
  color: var(--lime-dark);
}
.eyebrow svg{ width:16px; height:16px; flex-shrink:0; }
.eyebrow.on-dark{ color: var(--lime); }
.eyebrow.on-yellow{ color: var(--navy); }

/* ---------- Botones ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--font-display); font-weight:600; font-size: var(--text-sm);
  padding: 14px 26px; border-radius: 999px;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast);
  min-height:44px;
}
.btn svg{ width:20px; height:20px; flex-shrink:0; }
.btn:hover{ transform: translateY(-2px); }
.btn-whatsapp{ background: var(--lime); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover{ background: var(--lime-dark); box-shadow: var(--shadow-md); }
.btn-outline{ background: transparent; color: var(--white); border:2px solid rgba(255,255,255,.55); }
.btn-outline:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
.btn-yellow{ background: var(--yellow); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-yellow:hover{ background: var(--yellow-dark); box-shadow: var(--shadow-md); }
.btn-sm{ padding: 10px 18px; font-size: var(--text-xs); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(11,31,69,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 12px; padding-bottom:12px; gap: var(--space-4);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ width:42px; height:42px; border-radius:50%; }
.brand-name{ font-family: var(--font-display); color:#fff; font-weight:700; font-size: var(--text-base); line-height:1.1; }
.brand-tag{ color: var(--lime); font-size: 11px; font-weight:600; letter-spacing:.03em; }
.header-actions{ display:flex; align-items:center; gap: var(--space-4); }
.header-hours{ display:flex; align-items:center; gap:6px; color:#fff; font-size: var(--text-xs); opacity:.85; }
.header-hours svg{ width:16px; height:16px; color: var(--yellow); }
@media (max-width: 640px){ .header-hours{ display:none; } }

/* ---------- Hero ---------- */
.hero{
  position:relative; color:#fff; overflow:hidden;
  padding: clamp(3rem,10vw,7rem) 0 clamp(4rem,10vw,7rem);
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:center 20%;
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,31,69,.88) 0%, rgba(11,31,69,.90) 45%, rgba(11,31,69,.97) 100%);
}
.hero .container{ position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-16); align-items:center; }
@media (max-width: 900px){ .hero-grid{ grid-template-columns:1fr; gap: var(--space-12); } }

.hero h1{
  font-size: var(--text-3xl); color:#fff; margin-top: var(--space-4);
  text-wrap: balance;
}
.hero h1 em{ font-style:normal; color: var(--yellow); }
.hero-sub{
  margin-top: var(--space-4); font-size: var(--text-lg); color: rgba(255,255,255,.85);
  max-width: 46ch;
}
.hero-ctas{ display:flex; flex-wrap:wrap; gap: var(--space-4); margin-top: var(--space-8); }

.trust-bar{
  margin-top: var(--space-12); display:flex; flex-wrap:wrap; gap: var(--space-6) var(--space-8);
  padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.15);
}
.trust-item{ display:flex; align-items:center; gap:10px; font-size: var(--text-sm); color: rgba(255,255,255,.85); }
.trust-item svg{ width:22px; height:22px; color: var(--yellow); flex-shrink:0; }
.trust-item strong{ color:#fff; }

.hero-card{
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: var(--space-8);
  backdrop-filter: blur(6px);
}
.hero-card img{ border-radius: var(--radius-md); width:100%; height: 340px; object-fit:cover; }
.hero-card .rating{ display:flex; align-items:center; gap:8px; margin-top: var(--space-4); }
.stars{ color: var(--yellow); letter-spacing:2px; font-size: 1.1rem; }
.hero-card .rating-num{ font-family: var(--font-display); font-weight:700; color:#fff; }
.hero-card .rating-sub{ color: rgba(255,255,255,.7); font-size: var(--text-xs); }

/* ---------- Leaf divider (signature element) ---------- */
.leaf-divider{ display:block; width:100%; line-height:0; }
.leaf-divider svg{ width:100%; height: clamp(40px, 8vw, 90px); display:block; }
.leaf-divider.flip{ transform: scaleX(-1); }

/* ---------- Sobre nosotros ---------- */
.about{ background: var(--white); }
.about-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-16); align-items:center; }
@media (max-width: 900px){ .about-grid{ grid-template-columns:1fr; gap: var(--space-8); } }
.about-photos{ position:relative; }
.about-photos img{ border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.about-photos .photo-main{ width:100%; height:420px; object-fit:cover; }
.about-photos .photo-tag{
  position:absolute; bottom:-24px; right:-24px; width:180px; height:150px; object-fit:cover;
  border:5px solid var(--white); box-shadow: var(--shadow-lg);
}
@media (max-width: 640px){ .about-photos .photo-tag{ display:none; } }

.about h2{ font-size: var(--text-2xl); color: var(--navy); margin-top: var(--space-3); }
.about-lead{ font-size: var(--text-lg); color: var(--ink-soft); margin-top: var(--space-4); }
.about-body{ margin-top: var(--space-4); color: var(--ink-soft); }
.badge-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top: var(--space-6); }
.badge{
  display:inline-flex; align-items:center; gap:8px; padding:9px 16px;
  background: var(--cream); border:1px solid var(--border); border-radius:999px;
  font-size: var(--text-xs); font-weight:600; color: var(--navy);
}
.badge svg{ width:16px; height:16px; color: var(--lime-dark); }

/* ---------- Categorías ---------- */
.categories{ background: var(--cream); }
.section-head{ max-width: 640px; margin: 0 auto var(--space-12); text-align:center; }
.section-head h2{ font-size: var(--text-2xl); color: var(--navy); margin-top: var(--space-3); }
.section-head p{ color: var(--ink-soft); margin-top: var(--space-3); font-size: var(--text-base); }
.section-head.left{ margin: 0 0 var(--space-12); text-align:left; }

.cat-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 980px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .cat-grid{ grid-template-columns: 1fr; } }

.cat-card{
  background: var(--white); border-radius: var(--radius-md); overflow:hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.cat-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-thumbs{ display:grid; grid-template-columns: repeat(3, 1fr); gap:3px; }
.cat-thumbs img{ width:100%; height:96px; object-fit:cover; }
.cat-body{ padding: var(--space-6); display:flex; flex-direction:column; gap: var(--space-3); flex:1; }
.cat-icon{
  width:44px; height:44px; border-radius:12px; background: var(--lime);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.cat-icon svg{ width:24px; height:24px; color: var(--navy); }
.cat-card h3{ font-size: var(--text-lg); color: var(--navy); }
.cat-card .cat-list{ color: var(--ink-soft); font-size: var(--text-sm); line-height:1.65; flex:1; }
.cat-card .cat-list b{ color: var(--ink); font-weight:600; }
.cat-card .btn{ margin-top: var(--space-2); align-self:flex-start; }

/* ---------- Jugos naturales ---------- */
.juices{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color:#fff; position:relative; overflow:hidden;
}
.juices .section-head p{ color: rgba(255,255,255,.75); }
.juices .section-head h2{ color:#fff; }
.juice-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (max-width: 900px){ .juice-grid{ grid-template-columns: repeat(2,1fr); } }
.fruit-pill{
  background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); padding: var(--space-4);
  display:flex; align-items:center; gap: 12px;
  transition: background var(--duration-base), transform var(--duration-base);
}
.fruit-pill:hover{ background: rgba(255,255,255,.13); transform: translateY(-3px); }
.fruit-pill .emoji{ font-size: 1.6rem; }
.fruit-pill span.name{ font-family: var(--font-display); font-weight:600; font-size: var(--text-sm); }
.juices-cta{ text-align:center; margin-top: var(--space-12); }
.juices-cta p{ color: rgba(255,255,255,.75); margin-bottom: var(--space-4); }

/* ---------- Galería ---------- */
.gallery{ background: var(--white); }
.gallery-grid{ display:grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 160px; gap: var(--space-3); }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; border-radius: var(--radius-sm); }
.gallery-grid .g-tall{ grid-row: span 2; }
@media (max-width: 900px){ .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:130px; } }

/* ---------- Reseñas ---------- */
.reviews{ background: var(--cream); }
.review-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
@media (max-width: 720px){ .review-grid{ grid-template-columns:1fr; } }
.review-card{
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
}
.review-stars{ color: var(--yellow); font-size: 1.1rem; letter-spacing:2px; }
.review-card p{ margin-top: var(--space-4); color: var(--ink); font-size: var(--text-base); font-style:italic; }
.review-author{ margin-top: var(--space-4); display:flex; align-items:center; gap:10px; }
.review-avatar{
  width:38px; height:38px; border-radius:50%; background: var(--lime);
  display:flex; align-items:center; justify-content:center; color:var(--navy);
  font-family: var(--font-display); font-weight:700;
}
.review-author strong{ display:block; font-size: var(--text-sm); color: var(--navy); }
.review-author span{ font-size: var(--text-xs); color: var(--ink-soft); }

/* ---------- Ubicación ---------- */
.location{ background: var(--white); }
.loc-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items:start; }
@media (max-width: 900px){ .loc-grid{ grid-template-columns:1fr; } }
.loc-info h2{ font-size: var(--text-2xl); color: var(--navy); margin-top: var(--space-3); }
.loc-item{ display:flex; gap: var(--space-4); margin-top: var(--space-6); }
.loc-item svg{ width:26px; height:26px; color: var(--lime-dark); flex-shrink:0; margin-top:2px; }
.loc-item h4{ font-size: var(--text-base); color: var(--navy); margin-bottom:4px; }
.loc-item p{ color: var(--ink-soft); font-size: var(--text-sm); }
.hours-table{ margin-top: var(--space-4); width:100%; border-collapse:collapse; }
.hours-table td{ padding: 6px 0; font-size: var(--text-sm); color: var(--ink-soft); border-bottom:1px dashed var(--border); }
.hours-table td:last-child{ text-align:right; color: var(--ink); font-weight:600; }
.hours-table tr.today td{ color: var(--lime-dark); font-weight:700; }
.map-frame{ border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-md); border:1px solid var(--border); }
.map-frame iframe{ width:100%; height:420px; border:0; display:block; }

/* ---------- CTA final ---------- */
.cta-final{
  background: var(--yellow);
  text-align:center;
}
.cta-final h2{ font-size: var(--text-2xl); color: var(--navy); }
.cta-final p{ margin-top: var(--space-3); color: var(--navy); opacity:.85; font-size: var(--text-lg); }
.cta-final .btn-whatsapp{ margin-top: var(--space-8); background: var(--navy); color:#fff; }
.cta-final .btn-whatsapp:hover{ background: var(--navy-light); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.75); padding: var(--space-16) 0 var(--space-8); }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-12); }
@media (max-width: 720px){ .footer-grid{ grid-template-columns:1fr; gap: var(--space-8); } }
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ width:46px; height:46px; border-radius:50%; }
.footer-brand strong{ color:#fff; font-family: var(--font-display); font-size: var(--text-base); }
.footer-desc{ margin-top: var(--space-4); font-size: var(--text-sm); max-width:36ch; }
.footer-col h5{ color:#fff; font-family: var(--font-display); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.footer-col ul li{ margin-bottom:10px; font-size: var(--text-sm); }
.footer-col a:hover{ color: var(--lime); }
.footer-bottom{
  margin-top: var(--space-12); padding-top: var(--space-6); border-top:1px solid rgba(255,255,255,.1);
  display:flex; flex-wrap:wrap; justify-content:space-between; gap: var(--space-4);
  font-size: var(--text-xs);
}
.footer-bottom a{ color: rgba(255,255,255,.6); }
.footer-bottom a:hover{ color: var(--lime); }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp{
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width:60px; height:60px; border-radius:50%;
  background: var(--lime); color: var(--navy);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-lg);
  animation: pulse 2.4s ease-in-out infinite;
}
.float-whatsapp svg{ width:30px; height:30px; }
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(124,198,36,.5), var(--shadow-lg); }
  50%{ box-shadow: 0 0 0 12px rgba(124,198,36,0), var(--shadow-lg); }
}

/* ---------- Sticky mobile bar ---------- */
.mobile-cta-bar{ display:none; }
@media (max-width: 640px){
  .mobile-cta-bar{
    display:flex; position: fixed; left:0; right:0; bottom:0; z-index:190;
    background: var(--navy); padding: 12px var(--space-4);
    box-shadow: 0 -6px 24px rgba(0,0,0,.2);
  }
  .float-whatsapp{ display:none; }
  body{ padding-bottom: 74px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible{ opacity:1; transform:none; }
