/* ===========================
   LACTOINSUMOS - Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #94222a; /* Deep, rich premium red */
  --primary-dark: #6e151b;
  --primary-light: #bc3e47;
  --primary-gradient: linear-gradient(135deg, #94222a 0%, #6e151b 100%);
  --primary-hover-gradient: linear-gradient(135deg, #bc3e47 0%, #94222a 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(148, 34, 42, 0.1);
  --primary-rgb: 148, 34, 42;
  --white: #ffffff;
  --off-white: #fcfcfd;
  --light-gray: #f0f2f5;
  --medium-gray: #b0b5bd;
  --dark-gray: #646a73;
  --text-dark: #12161b;
  --text-body: #495057;
  --accent-gold: var(--primary); /* noble red */
  --accent-green: #2a8742;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --font-primary: 'Montserrat', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --header-height: 90px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white) url('../assets/fondos/1.jpg');
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--primary); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); letter-spacing: -0.01em; }
p { margin-bottom: 1rem; font-weight: 400; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover-gradient);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-gradient);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  height: var(--header-height);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo img {
  height: 65px;
  transition: var(--transition);
}
.header.scrolled .header-logo img { height: 50px; }

@media (max-width: 480px) {
  .header-logo img { height: 50px; }
  .header.scrolled .header-logo img { height: 40px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.header-social a:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 992px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 5px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 12px 20px; width: 100%; font-size: 1.1rem; }
  .header-social { display: none; }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: var(--header-height);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 8s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.5) 0%, rgba(26,26,46,0.3) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 700px;
  margin-bottom: 2rem;
}
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-indicator.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ===========================
   SECTIONS - General
   =========================== */
.section {
  padding: 60px 0;
  position: relative;
}
.section-alt { background: transparent; }
.section-dark {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2d2d4a 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-red {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}
.section-red h2, .section-red h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 15px auto 0;
}
.section-dark .section-header h2::after,
.section-red .section-header h2::after { background: var(--white); }

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--dark-gray);
}
/* INTERNAL PAGES OVERRIDES */
.internal-page .section-header { text-align: left; }
.internal-page .section-header h2::after { margin: 15px 0 0; }
.internal-page .section-header p { margin: 0; }
.internal-page .section-dark .section-header h2,
.internal-page .section-red .section-header h2 { color: var(--white); }

/* ===========================
   SECTORS / COVERAGE (Main Page)
   =========================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  justify-items: stretch; /* Cards fill the width */
  align-items: stretch;   /* Cards fill the height */
  max-width: 1240px;
  margin: 50px auto 0;
}

.sector-card {
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  background: rgba(var(--primary-rgb), 0.05);
  padding: 30px 15px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.sector-card:hover {
  transform: translateY(-8px);
  background: var(--primary-gradient);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.sector-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--light-gray);
}

.sector-card:hover .sector-icon {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.sector-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sector-card:hover .sector-icon img {
  transform: scale(1.1);
}

.sector-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  transition: var(--transition);
  line-height: 1.2;
}

.sector-card:hover h3 {
  color: var(--white);
}

@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .sector-icon { width: 80px; height: 80px; }
  .sector-card h3 { font-size: 0.85rem; }
}

/* ===========================
   PRODUCT CATALOG CTA
   =========================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.catalog-card {
  position: relative;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.catalog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  transition: var(--transition);
}
.catalog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.catalog-card:hover::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}
.catalog-card h3 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.catalog-card p {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  position: relative;
  z-index: 2;
  margin-top: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ===========================
   WHY CHOOSE US
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.feature-card p { 
  font-size: 0.92rem;
  margin: 0;
  color: var(--dark-gray);
}

/* ===========================
   ABOUT / EMPRESA
   =========================== */
.about-section { padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-body); }
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}

/* Mission/Vision cards */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}
.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.mv-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.value-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 30px 25px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-5px);
}
.value-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ===========================
   PRODUCTS
   =========================== */
.product-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.filter-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-btn:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}
.filter-icon {
  width: 28px;
  height: 28px;
}
.filter-btn.active .filter-icon {
  filter: brightness(0) invert(1);
}

