/* =====================================================================
   COSAC — Main Stylesheet (Redesign)
   Color system: ocean-deep / ocean-mid / gold / ice
   Typography: Playfair Display (headings) + Inter (body)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  /* New design system */
  --ocean-deep: 207 55% 28%;
  --ocean-mid: 211 48% 52%;
  --ocean-light: 193 62% 68%;
  --gold: 37 88% 62%;
  --ice: 207 60% 93%;
  --background: 207 33% 95%;
  --foreground: 207 55% 20%;
  --card: 0 0% 100%;
  --card-foreground: 207 55% 20%;
  --primary: 207 55% 28%;
  --primary-foreground: 0 0% 100%;
  --secondary: 207 60% 93%;
  --muted: 207 25% 92%;
  --muted-foreground: 207 15% 45%;
  --accent: 37 88% 62%;
  --border: 207 25% 88%;
  --radius: 0.5rem;

  /* Legacy variables — kept for admin panel & productos detalle compatibility */
  --color-teal:       hsl(var(--ocean-mid));
  --color-light-blue: hsl(var(--ice));
  --color-off-white:  hsl(var(--background));
  --color-gray:       #e8e8e8;
  --color-navy:       hsl(var(--ocean-deep));
  --color-slate:      hsl(var(--muted-foreground));
  --color-white:      #ffffff;
  --color-dark:       hsl(var(--foreground));

  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --transition:       all 0.3s ease;
  --nav-height:       56px;
}

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

body {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

.font-heading, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--ocean-deep) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--ocean-mid) / 0.2);
}

.navbar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

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

.navbar__logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Nav wrapper — desktop: horizontal row next to brand */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground) / 0.8);
  transition: color 0.3s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: hsl(var(--gold));
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: 1px solid hsl(var(--primary-foreground) / 0.3);
  color: hsl(var(--primary-foreground));
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border-radius: 2px;
}

.lang-btn:hover,
.lang-btn.active {
  background: hsl(var(--gold));
  border-color: hsl(var(--gold));
  color: hsl(var(--foreground));
}

/* Hamburger menu — hidden on desktop */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 10;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: hsl(var(--primary-foreground));
  transition: var(--transition);
}

/* ---- Mobile navbar ---- */
@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: hsl(var(--ocean-deep) / 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid hsl(var(--ocean-mid) / 0.15);
  }

  .navbar__nav.open { display: flex; }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .navbar__links li {
    border-bottom: 1px solid hsl(var(--primary-foreground) / 0.08);
  }

  .navbar__links li:last-child { border-bottom: none; }

  .navbar__links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .lang-switcher {
    justify-content: center;
    gap: 8px;
    padding-top: 0.5rem;
  }

  .lang-btn {
    padding: 6px 18px;
    font-size: 0.85rem;
  }
}

/* Scrolled state — keeps solid for pages that need it */
.navbar.scrolled {
  background: hsl(var(--ocean-deep));
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.navbar.page-header {
  background: hsl(var(--ocean-deep));
  position: relative;
}

/* =====================================================================
   SECTION COMMON
   ===================================================================== */
.section-subtitle {
  color: hsl(var(--gold));
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-desc {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.7;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    hsl(var(--ocean-deep) / 0.80) 0%,
    hsl(var(--ocean-deep) / 0.60) 50%,
    hsl(var(--ocean-deep) / 0.90) 100%);
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero__logo {
  height: 5rem;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__subtitle {
  color: hsl(var(--gold));
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: hsl(var(--primary-foreground) / 0.8);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-gold {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  background: hsl(var(--gold));
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
}

.btn-gold:hover { filter: brightness(1.1); }

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--primary-foreground) / 0.3);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  background: transparent;
}

.btn-outline:hover { background: hsl(var(--primary-foreground) / 0.1); }

.btn-navy {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  background: hsl(var(--ocean-deep));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  border: none;
}

.btn-navy:hover {
  background: hsl(207 55% 22%);
  box-shadow: 0 4px 12px hsl(var(--ocean-deep) / 0.3);
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about {
  padding: 3rem 0 2.5rem;
  background: hsl(var(--background));
}

.about__intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.about__intro .section-desc strong {
  color: hsl(var(--foreground));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

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

.stat-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.3s ease;
}

.stat-card:hover .stat-card__icon {
  background: hsl(var(--ocean-mid) / 0.2);
}

.stat-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: hsl(var(--ocean-mid));
}

.stat-card__number {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: hsl(var(--foreground));
}

.stat-card__label {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.products {
  padding: 2.5rem 0 6rem;
  background: hsl(var(--background));
}

.products__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.products__divider .line {
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(var(--ocean-mid) / 0.4));
}

.products__divider .line:last-child {
  background: linear-gradient(to left, transparent, hsl(var(--ocean-mid) / 0.4));
}

.products__divider .line-short { width: 4rem; }
.products__divider .line-long { width: 6rem; }

.products__divider .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--gold));
}

