/* =========================================================
   IMEXVET PERÚ — style.css
   Hoja de estilos principal (CSS3 puro, sin frameworks)
   Índice:
   1. Variables y reset
   2. Utilidades generales
   3. Top bar
   4. Header y navegación
   5. Hero
   6. Franja de categorías
   7. Sección Nosotros
   8. Sección Productos
   9. Sección Puntos de venta
   10. Sección Contacto
   11. Footer
   12. Botón volver arriba
   13. Animaciones y responsive
   ========================================================= */

/* -----------------------------------------
   1. VARIABLES Y RESET
----------------------------------------- */
:root {
  /* Paleta principal */
  --azul-oscuro: #1f2c63;
  --azul-oscuro-claro: #28356f;
  --azul-hover: #2c3b82;
  --rojo: #d90000;
  --rojo-hover: #b50000;
  --blanco: #ffffff;
  --gris-fondo: #f5f6fa;
  --gris-borde: #e2e4ee;
  --texto-principal: #1a1d29;
  --texto-secundario: #5c6178;

  /* Tipografía */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --topbar-height: 40px;
  --header-height: 84px;
  --max-width: 1200px;
  --radius: 10px;
  --transition: 0.25s ease;
  --shadow-soft: 0 8px 24px rgba(31, 44, 99, 0.08);
  --shadow-card: 0 4px 16px rgba(31, 44, 99, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + var(--header-height));
}

body {
  font-family: var(--font-body);
  color: var(--texto-principal);
  background-color: var(--blanco);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--azul-oscuro); line-height: 1.25; }

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Foco visible para accesibilidad de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}

/* -----------------------------------------
   2. UTILIDADES GENERALES
----------------------------------------- */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-text {
  color: var(--texto-secundario);
  font-size: 1rem;
  max-width: 560px;
}

.section-eyebrow--center,
.section-title--center,
.section-text--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-text--center { max-width: 640px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 6px 16px rgba(217, 0, 0, 0.28);
}

.btn--primary:hover {
  background-color: var(--rojo-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--blanco);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* Animación de aparición al hacer scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* -----------------------------------------
   3. TOP BAR
----------------------------------------- */
.topbar {
  width: 100%;
  height: var(--topbar-height);
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  font-size: 0.82rem;
}

.topbar__container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__contact { display: flex; gap: 1.6rem; }

.topbar__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.topbar__item:hover { color: var(--blanco); }

.topbar__item .icon { width: 14px; height: 14px; }

.topbar__social { display: flex; gap: 0.8rem; }

.topbar__icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  transition: background-color var(--transition);
}

.topbar__icon .icon { width: 13px; height: 13px; }

.topbar__icon:hover { background-color: var(--rojo); }

/* -----------------------------------------
   4. HEADER Y NAVEGACIÓN
----------------------------------------- */
.header {
  width: 100%;
  height: var(--header-height);
  background-color: var(--blanco);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow var(--transition), height var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow-soft);
  height: 72px;
}

.header__container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo-icon { width: 34px; height: 34px; }

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--azul-oscuro);
  letter-spacing: 0.01em;
}

.header__logo-text span { color: var(--rojo); }

.header__tagline {
  font-size: 0.7rem;
  color: var(--texto-secundario);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 2px;
}

.nav__list {
  display: flex;
  gap: 2.2rem;
  align-items: center; 
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--texto-principal);
  padding: 0.5rem 0.1rem;
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover { color: var(--rojo); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link.active { color: var(--rojo); }
.nav__link.active::after { transform: scaleX(1); }

/* NUEVO BOTÓN TIENDA VIRTUAL */
.nav__link-btn-shop {
  display: inline-block;
  background-color: var(--rojo);
  color: var(--blanco) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
}

.nav__link-btn-shop:hover {
  background-color: var(--rojo-hover);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--azul-oscuro);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* -----------------------------------------
   5. HERO (ACTUALIZADO CON SLIDER)
----------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  padding: 10rem 1.5rem 12rem;
  overflow: hidden;
  background-color: var(--azul-oscuro); 
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 54, 0.01);
  z-index: 1;
}

.hero__bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero__bg-slide.active {
  opacity: 1;
}

.hero__container {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--blanco);
  z-index: 2;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  display: block;
  z-index: 2;
}

/* -----------------------------------------
   6. FRANJA DE CATEGORÍAS
----------------------------------------- */
.categories {
  background-color: var(--gris-fondo);
  padding: 1.6rem 1.5rem 3.2rem;
}

.categories__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  background-color: var(--blanco);
  border: 1.5px solid var(--gris-borde);
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--texto-secundario);
  transition: all var(--transition);
}

.category-item__icon { width: 18px; height: 18px; fill: var(--azul-oscuro); transition: fill var(--transition); }

.category-item:hover {
  border-color: var(--azul-oscuro);
  color: var(--azul-oscuro);
}

.category-item.is-active {
  background-color: var(--azul-oscuro);
  border-color: var(--azul-oscuro);
  color: var(--blanco);
}

.category-item.is-active .category-item__icon { fill: var(--blanco); }

/* -----------------------------------------
   7. SECCIÓN NOSOTROS
----------------------------------------- */
.about { padding: 5rem 1.5rem; background-color: var(--blanco); }

