/* ==========================================================================
   NITRILO.COM.MX - HOJA DE ESTILOS PRINCIPAL
   CSS3 Puro | Mobile-First | Framer-Inspired B2B Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS (CUSTOM PROPERTIES)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de Colores Corporativa */
  --color-primary: #0057B8;
  --color-primary-hover: #00428D;
  --color-primary-active: #00336E;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-muted: #6B7280;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  --color-accent-light: #E6F0FA;
  --color-error: #DC2626;
  --color-error-bg: #FEF2F2;
  --color-success: #059669;
  --color-success-bg: #ECFDF5;
  --color-footer-bg: #111827;
  --color-footer-text: #9CA3AF;

  /* Tipografía Modular (Inter + System Fallback) */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Escala de Espaciado */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;
  --space-8: 6rem;

  /* Radios de Borde */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Elevaciones / Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.04);

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET MINIMALISTA Y BOX SIZING
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. ACCESIBILIDAD Y ENFOQUE VISIBLE
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute !important;
  top: -9999px !important;
  left: 1rem !important;
  z-index: 99999 !important;
  padding: 0.75rem 1.5rem !important;
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-lg) !important;
  text-decoration: none !important;
}

.skip-link:focus {
  top: 1rem !important;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTENEDORES Y TIPOGRAFÍA
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-4);
}

.section-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  /* Text Reveal estilo Cortina Framer */
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  opacity: 0;
  transform: translateY(20px);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, transform 0.8s ease;
  will-change: clip-path, opacity, transform;
}

.section-title.is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
  transform: translateY(0);
}

.section-lead {
  font-size: var(--fs-body);
  color: var(--color-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. BOTONES "PILL" Y COMPONENTES REUTILIZABLES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  will-change: transform;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 87, 184, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-accent-light);
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn-block {
  width: 100%;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn-label {
  visibility: hidden;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. HEADER STICKY Y NAVEGACIÓN RESPONSIVA
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem var(--space-2);
}

.header-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #4DA3FF);
  transition: width 0.08s linear;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.brand-icon {
  flex-shrink: 0;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.brand-text strong {
  font-weight: 800;
  color: var(--color-text);
}

.brand-tld {
  color: var(--color-primary);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* El botón CTA se mantiene SIEMPRE visible en móvil */
.header-cta {
  display: inline-flex;
}

/* Menú hamburguesa para móvil */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú Móvil Desplegable */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  display: none;
}

.main-nav.is-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: 0.75rem var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-5);
  background: radial-gradient(100% 70% at 50% 0%, #FFFFFF 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: var(--space-4);
}

.hero-content {
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}

.hero-visual {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 87, 184, 0.25);
  border: 1px solid rgba(0, 87, 184, 0.15);
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  border: 1px solid #BFDBFE;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.2);
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

/* Efecto Split Text al cargar la página */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: pre-wrap;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
}

.check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #E6F0FA;
}

/* --------------------------------------------------------------------------
   8. TRUST BAR (INDUSTRIAS ATENDIDAS - MARQUEE INFINITO FRAMER)
   -------------------------------------------------------------------------- */
.trust-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  overflow: hidden;
  width: 100%;
}

.trust-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  overflow: hidden;
}

.trust-label {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.trust-badges {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 25s linear infinite;
  will-change: transform;
}

.trust-bar:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--color-muted);
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

.trust-icon {
  color: var(--color-muted);
  flex-shrink: 0;
}

.trust-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #4B5563;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. SECCIÓN APLICACIONES (#aplicaciones)
   Efecto Scroll Stacking estilo Framer
   -------------------------------------------------------------------------- */
.section-applications {
  background-color: var(--color-bg);
  position: relative;
}

.applications-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.app-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, filter 0.3s ease;
  transform-origin: center top;
  position: relative;
}

/* Z-Index progresivo para garantizar que cada tarjeta tape limpiamente a la anterior */
.app-card:nth-child(1) {
  z-index: 10;
}

.app-card:nth-child(2) {
  z-index: 20;
}

