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

:root {
  --industrial-blue: #0A192F;
  --industrial-gray: #4A5568;
  --industrial-silver: #E2E8F0;
  --industrial-accent: #0047AB;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: var(--slate-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-w-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.25rem;
}

.text-industrial-blue { color: var(--industrial-blue); }
.text-industrial-accent { color: var(--industrial-accent); }
.bg-industrial-blue { background-color: var(--industrial-blue); text-color: white; }
.bg-industrial-accent { background-color: var(--industrial-accent); color: white; }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-white { background-color: #ffffff; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-box {
  background-color: var(--industrial-blue);
  color: white;
  font-weight: 700;
  font-size: 2rem;
  padding: 0.35rem 1rem;
  border-radius: 0.125rem;
  letter-spacing: -0.05em;
}

.nav-logo-img {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 1.25rem; /* Redondeado más pronunciado */
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .nav-logo-img {
    height: 90px;
  }
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 1.25rem; /* Redondeado más pronunciado */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.footer-logo-img:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-brand-text {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25;
  color: white; /* Changed via JS when scrolled */
}
@media (min-width: 768px) {
  .nav-brand-text { display: block; }
}
.navbar.scrolled .nav-brand-text { color: var(--industrial-blue); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}
.navbar.scrolled .nav-link {
  color: var(--slate-700);
}
.nav-link:hover, .navbar.scrolled .nav-link:hover {
  color: var(--industrial-accent);
}

.nav-btn {
  background-color: var(--industrial-accent);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
}
.nav-btn:hover {
  background-color: var(--blue-700);
}

.mobile-toggle {
  display: block;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}
.navbar.scrolled .mobile-toggle { color: var(--slate-900); }

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--slate-100);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}
.mobile-nav-link {
  color: var(--slate-800);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slate-50);
}
.mobile-nav-btn {
  background-color: var(--industrial-blue);
  color: white;
  text-align: center;
  padding: 0.75rem 0;
  border-radius: 0.125rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(10, 25, 47, 0.8);
  z-index: 10;
}

.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 20;
  width: 100%;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 0.5rem; height: 0.5rem;
  background-color: var(--blue-400);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.badge-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .badge-text { font-size: 1.125rem; }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
}
.hero-title-highlight { color: var(--blue-400); }

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  line-height: 1.625;
}
@media (min-width: 768px) { .hero-desc { font-size: 1.25rem; } }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 0.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: var(--industrial-accent);
  color: white;
}
.btn-primary:hover {
  background-color: var(--blue-700);
}
.btn-primary i {
  transition: transform 0.3s ease;
}
.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}
.stat-val {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}
@media (min-width: 768px) {
  .stat-val { font-size: 4rem; }
}
.stat-lbl {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.stat-div {
  width: 1px;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-graphics {
  display: none;
  position: relative;
}
@media (min-width: 1024px) { .hero-graphics { display: block; } }

.hero-img-box {
  position: relative;
  z-index: 10;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(24px);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.hero-img-box img {
  width: 100%;
  border-radius: 0.375rem;
  transition: transform 0.7s ease;
}
.hero-img-box img:hover {
  transform: scale(1.02);
}

.glow-blue {
  position: absolute;
  top: -2.5rem; right: -2.5rem;
  width: 10rem; height: 10rem;
  background-color: rgba(37, 99, 235, 0.2);
  filter: blur(40px);
  border-radius: 50%;
}
.glow-slate {
  position: absolute;
  bottom: -2.5rem; left: -2.5rem;
  width: 10rem; height: 10rem;
  background-color: rgba(71, 85, 105, 0.2);
  filter: blur(40px);
  border-radius: 50%;
}

/* --- Utilities and Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* History Section */
.history-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .history-grid { grid-template-columns: 1fr 1fr; }
}

.history-img-wrapper {
  position: relative;
}
.history-img-container {
  aspect-ratio: 1 / 1;
  background-color: var(--industrial-blue);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.history-img-container img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6; mix-blend-mode: luminosity;
}
.history-quote {
  position: absolute;
  bottom: -2rem; right: -2rem;
  background-color: white;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 20rem;
  border-left: 4px solid var(--industrial-accent);
}
.history-quote p {
  color: var(--slate-600);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.625;
}

.history-badge {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.history-badge i { color: var(--industrial-accent); }
.history-badge span {
  color: var(--industrial-accent);
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.875rem;
}

.section-title {
  font-size: 2.25rem; font-weight: 700; color: var(--industrial-blue); margin-bottom: 2rem;
}
.section-desc {
  color: var(--slate-600); line-height: 1.625; display: flex; flex-direction: column; gap: 1.5rem;
}
.section-desc p strong { color: var(--slate-900); }

.features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem;
}
.feature-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.feature-item i { color: var(--industrial-accent); margin-top: 0.25rem; flex-shrink: 0; }
.feature-item h4 { font-weight: 700; color: var(--industrial-blue); }
.feature-item p { font-size: 0.75rem; color: var(--slate-500); }

/* --- Products Section --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-16 { margin-bottom: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.max-w-2xl { max-width: 42rem; }

.products-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  padding: 1.5rem; border-radius: 0.125rem;
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.3s ease;
  position: relative; /* Necesario para que el pseudo-link cubra toda la tarjeta */
}
.product-card:hover { transform: translateY(-10px); }

.product-img-box {
  width: 100%; aspect-ratio: 4/3; margin-bottom: 1.5rem;
  background-color: white; border-radius: 0.125rem;
  border: 1px solid var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; overflow: hidden; position: relative;
}
.product-img-box img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,0.07));
}
.product-card:hover .product-img-box img { transform: scale(1.05); }

