/**
 * ELECTROPOWER GENERATION - REGLAS DE LAYOUT SHELL
 * Archivo: public/assets/css/layout.css
 * Soluciones en Energía e Hidráulicos S.A.S.
 */

/* ==========================================================================
   1. BARRA SUPERIOR (TOPBAR)
   ========================================================================== */
.ep-topbar {
  background-color: var(--ep-color-navy-dark);
  color: #94A3B8;
  font-size: var(--ep-text-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}
.ep-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ep-topbar-left {
  display: flex;
  align-items: center;
  gap: var(--ep-space-2);
}
.ep-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--ep-space-3);
}
.ep-topbar-link {
  color: #CBD5E1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--ep-transition-fast);
}
.ep-topbar-link:hover {
  color: var(--ep-color-white);
}
.ep-topbar-whatsapp {
  color: var(--ep-color-whatsapp);
}
.ep-topbar-whatsapp:hover {
  color: #86EFAC;
}
.ep-topbar-separator {
  color: rgba(255, 255, 255, 0.2);
}
.ep-topbar-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.ep-topbar-social-link {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color var(--ep-transition-fast), color var(--ep-transition-fast), transform var(--ep-transition-fast);
}
.ep-topbar-social-link:hover {
  background-color: var(--ep-color-red-primary);
  color: var(--ep-color-white);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .ep-topbar-email, 
  .ep-topbar-separator:nth-of-type(2) {
    display: none;
  }
}
@media (max-width: 640px) {
  .ep-topbar-left {
    display: none;
  }
  .ep-topbar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   2. CABECERA Y NAVBAR PRINCIPAL (MAIN NAVBAR)
   ========================================================================== */
.ep-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(17, 34, 63, 0.08);
  box-shadow: 0 4px 24px rgba(17, 34, 63, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Capa Global de Difuminado Estilo Apple.com/co al abrir cualquier menú */
.ep-global-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 1030;
  background-color: rgba(11, 22, 44, 0.42);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.ep-global-menu-scrim.is-active,
body.ep-menu-blur-active .ep-global-menu-scrim,
body:has(.ep-dropdown:hover) .ep-global-menu-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.ep-menu-blur-active #mainContent,
body.ep-menu-blur-active .ep-footer,
body:has(.ep-dropdown:hover) #mainContent,
body:has(.ep-dropdown:hover) .ep-footer {
  filter: blur(6px);
  transition: filter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
#mainContent,
.ep-footer {
  transition: filter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.ep-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 106px;
}
.ep-navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 0;
}
.ep-brand-img {
  max-height: 88px;
  height: 88px;
  width: auto;
  object-fit: contain;
  transition: transform var(--ep-transition-fast);
}
.ep-navbar-brand:hover .ep-brand-img {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .ep-navbar-container {
    height: 88px;
  }
  .ep-brand-img {
    max-height: 68px;
    height: 68px;
  }
}

/* Menú de Navegación */
.ep-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--ep-space-6);
}
.ep-nav-item {
  position: relative;
}
.ep-nav-link {
  color: var(--ep-color-text-title);
  text-decoration: none;
  font-size: var(--ep-text-sm);
  font-weight: var(--ep-font-semibold);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--ep-transition-fast);
}
.ep-nav-link:hover, 
.ep-nav-link.active {
  color: var(--ep-color-red-primary);
}

/* Dropdown Mega-Menú Estilo Apple Flyout */
.ep-dropdown:hover .ep-dropdown-menu,
.ep-dropdown.is-hovered .ep-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ep-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 780px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 22, 44, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--ep-space-6);
  z-index: 1060;
}
.ep-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ep-space-6);
}
.ep-dropdown-header {
  font-size: var(--ep-text-xs);
  font-weight: var(--ep-font-extrabold);
  text-transform: uppercase;
  color: var(--ep-color-navy-primary);
  margin-bottom: var(--ep-space-3);
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ep-color-red-primary);
  padding-bottom: 4px;
}
.ep-dropdown-item {
  display: block;
  font-size: var(--ep-text-xs);
  color: var(--ep-color-text-body);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color var(--ep-transition-fast), padding-left var(--ep-transition-fast);
}
.ep-dropdown-item:hover {
  color: var(--ep-color-red-primary);
  padding-left: 4px;
}
.ep-dropdown-footer {
  margin-top: var(--ep-space-4);
  padding-top: var(--ep-space-3);
  border-top: 1px solid var(--ep-color-border-subtle);
  text-align: right;
}
.ep-link-all {
  font-size: var(--ep-text-xs);
  font-weight: var(--ep-font-bold);
  color: var(--ep-color-navy-primary);
  text-decoration: none;
}
.ep-link-all:hover {
  color: var(--ep-color-red-primary);
}

