/**
Theme Name: legacycables
Author: Roger Noguera
Author URI: https://rogerscode.net
Description: Child Theme for legacycables
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legacycables
Template: astra
*/

:root {
    /* Azul Principal (Texto 'LEGACY', cables principales y tono dominante corporativo) */
    --legacy-blue-dark: #0a2540;
    
    /* Azul Secundario / Brillo (Tono medio del cable superior, ideal para hovers o enlaces) */
    --legacy-blue-medium: #1d4670;
    
    /* Oro Premium / Dorado Base (Texto 'CABLES' y secciones sólidas del metal) */
    --legacy-gold: #bba168;
    
    /* Oro Brillo / Gradiente Claro (El reflejo más claro en las puntas del cable y curvas) */
    --legacy-gold-light: #e5d5b3;
    
    /* Oro Oscuro / Sombra (La sombra bronce/dorada que da profundidad al metal) */
    --legacy-gold-dark: #8c7343;

    /* --- Fondos y Bordes Neutros tipo Trivago (Sugeridos para el Layout) --- */
    --legacy-bg-clean: #ffffff;
    --legacy-bg-light: #f8f9fa;
    --legacy-border-light: #e9ecef;
    --legacy-text-body: #333333;
    
    --legacy-text-height-32: 32px;
}

/* Landing Pagas */

/* ==========================================================================
   LANDING PAGE: CMZ40 SENSOR (INTER FONT & CORPORATE COLORS)
   ========================================================================== */
.legacy-landing {
    --ink: #000814; /* Rich Black */
    --muted: #4A5568; /* Gris oscuro legible */
    --line: #dfe6ea;
    --soft: #f4f7f8;
    --brand: #003566; /* Yale Blue */
    --brand2: #001D3D; /* Oxford Blue */
    --warn: #F0CB46; /* Saffron */
    --danger: #fff0ef;
    --white: #fff;
    --gold: #CCA000; /* Satin Sheen Gold */
    --shadow: 0 12px 30px rgba(0, 8, 20, .09);
    
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

.legacy-landing * { box-sizing: border-box; }
.legacy-landing a { color: var(--brand); }
.legacy-landing img { max-width: 100%; height: auto; border-radius: 8px; }

/* In-Page Navigation */
.legacy-landing-nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 0;
}
.legacy-landing-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legacy-landing-nav .brand { font-weight: 800; color: var(--brand2); }
.legacy-landing-nav nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.legacy-landing-nav nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.legacy-landing-nav nav a:hover { color: var(--gold); }

/* Layout & Typography */
.legacy-landing .wrap { width: min(1160px, calc(100% - 32px)); margin: auto; }
.legacy-landing h1, .legacy-landing h2, .legacy-landing h3 { color: var(--brand2); font-weight: 700; }
.legacy-landing h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 10px 0 18px; }
.legacy-landing h2 { font-size: 34px; line-height: 1.2; margin: 0 0 22px; }
.legacy-landing h3 { font-size: 22px; margin: 26px 0 10px; }
.legacy-landing .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--gold); }
.legacy-landing .lead { font-size: 20px; color: var(--muted); max-width: 720px; }