.app-card:nth-child(3) {
  z-index: 30;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  aspect-ratio: 16 / 9;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.app-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* En móvil (max-width: 768px) las tarjetas se mantienen en flujo normal con padding de contenido */
@media (max-width: 768px) {
  .applications-grid {
    gap: 2rem;
  }

  .app-card {
    position: relative;
    top: auto;
    padding: 0;
    overflow: visible;
  }

  .card-content {
    padding: 1.75rem 1.5rem;
  }
}

/* En desktop (min-width: 769px) se activa el Scroll Stacking sticky */
@media (min-width: 769px) {
  .applications-grid {
    gap: 3rem;
  }

  .app-card {
    position: sticky;
    /* Un top dinámico que asegura que quede espacio abajo */
    top: 10vh;
    padding: 0;
    overflow: visible; /* Dejar fluir el botón */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    min-height: 350px;
    /* Evitar que la tarjeta exceda la pantalla */
    max-height: calc(100vh - 15vh);
    margin-bottom: 4rem;
  }

  .card-image-wrapper {
    width: 380px;
    flex-shrink: 0;
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
  }

  .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .card-content {
    padding: 2rem 2.5rem; /* Padding compacto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    /* Quitamos el overflow-y: auto */
  }

  /* Hacer el texto un poco más compacto en escritorio */
  .card-content .card-desc {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .card-content .card-specs {
    margin-bottom: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .card-content .card-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: auto; /* Empuja el botón al fondo pero sin salirse */
  }

  .app-card .card-cta {
    width: auto;
    padding: 0.75rem 2rem;
  }
}

.app-card:hover {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.card-tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.card-desc {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.card-specs {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-specs li {
  font-size: var(--fs-xs);
  color: var(--color-text);
}

.card-specs strong {
  color: #374151;
}

.card-footer {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. SECCIÓN PROPIEDADES TÉCNICAS (#propiedades)
   Textura de hule nitrilo con overlay oscuro y contraste accesible AA
   -------------------------------------------------------------------------- */
.section-properties {
  position: relative;
  background-color: #0F172A;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.88)),
    url('../assets/textura-nitrilo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  border-top: 1px solid #1E293B;
  border-bottom: 1px solid #1E293B;
}

.section-properties .section-tag {
  color: #60A5FA;
}

.section-properties .section-title {
  color: #FFFFFF;
}

.section-properties .section-lead {
  color: #CBD5E1;
}

.section-properties .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-3);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  background-color: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.section-properties .tech-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  text-align: left;
}

.section-properties .tech-table th,
.section-properties .tech-table td {
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  border-bottom: 1px solid #334155;
}

.section-properties .tech-table thead {
  background-color: rgba(15, 23, 42, 0.95);
}

.section-properties .tech-table thead th {
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.01em;
  border-bottom: 2px solid #475569;
}

.section-properties .th-property {
  width: 28%;
}

.section-properties .th-grade {
  width: 24%;
}

.section-properties .tech-table tbody tr:hover {
  background-color: rgba(51, 65, 85, 0.5);
}

.section-properties .tech-table tbody th[scope="row"] {
  font-weight: 600;
  color: #F1F5F9;
  background-color: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid #334155;
}

.section-properties .tech-table td {
  color: #E2E8F0;
  border-bottom: 1px solid #334155;
}

.section-properties .table-note-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  background-color: rgba(30, 41, 59, 0.9);
  border: 1px solid #334155;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: #F1F5F9;
}

.section-properties .table-note-content p {
  font-size: var(--fs-sm);
  color: #E2E8F0;
  line-height: 1.5;
}

.section-properties .table-note-content p strong {
  color: #60A5FA;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN PREGUNTAS FRECUENTES (#faq)
   -------------------------------------------------------------------------- */
.section-faq {
  background-color: var(--color-bg);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: #BFDBFE;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.25rem var(--space-3);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--transition-smooth);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-3) 1.25rem var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: #F1F5F9;
}

/* --------------------------------------------------------------------------
   12. SECCIÓN FORMULARIO DE COTIZACIÓN (#cotizar)
   -------------------------------------------------------------------------- */
.section-quote {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.quote-info {
  display: flex;
  flex-direction: column;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  font-weight: 500;
}

.contact-value {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text);
}

.contact-value:hover {
  color: var(--color-primary);
}

.quote-form-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #374151;
}

.required {
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
  outline: none;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--color-error);
  background-color: #FFFDFD;
}

.form-error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--color-error);
  font-weight: 500;
}

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

/* Mensaje de estado accesible (sin alert) */
.form-status {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin-top: var(--space-1);
}

.form-status.is-success {
  display: block;
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #A7F3D0;
  font-weight: 500;
}

.form-status.is-error {
  display: block;
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid #FECACA;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer-col-brand .brand-text strong {
  color: #FFFFFF;
}

.footer-description {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: #9CA3AF;
  max-width: 320px;
}

.footer-heading {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--color-footer-text);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.5;
}

.footer-address a {
  color: #60A5FA;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid #374151;
  text-align: center;
  font-size: var(--fs-xs);
}

.copyright a {
  color: #9CA3AF;
  text-decoration: underline;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.legal-links a {
  color: var(--color-footer-text);
}

.legal-links a:hover {
  color: #FFFFFF;
}

.back-to-top {
  color: #60A5FA;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. MODAL ACCESIBLE (<dialog>)
   -------------------------------------------------------------------------- */
.legal-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 600px;
  width: 90%;
  margin: auto;
  box-shadow: var(--shadow-lg);
  background-color: #FFFFFF;
}

.legal-dialog::backdrop {
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.dialog-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.dialog-close:hover {
  color: var(--color-text);
}

.dialog-body {
  padding: var(--space-3);
  font-size: var(--fs-sm);
  color: #4B5563;
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
}

.dialog-body ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.dialog-footer {
  padding: 1rem var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  background-color: #F9FAFB;
}

/* --------------------------------------------------------------------------
   15. ANIMACIONES SUTILES CON INTERSECTION OBSERVER (FRAMER FADE-UP)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  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.reveal-left {
  transform: translateX(-20px);
}

.reveal.reveal-right {
  transform: translateX(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Animación Zoom In + Fade cinematográfica estilo Framer (.reveal-scale) */
.reveal-scale,
.card-image-wrapper.reveal,
.hero-visual.reveal {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  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;
}

.reveal-scale.is-visible,
.card-image-wrapper.reveal.is-visible,
.hero-visual.reveal.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Transiciones Framer para páginas interiores (Silos) */
.specs-table-detail.reveal,
.breadcrumbs-bar.reveal,
.hero-content.reveal {
  opacity: 0;
  transform: translateY(20px);
  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;
}

.specs-table-detail.reveal.is-visible,
.breadcrumbs-bar.reveal.is-visible,
.hero-content.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .section-title {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   16. MEDIA QUERIES: TABLET (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero-cta-group {
    flex-direction: row;
  }

  .form-row {
    flex-direction: row;
  }

  .form-row .form-group {
    flex: 1;
  }

  .table-note-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   17. MEDIA QUERIES: DESKTOP (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: block;
    width: auto;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-2);
  }

  .nav-link {
    padding: 0.5rem 0.85rem;
  }

  /* Hero Desktop a dos columnas con imagen a la derecha */
  .hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-5);
    align-items: center;
  }

  .hero-content {
    text-align: left;
    margin: 0;
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta-group {
    justify-content: flex-start;
  }

  .hero-highlights {
    margin-left: 0;
    max-width: 100%;
  }

  .quote-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-6);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   16. BREADCRUMBS Y PÁGINAS INTERIORES (ARQUITECTURA SILO)
   -------------------------------------------------------------------------- */
.breadcrumbs-bar {
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
  font-size: var(--fs-xs);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--color-muted);
}

.breadcrumbs-list a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumbs-list a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: #94A3B8;
  user-select: none;
}