/* Cluster de Acciones */
.ep-navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--ep-space-3);
}
.ep-action-btn {
  background: none;
  border: none;
  color: var(--ep-color-navy-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--ep-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--ep-transition-fast), color var(--ep-transition-fast);
  position: relative;
  text-decoration: none;
}
.ep-action-btn:hover {
  background-color: var(--ep-color-surface-light);
  color: var(--ep-color-red-primary);
}
.ep-cart-badge {
  position: absolute;
  top: 0px;
  right: -2px;
  background-color: var(--ep-color-red-primary);
  color: var(--ep-color-white);
  font-size: 11px;
  font-weight: var(--ep-font-extrabold);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ep-color-white);
}

/* Botón Hamburguesa */
.ep-navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.ep-toggler-bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--ep-color-navy-primary);
  border-radius: 2px;
  transition: all var(--ep-transition-fast);
}

@media (max-width: 1024px) {
  .ep-nav-menu, 
  .ep-quote-modal-btn {
    display: none;
  }
  .ep-navbar-toggler {
    display: flex;
  }
}

/* ==========================================================================
   3. DRAWER MÓVIL (MOBILE OFF-CANVAS)
   ========================================================================== */
.ep-no-scroll {
  overflow: hidden !important;
}
.ep-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--ep-z-drawer-bg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--ep-transition-normal);
}
.ep-drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}
.ep-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background-color: var(--ep-color-white);
  z-index: var(--ep-z-drawer);
  transform: translateX(100%);
  transition: transform var(--ep-transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--ep-shadow-xl);
  overflow-y: auto;
}
.ep-drawer.is-open {
  transform: translateX(0);
}
.ep-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ep-space-4);
  border-bottom: 1px solid var(--ep-color-border-subtle);
}
.ep-drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ep-color-text-muted);
}
.ep-drawer-search {
  padding: var(--ep-space-4);
  background-color: var(--ep-color-surface-light);
  border-bottom: 1px solid var(--ep-color-border-subtle);
}
.ep-drawer-search-form {
  position: relative;
}
.ep-drawer-search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ep-color-navy-primary);
}
.ep-drawer-nav {
  padding: var(--ep-space-4) 0;
  flex-grow: 1;
}
.ep-drawer-list {
  list-style: none;
}
.ep-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--ep-space-4);
  color: var(--ep-color-text-title);
  font-size: var(--ep-text-sm);
  font-weight: var(--ep-font-semibold);
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  text-align: left;
}
.ep-drawer-sublist {
  list-style: none;
  background-color: var(--ep-color-surface-light);
  display: none;
  padding: var(--ep-space-2) 0;
}
.ep-drawer-sublist a {
  display: block;
  padding: 0.6rem var(--ep-space-6);
  font-size: var(--ep-text-xs);
  color: var(--ep-color-text-body);
  text-decoration: none;
}
.ep-drawer-accordion.is-expanded .ep-drawer-sublist {
  display: block;
}
.ep-drawer-accordion.is-expanded .ep-accordion-icon {
  transform: rotate(180deg);
}
.ep-drawer-actions {
  padding: var(--ep-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--ep-space-3);
  border-top: 1px solid var(--ep-color-border-subtle);
}
.ep-drawer-footer {
  padding: var(--ep-space-4);
  background-color: var(--ep-color-surface-light);
  border-top: 1px solid var(--ep-color-border-subtle);
  text-align: center;
}

/* ==========================================================================
   4. WIDGET FLOTANTE WHATSAPP CONCIERGE (STICKY WIDGET)
   ========================================================================== */