/* Hero Section */
.legacy-landing .hero { background: linear-gradient(135deg, #f4f7f8, #fff 55%, #eef3f5); padding: 64px 0; }
.legacy-landing .hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.legacy-landing .hero-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }

/* Buttons */
.legacy-landing .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.legacy-landing .btn { display: inline-block; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 1px solid var(--brand); transition: all 0.3s ease; }
.legacy-landing .btn.primary { background: var(--brand); color: #fff; }
.legacy-landing .btn.secondary { background: #fff; color: var(--brand); }
.legacy-landing .btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Data Grids */
.legacy-landing .quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.legacy-landing .quick div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; border-left: 4px solid var(--gold); }
.legacy-landing .quick strong { display: block; font-size: 20px; color: var(--brand2); }
.legacy-landing .quick span { font-size: 13px; color: var(--muted); }

/* Content Sections */
.legacy-landing section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.legacy-landing .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.legacy-landing .card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.legacy-landing .card.soft { background: var(--soft); }
.legacy-landing .diagram { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.legacy-landing .diagram figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 2px; }

/* Tables */
.legacy-landing .table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.legacy-landing table { width: 100%; border-collapse: collapse; min-width: 680px; }
.legacy-landing th, .legacy-landing td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legacy-landing th { background: var(--brand); color: #fff; font-size: 14px; }
.legacy-landing tr:nth-child(even) { background-color: var(--soft); }

/* Alerts / Notices */
.legacy-landing .notice { border-left: 5px solid var(--gold); background: var(--warn); padding: 16px 18px; border-radius: 8px; margin: 18px 0; color: var(--ink); }
.legacy-landing .warning { border-left-color: #c9473c; background: var(--danger); }

/* Steps & Accordions */
.legacy-landing .steps { counter-reset: step; }
.legacy-landing .step { position: relative; padding: 0 0 24px 58px; }
.legacy-landing .step:before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.legacy-landing .accordion details { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; background: #fff; }
.legacy-landing .accordion summary { cursor: pointer; padding: 16px 18px; font-weight: 800; color: var(--brand2); }
.legacy-landing .accordion .content { padding: 0 18px 18px; }

/* Archive Gallery */
.legacy-landing .archive { display: grid; grid-template-columns: repeat(, 1fr); gap: 20px; }
.legacy-landing .page { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f4f4f4; }
.legacy-landing .page span { display: block; padding: 8px 12px; background: var(--brand2); font-size: 13px; color: #fff; }

/* Responsive */
@media(max-width:800px) {
    .legacy-landing .hero-grid, .legacy-landing .grid-2 { grid-template-columns: 1fr; }
    .legacy-landing .quick { grid-template-columns: repeat(2, 1fr); }
    .legacy-landing-nav nav { display: none; }
    .legacy-landing .archive { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ARCHIVE LINKS (PDF PAGES)
   ========================================================================== */
.legacy-landing .legacy-page-link {
    text-decoration: none; /* Elimina el subrayado nativo */
    display: block; /* Asegura que el enlace cubra toda la tarjeta */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border-radius: 12px;
}

/* Efecto de elevación al pasar el mouse */
.legacy-landing .legacy-page-link:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 25px rgba(0, 53, 102, 0.15); /* Sombra en Yale Blue */
}

/* Cambio de color en la etiqueta de texto inferior durante el hover */
.legacy-landing .legacy-page-link:hover .page span {
    background: var(--gold); /* Cambia de azul a dorado corporativo */
    color: var(--ink);
    transition: all 0.3s ease;
}

/******* Fin del css de Lading Pages********?

#primary {
margin: 7em 0 !important;
}

/* Bloquea que el mouse active los controles de YouTube */
.wp-block-cover iframe {
    pointer-events: none; 
    transform: scale(1.15); /* Hace un pequeño zoom para ocultar bordes negros y logos de las esquinas */
    transform-origin: center center;
}



/* ==========================================================================
   ESTILOS DEL DROPDOWN DE BÚSQUEDA
   ========================================================================== */
.legacy-search-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Ajustar según tu diseño de header */
}

/* Zoom y bloqueo de controles para el video de fondo de YouTube */
.fondo-youtube-zoom iframe {
    transform: scale(1.35) !important; /* Esto amplía el video un 35% para que los controles queden fuera de la pantalla */
    pointer-events: none !important; /* Esto evita que al pasar el ratón por encima el video se pause o muestre opciones */
}

.legacy-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

.legacy-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.legacy-result-item:hover {
    background: #f9f9f9;
}

.legacy-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 4px;
}

.legacy-item-info {
    display: flex;
    flex-direction: column;
}

.legacy-item-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--legacy-blue-dark);
}

#legacy-search-results {
  background-color: #f4efd6;
}

.legacy-item-sku {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

.legacy-item-price {
    font-weight: bold;
    color: var(--legacy-blue-dark, #0056b3);
    font-size: 13px;
    margin-top: 4px;
}

.legacy-item-price del {
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.legacy-loader, .legacy-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.wp-block-cover__inner-container.is-layout-flow.wp-container-core-cover-is-layout-0cc40994.wp-block-cover-is-layout-flow {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
}

.wp-block-cover__inner-container.is-layout-flow.wp-block-cover-is-layout-flow {
  position: absolute;
  right: 0;
  bottom: 0;
}

.wp-block-cover.alignfull.is-light.main-video-front.wp-duotone-unset-1 .wp-block-cover__inner-container.is-layout-flow.wp-block-cover-is-layout-flow {
  position: inherit !important;
}

/* ==========================================================================
   FIN ESTILOS DEL DROPDOWN DE BÚSQUEDA
   ========================================================================== */
.ast-above-header-wrap {
  /*background-color: var(--legacy-blue-dark);*/
  color: rgb(255, 255, 255);
  height: 48px;
  animation: 6s ease 0s infinite normal none running utilityBarShift;
  background: linear-gradient(90deg, rgb(31, 82, 131), rgb(24, 73, 121) 20%, rgb(26, 71, 117) 38%, rgb(18, 53, 87) 50%, rgb(124, 190, 244) 65%, rgb(29, 70, 115) 80%, rgb(2, 12, 23)) 0% 0% / 200% 100%;
  padding: 0px 5vw;
}

.site-header-below-section-right.site-header-section.ast-flex.ast-grid-right-section {
  display: none;
}

.ast-below-header-bar.ast-below-header.site-header-focus-item {
  background-color: var(--legacy-gold-light);
}

.ast-archive-entry-banner {
  background-color: var(--legacy-bg-light);
}

.ast-above-header-bar{
    height: var(--legacy-text-height-32);
}

.ast-mobile-header-wrap .ast-above-header-bar, .ast-above-header-bar .site-above-header-wrap {
  height: var(--legacy-text-height-32) !important;
}

/* ==========================================================================
   GALERÍA WOOCOMMERCE PREMIUM (CARRUSEL IZQUIERDO Y FLECHAS) V2
   ========================================================================== */

/* 1. Contenedor Principal */
.woocommerce-product-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    position: relative;
}

/* 2. Columna de Miniaturas (MÁS GRANDES: 25%) */
.woocommerce-product-gallery .flex-control-thumbs {
    order: 1;
    width: 25%; /* Aumentado para que las miniaturas se vean mejor */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border: 2px solid var(--legacy-blue-dark);
}

/* 3. Imagen Principal (Ajustada al 75%) */
.woocommerce-product-gallery .flex-viewport {
    order: 2;
    width: 75%; /* Ajustado para darle más espacio a la columna de miniaturas */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* 4. Estilizar y Posicionar las Flechas (ÍCONOS REALES, SIN TEXTO) */
.woocommerce-product-gallery .flex-direction-nav {
    position: absolute;
    top: 50%;
    right: 0;
    width: 75%; /* Debe coincidir con el ancho de la imagen principal */
    transform: translateY(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
    pointer-events: none; /* Permite hacer clic a través del contenedor invisible */
    z-index: 9;
    display: flex;
    justify-content: space-between;
}

.woocommerce-product-gallery .flex-direction-nav a {
    pointer-events: auto; /* Reactiva el clic en el botón */
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0; /* Ocultas hasta que pasas el ratón */
    transition: all 0.3s ease;
    
    /* El truco maestro: Ocultar el texto "Next/Prev" nativo */
    font-size: 0 !important; 
    color: transparent !important;
}

/* Inyectar las flechas vectoriales nativas */
.woocommerce-product-gallery .flex-direction-nav a::before {
    font-size: 20px;
    color: var(--legacy-blue-dark);
    display: block;
    transition: color 0.3s ease;
}

/* Icono Flecha Izquierda */
.woocommerce-product-gallery .flex-direction-nav a.flex-prev::before {
    content: '\276E'; 
}

/* Icono Flecha Derecha */
.woocommerce-product-gallery .flex-direction-nav a.flex-next::before {
    content: '\276F'; 
}

/* Efectos Hover */
.woocommerce-product-gallery:hover .flex-direction-nav a {
    opacity: 1; /* Aparecen al poner el cursor sobre la galería */
}

.woocommerce-product-gallery .flex-direction-nav a:hover {
    background-color: var(--legacy-blue-dark);
}

.woocommerce-product-gallery .flex-direction-nav a:hover::before {
    color: #ffffff; /* La flecha cambia a blanco */
}

.woocommerce-js div.product div.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
  width: 24%;
  width: calc(50% - .75em);
  margin-right: 1em;
  margin-bottom: 1em;
}

.woocommerce-product-gallery__image.flex-active-slide {
  width: 500px !important;
  height: 600px !important;
}

.woocommerce-product-gallery__image {
  width: 500px;
  height: 600px;
}

.woocommerce-js ul.products li.product a img{
    border: 2px solid #b9a47c;
}

.woocommerce-js ul.products li.product a.ast-loop-product__link {
  height: 80px;
}
/* ==========================================================================
   LEGACY CABLES: WOOCOMMERCE BLOCK "FILTER MATING" UI REDESIGN
   ========================================================================== */

/* 1. Contenedor Principal (La Tarjeta Blanca) */
.wc-block-product-categories.is-list {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 6px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* 2. Inyección del Título "Cable Families" */
.wc-block-product-categories.is-list::before {
    content: "Cable Families";
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: normal;
}

/* 3. Las filas de categorías (Los Items) */
ul.wc-block-product-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

li.wc-block-product-categories-list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 12px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
    background-color: transparent !important;
}

/* 4. El Texto del Enlace (Ej. "SpO2 Adapter Cables") */
li.wc-block-product-categories-list-item a {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    flex-grow: 1 !important;
    box-shadow: none !important; /* Limpia subrayados nativos de Astra */
}

/* 5. El Contador (Estilos base) */
.wc-block-product-categories-list-item-count {
    color: #9ca3af !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-left: 12px !important;
    white-space: nowrap !important; /* Fuerza a que (1) se mantenga siempre unido */
    flex-shrink: 0 !important; /* Evita que el texto largo aplaste el número */
}

/* Ocultar el texto redundante para lectores de pantalla que rompe el diseño */
.wc-block-product-categories-list-item-count .screen-reader-text {
    display: none !important;
}

/* 7. Estado Hover y Activo (El fondo azul claro del diseño) */
li.wc-block-product-categories-list-item:hover {
    background-color: #eff6ff !important;
}

li.wc-block-product-categories-list-item:hover a {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

li.wc-block-product-categories-list-item:hover .wc-block-product-categories-list-item-count {
    color: #60a5fa !important; 
}

/* ==========================================================================
   LEGACY CABLES: MIGRATION TABLES (STRICT ALIGNMENT FOR MULTIPLE TABLES)
   ========================================================================== */

/* 1. Control del contenedor: Layout fijo para dominar la cuadrícula */
.woocommerce-Tabs-panel--description table,
table.shop_attributes {
    table-layout: fixed !important; 
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 24px !important;
}

/* 2. Columna 1 (Etiquetas/Títulos) */
.woocommerce-Tabs-panel--description table tr th:first-child,
table.shop_attributes tr th:first-child {
    width: 35% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
    background-color: #F0CB4624 !important;
    font-weight: 600 !important;
    color: #13385b !important;
    border: 1px solid #e5e7eb !important;
}

/* 3. Columna 2 (Valores/Contenido) */
.woocommerce-Tabs-panel--description table td,
table.shop_attributes td {
    width: 65% !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
    word-wrap: break-word !important; 
    overflow-wrap: break-word !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb !important;
    
    /* ESTE ES EL BLINDAJE CONTRA TU REGLA GLOBAL */
    background-color: #ffffff !important; 
}


/* ==========================================================================
   GALERÍA ÓRBITA ESTÁTICA - FLUIDA CON EFECTO HOVER ELEGANTE
   ========================================================================== */

/* 1. Contenedor Principal (Adaptable) */
.legacy-orbita {
    position: relative;
    width: 100%;
    max-width: clamp(300px, 90vw, 600px); 
    aspect-ratio: 1 / 1;
    margin: clamp(30px, 8vw, 60px) auto !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
    
    /* El radio se ajusta según el tamaño de pantalla */
    --radio-orbita: clamp(125px, 35vw, 240px); 
}

/* 2. Cajas Contenedoras de los Satélites (7 Logos) */
.legacy-orbita .wp-block-image {
    position: absolute !important;
    margin: 0 !important;
    width: clamp(60px, 15vw, 120px) !important;  
    height: clamp(60px, 15vw, 120px) !important;
    flex: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 2;
}

/* 3. Logo Central (1er elemento de la galería) */
.legacy-orbita .wp-block-image:nth-child(1) {
    width: clamp(120px, 30vw, 200px) !important;  
    height: clamp(120px, 30vw, 200px) !important;
    z-index: 10;
}

/* 4. Posicionamiento en Órbita Estática (7 Satélites = ~51.4°) */
.legacy-orbita .wp-block-image:nth-child(2) { transform: rotate(0deg) translate(var(--radio-orbita)) rotate(0deg); }
.legacy-orbita .wp-block-image:nth-child(3) { transform: rotate(51.4deg) translate(var(--radio-orbita)) rotate(-51.4deg); }
.legacy-orbita .wp-block-image:nth-child(4) { transform: rotate(102.8deg) translate(var(--radio-orbita)) rotate(-102.8deg); }
.legacy-orbita .wp-block-image:nth-child(5) { transform: rotate(154.2deg) translate(var(--radio-orbita)) rotate(-154.2deg); }
.legacy-orbita .wp-block-image:nth-child(6) { transform: rotate(205.7deg) translate(var(--radio-orbita)) rotate(-205.7deg); }
.legacy-orbita .wp-block-image:nth-child(7) { transform: rotate(257.1deg) translate(var(--radio-orbita)) rotate(-257.1deg); }
.legacy-orbita .wp-block-image:nth-child(8) { transform: rotate(308.5deg) translate(var(--radio-orbita)) rotate(-308.5deg); }

/* 5. Estado Base de las Imágenes (Sin animaciones continuas) */
.legacy-orbita .wp-block-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.08));
    cursor: pointer;
    
    /* Transición elástica suave para el Hover */
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.35s ease;
}

/* 6. EFECTO HOVER SUTIL Y ELEGANTE EN LOS LOGOS */

/* Eleva el índice Z del contenedor sobrevolado */
.legacy-orbita .wp-block-image:hover {
    z-index: 20;
}

/* Reacción del logo al pasar el cursor (Satélites) */
.legacy-orbita .wp-block-image:not(:nth-child(1)):hover img {
    transform: scale(1.22); /* Ligero aumento orgánico */
    filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.2)) brightness(1.06); /* Da volumen y ligera luz */
}

/* Reacción sutil para el Logo Central */
.legacy-orbita .wp-block-image:nth-child(1):hover img {
    transform: scale(1.05);
    filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.15));
}