.breadcrumbs-current {
  color: var(--color-text);
  font-weight: 600;
}

/* Aplicaciones Específicas en Páginas de Silo (Scroll Stacking) */
.silo-apps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.silo-app-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 769px) {
  .silo-apps-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px; /* Un poco más angosto para que se lean bien */
    margin: 0 auto;
    position: relative;
  }

  .silo-app-card {
    position: sticky;
    top: 120px; /* El mismo top que usamos en la home */
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar el contenido en esta vista */
    text-align: center;
    min-height: 300px;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Z-index progresivo para que se tapen correctamente */
  .silo-app-card:nth-child(1) { z-index: 10; }
  .silo-app-card:nth-child(2) { z-index: 20; }
  .silo-app-card:nth-child(3) { z-index: 30; }
  .silo-app-card:nth-child(4) { z-index: 40; }
}

.silo-app-icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.silo-app-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.silo-app-desc {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

/* Tabla de Ficha Técnica Detallada para Silos */
.specs-table-detail {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.specs-table-detail th,
.specs-table-detail td {
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.specs-table-detail th {
  background-color: #F8FAFC;
  color: var(--color-text);
  font-weight: 600;
  width: 35%;
}

.specs-table-detail td {
  color: #374151;
}

.specs-table-detail tr:last-child th,
.specs-table-detail tr:last-child td {
  border-bottom: none;
}

.specs-table-detail tr:hover th,
.specs-table-detail tr:hover td {
  background-color: #F1F5F9;
}

/* CTA Oscuro para Páginas Interiores y Silos */
.cta-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  visibility: visible !important;
  color: #FFFFFF !important;
  margin: 1rem 0 !important;
}

.cta-lead {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid #94A3B8;
  color: #FFFFFF;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.logo-footer-badge {
  display: inline-block;
  background-color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.logo-footer-badge img {
  height: 32px;
  width: auto;
  display: block;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
}
