:root {
  --primary: #00c4ff;
  --secondary: #ffb703;
  --dark: #1b1b1b;
  --light: #ffffff;
  --gray: #f1f1f1;
  --gray-dark: #6c757d;
  --radius: 8px;
  --max-width: 1200px;
  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-light: 1px solid #eaeaea;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: var(--font-family);
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

/* Mejoras de accesibilidad */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container responsivo mejorado */
.container {
  max-width: var(--max-width);
  padding: 0 clamp(1rem, 4vw, 2rem);
  margin: 0 auto;
  width: 100%;
}

/* Navegación mejorada */
nav.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: clamp(32px, 5vw, 40px);
  width: auto;
  margin-right: 0.5rem;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Menu Toggle para móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: var(--gray);
  color: var(--primary);
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* Animation for menu button */
.menu-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle[aria-expanded="true"] {
  background-color: var(--primary);
  color: var(--light);
  transform: rotate(90deg);
}

.menu-toggle[aria-expanded="true"]:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: rotate(90deg) scale(1.1);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: var(--gray);
  color: var(--primary);
}

/* Botones mejorados */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  border: none;
  cursor: pointer;
  min-height: 44px; /* Accesibilidad táctil */
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: var(--light);
}

.btn.secondary {
  background: var(--secondary);
  color: var(--dark);
}

.btn.outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}

.btn.whatsapp {
  background: #25D366;
  color: var(--light);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn.primary:hover {
  background: #0099cc;
}

.btn.secondary:hover {
  background: #e6a503;
}

.btn.outline:hover {
  background: var(--dark);
  color: var(--light);
}

/* Mantener solo animaciones y utilidades específicas */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.1) 0%, rgba(255, 183, 3, 0.1) 100%);
  z-index: -1;
  animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Productos mejorados */
.productos {
  padding: clamp(2rem, 8vw, 4rem) 0;
}

.productos-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.product-card,
.product-card-featured {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  border: var(--border-light);
}