.ep-whatsapp-concierge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--ep-z-whatsapp);
}
.ep-wa-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--ep-color-whatsapp);
  color: var(--ep-color-white);
  border: none;
  box-shadow: var(--ep-shadow-whatsapp);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--ep-transition-fast), background-color var(--ep-transition-fast);
}
.ep-wa-trigger-btn:hover {
  transform: scale(1.08);
  background-color: var(--ep-color-whatsapp-hover);
}
.ep-wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ep-color-whatsapp);
  animation: epWaPulse 2s infinite;
}
@keyframes epWaPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.ep-wa-badge-notif {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--ep-color-red-primary);
  color: var(--ep-color-white);
  font-size: 10px;
  font-weight: var(--ep-font-bold);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ep-color-white);
}

/* Popup Flotante de Opciones */
.ep-wa-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background-color: var(--ep-color-white);
  border-radius: var(--ep-radius-md);
  box-shadow: var(--ep-shadow-xl);
  border: 1px solid var(--ep-color-border-subtle);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--ep-transition-normal);
}
.ep-wa-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ep-wa-popup-header {
  background-color: #075E54; /* Verde oscuro WhatsApp empresarial */
  color: var(--ep-color-white);
  padding: var(--ep-space-3) var(--ep-space-4);
  display: flex;
  align-items: center;
  gap: var(--ep-space-3);
}
.ep-wa-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
}
.ep-wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ep-wa-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4ADE80;
  border: 2px solid #075E54;
}
.ep-wa-title {
  font-size: var(--ep-text-sm);
  font-weight: var(--ep-font-bold);
}
.ep-wa-subtitle {
  font-size: 11px;
  color: #D1FAE5;
}
.ep-wa-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.ep-wa-popup-body {
  padding: var(--ep-space-4);
  background-color: #EFEAE2; /* Fondo de chat WhatsApp */
}
.ep-wa-bubble {
  background-color: var(--ep-color-white);
  padding: var(--ep-space-3);
  border-radius: 0 var(--ep-radius-md) var(--ep-radius-md) var(--ep-radius-md);
  font-size: var(--ep-text-xs);
  line-height: var(--ep-leading-snug);
  margin-bottom: var(--ep-space-3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.ep-wa-options {
  display: flex;
  flex-direction: column;
  gap: var(--ep-space-2);
}
.ep-wa-option-btn {
  display: flex;
  align-items: center;
  gap: var(--ep-space-3);
  background-color: var(--ep-color-white);
  padding: 0.65rem 0.85rem;
  border-radius: var(--ep-radius-sm);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: all var(--ep-transition-fast);
  border-left: 3px solid var(--ep-color-whatsapp);
}
.ep-wa-option-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--ep-shadow-sm);
}
.ep-wa-opt-emergency {
  border-left-color: var(--ep-color-red-primary);
}
.ep-wa-opt-icon {
  font-size: 18px;
}
.ep-wa-opt-text strong {
  display: block;
  font-size: var(--ep-text-xs);
  color: var(--ep-color-text-title);
}
.ep-wa-opt-text span {
  font-size: 10px;
  color: var(--ep-color-text-muted);
}

@media (max-width: 640px) {
  .ep-whatsapp-concierge {
    bottom: 16px;
    right: 16px;
  }
  .ep-wa-popup {
    width: 290px;
  }
}

/* ==========================================================================
   5. PIE DE PÁGINA INDUSTRIAL (INDUSTRIAL FOOTER)
   ========================================================================== */
