/*
Theme Name: Veterinaria Villarán
Theme URI: https://veterinariavillaran.pe
Author: Veterinaria Villarán
Author URI: https://veterinariavillaran.pe
Description: Tema personalizado para Veterinaria Villarán — Surquillo, Lima. Con WooCommerce y WhatsApp.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: Privado
Text Domain: villaran
*/

/* ============================================================
   VETERINARIA VILLARÁN — Estilos Globales
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --verde-dark:    #0b3320;
  --verde-mid:     #145232;
  --verde-accent:  #1e7a4a;
  --verde-light:   #4caf7d;
  --verde-pale:    #e8f5ee;
  --amarillo:      #f0e84a;
  --amarillo-dark: #d9d12b;
  --blanco:        #ffffff;
  --gris-bg:       #f7f9f7;
  --gris-light:    #eef2ee;
  --gris-text:     #5a6e5a;
  --texto:         #152015;

  --font-heading:  'Baloo 2', cursive;
  --font-body:     'Nunito', sans-serif;

  --shadow-xs:  0 1px 4px rgba(11,51,32,.06);
  --shadow-sm:  0 2px 12px rgba(11,51,32,.10);
  --shadow-md:  0 6px 24px rgba(11,51,32,.14);
  --shadow-lg:  0 12px 48px rgba(11,51,32,.18);
  --shadow-xl:  0 24px 64px rgba(11,51,32,.22);

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;
  --radius-full: 9999px;

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .5s cubic-bezier(.4,0,.2,1);

  --max-width: 1200px;
  --nav-height: 72px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

/* ─── Tipografía ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--gris-text); }

/* ─── Utilidades ─────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.text-center { text-align: center; }
.text-white  { color: var(--blanco) !important; }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--verde-accent);
  margin-bottom: 8px;
}
.section-title {
  color: var(--verde-dark);
  margin-bottom: 16px;
}
.section-title span { color: var(--verde-accent); }
.section-subtitle {
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1rem;
  color: var(--gris-text);
}

/* ─── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--verde-dark);
  color: var(--blanco);
  box-shadow: 0 4px 16px rgba(11,51,32,.3);
}
.btn-primary:hover {
  background: var(--verde-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,51,32,.4);
}
.btn-yellow {
  background: var(--amarillo);
  color: var(--verde-dark);
  box-shadow: 0 4px 16px rgba(240,232,74,.4);
}
.btn-yellow:hover {
  background: var(--amarillo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,232,74,.5);
}
.btn-outline {
  background: transparent;
  color: var(--verde-dark);
  border: 2px solid var(--verde-dark);
}
.btn-outline:hover {
  background: var(--verde-dark);
  color: var(--blanco);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--blanco);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-green  { background: var(--verde-pale); color: var(--verde-accent); }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }

/* ─── Animaciones on-scroll ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

/* stagger delay */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Transparent on top */
.navbar.nav-transparent { background: transparent; }
.navbar.nav-transparent .nav-link  { color: var(--blanco); }
.navbar.nav-transparent .nav-link:hover { color: var(--amarillo); }
.navbar.nav-transparent .nav-link.active { color: var(--blanco) !important; }
.navbar.nav-transparent .nav-link.active::after { background: var(--blanco); }
.navbar.nav-transparent .nav-cart-btn   { color: var(--blanco); }
.navbar.nav-transparent .nav-search-btn { color: var(--blanco); }
.navbar.nav-transparent .nav-toggle     { color: var(--blanco); }

/* Scrolled */
.navbar.nav-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(11,51,32,.12);
}
.navbar.nav-scrolled .nav-link      { color: var(--verde-dark); }
.navbar.nav-scrolled .nav-cart-btn  { color: var(--verde-dark); }
.navbar.nav-scrolled .nav-search-btn{ color: var(--verde-dark); }

/* Solid (páginas internas) */
.navbar.nav-solid {
  background: var(--blanco);
  box-shadow: 0 2px 16px rgba(11,51,32,.08);
}
.navbar.nav-solid .nav-link { color: var(--verde-dark); }

/* Logo */
.navbar-logo { display: flex; align-items: center; }

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li { list-style: none; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { background: rgba(11,51,32,.07); }
.nav-link.active {
  color: var(--verde-accent) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--verde-accent);
}
.nav-link-cta {
  background: var(--verde-dark) !important;
  color: var(--blanco) !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
}
.nav-link-cta:hover { background: var(--verde-mid) !important; transform: translateY(-1px); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-search-btn, .nav-cart-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: var(--transition);
}
.nav-search-btn:hover, .nav-cart-btn:hover { background: rgba(11,51,32,.07); }
.nav-cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--amarillo);
  color: var(--verde-dark);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── LOGO IMG ───────────────────────────────────────────── */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: filter .35s ease;
}
.navbar.nav-transparent .logo-img { filter: brightness(0) invert(1); }
.navbar.nav-solid .logo-img,
.navbar.nav-scrolled .logo-img   { filter: none; }

