@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

/* CSS Document */

/* VARIABLES GENERALES */
:root {
  /* Colores base Husse */
  --husse-red: #c8102e;
  --husse-dark-red: #9f0f25;
  --husse-gray: #f5f5f5;
  --husse-dark: #222222;
  --husse-text: #222222;
  --white: #ffffff;
  --black: #000000;

  /* Paleta visual nueva */
  --husse-beige: #d2c9c1;
  --husse-beigedark: #eae4dc;
  --primary: #9F3661;
  --primary-dark: #65203B;
  --primary-purple: #594356;
  --primary-green: #568671;
  --secondary: #568671;
  --light-bg: #f6f2eb;

  /* Fuentes */
  --font-title: 'Roboto Slab', serif;
  --font-body: 'Roboto Condensed', sans-serif;
}


/* BASE */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--husse-text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title h2,
.footer-column h4 {
  font-family: var(--font-title);
}

a {
  text-decoration: none;
}

/* TOPBAR */

.topbar {
  background: var(--husse-beige);
  color: var(--husse-dark);
  font-size: 14px;
}

.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a,
.topbar span {
  color: var(--black);
  margin-right: 22px;
  font-weight: 500;
}

/* MAIN HEADER */

.main-header {
  background: var(--husse-beigedark);
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img {
  height: 58px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.main-nav > a,
.nav-item > a {
  color: var(--husse-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  padding: 28px 0;
}

.main-nav a:hover {
  color: var(--primary);
}

/* MEGA MENU */

.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 760px;
  background: var(--white);
  box-shadow: 0 16px 35px rgba(0,0,0,.12);
  border-radius: 0 0 18px 18px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
}

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

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.mega-menu h4 {
  color: var(--primary);
  margin: 0 0 14px;
  font-size: 16px;
}

.mega-menu a {
  display: block;
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
}

.header-actions {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.header-actions a {
  color: var(--husse-dark);
  font-weight: 600;
}

/* MOBILE */

.menu-toggle {
  display: none;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 6px;
}

/* BODY INDEX */

.hero-home {
  position: relative;
  height: clamp(520px, 37.5vw, 720px);
  overflow: hidden;
  color: white;
}

.hero-home__slides,
.hero-home__slide {
  min-height: inherit;
}

.hero-home__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 80px 8%;
  background:
    linear-gradient(90deg, rgba(21, 13, 17, .74) 0%, rgba(21, 13, 17, .52) 48%, rgba(21, 13, 17, .18) 100%),
    url("../IMG/banner-nutricion-desktop.jpg") center bottom/cover no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .65s ease, transform 5s ease;
  pointer-events: none;
}

.hero-home__slide--products {
  background:
    linear-gradient(90deg, rgba(62, 35, 48, .85) 0%, rgba(62, 35, 48, .61) 52%, rgba(62, 35, 48, .28) 100%),
    url("../IMG/banner-productos-desktop.jpg") center bottom/cover no-repeat;
}

.hero-home__slide--vets {
  background:
    linear-gradient(90deg, rgba(42, 72, 60, .85) 0%, rgba(42, 72, 60, .56) 54%, rgba(42, 72, 60, .18) 100%),
    url("../IMG/banner-veterinarios-desktop.jpg") center bottom/cover no-repeat;
}

.hero-home__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-home__content {
  position: relative;
  max-width: 620px;
  z-index: 1;
}

.hero-home span {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-home h1,
.hero-home h2 {
  font-size: 52px;
  line-height: 1.05;
  margin-bottom: 22px;
  font-weight: 700;
}

.hero-home p {
  font-size: 20px;
  margin-bottom: 32px;
}

.hero-home__controls {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-home__arrow,
.hero-home__dot {
  border: 0;
  cursor: pointer;
}

.hero-home__arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
  color: var(--white);
  font-size: 14px;
  transition: background .2s ease;
}

.hero-home__arrow:hover,
.hero-home__arrow:focus-visible {
  background: var(--primary);
}

.hero-home__dots {
  display: flex;
  gap: 9px;
}

.hero-home__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  transition: width .25s ease, background .25s ease;
}

.hero-home__dot.is-active,
.hero-home__dot:hover,
.hero-home__dot:focus-visible {
  width: 28px;
  background: var(--white);
}

.home-section {
  padding: 30px 8%;
  background-color: #f6f2eb;
}

.section-light {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-title h2 {
  font-size: 38px;
  margin-bottom: 12px;
  color: var(--husse-text);
}

.section-title p {
  color: #666;
  font-size: 18px;
}

/* CATEGORÍAS */

.category-grid,
.product-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  color: white;
  box-shadow: 0 14px 30px rgba(.12,0,0,0);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.05), rgba(0,0,0,.75));
  z-index: 2;
}

