/* =====================================================
   VOKKOAGENCY — Producto Single Page · Plantilla 3 "Artesanal"
   Paleta: piedra #CFD0CD · salvia #8A9992 · cacao #55443A · terracota #4D2308
   Hoja de estilos 100% independiente — no depende de style.css ni del
   branding de VokkoAgency, para poder mudarse a un subdominio de cliente.
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-stone:   #CFD0CD;
  --c-sage:    #8A9992;
  --c-sage-text: #445048; /* version oscurecida de la salvia — el original
    (#8A9992) no cumple el contraste minimo WCAG AA como texto sobre fondos
    claros (1.9:1); esta variante da 4.9:1, apta para texto */
  --c-brown:   #55443A;
  --c-rust:    #4D2308;
  --c-white:   #FFFFFF;

  --c-bg:      #FFFFFF;
  --c-surface: var(--c-stone);
  --c-text:    var(--c-rust);
  --c-muted:   var(--c-brown);
  --c-border:  rgba(77,35,8,0.14);

  --c-whatsapp: #25D366;
  --c-whatsapp-dark: #1ebe5b;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1180px;
  --pad-x: 24px;
  --pad-section: 100px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--c-text);
}

/* =====================================================
   PREVIEW RIBBON
   ===================================================== */
.preview-ribbon {
  background: var(--c-rust);
  color: var(--c-stone);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}
.preview-ribbon a { color: var(--c-white); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================
   BUTTONS — esquinas redondeadas, textura calida artesanal
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
  white-space: nowrap;
}

.btn-primary { background: var(--c-rust); color: var(--c-white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(77,35,8,0.3); }

.btn-outline { background: transparent; border-color: var(--c-rust); color: var(--c-rust); }
.btn-outline:hover { background: var(--c-rust); color: var(--c-white); }

.btn-whatsapp { background: var(--c-whatsapp); color: #FFFFFF; }
.btn-whatsapp:hover { background: var(--c-whatsapp-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,0.35); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 80px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-rust);
  flex-shrink: 0;
}
.nav-logo span { color: var(--c-sage-text); }

.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-brown);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-rust); }
.nav-links a.active { color: var(--c-rust); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--c-sage-text);
}

.nav-cta { flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--c-rust); }

.nav-mobile { display: none; flex-direction: column; background: var(--c-white); border-bottom: 1px solid var(--c-border); padding: 8px var(--pad-x) 20px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--c-rust); border-bottom: 1px solid var(--c-border); }
.nav-mobile a:last-child { border-bottom: none; padding-top: 18px; }

/* =====================================================
   HERO — dos columnas, calido y artesanal
   ===================================================== */
.hero { padding: 80px 0 96px; background: var(--c-surface); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sage-text);
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--c-sage-text); }

.hero-title { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; margin-bottom: 22px; }
.hero-title em { font-style: italic; color: var(--c-brown); }

.hero-desc { font-size: 17px; color: var(--c-muted); max-width: 480px; margin-bottom: 34px; }

.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  aspect-ratio: 4/3.4;
  background: linear-gradient(150deg, var(--c-brown) 0%, var(--c-rust) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(207,208,205,0.4);
  border-radius: calc(var(--radius) - 6px);
}
.hero-visual svg { width: 34%; height: 34%; color: var(--c-stone); opacity: 0.9; }

/* =====================================================
   SECTION HEADER PATTERN
   ===================================================== */
section { padding: var(--pad-section) 0; position: relative; }

.section-header { max-width: 620px; margin: 0 auto 56px; text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sage-text);
  margin-bottom: 14px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--c-sage-text); }

.section-title { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: 14px; }
.section-desc { font-size: 15.5px; color: var(--c-muted); }

/* =====================================================
   SOBRE NOSOTROS
   ===================================================== */
.about { background: var(--c-bg); }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }

.about-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-brown);
}
.about-visual svg { width: 36%; height: 36%; }

.about-text .section-eyebrow { justify-content: flex-start; }
.about-text .section-eyebrow::before { display: none; }
.about-text .section-title { text-align: left; }
.about-text p { font-size: 15.5px; color: var(--c-muted); margin-bottom: 16px; }

.about-stats { display: flex; gap: 40px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--c-border); }
.about-stat-value { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--c-rust); }
.about-stat-label { font-size: 12.5px; color: var(--c-muted); }

/* =====================================================
   SERVICIOS
   ===================================================== */
.services { background: var(--c-surface); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(77,35,8,0.12); }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-rust);
  color: var(--c-stone);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-title { font-size: 18.5px; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--c-muted); line-height: 1.65; }

/* =====================================================
   PRODUCTOS
   ===================================================== */
.products { background: var(--c-bg); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(77,35,8,0.14); border-color: rgba(138,153,146,0.6); }

.product-thumb { aspect-ratio: 1/1; background: var(--c-surface); display: flex; align-items: center; justify-content: center; color: var(--c-brown); }
.product-thumb svg { width: 32%; height: 32%; }

.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.product-name { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--c-rust); line-height: 1.3; }
.product-desc { font-size: 12.5px; color: var(--c-muted); line-height: 1.55; flex: 1; }
.product-price { font-size: 16px; font-weight: 700; color: var(--c-sage-text); margin: 4px 0 10px; }

/* =====================================================
   TESTIMONIOS
   ===================================================== */
.testimonials { background: var(--c-rust); color: var(--c-stone); }
.testimonials .section-eyebrow { color: var(--c-sage); justify-content: center; }
.testimonials .section-eyebrow::before { background: var(--c-sage); }
.testimonials .section-title { color: var(--c-white); }
.testimonials .section-desc { color: rgba(207,208,205,0.75); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card { background: rgba(207,208,205,0.08); border: 1px solid rgba(207,208,205,0.18); border-radius: var(--radius); padding: 30px; }
.testimonial-stars { color: var(--c-sage); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-quote { font-size: 14.5px; color: var(--c-white); line-height: 1.7; margin-bottom: 20px; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-sage); color: var(--c-rust);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--c-white); }
.testimonial-role { font-size: 12px; color: rgba(207,208,205,0.7); }

/* =====================================================
   CONTACTO — solo CTA de WhatsApp
   ===================================================== */
.contact { background: var(--c-surface); text-align: center; }
.contact .section-eyebrow { justify-content: center; }
.contact .section-desc { max-width: 460px; margin: 0 auto 36px; }
.contact-note { margin-top: 20px; font-size: 13px; color: var(--c-muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--c-bg); border-top: 1px solid var(--c-border); padding: 56px 0 28px; }

.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }

.footer-logo { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--c-rust); margin-bottom: 10px; display: block; }
.footer-logo span { color: var(--c-sage-text); }
.footer-desc { font-size: 13.5px; color: var(--c-muted); max-width: 320px; }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-rust);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--c-rust); color: var(--c-stone); }

.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--c-border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--c-muted);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a { color: var(--c-rust); font-weight: 600; }

/* =====================================================
   CTA FLOTANTE
   ===================================================== */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--c-whatsapp); color: #FFFFFF;
  padding: 14px 20px 14px 14px; border-radius: 100px;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  font-size: 14px; font-weight: 700;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.float-whatsapp:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 34px rgba(37,211,102,0.5); }
.float-whatsapp svg { flex-shrink: 0; }

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .about-visual { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  :root { --pad-section: 72px; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero { padding: 56px 0 60px; }
  .footer-top { flex-direction: column; }
  .float-whatsapp span { display: none; }
  .float-whatsapp { padding: 15px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