.logos-medical {
  height: 500px;
}

/* 7. Ajuste para Móviles Pequeños */
@media (max-width: 380px) {
    .legacy-orbita {
        --radio-orbita: 105px !important;
    }
}


/* ==========================================================================
   MEJORA MODERNIZADA: GRID DE BESTSELLERS (LEGACY CABLES)
   ========================================================================== */

/* 1. ESTRUCTURA BASE DE LA TARJETA (CARD) */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid rgba(0, 53, 102, 0.12) !important; /* Borde suave en Yale Blue */
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 15px rgba(0, 8, 20, 0.03) !important;
}

/* Elevación y brillo al pasar el mouse */
.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    border-color: #CCA000 !important; /* Satin Sheen Gold */
    box-shadow: 0 14px 28px rgba(0, 29, 61, 0.10) !important; /* Sombra Oxford Blue */
}

/* 2. CONTENEDOR Y ZOOM DE LA IMAGEN */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    border: none !important; /* Elimina el borde antiguo encajonado */
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8fafc !important; /* Fondo neutro ligero para transparencias */
    overflow: hidden !important;
    position: relative !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    border-radius: 0 !important;
    transition: transform 0.4s ease !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img {
    transform: scale(1.05) !important; /* Zoom sutil a la imagen */
}

/* 3. RESUMEN Y CONTENIDO */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 20px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: center !important;
}

