/* ==========================================================================
   JARABA & CIA SAS - SITIO WEB CORPORATIVO OFICIAL
   Estilos CSS Modernos, Responsivos y Optimizados para la Industria
   ========================================================================== */

:root {
  /* Paleta Corporativa Oficial */
  --primary-red: #D92525;
  --primary-red-dark: #B91C1C;
  --primary-red-light: #FEF2F2;
  --primary-red-border: #FECACA;
  
  --primary-navy: #0F172A;
  --secondary-navy: #1E293B;
  --dark-surface: #111827;
  
  --neutral-bg: #F8FAFC;
  --neutral-card: #FFFFFF;
  --neutral-border: #E2E8F0;
  --neutral-border-focus: #CBD5E1;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  
  --accent-orange: #EA580C;
  --accent-amber: #F59E0B;
  --accent-blue: #2563EB;
  --whatsapp-color: #25D366;
  --whatsapp-dark: #1EBE5D;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Reset y Bases */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  color: var(--text-main);
  background-color: var(--neutral-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* Contenedor Fluido */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 900px;
}

/* ==========================================================================
   TOPBAR & HEADER
   ========================================================================== */
.topbar {
  background-color: var(--primary-navy);
  color: var(--text-light);
  font-size: 0.81rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  max-width: 1380px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #CBD5E1;
  white-space: nowrap;
  font-size: 0.81rem;
}

.topbar-item:hover {
  color: var(--text-inverse);
}

.topbar-badge {
  background-color: rgba(217, 37, 37, 0.2);
  color: #F87171;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(217, 37, 37, 0.3);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .topbar-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .topbar-left {
    display: none;
  }
}

/* Navbar Principal */
.header {
  background-color: var(--neutral-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--neutral-border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo .brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo .logo-xtream {
  height: 48px;
  border-radius: var(--radius-sm);
}

.brand-logo:hover .brand-logo-img {
  transform: translateY(-1px);
}

.brand-divider {
  display: inline-block;
  width: 1px;
  height: 38px;
  background-color: var(--neutral-border);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-navy);
  padding: 8px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-red);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary-red);
  color: var(--text-inverse) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(217, 37, 37, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* ==========================================================================
   SUBMENÚ DESPLEGABLE COMPACTO DE SERVICIOS
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--primary-red);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-border);
  padding: 6px 0;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1100;
}

/* Puente invisible para mantener el hover */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item-dropdown:hover .nav-submenu,
.nav-item-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu-item {
  display: block;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-navy);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.submenu-item:hover {
  background-color: var(--neutral-bg);
  color: var(--primary-red);
}

/* Offset de anclas para el header sticky */
#maquila, #logistica, #embalaje, #suministros {
  scroll-margin-top: 95px;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--secondary-navy);
  font-size: 1.5rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.88) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--text-inverse);
  padding: 100px 0 110px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to top, var(--neutral-bg), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 37, 37, 0.25);
  border: 1px solid rgba(217, 37, 37, 0.5);
  color: #FCA5A5;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: #EF4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(217, 37, 37, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 37, 37, 0.45);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-inverse);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--text-inverse);
}

/* Tarjeta destacada en Hero */
.hero-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.hero-card-header h3 {
  font-size: 1.25rem;
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hero-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(217, 37, 37, 0.2);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.hero-card-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-inverse);
}

.hero-card-text span {
  font-size: 0.85rem;
  color: #94A3B8;
}

/* ==========================================================================
   SECCIONES Y TITULOS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #FFFFFF;
}

.section-dark {
  background-color: var(--primary-navy);
  color: var(--text-inverse);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary-navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-dark .section-title {
  color: var(--text-inverse);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-dark .section-desc {
  color: #94A3B8;
}

/* ==========================================================================
   PROPUESTA 3-EN-1 (PILARES ESTRATEGICOS)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  background: var(--neutral-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red-border);
}

.pillar-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.pillar-card:hover .pillar-image img {
  transform: scale(1.06);
}

.pillar-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--primary-red);
  color: var(--text-inverse);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pillar-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary-navy);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.pillar-features {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-features li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-features li svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-red);
}

.link-arrow:hover {
  color: var(--primary-red-dark);
  gap: 10px;
}

/* ==========================================================================
   METRICAS / STATS
   ========================================================================== */
.stats-strip {
  background: var(--secondary-navy);
  color: var(--text-inverse);
  padding: 45px 0;
  border-top: 3px solid var(--primary-red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 10px;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: #F87171;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  color: #CBD5E1;
  font-weight: 600;
}

/* ==========================================================================
   CATALOGO DE SUMINISTROS
   ========================================================================== */
.supplies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.supply-card {
  background: var(--neutral-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.supply-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.supply-thumb {
  height: 200px;
  background-color: #F1F5F9;
  position: relative;
  overflow: hidden;
}

.supply-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supply-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFF;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.supply-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.supply-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary-navy);
  margin-bottom: 8px;
}

.supply-specs {
  background-color: var(--neutral-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0 16px;
  font-size: 0.85rem;
  color: var(--text-main);
  border: 1px solid var(--neutral-border);
}

.supply-specs-item {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed var(--neutral-border);
}

.supply-specs-item:last-child {
  border-bottom: none;
}

.supply-specs-label {
  color: var(--text-muted);
  font-weight: 600;
}

.btn-quote {
  width: 100%;
  background-color: var(--secondary-navy);
  color: var(--text-inverse);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  margin-top: auto;
}

.btn-quote:hover {
  background-color: var(--primary-red);
}

/* ==========================================================================
   GALERIA DE IMAGENES & FILTROS
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--neutral-card);
  border: 1px solid var(--neutral-border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-red);
  color: var(--text-inverse);
  border-color: var(--primary-red);
}

.gallery-container {
  position: relative;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

/* Modo Carrusel: Activado ÚNICAMENTE cuando 'Todos los Procesos' está seleccionado */
.gallery-grid.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) transparent;
}