.footer-logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

/* ─── FA ICONS EN SERVICE-ICON-WRAP ─────────────────────── */
.service-icon-wrap .fa,
.service-icon-wrap .fas,
.service-icon-wrap .far {
  font-size: 1.8rem;
  color: var(--verde-accent);
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap .fa,
.service-card:hover .service-icon-wrap .fas { color: var(--blanco); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ─── HERO SLIDESHOW + KEN BURNS ────────────────────────── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}
.hero-slide.active { opacity: 1; }

/* 4 variantes Ken Burns */
@keyframes kb1 {
  from { transform: scale(1.0) translate(0,    0);    }
  to   { transform: scale(1.14) translate(-2%, 1%);   }
}
@keyframes kb2 {
  from { transform: scale(1.0)  translate(0,    0);   }
  to   { transform: scale(1.14) translate(2%, -1%);   }
}
@keyframes kb3 {
  from { transform: scale(1.14) translate(-1.5%, 1.5%); }
  to   { transform: scale(1.0)  translate(0,    0);    }
}
@keyframes kb4 {
  from { transform: scale(1.14) translate(1.5%, -1.5%); }
  to   { transform: scale(1.0)  translate(0,    0);    }
}
.hero-slide:nth-child(1).active { animation: kb1 8s ease-in-out forwards; }
.hero-slide:nth-child(2).active { animation: kb2 8s ease-in-out forwards; }
.hero-slide:nth-child(3).active { animation: kb3 8s ease-in-out forwards; }
.hero-slide:nth-child(4).active { animation: kb4 8s ease-in-out forwards; }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11,51,32,.82) 0%,
    rgba(11,51,32,.55) 50%,
    rgba(11,51,32,.15) 100%
  );
}

/* Dots navegación */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.35);
  border: 2px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: all .35s ease;
  padding: 0;
}
.hero-dot.active {
  background: var(--amarillo);
  border-color: var(--amarillo);
  width: 28px;
}
.hero-dot:hover:not(.active) { background: rgba(255,255,255,.65); }
.hero .container { width: 100%; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: var(--blanco);
  padding-top: var(--nav-height);
  text-align: left;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--blanco);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-tag::before { content: '🐾'; font-size: 1rem; }
.hero h1 { color: var(--blanco); margin-bottom: 20px; text-shadow: 0 2px 16px rgba(0,0,0,.3); font-size: clamp(2.6rem, 6vw, 4.2rem); }
.hero h1 span { color: var(--amarillo); }
.hero-desc {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn { padding: 11px 24px; font-size: .9rem; }

/* Decoración hero */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  background: var(--blanco);
}
.hero-shape-1 { width: 400px; height: 400px; top: -80px; right: -80px; }
.hero-shape-2 { width: 200px; height: 200px; bottom: 10%; right: 20%; }
.hero-shape-3 { width: 120px; height: 120px; bottom: 30%; right: 40%; }

/* ─── HERO BANNER INTERNO ────────────────────────────────── */
.page-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--verde-dark);
}
.page-hero-bg { display: none; }
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 36px;
}
.page-hero-content h1 {
  color: var(--blanco);
  font-size: clamp(2rem, 5vw, 3rem);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
}
.breadcrumb a { color: var(--amarillo); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ─── CATEGORÍAS TIENDA ──────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,51,32,.85) 0%, rgba(11,51,32,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.cat-card-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: .02em;
}
.cat-card-count {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}
.cat-card-arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  font-size: .85rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(4px);
}
.cat-card:hover .cat-card-arrow { opacity: 1; transform: none; }

/* ─── PRODUCTOS GRID ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--blanco);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--gris-light);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--gris-bg);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
}
.product-info { padding: 16px; }
.product-cat {
  font-size: .72rem;
  color: var(--verde-accent);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-name {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--verde-dark);
}
.add-cart-btn {
  width: 34px; height: 34px;
  background: var(--verde-dark);
  color: var(--blanco);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.add-cart-btn:hover { background: var(--verde-accent); transform: scale(1.1); }

/* ─── BENEFICIOS BANNER ──────────────────────────────────── */
.benefits-band {
  background: var(--verde-dark);
  position: relative;
  overflow: hidden;
}
.benefits-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.03) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.03) 0%, transparent 60%);
}
.benefits-band::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 25c0-3 2-5 4-5s4 2 4 5-2 5-4 5-4-2-4-5zm12-4c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5zm-14 0c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5zm16 8c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5zm-18 0c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.benefit-item {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.benefit-item:last-child { border-right: none; }
.benefit-item:hover { background: rgba(255,255,255,.04); }
.benefit-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  color: var(--blanco);
}
.benefit-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 6px;
}
.benefit-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