.ep-footer {
  background-color: var(--ep-color-navy-dark);
  color: #94A3B8;
  padding: var(--ep-space-12) 0 var(--ep-space-6);
  border-top: 4px solid var(--ep-color-red-primary);
}
.ep-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--ep-space-8);
  margin-bottom: var(--ep-space-10);
}
.ep-footer-logo {
  max-height: 84px;
  height: 84px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--ep-space-3);
  background-color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--ep-radius-sm);
  box-shadow: var(--ep-shadow-sm);
}
.ep-footer-socials-wrap {
  margin-top: var(--ep-space-3);
}
.ep-footer-social-title {
  display: block;
  font-size: 11px;
  font-weight: var(--ep-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E2E8F0;
  margin-bottom: 8px;
}
.ep-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ep-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ep-color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--ep-transition-fast);
}
.ep-social-btn:hover {
  background-color: var(--ep-color-red-primary);
  border-color: var(--ep-color-red-primary);
  color: var(--ep-color-white);
  transform: translateY(-2px);
}
.ep-social-btn.ep-social-wa:hover {
  background-color: var(--ep-color-whatsapp);
  border-color: var(--ep-color-whatsapp);
}
.ep-footer-desc {
  font-size: var(--ep-text-xs);
  line-height: var(--ep-leading-relaxed);
  margin-bottom: var(--ep-space-4);
  color: #CBD5E1;
}
.ep-footer-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-2);
}
.ep-footer-heading {
  color: var(--ep-color-white);
  font-size: var(--ep-text-sm);
  font-weight: var(--ep-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ep-space-4);
  position: relative;
  padding-bottom: 8px;
}
.ep-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--ep-color-red-primary);
}
.ep-footer-links {
  list-style: none;
}
.ep-footer-links li {
  margin-bottom: 0.5rem;
}
.ep-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: var(--ep-text-xs);
  transition: color var(--ep-transition-fast), padding-left var(--ep-transition-fast);
}
.ep-footer-links a:hover {
  color: var(--ep-color-white);
  padding-left: 4px;
}
.ep-footer-contact-info p {
  font-size: var(--ep-text-xs);
  margin-bottom: 0.65rem;
  line-height: var(--ep-leading-snug);
}
.ep-footer-contact-info a {
  color: #E2E8F0;
  text-decoration: none;
}
.ep-footer-phone {
  color: var(--ep-color-whatsapp) !important;
  font-weight: var(--ep-font-bold);
  font-size: var(--ep-text-sm);
}

/* Fila de Confianza: Medios de Pago y Envíos */
.ep-footer-trust-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--ep-space-6) 0;
  margin-bottom: var(--ep-space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ep-space-6);
}
.ep-trust-label {
  display: block;
  font-size: var(--ep-text-xs);
  font-weight: var(--ep-font-bold);
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.ep-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ep-payment-badge, 
.ep-courier-badge {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  font-size: 11px;
  font-weight: var(--ep-font-semibold);
  padding: 4px 8px;
  border-radius: var(--ep-radius-xs);
}

/* Sub-Footer */
.ep-subfooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--ep-text-xs);
  color: #64748B;
}
.ep-subfooter-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ep-subfooter-right a {
  color: #94A3B8;
  text-decoration: none;
}
.ep-subfooter-right a:hover {
  color: var(--ep-color-white);
}

@media (max-width: 1024px) {
  .ep-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--ep-space-6);
  }
  .ep-footer-trust-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ep-footer-grid {
    grid-template-columns: 1fr;
  }
  .ep-subfooter {
    flex-direction: column;
    text-align: center;
    gap: var(--ep-space-3);
  }
}

/* ==========================================================================
   6. VENTANA MODAL (MODAL OVERLAY)
   ========================================================================== */
.ep-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--ep-z-modal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ep-space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--ep-transition-normal);
}
.ep-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.ep-modal {
  background-color: var(--ep-color-white);
  border-radius: var(--ep-radius-md);
  box-shadow: var(--ep-shadow-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--ep-transition-normal);
}
.ep-modal-backdrop.is-open .ep-modal {
  transform: scale(1);
}
.ep-modal-header {
  padding: var(--ep-space-5) var(--ep-space-6);
  border-bottom: 1px solid var(--ep-color-border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ep-modal-title {
  font-size: var(--ep-text-lg);
  font-weight: var(--ep-font-extrabold);
  color: var(--ep-color-navy-primary);
  margin-top: 4px;
}
.ep-modal-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ep-color-text-muted);
  cursor: pointer;
}
.ep-modal-body {
  padding: var(--ep-space-6);
}
.ep-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ep-space-3);
  margin-top: var(--ep-space-5);
  padding-top: var(--ep-space-4);
  border-top: 1px solid var(--ep-color-border-subtle);
}
.ep-checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.ep-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--ep-text-xs);
  color: var(--ep-color-text-body);
  cursor: pointer;
}