.products__intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.featured-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.featured-product__img-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.featured-product__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.featured-product__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: hsl(var(--gold));
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-product__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.featured-product__scientific {
  color: hsl(var(--ocean-mid));
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1rem;
}

.featured-product__desc {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
}

.featured-product__img2 {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
}

.featured-product__img2 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cat-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s ease;
}

.cat-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.cat-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: hsl(var(--ocean-mid) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.cat-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: hsl(var(--ocean-mid));
}

.cat-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.cat-card__desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.formats-row {
  text-align: center;
  margin-bottom: 3rem;
}

.formats-row__label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.formats-row__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.format-tag {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--ocean-mid) / 0.1);
  color: hsl(var(--ocean-mid));
  font-size: 0.875rem;
  font-weight: 500;
}

.products__cta { text-align: center; }

/* =====================================================================
   POTA SLIDER (landing page)
   ===================================================================== */
.pota-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
}

.pota-slider__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.pota-slider__card {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
}

.pota-slider__card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: hsl(var(--card));
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  transition: transform 0.3s ease;
}

.pota-slider__card:hover img {
  transform: scale(1.08);
}

.pota-slider__name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.pota-slider__controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.25rem;
}

.pota-slider__btn {
  pointer-events: all;
  background: hsl(var(--ocean-deep) / 0.8);
  border: none;
  color: hsl(var(--primary-foreground));
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.pota-slider__btn:hover {
  background: hsl(var(--ocean-deep));
}

/* =====================================================================
   PROCESS
   ===================================================================== */
.process {
  padding: 6rem 0;
  background: linear-gradient(180deg, hsl(var(--ocean-deep)), hsl(207 55% 18%));
  color: hsl(var(--primary-foreground));
}

.process .section-title { color: hsl(var(--primary-foreground)); }
.process .section-desc { color: hsl(var(--primary-foreground) / 0.7); }

.process__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.process__text .section-subtitle { text-align: left; }
.process__text .section-title { text-align: left; }

/* Plant slider inside process */
.plant-slider {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.plant-slider__track {
  display: flex;
  transition: transform 0.6s ease;
}

.plant-slider__slide {
  min-width: 100%;
}

.plant-slider__slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.plant-slider__controls {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.75rem;
}

.plant-slider__btn {
  pointer-events: all;
  background: hsl(var(--ocean-deep) / 0.75);
  border: none;
  color: hsl(var(--primary-foreground));
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.plant-slider__btn:hover {
  background: hsl(var(--ocean-deep));
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.step-card {
  background: hsl(var(--primary-foreground) / 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--primary-foreground) / 0.1);
}

.step-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-card__number {
  color: hsl(var(--gold));
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card__header svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: hsl(var(--ocean-light));
}

.step-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.5rem;
}

.step-card__desc {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.875rem;
}

.infra-card {
  background: hsl(var(--primary-foreground) / 0.05);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--primary-foreground) / 0.1);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.infra-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
}

.infra-card__list {
  color: hsl(var(--primary-foreground) / 0.8);
  font-size: 0.875rem;
  line-height: 2;
}

/* =====================================================================
   WHY US
   ===================================================================== */
.whyus {
  padding: 6rem 0;
  background: hsl(var(--background));
}

.whyus__intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

.whyus-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s ease;
}

.whyus-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.whyus-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--ocean-mid) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.whyus-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: hsl(var(--ocean-mid));
}

.whyus-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.whyus-card__desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  padding: 6rem 0;
  background: hsl(var(--background));
}

.contact__intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s ease;
  min-width: 0;
  overflow: hidden;
}

.contact-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.contact-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--ocean-mid) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: hsl(var(--ocean-mid));
}

.contact-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-card__value {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: linear-gradient(180deg, hsl(var(--ocean-deep)), hsl(207 55% 18%));
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--ocean-mid) / 0.2);
  text-align: center;
}

.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.25rem;
}