.about__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about__media-box {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about__illustration { width: 100%; height: auto; }

/* Integración del diseño para tu logo corporativo en JPG */
.about__logo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.about__list { margin: 1.4rem 0 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }

.about__list li {
  color: var(--texto-secundario);
  font-size: 0.95rem;
  padding-left: 1.3rem;
  position: relative;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background-color: var(--rojo);
  border-radius: 50%;
}

.about__list strong { color: var(--azul-oscuro); }

.about__stats {
  display: flex;
  gap: 2.2rem;
  border-top: 1px solid var(--gris-borde);
  padding-top: 1.6rem;
}

.stat { display: flex; flex-direction: column; }

.stat__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--rojo);
}

.stat__label { font-size: 0.8rem; color: var(--texto-secundario); }

/* -----------------------------------------
   8. SECCIÓN PRODUCTOS
----------------------------------------- */
.products { padding: 5rem 1.5rem; background-color: var(--gris-fondo); }

.products__container { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.products__grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  text-align: left;
}

.product-card {
  background-color: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.product-card__media {
  height: 150px;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-oscuro-claro));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__media .icon { width: 46px; height: 46px; fill: rgba(255,255,255,0.9); }

.product-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.product-card__tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rojo);
  background-color: rgba(217, 0, 0, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.product-card__body h3 {
  font-size: 1.05rem;
  color: var(--azul-oscuro);
}

.product-card__body p {
  font-size: 0.88rem;
  color: var(--texto-secundario);
  flex: 1;
}

.product-card__cta {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--azul-oscuro);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}

.product-card__cta:hover { gap: 0.55rem; color: var(--rojo); }

/* -----------------------------------------
   9. SECCIÓN PUNTOS DE VENTA
----------------------------------------- */
.points { padding: 5rem 1.5rem; background-color: var(--blanco); }

.points__container { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.points__grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.point-card {
  border: 1px solid var(--gris-borde);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.point-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--azul-oscuro);
}

.point-card__region {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--azul-oscuro);
  background-color: var(--gris-fondo);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.point-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }

.point-card p { font-size: 0.88rem; color: var(--texto-secundario); margin-bottom: 0.5rem; }

.point-card a { font-size: 0.88rem; font-weight: 600; color: var(--rojo); }

/* -----------------------------------------
   10. SECCIÓN CONTACTO
----------------------------------------- */
.contact { padding: 5rem 1.5rem; background-color: var(--gris-fondo); }

.contact__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact__list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--texto-principal);
}

.contact__list .icon { fill: var(--rojo); }

.contact__form {
  background-color: var(--blanco);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul-oscuro);
}

.form-group input,
.form-group textarea {
  border: 1.5px solid var(--gris-borde);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--texto-principal);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--azul-oscuro);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--rojo);
}

.form-error {
  font-size: 0.78rem;
  color: var(--rojo);
  min-height: 1em;
}

.form-success {
  display: none;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a7a3c;
  text-align: center;
}

.form-success.is-visible { display: block; }

/* -----------------------------------------
   11. FOOTER
----------------------------------------- */
.footer { background-color: var(--azul-oscuro); color: rgba(255,255,255,0.85); }

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__logo { font-size: 1.5rem; margin-bottom: 0.9rem; display: inline-block; }

.footer__col--brand p { font-size: 0.88rem; color: rgba(255,255,255,0.65); max-width: 260px; margin-bottom: 1.2rem; }

.footer__social { display: flex; gap: 0.7rem; }

.footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}

.footer__social a:hover { background-color: var(--rojo); }
.footer__social .icon { width: 15px; height: 15px; fill: var(--blanco); }

.footer__col h4 {
  color: var(--blanco);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer__col ul a,
.footer__contact li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__col ul a:hover { color: var(--blanco); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.3rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* -----------------------------------------
   12. BOTÓN VOLVER ARRIBA
----------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 400;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background-color: var(--rojo); }

.back-to-top svg { width: 20px; height: 20px; fill: var(--blanco); }

/* -----------------------------------------
   13. RESPONSIVE
----------------------------------------- */
@media (max-width: 992px) {
  .about__container,
  .contact__container { grid-template-columns: 1fr; }

  .about__media { order: -1; max-width: 420px; margin: 0 auto; }

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

@media (max-width: 768px) {
  .topbar__contact { gap: 1rem; }
  .topbar__item span { display: none; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--blanco);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav.is-open { max-height: 440px; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    align-items: stretch;
  }

  .nav__list li { border-bottom: 1px solid var(--gris-borde); }
  .nav__list li:last-child { border-bottom: none; }

  .nav__link { display: block; padding: 0.9rem 0; }
  .nav__link:hover,
  .nav__link.active { color: var(--rojo); }
  .nav__link::after { display: none; }

  .nav__link-btn-shop {
    display: inline-block;
    margin: 0.8rem 0;
    text-align: center;
  }

  .nav__toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .footer__container { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 1.2rem 6.5rem; }
  .about, .products, .points, .contact { padding: 3.5rem 1.2rem; }
  .contact__form { padding: 1.4rem; }
}

/* Ajustes para tu nuevo logo en JPG */
.header__logo-img {
  height: 58px;       
  width: auto;        
  display: block;
  margin-bottom: 5px; 
}

.footer__logo-img {
  height: 40px;       
  width: auto;
  display: block;
  margin-bottom: 15px;
}