.product-icon-box {
  background-color: var(--slate-100); width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.125rem; margin-bottom: 1.5rem;
  color: var(--industrial-accent); transition: background-color 0.3s ease, color 0.3s ease;
}
.product-card:hover .product-icon-box {
  background-color: var(--industrial-accent); color: white;
}

.product-title { font-size: 1.25rem; font-weight: 700; color: var(--industrial-blue); margin-bottom: 1rem; }
.product-desc { color: var(--slate-600); font-size: 0.875rem; margin-bottom: 1.5rem; flex-grow: 1; }

.product-specs { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.product-spec-item { font-size: 0.75rem; font-weight: 500; color: var(--slate-500); display: flex; align-items: center; gap: 0.5rem; }
.spec-dot { width: 0.25rem; height: 0.25rem; background-color: var(--industrial-accent); border-radius: 50%; }

.product-link {
  color: var(--industrial-accent); font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
  /* El pseudoelemento ::after expande el área de clic a toda la tarjeta */
}
.product-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}
.product-link:hover { text-decoration: underline; }

/* Carrusel simple genérico */
.product-img-box img.carousel-img,
.hero-img-box img.carousel-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 0.5rem; 
  opacity: 0; 
  transition: opacity 0.8s ease-in-out, transform 0.5s ease;
  z-index: 1;
}
.hero-img-box img.carousel-img {
  padding: 1rem;
  object-fit: cover;
  border-radius: 0.375rem;
}
.product-img-box img.carousel-img.active,
.hero-img-box img.carousel-img.active { 
  opacity: 1; 
  z-index: 2; 
}

/* Centrar última card si queda impar (7 elementos) */
@media (min-width: 768px) and (max-width: 1023px) {
  .last-product-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 1rem); /* Equivale al ancho de 1 columna con gap */
  }
}
@media (min-width: 1024px) {
  .last-product-card {
    grid-column: 2;
  }
}

/* --- Differentials --- */
.differentials-section {
  background-color: var(--industrial-blue); color: white;
  position: relative; overflow: hidden;
}
.diff-bg-decor {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background-color: rgba(30, 58, 138, 0.2);
  transform: skewX(-12deg) translateX(25%);
}
.diff-content { position: relative; z-index: 10; display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .diff-content { grid-template-columns: 1fr 2fr; } }

