@font-face {
  font-family: "trebuc";
  src: url("/public/fonts/trebuc.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #e74318;
  --primary-dark: #c03510;
  --secondary: #587878;
  --dark: #1a1a1a;
  --light: #f4f4f4;
  --white: #ffffff;
  --gray: #888888;
  --border: #e0e0e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --container-width: 1200px;
  --font-main: "trebuc", sans-serif;
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Optimización de imágenes para móviles */
.logo svg {
  transition: height 0.3s ease;
}

@media (max-width: 480px) {
  .logo svg {
    height: 45px;
  }
}

@media (max-width: 360px) {
  .logo svg {
    height: 40px;
  }
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.section-padding {
  padding: 80px 0;
}
.text-center {
  text-align: center;
}
.grid-gap {
  gap: 30px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}
h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
}
p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
  gap: 8px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* HEADER */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  transition: height 0.3s;
}
.header.scrolled {
  height: 70px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo svg {
  height: 60px;
  width: auto;
  transition: height 0.3s;
}
.header.scrolled .logo svg {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
  text-transform: uppercase;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}
.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

/* HERO SLIDER */
.hero {
  /* height: 600px; */
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding-left: 50px;
  border-left: 5px solid var(--primary);
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #000;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-text {
  font-size: 1.3rem;
  color: #000;
  margin-bottom: 30px;
}

/* INDEX: PRODUCTOS DESTACADOS (Grid Dinámico) */
.featured-products {
  background: #f9f9f9;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.prod-img-wrap {
  height: 200px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  position: relative;
}
.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}
.prod-info {
  padding: 20px;
  text-align: center;
}
.prod-brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 1px;
  font-weight: 600;
}
.prod-title {
  font-size: 1rem;
  margin: 8px 0;
  font-weight: 700;
  color: var(--dark);
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.prod-ref {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

/* CATALOG STRIP */
.catalog-strip {
  background: var(--secondary);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.catalog-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.catalog-bg-icon {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 400px;
  height: 400px;
  opacity: 0.1;
  fill: white;
  pointer-events: none;
}

/* FOOTER REFINADO (Estilo Mobensani) */
.footer {
  background: #111;
  color: #bbb;
  padding-top: 70px;
  border-top: 5px solid var(--primary);
  font-size: 0.95rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo-svg {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}
.footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  min-width: 20px;
  margin-top: 3px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  transition: 0.2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}
.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-btn {
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.social-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}
.social-btn:hover {
  background: white;
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 25px 0;
  text-align: center;
  background: #080808;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  .mobile-toggle {
    display: block;
    font-size: 1.3rem; /* Reducir tamaño del botón hamburguesa */
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .hero {
    height: 500px;
  }
  .hero-content {
    padding-left: 20px;
    border-left-width: 3px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-text {
    font-size: 1.1rem;
  }
  h2 {
    font-size: 1.8rem; /* Reducir tamaño de títulos h2 en móvil */
    padding-bottom: 10px;
  }
  h2::after {
    width: 40px;
    height: 3px;
  }
  .catalog-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer h4 {
    font-size: 1rem;
  }
  .footer-contact-item {
    font-size: 0.9rem;
  }
}

/* Breakpoint adicional para móviles pequeños */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .nav-menu {
    padding: 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Breakpoint para móviles muy pequeños */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-text {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 15px;
  }

  /* Optimizaciones adicionales para móviles muy pequeños */
  .logo svg {
    height: 35px;
  }

  .mobile-toggle {
    font-size: 1.2rem;
  }

  .prod-img-wrap {
    height: 150px;
    padding: 15px;
  }

  .product-grid {
    gap: 15px;
  }
}

/* ANIMACIONES */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.blur {
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