/* ─── SERVICIOS CARDS ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--blanco);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1.5px solid var(--gris-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--verde-dark), var(--verde-accent));
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: var(--verde-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--verde-dark);
}
.service-icon-wrap img {
  width: 48px; height: 48px;
  object-fit: contain;
  transition: var(--transition);
  filter: invert(28%) sepia(40%) saturate(600%) hue-rotate(110deg) brightness(60%);
}
.service-card:hover .service-icon-wrap img { filter: brightness(0) invert(1); }
.service-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--verde-dark);
  margin-bottom: 8px;
}
.service-desc {
  font-size: .85rem;
  color: var(--gris-text);
  line-height: 1.6;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--verde-accent);
  transition: var(--transition);
}
.service-link:hover { gap: 10px; color: var(--verde-dark); }

/* ─── SERVICIOS LISTA (página servicios) ─────────────────── */
.services-list { display: flex; flex-direction: column; gap: 0; }
.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gris-light);
  transition: var(--transition);
}
.service-list-item:last-child { border-bottom: none; }
.service-list-item:hover { padding-left: 8px; }
.service-list-icon {
  width: 100px; height: 100px;
  background: var(--verde-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.service-list-item:hover .service-list-icon { background: var(--verde-dark); }
.service-list-icon img {
  width: 60px; height: 60px;
  object-fit: contain;
  filter: invert(28%) sepia(40%) saturate(600%) hue-rotate(110deg) brightness(60%);
  transition: var(--transition);
}
.service-list-item:hover .service-list-icon img { filter: brightness(0) invert(1); }
.service-list-body { flex: 1; }
.service-list-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde-dark);
  margin-bottom: 8px;
}
.service-list-desc { font-size: .95rem; color: var(--gris-text); }
.service-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.service-tag {
  padding: 4px 12px;
  background: var(--verde-pale);
  color: var(--verde-accent);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}

/* ─── NOSOTROS ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-badge {
  position: absolute;
  bottom: 24px; right: -16px;
  background: var(--blanco);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-img-badge .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--verde-dark);
  line-height: 1;
}
.about-img-badge .label {
  font-size: .75rem;
  color: var(--gris-text);
  font-weight: 600;
  margin-top: 2px;
}
.about-values { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gris-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--verde-accent);
}
.value-icon { font-size: 1.2rem; flex-shrink: 0; }
.value-text { font-size: .9rem; color: var(--gris-text); }
.value-text strong { color: var(--verde-dark); }

/* Misión / Visión */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 320px;
}
.mv-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.mv-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,51,32,.9) 0%, rgba(11,51,32,.5) 100%);
}
.mv-card-content {
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mv-card h3 { color: var(--amarillo); font-size: 1.6rem; margin-bottom: 12px; }
.mv-card p  { color: rgba(255,255,255,.85); font-size: .9rem; }

/* ─── AGENDA ─────────────────────────────────────────────── */
.agenda-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.agenda-half {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.agenda-half-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.agenda-half:hover .agenda-half-bg { transform: scale(1.04); }
.agenda-half-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,51,32,.55);
  transition: var(--transition);
}
.agenda-half:hover .agenda-half-bg::after { background: rgba(11,51,32,.45); }
.agenda-half-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.agenda-half h2 { color: var(--blanco); font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 12px; }
.agenda-half p  { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 24px; }