.gallery-grid.is-carousel::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid.is-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 10px;
}

.gallery-grid.is-carousel .gallery-item {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  scroll-snap-align: start;
}

/* Ajustes Responsive en Móviles y Tablets */
@media (max-width: 992px) {
  .gallery-grid.is-carousel .gallery-item {
    flex: 0 0 calc(50% - 10px);
    min-width: 240px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid.is-carousel .gallery-item {
    flex: 0 0 88%;
    min-width: unset;
  }

  .gallery-item {
    height: 220px;
  }
}

/* Botones de Navegación del Carrusel - Ocultos por defecto */
.carousel-btn {
  display: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-navy);
  color: #FFF;
  border: 2px solid #FFF;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  align-items: center;
  justify-content: center;
}

/* Visibles SOLO cuando .show-carousel está activo */
.gallery-container.show-carousel .carousel-btn {
  display: flex !important;
}

.carousel-btn:hover {
  background: var(--primary-red);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
  left: -20px;
}

.carousel-btn.next-btn {
  right: -20px;
}

@media (max-width: 768px) {
  .carousel-btn.prev-btn {
    left: 5px;
  }
  .carousel-btn.next-btn {
    right: 5px;
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--text-inverse);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: #CBD5E1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-box {
  max-width: 900px;
  width: 100%;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.lightbox-box img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  background-color: var(--secondary-navy);
  color: var(--text-inverse);
  padding: 16px 24px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFF;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO & UBICACION
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--secondary-navy);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 37, 37, 0.2);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.95rem;
  color: #F1F5F9;
}

.contact-detail a, .contact-detail p {
  color: #94A3B8;
  font-size: 0.9rem;
}

.contact-detail a:hover {
  color: #FFF;
}

.form-card {
  background: var(--neutral-card);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary-navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--neutral-bg);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(217, 37, 37, 0.15);
  background-color: #FFFFFF;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.form-status.error {
  display: block;
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ==========================================================================
   WHATSAPP BOTON FLOTANTE Y MODAL
   ========================================================================== */
.whatsapp-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  border: none;
  z-index: 10000;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  background-color: var(--whatsapp-dark);
}

.whatsapp-modal {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
  z-index: 9998;
}

.whatsapp-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-modal-header {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  padding: 18px 20px;
  position: relative;
}

.whatsapp-modal-header strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.whatsapp-modal-header p {
  font-size: 0.82rem;
  color: #CBD5E1;
  margin: 0;
}

.whatsapp-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.whatsapp-modal-close:hover {
  opacity: 1;
}

.whatsapp-modal-body {
  padding: 12px;
  background-color: #F8FAFC;
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  text-decoration: none !important;
  color: var(--secondary-navy);
  transition: all var(--transition-fast);
}

.whatsapp-option:last-child {
  margin-bottom: 0;
}

.whatsapp-option:hover {
  border-color: var(--whatsapp-color);
  background-color: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.whatsapp-option .wa-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-option .wa-text span {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.whatsapp-option .wa-text small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .whatsapp-modal {
    width: 290px;
  }
  .whatsapp-container {
    bottom: 18px;
    right: 16px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--primary-navy);
  color: #94A3B8;
  padding: 70px 0 24px;
  border-top: 4px solid var(--primary-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-bottom: 50px;
}

.footer-grid > div {
  min-width: 0;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

.footer-title {
  color: var(--text-inverse);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: #FFF;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 0.85rem;
  gap: 12px;
}

.footer-bottom .footer-left {
  text-align: left;
  justify-self: start;
}

.footer-bottom .footer-center {
  text-align: center;
  justify-self: center;
}

.footer-bottom .footer-right {
  justify-self: end;
}

@media (max-width: 768px) {
  .footer-bottom {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom .footer-left,
  .footer-bottom .footer-center {
    text-align: center;
  }
}

/* ==========================================================================
   PANEL ADMINISTRATIVO (ADMIN CSS)
   ========================================================================== */
.admin-body {
  background-color: #F8FAFC;
  color: var(--text-main);
  min-height: 100vh;
}

.admin-nav {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #FFF;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary-red);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.admin-nav-item {
  color: #CBD5E1;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-nav-item:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-item.active {
  color: #FFF;
  background: rgba(217, 37, 37, 0.25);
  border: 1px solid rgba(217, 37, 37, 0.4);
}

.admin-table {
  width: 100%;
  background: #FFF;
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--neutral-border);
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--neutral-border);
  font-size: 0.9rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: #F8FAFC;
}

.admin-table th {
  background-color: #F1F5F9;
  font-weight: 800;
  color: var(--secondary-navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-unread {
  background: #FEF2F2;
  color: #DC2626;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid #FECACA;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-read {
  background: #F1F5F9;
  color: #64748B;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   RESPONSIVE / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    gap: 10px;
  }
  .brand-logo .brand-logo-img {
    height: 42px;
  }
  .brand-logo .logo-xtream {
    height: 40px;
  }
  .brand-divider {
    height: 30px;
  }
  .topbar {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--neutral-card);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 3px solid var(--primary-red);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 2px 0;
    margin: 4px 0 0 0;
    background: transparent;
    min-width: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .submenu-item {
    padding: 4px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    transition: color var(--transition-fast);
  }
  .submenu-item:hover,
  .submenu-item:focus {
    padding-left: 0;
    background: transparent;
    color: var(--primary-red);
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    gap: 8px;
  }
  .brand-logo .brand-logo-img {
    height: 36px;
  }
  .brand-logo .logo-xtream {
    height: 34px;
  }
  .brand-divider {
    height: 24px;
  }
}
