:root {
  --bg-color: #fcfcfc;
  --surface-color: #ffffff;
  --text-primary: #373435;
  --text-secondary: #373435;
  --text-tertiary: #ffffff;
  --text-muted: #8e8e8e;
  --brand-color: #048C4F;
  /* Green for buttons and links */
  --brand-color-light: #05a35c;
  /* Lighter shade for hover */
  --accent-color: #037a44;
  /* Green accent */
  --accent-color-hover: #025c33;
  --border-color: #eaeaea;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.06);
  --radius-sm: 10px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --max-width: 1200px;
  --header-height: 80px;

  --font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --text-sm: clamp(0.875rem, 0.85rem + 0.125vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  /* 16px to 18px */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.85rem + 2vw, 3.5rem);
  --text-5xl: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: bold;
  line-height: 1;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: bold;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: 1rem;
}

p.footer-text {
  color: var(--text-tertiary);
  font-size: var(--text-base);
  margin-bottom: 1rem;
}

.text-lead {
  font-size: var(--text-xl);
  color: #373435;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: #f7f7f7;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs-bar a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs-bar a:hover {
  color: var(--brand-color);
}

.breadcrumbs-bar .separator {
  margin: 0 0.5rem;
  color: var(--border-color);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--brand-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-color);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

/* Mobile Menu Button */
.menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--brand-color);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--surface-color);
  z-index: 100;
  padding: calc(var(--header-height) + 2rem) 2rem 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.05);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--brand-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-color-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-color);
  border-color: transparent;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 1);
  border-color: transparent;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: radial-gradient(circle at 50% 100%, #f0f0f0 0%, var(--bg-color) 60%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3), 0 3px 11px rgba(255, 255, 255, 0.4);
}

.hero .text-lead {
  margin-bottom: 2.5rem;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 3px 11px rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-phrase-container {
  height: 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-phrase {
  position: absolute;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-color);
  font-weight: 600;
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3), 0 3px 11px rgba(255, 255, 255, 0.4);
}

.hero-phrase.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-phrase.exit {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-bg {
  background: linear-gradient(to top, rgba(252, 252, 252, 0.55), rgba(252, 252, 252, 0.45)), url('../img/PC190215.jpg') center/cover no-repeat !important;
}

.index-hero-bg {
  background: linear-gradient(to top, rgba(252, 252, 252, 1), rgba(252, 252, 252, 0.1)), url('../img/Varanus-hero-img.jpeg') center/cover no-repeat !important;
}

.productos-hero-bg {
  background: linear-gradient(to top, rgba(252, 252, 252, 1), rgba(252, 252, 252, 0.1)), url('../img/Varanus-Bloques-y-mancuernas.jpg') center/cover no-repeat !important;
}

.sobre-hero-bg {
  background: linear-gradient(to top, rgba(252, 252, 252, 1), rgba(252, 252, 252, 0.1)), url('../img/Varanus-abdomen-PC190154.jpg') center/cover no-repeat !important;
}

/* Product Card */
.product-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.1);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.product-card-img img,
.product-card-img svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.product-card-img.has-hover-img .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

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

.product-card:hover .product-card-img.has-hover-img img.main-img {
  opacity: 0;
}

.product-card:hover .product-card-img.has-hover-img .hover-img {
  opacity: 1;
  transform: scale(1.05);
}

.product-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.product-card-bullets {
  margin-bottom: 2rem;
  flex: 1;
}

.product-card-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.product-card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

/* Value Grid */
.value-item {
  padding: 2rem;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.value-item:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.value-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-family);
}

.faq-button:focus-visible {
  outline: 2px solid var(--accent-color);
  border-radius: var(--radius-sm);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), opacity var(--transition-normal);
  opacity: 0;
}

.faq-button[aria-expanded="true"]+.faq-panel {
  opacity: 1;
}

.faq-panel-content {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(209, 168, 126, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: var(--brand-color);
  color: var(--text-tertiary);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-tertiary);
  opacity: 0.7;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-tertiary);
  opacity: 1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background-color: var(--surface-color);
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Product Detail Page */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-gallery {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  object-fit: contain;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-dot.active {
  background-color: var(--brand-color);
  transform: scale(1.2);
}

.product-info h1 {
  margin-bottom: 0.5rem;
}

.product-subheadline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .product-actions {
    flex-direction: row;
  }
}

.ml-banner {
  background-color: var(--bg-color);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.ml-banner svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--text-muted);
}

.ml-banner p {
  margin: 0;
  font-size: 0.875rem;
}

.product-specs section {
  margin-bottom: 3rem;
}

.product-specs h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-specs ul {
  list-style: none;
}

.product-specs ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.product-specs ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blockquote */
blockquote {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin: 4rem 0;
  line-height: 1.4;
}

/* Section Title Center */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}