.product-card:hover,
.product-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-card img,
.product-image-featured {
  width: 100%;
  height: clamp(160px, 25vw, 200px);
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover img,
.product-card-featured:hover .product-image-featured {
  transform: scale(1.05);
}

.product-card .content,
.product-info-featured {
  padding: clamp(1rem, 3vw, 1.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h4,
.product-name-featured {
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
}

.product-card p,
.product-description-featured {
  flex: 1;
  margin-bottom: 1rem;
  font-size: clamp(0.875rem, 2vw, 0.9rem);
  color: var(--gray-dark);
  line-height: 1.5;
}

.product-card .price,
.product-price-featured {
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1rem;
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.add-to-cart-btn {
  width: 100%;
  margin-top: auto;
}

/* Featured Products Carousel mejorado */
.featured-products {
  background-color: var(--gray);
  padding: clamp(2rem, 6vw, 3rem) 0;
}

.featured-products-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 40vw, 320px);
  gap: clamp(1rem, 3vw, 1.5rem);
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--gray);
}

.featured-products-grid::-webkit-scrollbar {
  height: 8px;
}

.featured-products-grid::-webkit-scrollbar-track {
  background: var(--gray);
  border-radius: 4px;
}

.featured-products-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.featured-products-grid > * {
  scroll-snap-align: start;
}

/* Formularios mejorados */
.product-form,
.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.product-form {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-form {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: clamp(0.5rem, 2vw, 0.75rem);
  border: 2px solid #e9ecef;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  min-height: 44px;
}

.product-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.1);
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

/* Secciones generales mejoradas */
.section {
  padding: clamp(2rem, 8vw, 4rem) 0;
}

.section.highlight {
  background: var(--primary);
  color: var(--light);
  text-align: center;
  border-radius: var(--radius);
  margin: clamp(2rem, 6vw, 3rem) 0;
}

.section.highlight h2 {
  color: var(--light);
  margin-bottom: 1rem;
}

.section.highlight p {
  max-width: 800px;
  margin: 0.5rem auto;
  opacity: 0.9;
}

.cards {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.card {
  background: var(--light);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-light);
  border: var(--border-light);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Hero mejorado: descripción + stats */
.hero-section { padding: 3.5rem 0 1.5rem; background: linear-gradient(180deg,#ffffff, #fbfdff); }
.hero-content { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; text-align: left; }
.hero-title { display:flex; gap:.5rem; align-items:baseline; font-size:clamp(1.6rem,3.6vw,2.4rem); margin:0 0 .5rem; }
.hero-highlight { color:var(--primary); font-weight:700; margin-right:.4rem; }
.hero-subtitle { color:var(--dark); font-weight:600; font-size:1rem; opacity:.95; }

.hero-lead { margin: .5rem 0 1rem; color:var(--muted); font-size:1rem; max-width:780px; line-height:1.6; }

/* Stats como badges */
.hero-stats { display:flex; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
.stat-item { background:#fff; border:1px solid rgba(2,6,23,0.05); padding:.6rem .9rem; border-radius:12px; min-width:110px; display:flex; flex-direction:column; align-items:flex-start; box-shadow:0 6px 18px rgba(2,6,23,0.04); }
.stat-number { font-weight:700; color:var(--dark); font-size:1.15rem; }
.stat-label { font-size:.85rem; color:var(--muted); margin-top:2px; }

/* Categories grid: card layout y orden claro */
.categories-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:1.25rem;
  margin-top:1.5rem;
}

/* Reglas específicas de las category-card para look consistente */
.category-card {
  background:#fff;
  border-radius:14px;
  padding:1.15rem;
  border:1px solid rgba(2,6,23,0.05);
  box-shadow:0 12px 30px rgba(2,6,23,0.04);
  display:flex;
  flex-direction:column;
  gap:.9rem;
  transition:transform .16s ease, box-shadow .16s ease;
  min-height:320px;
}
.category-card:hover { transform:translateY(-6px); box-shadow:0 24px 50px rgba(2,6,23,0.07); }

.category-icon { font-size:1.7rem; width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:rgba(99,102,241,0.08); }
.category-title { margin:0; font-size:1.05rem; color:var(--text-dark); font-weight:700; }
.category-description { margin:0; color:var(--muted); line-height:1.5; font-size:.95rem; }
.category-features { list-style:none; padding:0; margin:0; display:grid; gap:.45rem; color:var(--gray-dark); font-size:.92rem; }
.category-btn { margin-top:auto; justify-self:start; }

/* Colores por categoría para icono */
.category-dog .category-icon { background: linear-gradient(135deg,#60a5fa22,#3b82f622); }
.category-cat .category-icon { background: linear-gradient(135deg,#f472b622,#ec489922); }
.category-exotic .category-icon { background: linear-gradient(135deg,#34d39922,#10b98122); }
.category-pharmacy .category-icon { background: linear-gradient(135deg,#f59e0b22,#f9731677); }

/* Responsive tweaks */
@media (max-width: 980px) {
  .hero-content { text-align:center; }
  .hero-title { justify-content:center; }
  .hero-stats { justify-content:center; }
  .category-btn { width:100%; }
}

/* CTA Section Mejorada */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #f0f7ff 100%);
  margin-top: 4rem;
}

.cta-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-description {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 250px;
}

.cta-button.whatsapp {
  background: #25D366;
  color: white;
}

.cta-button.contact {
  background: white;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.button-icon {
  font-size: 1.5rem;
}

.button-content {
  display: flex;
  flex-direction: column;
}

.button-label {
  font-weight: 600;
  font-size: 1rem;
}

.button-subtext {
  font-size: 0.8rem;
  opacity: 0.9;
}

.cta-image img {
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 968px) {
  .cta-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .cta-image {
    grid-row: 1;
    margin-bottom: 2rem;
  }
  
  .cta-image img {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Services Showcase Styles */
.services-showcase {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff, #f8faff);
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f112, #8b5cf612);
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 0 0 1rem;
}

.service-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
}

.feature-icon {
  font-size: 1.1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 0.75rem;
}

.arrow {
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    margin: 0 1rem;
  }

  /* Navegación móvil */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85vw;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 4rem 1.5rem 2rem;
    box-shadow: -12px 0 32px rgba(2, 6, 23, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    gap: 0;
    overflow-y: auto;
    border-left: 1px solid #eaeaea;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid rgba(2, 6, 23, 0.06);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: 600;
  }

  .nav-links a:hover {
    padding-left: 0.75rem;
    color: var(--primary);
    border-bottom-color: rgba(0, 196, 255, 0.35);
  }

  .dropdown-menu {
    position: static;
    display: none;
    transform: none;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.08);
    border: 1px solid #eaeaea;
    background: #ffffff;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 12px;
    padding: 0.5rem 0;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown > a::after {
    content: '▾';
    float: right;
    color: #94a3b8;
    transition: transform 0.2s ease;
  }
  .dropdown.open > a::after {
    transform: rotate(180deg);
    color: var(--primary);
  }

  
}