/* Formulario cita */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--verde-dark);
}
.form-control {
  padding: 12px 16px;
  border: 1.5px solid var(--gris-light);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--texto);
  background: var(--blanco);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--verde-accent);
  box-shadow: 0 0 0 3px rgba(30,122,74,.1);
}
.form-control::placeholder { color: #b0b8b0; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-card {
  background: var(--blanco);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

/* ─── TIENDA FILTROS ─────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.shop-sidebar {
  background: var(--blanco);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1.5px solid var(--gris-light);
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--verde-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--verde-pale);
}
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.filter-item:hover { background: var(--verde-pale); }
.filter-item input[type="checkbox"] { accent-color: var(--verde-dark); width: 15px; height: 15px; }
.filter-item label { font-size: .88rem; cursor: pointer; color: var(--gris-text); }
.filter-item span.count { margin-left: auto; font-size: .75rem; color: var(--gris-text); background: var(--gris-bg); padding: 2px 6px; border-radius: 20px; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: var(--gris-bg);
  border-radius: var(--radius-sm);
}
.shop-count { font-size: .88rem; color: var(--gris-text); }
.shop-sort select {
  border: 1px solid var(--gris-light);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: .85rem;
  color: var(--texto);
  background: var(--blanco);
  outline: none;
  cursor: pointer;
}

/* ─── CONTACTO ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--verde-dark);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  color: var(--blanco);
}
.contact-info-card h3 { color: var(--blanco); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: .9rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail-text .label { font-size: .75rem; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-detail-text .val   { font-size: .95rem; color: var(--blanco); font-weight: 600; margin-top: 2px; }
.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.social-btn {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  font-size: 1.1rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--amarillo); color: var(--verde-dark); }
.contact-form-card {
  background: var(--blanco);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gris-light);
}

/* ─── MAPA ───────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gris-light);
}
.map-wrap iframe { display: block; width: 100%; height: 360px; border: none; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--verde-dark);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 25c0-3 2-5 4-5s4 2 4 5-2 5-4 5-4-2-4-5zm12-4c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5zm-14 0c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5zm16 8c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5zm-18 0c0-2 1.5-3.5 3-3.5s3 1.5 3 3.5-1.5 3.5-3 3.5-3-1.5-3-3.5z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.footer-main {
  position: relative;
  z-index: 1;
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.6); margin: 16px 0 24px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amarillo);
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--blanco); padding-left: 4px; }
.footer-links a::before { content: '›'; color: var(--verde-accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-icon { font-size: 1rem; color: var(--verde-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-text { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,.65); }
.footer-contact-text a:hover { color: var(--blanco); }

.footer-bottom {
  position: relative;
  z-index: 1;
  background: var(--amarillo);
  padding: 14px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: .82rem;
  font-weight: 700;
  color: var(--verde-dark);
}
.libro-reclamaciones {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--verde-dark);
}
.libro-reclamaciones img { width: 32px; }

/* ─── WHATSAPP FLOTANTE ──────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.whatsapp-btn {
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: var(--blanco); }
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(37,211,102,.4);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.whatsapp-tooltip {
  background: var(--verde-dark);
  color: var(--blanco);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: none; }

/* ─── MINI CARRITO DRAWER ────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 380px;
  background: var(--blanco);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: none; }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--gris-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-family: var(--font-heading); color: var(--verde-dark); }
.cart-close {
  width: 36px; height: 36px;
  background: var(--gris-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.cart-close:hover { background: var(--verde-dark); color: var(--blanco); }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--gris-text);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--gris-light);
  background: var(--gris-bg);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label { font-weight: 700; color: var(--verde-dark); }
.cart-total-price { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--verde-dark); }

/* ─── SCROLL TOP ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 42px; height: 42px;
  background: var(--verde-dark);
  color: var(--blanco);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  border: none;
}
.scroll-top.visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--verde-accent); transform: translateY(-2px) !important; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-item:nth-child(n+4) { border-right: none; }
  .benefit-item:nth-child(3) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 520px; }
  .about-img-badge { right: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-menu, .nav-actions .nav-search-btn, .nav-cta-action { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--blanco);
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
    z-index: 999;
  }
  .nav-menu.mobile-open li { width: 100%; }
  .nav-menu.mobile-open .nav-link {
    color: var(--verde-dark) !important;
    padding: 12px 16px;
    display: block;
    width: 100%;
  }

  .hero-content { max-width: 100%; }
  .hero-btns { flex-direction: column; align-items: flex-start; }

  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefit-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  .categories-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .agenda-split { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card, .contact-form-card { padding: 24px; }

  .service-list-item { flex-direction: column; gap: 16px; }
  .service-list-icon { width: 72px; height: 72px; }
  .service-list-icon img { width: 42px; height: 42px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

  .cart-drawer { width: 100vw; }

  .section-pad { padding: 56px 0; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-info { padding: 12px; }
}

/* ─── INFINITE SCROLL SPINNER ────────────────────────────── */
.shop-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gris-light);
  border-top-color: var(--verde-dark);
  border-radius: 50%;
  animation: shopSpin .7s linear infinite;
  margin: 0 auto;
}
@keyframes shopSpin {
  to { transform: rotate(360deg); }
}
