/* =====================================================
   VOKKOAGENCY — Producto Single Page · Plantilla 1
   Paleta: crema #E9E0CF · dorado #BA9B5F · salvia #5E775E · verde bosque #132B23
   Hoja de estilos 100% independiente — no depende de style.css ni del
   branding de VokkoAgency, porque esta plantilla debe poder mudarse a
   un subdominio de cliente (nombre.vokkoagency.com) sin arrastrar nada
   del sitio corporativo.
   ===================================================== */

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

:root {
  --c-cream:   #E9E0CF;
  --c-gold:    #BA9B5F;
  --c-gold-text: #8A6B3D; /* version oscurecida del dorado — el tono original (#BA9B5F)
    no cumple el contraste minimo WCAG AA (4.5:1) como texto sobre fondos claros;
    se usa solo para decoracion (bordes, fondos tintados, subrayados), nunca para texto */
  --c-sage:    #5E775E;
  --c-forest:  #132B23;
  --c-white:   #FFFFFF;

  --c-bg:      #FFFFFF;
  --c-surface: #E9E0CF;
  --c-text:    #132B23;
  --c-muted:   #4A5F52;
  --c-border:  rgba(19,43,35,0.12);

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

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

  --max-w: 1180px;
  --pad-x: 24px;
  --pad-section: 100px;
  --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.6;
  -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.01em;
  color: var(--c-text);
}

/* =====================================================
   PREVIEW RIBBON — deja claro que es una plantilla demo
   ===================================================== */
.preview-ribbon {
  background: var(--c-forest);
  color: var(--c-cream);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}

.preview-ribbon a {
  color: var(--c-gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  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-forest);
  color: var(--c-cream);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(19,43,35,0.28); }

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

.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; border-radius: 7px; }
.btn-block { width: 100%; }

/* =====================================================
   NAV — fondo claro, fijo
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  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: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img { height: 58px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-gold-text); }
.nav-links a.active {
  color: var(--c-forest);
  font-weight: 700;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
}

.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-forest);
  border-radius: 2px;
  transition: all 0.3s;
}

.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: 16px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.nav-mobile a:last-child { border-bottom: none; padding-top: 18px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 90px 0 100px;
  background:
    linear-gradient(180deg, rgba(19,43,35,0.58) 0%, rgba(19,43,35,0.85) 100%),
    url('../assets/img/plantillas/plantilla-1/hero-bg.webp') center 35% / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-forest);
  background: rgba(233,224,207,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--c-cream);
}

.hero-title em {
  font-style: italic;
  color: var(--c-gold);
}

.hero-desc {
  font-size: 18px;
  color: rgba(233,224,207,0.85);
  max-width: 560px;
  margin: 0 auto 36px;
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-glow-1 { width: 380px; height: 380px; background: var(--c-gold); top: -140px; right: -80px; }
.hero-glow-2 { width: 320px; height: 320px; background: var(--c-sage); bottom: -160px; left: -100px; }

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

.section-header {
  max-width: 640px;
  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.12em;
  text-transform: uppercase;
  color: var(--c-forest);
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--c-gold);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  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: 20px;
  background: linear-gradient(150deg, var(--c-sage) 0%, var(--c-forest) 100%);
  position: relative;
  overflow: hidden;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-text .section-eyebrow { justify-content: flex-start; }
.about-text .section-title { text-align: left; }

.about-text p {
  font-size: 16px;
  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: 32px;
  font-weight: 700;
  color: var(--c-forest);
}

.about-stat-label {
  font-size: 13px;
  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: 16px;
  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(19,43,35,0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(186,155,95,0.15);
  color: var(--c-gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-title {
  font-size: 19px;
  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: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(19,43,35,0.12);
}

.product-thumb {
  aspect-ratio: 1/1;
  background: var(--c-surface);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.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-forest);
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
  flex: 1;
}

.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-gold-text);
  margin: 4px 0 10px;
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */
.testimonials { background: var(--c-surface); }

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

.testimonial-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 30px;
}

.testimonial-stars {
  color: var(--c-gold-text);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--c-text);
  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-forest);
  color: var(--c-cream);
  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-forest); }
.testimonial-role { font-size: 12px; color: var(--c-muted); }

/* =====================================================
   CONTACTO — solo CTA de WhatsApp
   ===================================================== */
.contact {
  background: var(--c-forest);
  color: var(--c-cream);
  text-align: center;
}

.contact .section-eyebrow { color: var(--c-gold); justify-content: center; }
.contact .section-title { color: var(--c-cream); }
.contact .section-desc { color: rgba(233,224,207,0.75); max-width: 480px; margin: 0 auto 36px; }

.contact-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(233,224,207,0.6);
}

/* =====================================================
   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 {
  margin-bottom: 14px;
  display: block;
}
.footer-logo img { height: 80px; width: auto; }

.footer-desc {
  font-size: 14px;
  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-forest);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--c-forest); color: var(--c-cream); }

.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 { color: var(--c-muted); }
.footer-credit a { color: var(--c-forest); font-weight: 600; }

/* =====================================================
   FLOATING WHATSAPP CTA — el CTA "latente" en todo momento
   ===================================================== */
.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); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .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: repeat(1, 1fr); }
  :root { --pad-section: 72px; }
}

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

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