/* ==========================================================================
   7. HERO BANNER (PORTAL HOMEPAGE)
   ========================================================================== */
.ep-hero {
  background: linear-gradient(135deg, var(--ep-color-navy-dark) 0%, var(--ep-color-navy-primary) 100%);
  color: var(--ep-color-white);
  padding: var(--ep-space-16) 0 var(--ep-space-20);
  position: relative;
  overflow: hidden;
}
.ep-hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.1) contrast(1.05);
}
.ep-hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(11, 21, 39, 0.88) 0%,
    rgba(30, 58, 95, 0.78) 55%,
    rgba(198, 40, 40, 0.52) 100%
  );
  pointer-events: none;
}
.ep-hero-video-toggle {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ep-transition-fast);
}
.ep-hero-video-toggle:hover {
  background: var(--ep-color-red-primary);
  border-color: var(--ep-color-red-primary);
  color: #FFFFFF;
}
.ep-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at 70% 30%, rgba(229, 57, 53, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.ep-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--ep-space-8);
  position: relative;
  z-index: 2;
}
.ep-hero-tagline {
  color: #F87171;
  font-weight: var(--ep-font-bold);
  font-size: var(--ep-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--ep-space-2);
}
.ep-hero-title {
  color: var(--ep-color-white);
  font-size: var(--ep-text-4xl);
  font-weight: var(--ep-font-extrabold);
  line-height: var(--ep-leading-tight);
  margin-bottom: var(--ep-space-4);
}
.ep-hero-desc {
  color: #CBD5E1;
  font-size: var(--ep-text-lg);
  line-height: var(--ep-leading-relaxed);
  margin-bottom: var(--ep-space-6);
  max-width: 580px;
}
.ep-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-4);
  margin-bottom: var(--ep-space-8);
}
.ep-hero-stats {
  display: flex;
  gap: var(--ep-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--ep-space-4);
}
.ep-stat-item strong {
  display: block;
  font-size: var(--ep-text-2xl);
  color: #F59E0B;
  font-weight: var(--ep-font-extrabold);
}
.ep-stat-item span {
  font-size: var(--ep-text-xs);
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ep-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ep-hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ep-radius-lg);
  padding: var(--ep-space-6);
  text-align: center;
  width: 100%;
  max-width: 400px;
}
.ep-hero-visual-card img {
  border-radius: var(--ep-radius-md);
  margin: 0 auto var(--ep-space-4);
  max-height: 240px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .ep-hero-grid {
    grid-template-columns: 1fr;
  }
  .ep-hero-visual {
    display: none;
  }
}

/* ==========================================================================
   8. RESPONSIVE CATALOG & CART LAYOUTS
   ========================================================================== */
.ep-catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--ep-space-8);
  align-items: start;
}

.ep-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--ep-space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .ep-catalog-layout,
  .ep-cart-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. SISTEMA VISUAL APPLE.COM/CO — HERO CON LOGO CENTRADO Y FONDO MÓVIL
   ========================================================================== */
.ep-apple-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  overflow: hidden;
  background-color: #091324;
  color: #FFFFFF;
}

/* Fondo móvil dinámico acorde a los colores corporativos (#11223F, #1E3A5F, #E53935) */
.ep-apple-aurora-canvas {
  position: absolute;
  inset: -25%;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 28%, rgba(229, 57, 53, 0.52) 0%, transparent 44%),
    radial-gradient(circle at 78% 32%, rgba(30, 58, 95, 0.85) 0%, transparent 48%),
    radial-gradient(circle at 50% 76%, rgba(211, 47, 47, 0.44) 0%, transparent 46%),
    radial-gradient(circle at 50% 50%, #11223F 0%, #070F1E 100%);
  filter: blur(28px) saturate(140%);
  animation: epAuroraFlow 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes epAuroraFlow {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(3%, 2%, 0) scale(1.06) rotate(2deg);
  }
  100% {
    transform: translate3d(-2%, 3%, 0) scale(1.02) rotate(-2deg);
  }
}