/* 4. REORDENAMIENTO Y TIPOGRAFÍA */

/* Categoría (Tag superior) */
.woocommerce ul.products li.product .ast-woo-product-category {
    order: 1 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #003566 !important; /* Yale Blue */
    margin-bottom: 6px !important;
    display: block !important;
    opacity: 0.85;
}

/* Título del producto */
.woocommerce ul.products li.product .ast-loop-product__link {
    order: 2 !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #001D3D !important; /* Oxford Blue */
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    min-height: 2.8em !important; /* Alineación simétrica */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Máximo 2 líneas */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #CCA000 !important; /* Satin Sheen Gold */
}

/* Precio */
.woocommerce ul.products li.product .price {
    order: 3 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #000814 !important; /* Rich Black */
    margin-bottom: 18px !important;
    display: block !important;
}

/* 5. BOTÓN DE ACCIÓN (CTA) */
.woocommerce ul.products li.product .button.add_to_cart_button {
    order: 4 !important;
    background-color: #003566 !important; /* Yale Blue */
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #003566 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    margin-top: auto !important; /* Empuja el botón al fondo siempre */
}

.woocommerce ul.products li.product .button.add_to_cart_button:hover {
    background-color: #000814 !important; /* Rich Black */
    border-color: #000814 !important;
    color: #F0CB46 !important; /* Texto Saffron */
    box-shadow: 0 4px 12px rgba(0, 8, 20, 0.25) !important;
}




/* 4. Protección de Responsividad (Smartphones) */
@media (max-width: 768px) {
    .woocommerce-Tabs-panel--description table th,
    table.shop_attributes th {
        width: 45% !important;
    }
    .woocommerce-Tabs-panel--description table td,
    table.shop_attributes td {
        width: 55% !important;
    }
}



/* 5. DISEÑO MÓVIL (Responsivo) */
@media (max-width: 768px) {
    .woocommerce-product-gallery {
        flex-direction: column;
    }
    .woocommerce-product-gallery .flex-control-thumbs,
    .woocommerce-product-gallery .flex-viewport,
    .woocommerce-product-gallery .flex-direction-nav {
        width: 100%;
        order: unset;
    }
    .woocommerce-product-gallery .flex-control-thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    .woocommerce-product-gallery .flex-control-thumbs li {
        width: calc(25% - 5px);
        margin-bottom: 0;
    }
}