.diff-left .title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.diff-left p { color: rgba(255, 255, 255, 0.6); margin-bottom: 2rem; line-height: 1.625; }
.diff-stat-box { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem; border-radius: 0.125rem; }
.diff-stat-val { font-size: 2.25rem; font-weight: 700; color: var(--blue-400); margin-bottom: 0.5rem; }
.diff-stat-lbl { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; letter-spacing: 0.1em; }

.diff-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
.diff-card { padding: 2rem; border: 1px solid rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.05); transition: background-color 0.3s ease; }
.diff-card:hover { background-color: rgba(255, 255, 255, 0.1); }
.diff-card i { color: var(--blue-400); margin-bottom: 1rem; width: 2rem; height: 2rem; }
.diff-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.diff-card p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); line-height: 1.625; }

/* --- Applications --- */
.apps-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .apps-header { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.apps-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .apps-grid { grid-template-columns: repeat(5, 1fr); } }

.app-card {
  position: relative; overflow: hidden; border-radius: 0.125rem; aspect-ratio: 4/5;
}
.app-card img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: all 0.7s ease;
}
.app-card:hover img { filter: grayscale(0%); transform: scale(1.1); }
.app-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, var(--industrial-blue), transparent); opacity: 0.8;
}
.app-title { position: absolute; bottom: 0; left: 0; padding: 1.5rem; color: white; font-weight: 700; font-size: 1.125rem; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { background-color: var(--slate-100); padding: 0.75rem; border-radius: 0.125rem; color: var(--industrial-accent); }
.contact-item h4 { font-weight: 700; color: var(--industrial-blue); margin-bottom: 0.25rem; }
.contact-item p { color: var(--slate-600); font-size: 0.875rem; }

.contact-form-box { background-color: var(--slate-50); padding: 2rem; border-radius: 0.125rem; border: 1px solid var(--slate-200); }
@media (min-width: 768px) { .contact-form-box { padding: 3rem; } }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; margin-bottom: 0; } }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.form-control { width: 100%; background-color: white; border: 1px solid var(--slate-200); padding: 0.75rem; border-radius: 0.125rem; outline: none; transition: border-color 0.3s ease; font-family: inherit;}
.form-control:focus { border-color: var(--industrial-accent); }
.btn-submit { width: 100%; background-color: var(--industrial-blue); color: white; padding: 1rem; border-radius: 0.125rem; font-weight: 700; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: background-color 0.3s ease; }
.btn-submit:hover { background-color: var(--slate-800); }