/* Floating Decorative Icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.float-icon {
  position: absolute;
  width: 80px;
  height: auto;
  opacity: 0.15;
  filter: grayscale(100%) contrast(150%) brightness(80%);
  animation: float-icon 20s infinite ease-in-out alternate;
}
@keyframes float-icon {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) rotate(10deg) scale(1.05); }
  100% { transform: translateY(15px) rotate(-15deg) scale(0.95); }
}
.icon-1 { top: 3%; left: 5%; width: 120px; animation-duration: 25s; animation-delay: 0s; }
.icon-2 { top: 8%; right: 10%; width: 100px; animation-duration: 22s; animation-delay: -5s; }
.icon-3 { top: 15%; left: 15%; width: 140px; animation-duration: 28s; animation-delay: -10s; }
.icon-4 { top: 22%; right: 5%; width: 110px; animation-duration: 24s; animation-delay: -3s; }
.icon-5 { top: 32%; left: 25%; width: 90px; animation-duration: 26s; animation-delay: -8s; }
.icon-6 { top: 40%; right: 15%; width: 130px; animation-duration: 30s; animation-delay: -15s; }

.icon-7 { top: 48%; left: 10%; width: 105px; animation-duration: 21s; animation-delay: -7s; }
.icon-8 { top: 56%; right: 28%; width: 125px; animation-duration: 29s; animation-delay: -12s; }
.icon-9 { top: 65%; left: 35%; width: 95px; animation-duration: 23s; animation-delay: -4s; }
.icon-10 { top: 72%; right: 8%; width: 115px; animation-duration: 27s; animation-delay: -18s; }
.icon-11 { top: 80%; left: 18%; width: 135px; animation-duration: 31s; animation-delay: -9s; }
.icon-12 { top: 85%; right: 18%; width: 100px; animation-duration: 25s; animation-delay: -2s; }
.icon-13 { top: 92%; left: 5%; width: 140px; animation-duration: 32s; animation-delay: -11s; }
.icon-14 { top: 95%; right: 35%; width: 110px; animation-duration: 20s; animation-delay: -16s; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 20px;
  max-width: 1100px;
  margin: 0 auto 50px;
}
.products-grid:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(1, 1fr); gap: 16px; }
}
.product-card {
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: none;
  padding: 0 0 8px;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.04);
}
.product-card img {
  width: 70%;
  max-width: 140px;
  height: auto;
  display: block;
  transition: var(--transition);
  border-radius: var(--radius-md);
  margin: 0 auto;
}
.product-card:hover img {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
}
.product-name {
  display: block;
  margin-top: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  line-height: 1.2;
  padding: 0 10px;
  min-height: 2.4em;
  text-wrap: balance;
  word-wrap: break-word;
  text-transform: uppercase;
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: transparent;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--primary);
  color: var(--white);
}
#modalBody {
  width: 100%;
  display: flex;
  justify-content: center;
}
.modal-ficha-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* ===========================
   BLOG
   =========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.blog-card:hover .blog-card-img img { transform: scale(1.08); }
.blog-card-body {
  padding: 25px;
}
.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}
.blog-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}
.blog-read-more:hover { gap: 10px; }

/* Blog Article */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-container h1 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.article-container h2 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--text-dark);
}
.article-container h2::after { display: none; }
.article-container p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.article-container ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1rem;
}
.article-container ul li {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

/* ===========================
   COVERAGE
   =========================== */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}
.coverage-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}
.coverage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.coverage-card-img {
  height: 200px;
  overflow: hidden;
}
.coverage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.coverage-card:hover .coverage-card-img img { transform: scale(1.08); }
.coverage-card-body {
  padding: 25px;
}
.coverage-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.coverage-card-body p {
  font-size: 0.92rem;
  color: var(--text-body);
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-grid > div {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact-form { width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-info-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 25px;
}
.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.contact-item-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.contact-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}
.contact-socials a:hover {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.1);
}

.map-container {
  margin-top: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 2px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.footer-logo img { height: 60px; }
.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item span { color: var(--primary); font-size: 1rem; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-bottom p {
  margin: 0;
}

.footer-policy-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-policy-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Policy Container in Modal */
.policy-modal .modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 800px;
  width: 95%;
  box-shadow: var(--shadow-xl);
  display: block;
}

.policy-modal #modalBody {
  display: block;
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 15px;
}

.policy-container {
  color: var(--text-body);
  text-align: left;
}

.policy-container h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 25px;
  text-align: center;
}

.policy-container h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 30px 0 15px;
}

.policy-container p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.policy-container .signature {
  margin-top: 40px;
  text-align: right;
  font-style: italic;
}

@media (max-width: 768px) {
  .policy-modal .modal-content {
    padding: 30px 20px;
    margin: 20px;
  }
}

/* ===========================
   PAGE BANNERS (Internal Pages)
   =========================== */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 150px 0 100px;
  margin-top: var(--header-height);
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-banner-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.page-banner p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); font-weight: 700; }

/* ===========================
   INTERACTIVE PRODUCT MAP
   =========================== */
.interactive-map-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.interactive-map-img {
  width: 100%;
  display: block;
  height: auto;
}
.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--primary);
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 10;
}
.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.8);
}
.hotspot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: hotspot-pulse 2s infinite;
  z-index: -1;
}
@keyframes hotspot-pulse {
  0% { width: 100%; height: 100%; opacity: 0.8; }
  100% { width: 300%; height: 300%; opacity: 0; }
}
.hotspot-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hotspot:hover .hotspot-tooltip {
  opacity: 1;
}
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(148, 34, 42, 0.4);
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.whatsapp-fab:hover {
  background: var(--primary-dark);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(148, 34, 42, 0.6);
}
.whatsapp-fab::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--primary);
  opacity: 0;
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===========================
   SCROLL ANIMATIONS (Enhanced)
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .about-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .products-grid, .blog-grid, .coverage-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; max-height: 700px; }
  .hero-content h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sector-icon { width: 100px; height: 100px; }
  .whatsapp-fab { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* UTILITIES */
.section-header-center { text-align: center !important; }
.section-header-center h2::after { margin: 15px auto 0 !important; }
.section-header-center p { margin: 0 auto !important; }

/* ===========================
   LOGOS PROVEEDORES SLIDER
   =========================== */
.section-proveedores {
  padding: 40px 0;
  background: var(--white);
  overflow: hidden;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.section-proveedores .section-header {
  text-align: center;
}
.section-proveedores .section-header h2::after {
  margin: 15px auto 0;
}
.logos-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}
.logos-slider::before,
.logos-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}
.logos-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.logos-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}
.logos-slider-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}
.logos-slider-track:hover {
  animation-play-state: paused;
}
.logos-slider img {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: var(--transition);
}
.logos-slider img:hover {
  transform: scale(1.05);
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); }
}

@media (max-width: 768px) {
  .logos-slider img { height: 60px; max-width: 150px; }
  .logos-slider-track { gap: 40px; }
}