.footer__subtitle {
  color: hsl(var(--gold));
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__location {
  color: hsl(var(--primary-foreground) / 0.6);
  font-size: 0.875rem;
}

.footer__copy {
  color: hsl(var(--primary-foreground) / 0.4);
  font-size: 0.75rem;
  margin-top: 1.5rem;
}

.footer strong { color: hsl(var(--primary-foreground)); }

/* =====================================================================
   PRODUCTOS DETALLE PAGE (kept from original design)
   ===================================================================== */
.page-hero {
  background: hsl(var(--ocean-deep));
  padding: calc(var(--nav-height) + 3rem) 2.5rem 3rem;
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: hsl(var(--primary-foreground));
  font-weight: 700;
}

.page-hero__sub {
  margin-top: 0.5rem;
  color: hsl(var(--ice));
  font-size: 1rem;
}

/* Category selector */
.cat-selector {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 2rem 0;
  background: hsl(var(--background));
}

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 2.5rem;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  transition: var(--transition);
  border-radius: 1rem;
  cursor: pointer;
}

.cat-btn__icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cat-btn__icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.cat-btn__label {
  font-size: 1.15rem;
  font-weight: 600;
}

.cat-btn:hover,
.cat-btn.active {
  background: hsl(var(--ocean-deep));
  border-color: hsl(var(--ocean-deep));
  color: hsl(var(--primary-foreground));
}

.cat-btn:hover .cat-btn__icon,
.cat-btn.active .cat-btn__icon {
  background: hsl(var(--ocean-mid) / 0.3);
}

/* Subcategoria sections */
.productos-content {
  padding: 3rem 2.5rem 6rem;
  background: hsl(var(--background));
}

/* Grouped subcategory rows (side by side) */
.subcat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.subcat-col { min-width: 0; }

.subcat-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.subcat-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(var(--ocean-mid));
}

.proximamente {
  padding: 2rem;
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-style: italic;
  text-align: center;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
}

/* Product cards in detail page */
.prod-cards-static,
.prod-cards-slider-wrapper {
  display: flex;
  gap: 1.5rem;
}

.prod-cards-static {
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.prod-card {
  width: 220px;
  flex-shrink: 0;
  background: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prod-card:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
}

.prod-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-card__img img,
.prod-card__img object {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-card__name {
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-align: center;
  line-height: 1.4;
}

/* Slider for products */
.prod-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.prod-slider__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.prod-slider__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1rem;
}

.prod-slider__btn {
  background: hsl(var(--ocean-deep));
  border: none;
  color: hsl(var(--primary-foreground));
  width: 36px; height: 36px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: var(--radius);
}

.prod-slider__btn:hover {
  background: hsl(var(--ocean-mid));
}

/* =====================================================================
   SCROLL ANIMATIONS
   ===================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =====================================================================
   FLASH MESSAGES
   ===================================================================== */
.flash {
  padding: 0.75rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.flash--success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash--error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Hero */
  .hero__logo { height: 3rem; }
  .hero__title { font-size: clamp(2rem, 7vw, 2.5rem); }
  .hero__desc { font-size: 1rem; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas a { width: 100%; max-width: 280px; text-align: center; }

  /* About */
  .about { padding: 2.5rem 0 2rem; }
  .about__intro { margin-bottom: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat-card__icon { width: 3rem; height: 3rem; }
  .stat-card__icon svg { width: 1.25rem; height: 1.25rem; }

  /* Products */
  .products { padding: 2rem 0 4rem; }
  .featured-product { grid-template-columns: 1fr; gap: 2rem; }
  .featured-product__img { height: 280px; }
  .category-cards { grid-template-columns: 1fr; }
  .formats-row__tags { gap: 0.4rem; }
  .format-tag { font-size: 0.8rem; padding: 0.3rem 0.75rem; }

  /* Process */
  .process { padding: 4rem 0; }
  .process__layout { grid-template-columns: 1fr; gap: 2rem; }
  .plant-slider__slide img { height: 280px; }
  .process-steps { grid-template-columns: 1fr; }
  .infra-card { padding: 1.5rem; }
  .infra-card__title { font-size: 1.25rem; }

  /* Why Us */
  .whyus { padding: 4rem 0; }
  .whyus-grid { grid-template-columns: 1fr; }

  /* Grouped subcategories */
  .subcat-row { grid-template-columns: 1fr; gap: 2rem; }

  /* Contact */
  .contact { padding: 4rem 0; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  /* Section typography */
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .section-desc { font-size: 1rem; }

  /* Footer */
  .footer { padding: 2rem 0; }
  .footer__title { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .hero__logo { height: 2.5rem; margin-bottom: 1.5rem; }
  .hero__subtitle { font-size: 0.8rem; letter-spacing: 0.15em; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card__number { font-size: 1.25rem; }
  .stat-card__label { font-size: 0.75rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .step-card { padding: 1.25rem; }
  .step-card__title { font-size: 1.1rem; }

  .whyus-card { padding: 1.25rem; }

  .products__divider { margin-bottom: 2rem; }
}