.ep-apple-orbital-ring {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 90px rgba(229, 57, 53, 0.18), inset 0 0 60px rgba(30, 58, 95, 0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: epOrbitalPulse 9s ease-in-out infinite;
}

@keyframes epOrbitalPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.9;
  }
}

.ep-apple-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* El Logotipo Oficial Ampliado en la mitad e integrado en los mismos colores corporativos del fondo */
.ep-apple-logo-centerpiece {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(30, 58, 95, 0.78) 0%,
    rgba(17, 34, 63, 0.58) 48%,
    rgba(229, 57, 53, 0.24) 76%,
    rgba(9, 19, 36, 0) 100%
  );
  padding: 20px 32px;
  border-radius: 40px;
  margin-bottom: 1.75rem;
  animation: epCenterLogoFloat 6s ease-in-out infinite;
}

.ep-apple-logo-centerpiece img {
  width: min(90vw, 700px);
  height: auto;
  max-height: 375px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 18px 36px rgba(5, 11, 22, 0.72))
    drop-shadow(0 0 42px rgba(229, 57, 53, 0.30));
}

@keyframes epCenterLogoFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.018);
  }
}

@media (max-width: 768px) {
  .ep-apple-logo-centerpiece {
    padding: 12px 16px;
  }
  .ep-apple-logo-centerpiece img {
    width: min(92vw, 480px);
    max-height: 260px;
  }
}

.ep-apple-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.ep-apple-hero-title {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.ep-apple-hero-title span {
  background: linear-gradient(90deg, #FFFFFF 0%, #FCA5A5 50%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ep-apple-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: #E2E8F0;
  max-width: 740px;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 2.2rem;
}

.ep-apple-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2.6rem;
}

.ep-apple-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.ep-apple-pill-primary {
  background-color: #E53935;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(229, 57, 53, 0.42);
}
.ep-apple-pill-primary:hover {
  background-color: #D32F2F;
  transform: scale(1.03);
  color: #FFFFFF;
}

.ep-apple-pill-glass {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.32);
}
.ep-apple-pill-glass:hover {
  background-color: #FFFFFF;
  color: #11223F;
  transform: scale(1.03);
}

.ep-apple-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2.5rem;
  padding: 1.15rem 2.2rem;
  border-radius: 22px;
  background: rgba(17, 34, 63, 0.58);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ep-apple-metric strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.ep-apple-metric span {
  font-size: 11px;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .ep-apple-logo-centerpiece img {
    height: 84px;
  }
  .ep-apple-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 1rem 1.25rem;
  }
}

/* ==========================================================================
   10. PANELES BENTO DE SERVICIOS INDUSTRIALES (ESTILO APPLE.COM/CO)
   ========================================================================== */
.ep-apple-section {
  padding: 5rem 0;
  background-color: #F5F5F7;
}

.ep-apple-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.ep-apple-section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E53935;
  margin-bottom: 8px;
}

.ep-apple-section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #11223F;
  line-height: 1.12;
  margin-bottom: 12px;
}

.ep-apple-section-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
}

.ep-apple-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ep-apple-bento-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 0 12px 34px rgba(17, 34, 63, 0.07);
}

.ep-apple-bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(17, 34, 63, 0.14);
}