.category-card h3,
.category-card a {
  position: relative;
  z-index: 3;
  left: 28px;
}

.category-card h3 {
  padding-top: 10px;
  font-size: 30px;
  margin-bottom: 8px;
}

.category-card a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

/* PRODUCTOS */

.product-card {
  background: var(--husse-beigedark);
  border-radius: 22px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.product-card img {
  max-width: 210px;
  height: 210px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.product-card span {
  font-size: 14px;
  margin: 10px 0;
  text-align: center;
  color: var(--husse-text);
  font-weight: 600;
}

.product-card h3 {
  font-size: 24px;
  margin: 10px 0;
  text-align: center;
  color: var(--husse-text);
}

.product-card p {
  color: var(--husse-text);
  margin-bottom: 24px;
}

/* BENEFICIOS */

.benefit-card {
  padding: 36px;
  border-radius: 20px;
  background: var(--husse-beigedark);
  border: 1px solid var(--husse-beige);
  text-align: center;
}

.benefit-card h3 {
  color: var(--husse-text);
  margin-bottom: 12px;
}

.benefit-card p {
  color: #686460;
  margin-bottom: 12px;
}

/* BOTONES */

.btn-primary,
.btn-secondary,
.btn-white,
.footer-btn {
  display: inline-block;
  border-radius: 30px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  filter: brightness(.9);
}

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

/* CTA */

.home-cta {
  background: var(--primary-purple);
  color: white;
  text-align: center;
  padding: 80px 8%;
}

.home-cta h2 {
  font-size: 40px;
  margin-bottom: 14px;
}

.home-cta p {
  font-size: 19px;
  margin-bottom: 28px;
}

/* FOOTER BANNER */

.footer-banner {
  background: var(--primary-dark);
  padding: 40px 20px;
}

.footer-stats {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
  text-align: center;
}

.stat h3 {
  color: white;
  font-size: 42px;
  margin: 0;
  font-family: var(--font-title);
}

.stat p {
  color: rgba(255,255,255,.85);
  margin-top: 8px;
}

/* FOOTER */

.footer {
  background: var(--husse-beige);
  color: var(--husse-dark);
  margin-top: 0;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-column p {
  color: rgba(0,0,0,.7);
  line-height: 1.8;
}

.footer-column h4 {
  font-size: 20px;
  margin-bottom: 22px;
  color: var(--husse-dark);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(0,0,0,.75);
  text-decoration: none;
  transition: .3s;
}

.footer-column a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.08);
  color: var(--husse-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact li {
  color: rgba(0,0,0,.75);
}

.footer-btn {
  margin-top: 20px;
  background: var(--primary);
  color: white !important;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.12);
  max-width: 1240px;
  margin: auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(0,0,0,.65);
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.footer-bottom a {
  color: rgba(0,0,0,.65);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .topbar__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .main-header__inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    top: 94px;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    box-shadow: 0 18px 30px rgba(0,0,0,.12);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > a,
  .nav-item > a {
    padding: 10px 0;
  }

  .nav-item {
    width: 100%;
  }

  .mega-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 14px 0;
    display: none;
  }

  .nav-item:hover .mega-menu {
    display: block;
  }

  .mega-menu__grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    display: none;
  }

  .hero-home {
    height: 560px;
  }

  .hero-home__slide {
    padding: 60px 24px 100px;
    background:
      linear-gradient(90deg, rgba(21, 13, 17, .78) 0%, rgba(21, 13, 17, .5) 100%),
      url("../IMG/banner-nutricion-mobile.jpg") center bottom/cover no-repeat;
  }

  .hero-home__slide--products {
    background:
      linear-gradient(90deg, rgba(62, 35, 48, .86) 0%, rgba(62, 35, 48, .5) 100%),
      url("../IMG/banner-productos-mobile.jpg") center bottom/cover no-repeat;
  }

  .hero-home__slide--vets {
    background:
      linear-gradient(90deg, rgba(42, 72, 60, .86) 0%, rgba(42, 72, 60, .5) 100%),
      url("../IMG/banner-veterinarios-mobile.jpg") center bottom/cover no-repeat;
  }

  .hero-home h1,
  .hero-home h2 {
    font-size: 38px;
  }

  .hero-home p {
    font-size: 18px;
  }

  .hero-home__controls {
    right: 24px;
    bottom: 28px;
  }

  .home-section {
    padding: 60px 24px;
  }

  .category-grid,
  .product-grid,
  .benefit-grid,
  .footer-stats,
  .footer-container {
    grid-template-columns: 1fr;
  }

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

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom div {
    flex-direction: column;
    gap: 10px;
  }
}