/* --- Footer --- */
.footer { background-color: var(--industrial-blue); color: white; padding-top: 5rem; padding-bottom: 2.5rem; }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo-box { background-color: white; color: var(--industrial-blue); }
.footer-desc { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.5rem; }
.footer-title { font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--blue-400); }
.footer-links { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: white; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social-btn { width: 2rem; height: 2rem; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; }
.footer-social-btn:hover { background-color: rgba(255, 255, 255, 0.2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a:hover { color: white; }

/* --- Product Page Specific --- */
.product-page { padding-top: 8rem; padding-bottom: 5rem; min-height: 100vh; }
.prod-family { font-size: 0.875rem; font-weight: 700; color: var(--industrial-accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.prod-title { font-size: 2.25rem; font-weight: 700; color: var(--industrial-blue); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .prod-title { font-size: 3rem; } }
.prod-desc { color: var(--slate-600); font-size: 1.125rem; margin-bottom: 3rem; max-width: 48rem; line-height: 1.625; }

.prod-showcase { background-color: var(--slate-50); border: 1px solid var(--slate-200); padding: 2rem; border-radius: 0.125rem; margin-bottom: 4rem; }
.prod-showcase-title { font-size: 1.5rem; font-weight: 700; color: var(--industrial-blue); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--slate-200); }
.prod-showcase-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .prod-showcase-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.prod-viewer { position: relative; width: 100%; height: 350px; background-color: white; border: 1px solid var(--slate-100); border-radius: 0.125rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (min-width: 768px) { .prod-viewer { height: 400px; } }
.viewer-btn { position: absolute; z-index: 10; width: 2.5rem; height: 2.5rem; background-color: var(--industrial-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.viewer-btn:hover { background-color: var(--industrial-accent); }
.viewer-btn-prev { left: 0.5rem; }
.viewer-btn-next { right: 0.5rem; }
.viewer-count { position: absolute; top: 1rem; right: 1rem; background-color: rgba(10, 25, 47, 0.8); color: white; font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-weight: 700; letter-spacing: 0.05em; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); z-index: 10; }

.viewer-img-container { position: relative; width: 100%; height: 100%; padding: 1rem; display: flex; align-items: center; justify-content: center; }
.viewer-img { position: absolute; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; filter: drop-shadow(0 4px 3px rgba(0,0,0,0.07)); transform: translateX(20px); }
.viewer-img.active { opacity: 1; transform: translateX(0); }

.prod-info-lbl { color: var(--industrial-accent); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.prod-info-val { font-size: 1.5rem; font-weight: 700; color: var(--slate-800); margin-bottom: 1rem; line-height: 1.25; }
@media (min-width: 768px) { .prod-info-val { font-size: 1.875rem; } }
.prod-info-desc { color: var(--slate-600); margin-bottom: 1.5rem; line-height: 1.625; }
.prod-info-bot { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--slate-400); }

/* --- Excel Preview --- */
.excel-preview-container { background-color: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 0.125rem; margin-bottom: 4rem; overflow: hidden; }
.excel-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background-color: white; border-bottom: 1px solid var(--slate-200); flex-wrap: wrap; gap: 1rem; }
.excel-title-box { display: flex; align-items: center; gap: 0.75rem; }
.excel-title { font-size: 1.25rem; font-weight: 700; color: var(--industrial-blue); margin: 0; }
.excel-frame-wrapper { position: relative; width: 100%; max-height: 600px; background-color: #ffffff; overflow: auto; padding: 1rem; }
.excel-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }

/* Estilos para la tabla generada por SheetJS */
table.excel-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-family: var(--font-sans); }
table.excel-table th, table.excel-table td { border: 1px solid var(--slate-200) !important; padding: 0.5rem 0.75rem !important; text-align: center !important; vertical-align: middle !important; white-space: nowrap !important; }
table.excel-table th { background-color: var(--slate-100); font-weight: 700; color: var(--industrial-blue); position: sticky; top: 0; }
table.excel-table tr:nth-child(even) { background-color: var(--slate-50); }
table.excel-table tr:hover { background-color: var(--slate-100); }

.downloads-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; margin-top: 2rem; }
.downloads-title { font-size: 1.5rem; font-weight: 700; color: var(--industrial-blue); }
@media (min-width: 768px) { .downloads-title { font-size: 1.875rem; } }
.downloads-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .downloads-grid { grid-template-columns: repeat(3, 1fr); } }

.download-card { background-color: white; border: 1px solid var(--slate-200); padding: 1.5rem; border-radius: 0.125rem; display: flex; flex-direction: column; items-align: center; text-align: center; transition: all 0.3s ease; }
.download-card:hover { border-color: var(--industrial-accent); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.dl-icon-box { width: 3rem; height: 3rem; background-color: var(--slate-50); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 1rem; transition: background-color 0.3s ease; color: var(--industrial-blue); }
.download-card:hover .dl-icon-box { background-color: rgba(0, 71, 171, 0.1); color: var(--industrial-accent); }
.dl-title { font-weight: 700; color: var(--slate-800); margin-bottom: 0.5rem; }
.dl-desc { font-size: 0.75rem; color: var(--slate-500); margin-bottom: 1rem; flex-grow: 1; }
.dl-link { font-size: 0.75rem; font-weight: 700; color: var(--industrial-blue); text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s ease; }
.download-card:hover .dl-link { color: var(--industrial-accent); }

.back-link { color: var(--industrial-accent); font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.back-link:hover { text-decoration: underline; }