.ep-bento-dark {
  background: linear-gradient(145deg, #11223F 0%, #1E3A5F 100%);
  color: #FFFFFF;
}

.ep-bento-light {
  background: #FFFFFF;
  color: #11223F;
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.ep-bento-red-accent {
  background: linear-gradient(145deg, #1E3A5F 0%, #0F1E36 65%, #7F1D1D 100%);
  color: #FFFFFF;
}

.ep-bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 980px;
  width: fit-content;
  margin-bottom: 12px;
}

.ep-bento-dark .ep-bento-tag,
.ep-bento-red-accent .ep-bento-tag {
  background: rgba(229, 57, 53, 0.22);
  color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.ep-bento-light .ep-bento-tag {
  background: rgba(30, 58, 95, 0.08);
  color: #1E3A5F;
}

.ep-bento-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.ep-bento-dark .ep-bento-title,
.ep-bento-red-accent .ep-bento-title {
  color: #FFFFFF;
}

.ep-bento-light .ep-bento-title {
  color: #11223F;
}

.ep-bento-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
  opacity: 0.9;
}

.ep-bento-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ep-bento-list li {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
}

.ep-bento-light .ep-bento-list li {
  background: #F1F5F9;
  color: #1E3A5F;
}

.ep-bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ep-bento-light .ep-bento-footer {
  border-top-color: #E2E8F0;
}

@media (max-width: 900px) {
  .ep-apple-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. PESTAÑAS INTERACTIVAS DE LAS 5 LÍNEAS DE PRODUCTOS + IMAGEN MÓVIL
   ========================================================================== */
.ep-apple-tabs-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

/* Barra de 5 pestañas estilo Apple Dock / Segmented Pill Bar */
.ep-apple-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #F5F5F7;
  padding: 10px;
  border-radius: 980px;
  max-width: 1080px;
  margin: 0 auto 2.8rem;
  border: 1px solid rgba(17, 34, 63, 0.08);
}

.ep-apple-tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 980px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ep-apple-tab-btn:hover {
  color: #11223F;
  background: rgba(30, 58, 95, 0.06);
}

.ep-apple-tab-btn.is-active {
  background: linear-gradient(135deg, #11223F 0%, #1E3A5F 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(17, 34, 63, 0.25);
}

.ep-apple-tab-btn.is-active .ep-tab-num {
  background: #E53935;
  color: #FFFFFF;
}

.ep-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.12);
  color: #1E3A5F;
  font-size: 11px;
  font-weight: 800;
}

.ep-apple-tab-panel {
  display: none;
  animation: epTabFadeIn 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.ep-apple-tab-panel.is-active {
  display: block;
}

@keyframes epTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cabecera de la Pestaña: Contexto básico + Redirección + Imagen Móvil Característica */
.ep-apple-line-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(135deg, #0D1B33 0%, #1E3A5F 62%, #2B1626 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 22px 50px rgba(17, 34, 63, 0.18);
  position: relative;
  overflow: hidden;
}

.ep-apple-line-showcase::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.ep-line-context-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 980px;
  background: rgba(229, 57, 53, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FECACA;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.ep-line-context-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.ep-line-context-desc {
  font-size: 1rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ep-line-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ep-line-subtag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Imagen Móvil Flotante del Producto Característico de la Pestaña */
.ep-line-characteristic-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ep-characteristic-floating-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: epCharacteristicFloat 4.8s ease-in-out infinite;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.ep-characteristic-floating-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.ep-characteristic-caption {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #11223F;
  background: #F1F5F9;
  padding: 6px 12px;
  border-radius: 980px;
}

@keyframes epCharacteristicFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-14px) rotate(1.2deg) scale(1.02);
  }
}

/* Cuadrícula Inferior de Repuestos y Equipos con Imagen Profesional de Estudio */
.ep-line-spares-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #F1F5F9;
}

.ep-apple-spares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ep-apple-spare-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.ep-apple-spare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(17, 34, 63, 0.1);
  border-color: rgba(30, 58, 95, 0.28);
}

.ep-spare-studio-img-box {
  position: relative;
  background: #FFFFFF;
  padding: 18px;
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #F1F5F9;
}

.ep-spare-studio-img-box img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.ep-apple-spare-card:hover .ep-spare-studio-img-box img {
  transform: scale(1.06);
}

.ep-spare-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ep-spare-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 12px;
}

.ep-spare-spec-pill {
  font-size: 11px;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .ep-apple-spares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ep-apple-line-showcase {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .ep-apple-spares-grid {
    grid-template-columns: 1fr;
  }
  .ep-apple-tabs-nav {
    border-radius: 20px;
  }
  .ep-apple-tab-btn {
    width: 100%;
    justify-content: flex-start;
  }
}



/* ==========================================================================
   ACCESIBILIDAD: usuarios que piden reducir movimiento (vestibular / epilepsia)
   ========================================================================== */
@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;
  }
  .ep-hero-video-bg { display: none !important; }
}

/* Miniaturas de galería de producto como botones accesibles */
button.ep-gallery-thumb { background: #FFFFFF; font: inherit; }
button.ep-gallery-thumb:focus-visible { outline: 3px solid var(--ep-color-red-primary, #E53935); outline-offset: 2px; }
