/*
Theme Name: Payano Child 11.10.20
Template: astra
Version: 11.10.20
Description: Child theme de Payano Heavy Parts — repuestos maquinaria pesada RD
Author: PHByteStore
*/

/* Logo consistente en todo el sitio; la altura automática evita deformación. */
#masthead .custom-logo {
    width:330px !important;
    max-width:330px !important;
    height:auto !important;
}
#masthead .custom-logo-link {
    max-width:none !important;
    background:#fff !important;
    padding:6px 10px !important;
    border-radius:5px !important;
    box-shadow:none !important;
}
@media(max-width:921px) {
    #masthead .custom-logo {
        width:220px !important;
        max-width:220px !important;
    }
}
@media(max-width:340px) {
    #masthead .custom-logo {
        width:185px !important;
        max-width:185px !important;
    }
}

/* Historial del buscador: panel flotante aislado de los estilos globales. */
.ph-search-form { overflow:visible !important; }
.ph-srch-hist-panel {
    position:absolute !important;
    top:calc(100% + 8px);
    left:0;
    right:0;
    z-index:1005;
    box-sizing:border-box;
    padding:12px;
    border:1px solid rgba(0,54,132,.18);
    border-radius:10px;
    background:#fff;
    color:#1a1a1a;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.ph-srch-hist-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:9px;
}
.ph-srch-hist-label { color:#44566c; font-size:12px; font-weight:700; }
#phSearchHist .ph-srch-hist-clear,
#phSearchHist .ph-srch-hist-rm {
    appearance:none !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    margin:0 !important;
    border:0 !important;
    box-shadow:none !important;
    font-family:inherit !important;
    line-height:1 !important;
    cursor:pointer;
}
#phSearchHist .ph-srch-hist-clear {
    min-height:28px !important;
    padding:5px 8px !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#b44717 !important;
    font-size:12px !important;
    font-weight:700;
}
.ph-srch-hist-clear:hover,
.ph-srch-hist-clear:focus-visible { background:#fff1e9 !important; }
.ph-srch-hist-chips { display:flex; flex-wrap:wrap; gap:7px; }
.ph-srch-hist-chip {
    display:inline-flex;
    align-items:center;
    gap:4px;
    max-width:100%;
    padding:4px 4px 4px 10px;
    border:1px solid #d9e3ef;
    border-radius:999px;
    background:#f5f8fc;
    color:#003684;
}
.ph-srch-hist-chip-txt {
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    cursor:pointer;
}
#phSearchHist .ph-srch-hist-rm {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:28px !important;
    min-width:28px !important;
    height:28px !important;
    min-height:28px !important;
    padding:0 !important;
    border-radius:50% !important;
    background:transparent !important;
    color:#6b7785 !important;
    font-size:13px !important;
}
.ph-srch-hist-rm:hover,
.ph-srch-hist-rm:focus-visible { background:#ffe7dc !important; color:#b33a09 !important; }
.ph-srch-hist-page {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin:12px 0 20px;
}
.ph-srch-hist-page-label { color:#52657d; font-size:13px; font-weight:700; }
.ph-srch-hist-page-chip {
    padding:6px 11px;
    border:1px solid #d9e3ef;
    border-radius:999px;
    background:#f5f8fc;
    color:#003684 !important;
    font-size:13px;
    text-decoration:none !important;
}
@media(max-width:600px) {
    .ph-srch-hist-panel { padding:10px; }
    .ph-srch-hist-chip-txt { max-width:160px; }
}

/* ========================
   VARIABLES DE MARCA
   ======================== */
:root {
    --payano-azul:    #003684;
    --payano-naranja: #F36D21;
    --payano-naranja-accion: #A83F08;
    --payano-verde:   #03832C;
    --payano-dorado:  #FFA300;
    --payano-blanco:  #FFFFFF;
    --payano-gris:    #F5F5F5;
    --payano-texto:   #1A1A1A;
    --payano-font:    'Inter', system-ui, sans-serif;
}

/* ========================
   TIPOGRAFÍA BASE
   ======================== */
body,
.ast-body-font-family,
p, span, li, td, th, label, input, select, textarea, button {
    font-family: var(--payano-font) !important;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.ast-entry-title,
.entry-title,
.page-title,
.woocommerce-loop-product__title,
.product_title {
    font-family: var(--payano-font) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ========================
   HEADER
   ======================== */
#masthead,
.site-header,
.ast-desktop-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-primary-header,
#ast-mobile-header,
.ast-mobile-header-wrap,
.ast-mobile-header-content,
.ast-mobile-header-bar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,54,132,.10) !important;
}
.ast-site-identity .site-title a,
.ast-site-identity .site-title a:hover {
    color: var(--payano-azul) !important;
}

/* Mantener el logo sobre fondo blanco en todas las paginas y breakpoints. */
.ast-site-identity .custom-logo-link {
    background: #ffffff !important;
    padding: 6px 10px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
}
.ast-site-identity .custom-logo-link img,
.site-branding img.custom-logo {
    max-height: 48px;
    width: auto;
    display: block;
}
/* Ocultar texto del sitio (el logo ya incluye el nombre) */
.ast-site-identity .site-title,
.ast-site-identity .site-description {
    display: none !important;
}
.main-header-menu .menu-item > a {
    color: var(--payano-azul) !important;
}
.main-header-menu .menu-item > a:hover {
    color: var(--payano-naranja) !important;
}
/* Forzar header correcto por breakpoint — anula ast-header-break-point mal aplicado por JS */
@media (min-width: 922px) {
    #ast-desktop-header { display: block !important; }
    #ast-mobile-header  { display: none  !important; }
}
@media (max-width: 921px) {
    #ast-desktop-header { display: none  !important; }
    #ast-mobile-header  { display: block !important; }
}

/* Navegacion principal: una sola fila, jerarquia clara y CTA visible.
   Blog y legales permanecen accesibles desde el footer. */
.main-header-menu > .menu-item:has(> a[href*="/blog/"]),
.main-header-menu > .menu-item:has(> a[href*="/politica-de-privacidad/"]),
.main-header-menu > .menu-item:has(> a[href*="/terminos-y-condiciones/"]) {
    display: none !important;
}

@media (min-width: 922px) {
    #ast-desktop-header .ast-builder-grid-row {
        grid-template-columns: minmax(190px, auto) minmax(0, 1fr) !important;
        align-items: center;
        column-gap: 24px;
    }
    #ast-desktop-header .site-header-primary-section-right,
    #ast-desktop-header .ast-builder-menu-1 {
        min-width: 0;
    }
    #ast-desktop-header .main-header-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
    }
    #ast-desktop-header .main-header-menu > .menu-item > a {
        min-height: 48px;
        padding: 0 9px !important;
        font-size: 14px !important;
        font-weight: 650;
        line-height: 1.2;
        white-space: nowrap;
        border-radius: 6px;
        transition: color .2s ease, background-color .2s ease, transform .2s ease;
    }
    #ast-desktop-header .main-header-menu > .menu-item > a:hover,
    #ast-desktop-header .main-header-menu > .current-menu-item:not(:has(> a[href*="/cotizacion/"])) > a {
        background: rgba(0,54,132,.08);
    }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href="https://payanohp.com/"]) { order: 1; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/shop/"]) { order: 2; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/categorias/"]) { order: 3; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/marcas/"]) { order: 4; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/sobre-nosotros/"]) { order: 5; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/contacto/"]) { order: 6; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/favoritos/"]) { order: 7; }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/cotizacion/"]) {
        order: 8;
        margin-left: 6px;
    }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/cotizacion/"]) > a {
        min-height: 42px;
        padding: 0 16px !important;
        background: var(--payano-naranja) !important;
        color: #fff !important;
        box-shadow: 0 5px 14px rgba(243,109,33,.24);
    }
    #ast-desktop-header .main-header-menu > .menu-item:has(> a[href*="/cotizacion/"]) > a:hover {
        background: #d95d17 !important;
        color: #fff !important;
        transform: translateY(-1px);
    }
}

/* Header responsive: columnas y enlaces compactos para zoom o pantallas medianas. */
@media (min-width: 922px) and (max-width: 1240px) {
    #ast-desktop-header .custom-logo { width: 210px !important; max-width: 210px !important; }
    #ast-desktop-header .ast-builder-grid-row {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }
    #ast-desktop-header .main-header-menu > .menu-item > a {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 13px !important;
    }
}

/* ========================
   BOTONES PRIMARIOS
   ======================== */
.ast-btn,
.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    background-color: var(--payano-naranja-accion) !important;
    border-color: var(--payano-naranja-accion) !important;
    color: var(--payano-blanco) !important;
    border-radius: 4px;
}
.ast-btn:hover,
.button:hover,
.wp-block-button__link:hover {
    background-color: #843005 !important;
    border-color: #843005 !important;
}

/* ========================
   BOTÓN WHATSAPP (CATÁLOGO)
   ======================== */
.payano-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--payano-verde) !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .2s;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    line-height: 1.25;
    text-align: left;
}
.payano-whatsapp-btn:hover {
    background-color: #026823 !important;
    color: #fff !important;
    text-decoration: none;
}
.payano-whatsapp-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex: 0 0 auto;
}
.ph-wa-btn-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ph-wa-btn-copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}
.ph-wa-btn-copy small {
    color: rgba(255,255,255,.88);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

/* Ocultar todos los botones de carrito/compra — solo queda el botón WhatsApp */
.single_add_to_cart_button,
.add_to_cart_button,
.woocommerce a.button.add_to_cart_button,
.woocommerce input.button.single_add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_external,
.woocommerce ul.products li.product .ast-on-card-button,
.ast-on-card-button,
a.ast-select-options-trigger {
    display: none !important;
}

/* ========================
   WOOCOMMERCE — TARJETAS DE PRODUCTO
   ======================== */
.woocommerce ul.products li.product .sku-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}
.woocommerce ul.products li.product .price {
    color: var(--payano-azul) !important;
    font-weight: 700;
}
.woocommerce .products .product img {
    border-radius: 4px;
}
.ph-shop-quote-guide {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.3fr);
    gap: 18px;
    align-items: center;
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid rgba(0,54,132,.14);
    border-left: 5px solid var(--payano-naranja);
    border-radius: 8px;
    background: #f7fbff;
    box-shadow: 0 8px 22px rgba(0,54,132,.07);
}
.ph-shop-quote-kicker {
    display: inline-block;
    margin: 0 0 5px;
    color: var(--payano-naranja);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ph-shop-quote-guide h2 {
    margin: 0;
    color: var(--payano-azul);
    font-size: 20px;
    line-height: 1.2;
}
.ph-shop-quote-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ph-shop-quote-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff;
    color: var(--payano-azul);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}
.ph-shop-quote-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--payano-naranja);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    flex: 0 0 auto;
}
@media (max-width: 760px) {
    .ph-shop-quote-guide {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .ph-shop-quote-list {
        grid-template-columns: 1fr;
    }
    .ph-shop-quote-guide h2 {
        font-size: 18px;
    }
}

/* ========================
   BOTÓN FLOTANTE WHATSAPP
   ======================== */
#payano-float-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--payano-verde);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.28);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
#payano-float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
#payano-float-wa svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

/* ========================
   FOOTER GLOBAL PAYANO
   Reemplaza el footer de Astra en shop, producto,
   sobre nosotros y demás páginas sin template propio.
   ======================== */
.ph-footer-global {
    background: var(--payano-azul);
    color: #fff;
    padding: 56px 0 0;
}
.ph-fg-container { max-width:1200px; margin:0 auto; padding:0 24px; }
.ph-footer-logo-card{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;padding:8px 10px;margin:0 0 18px;box-shadow:0 8px 22px rgba(0,0,0,.16)}
.ph-footer-logo-card img{display:block;width:220px;max-width:100%;height:auto}
.ph-fg-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media(max-width:700px) { .ph-fg-grid { grid-template-columns:1fr; } }

.ph-fg-grid h4,
.ph-fg-grid .ph-footer-heading {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--payano-naranja);
    margin: 0 0 16px;
}
.ph-fg-grid p {
    font-size: 14px; color: rgba(255,255,255,.75);
    line-height: 1.7; margin: 0 0 8px;
}
.ph-fg-grid a {
    font-size: 14px; color: rgba(255,255,255,.75) !important;
    text-decoration: none; display: block; margin-bottom: 8px; line-height: 1.7;
}
.ph-fg-grid a:hover { color: var(--payano-naranja) !important; }
.ph-fg-grid ul { list-style: none; margin: 0; padding: 0; }

.ph-fg-contact-item {
    display: flex; gap: 8px; align-items: flex-start;
    margin-bottom: 10px; font-size: 14px; color: rgba(255,255,255,.75);
}
.ph-fg-contact-item svg { width:16px; height:16px; fill:var(--payano-naranja); flex-shrink:0; margin-top:3px; }
.ph-fg-contact-item span { color: rgba(255,255,255,.75); }

.ph-fg-social { display: flex; gap: 10px; margin-top: 14px; }
.ph-fg-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; text-decoration: none !important;
    margin-bottom: 0;
}
.ph-fg-social a:hover { background: var(--payano-naranja) !important; }
.ph-fg-social svg { width: 16px; height: 16px; fill: #fff; }

.ph-fg-copyright {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 0; text-align: center;
    font-size: 13px; color: rgba(255,255,255,.5);
}
.ph-fg-copyright a { color: var(--payano-naranja) !important; display: inline !important; margin: 0; }

/* ========================
   WOOCOMMERCE — MÓVIL
   ======================== */
@media (max-width: 768px) {
    /* Barra resultado + ordenar: apilar en columna */
    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
        margin: 0 0 12px !important;
    }
    .woocommerce .woocommerce-result-count,
    .woocommerce-page .woocommerce-result-count {
        float: none !important;
        margin: 0 0 8px !important;
    }
    /* Productos: 2 columnas en tablet */
    .woocommerce ul.products.columns-4,
    .woocommerce ul.products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    /* Producto individual: botón WA full-width */
    .woocommerce div.product form.cart { display: block; }
    /* Paginación centrada */
    .woocommerce nav.woocommerce-pagination { text-align: center; }
}

/* Logo tamaño */
.custom-logo-link .custom-logo { width: 280px !important; max-width: 280px !important; }

/* ========================
   PRODUCTO INDIVIDUAL — FICHA COMPLETA
   ======================== */
.ph-sp-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.ph-sp-badge--stock { background: #e8f7ee; color: #03832C; border: 1.5px solid #b2e0c2; }
.ph-sp-badge--order { background: #fff7e6; color: #cc7700; border: 1.5px solid #ffd080; }

.ph-sp-sku {
    display: flex; align-items: center; gap: 10px; margin: 8px 0 16px;
}
.ph-sp-sku-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #888;
}
.ph-sp-sku-val {
    font-family: 'Courier New', monospace; font-size: 15px; font-weight: 700;
    color: var(--payano-naranja); background: #fff3eb;
    padding: 4px 10px; border-radius: 6px; letter-spacing: .05em;
    user-select: all; cursor: pointer;
}

.ph-sp-compat {
    background: #f5f8fc; border-radius: 10px;
    padding: 14px 16px; margin: 12px 0;
    border-left: 3px solid var(--payano-azul);
}
.ph-sp-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--payano-azul); margin-bottom: 10px;
}
.ph-sp-models { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-sp-model-tag {
    display: inline-block;
    background: #fff; border: 1.5px solid #c8d8e8;
    color: var(--payano-azul); font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    font-family: 'Courier New', monospace;
}

.ph-sp-specs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px; margin: 14px 0;
}
.ph-sp-spec {
    background: #f5f8fc; border-radius: 8px; padding: 10px 14px;
    display: flex; flex-direction: column; gap: 3px;
}
.ph-sp-spec-lbl {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #888;
}
.ph-sp-spec-val {
    font-size: 14px; font-weight: 700; color: var(--payano-azul);
}

.ph-sp-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--payano-verde) !important;
    color: #fff !important; text-decoration: none !important;
    font-size: 17px; font-weight: 800;
    padding: 16px 24px; border-radius: 10px;
    margin: 18px 0 8px; width: 100%; box-sizing: border-box;
    transition: background .2s, transform .1s;
    box-shadow: 0 4px 16px rgba(3,131,44,.28);
}
.ph-sp-wa-btn:hover {
    background: #026823 !important; color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(3,131,44,.36);
}
.ph-sp-wa-hint {
    text-align: center; font-size: 12px; color: #888;
    margin: 0 0 14px; font-style: italic;
}

/* Imagen del producto — mejorar display */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e8ecf0;
}
.woocommerce div.product div.images {
    margin-bottom: 0;
}
/* Ocultar el SKU nativo de WC (usamos el nuestro) */
.woocommerce div.product .product_meta .sku_wrapper { display: none; }

@media (max-width: 640px) {
    .ph-sp-wa-btn { font-size: 15px; padding: 14px 20px; }
    .ph-sp-specs { grid-template-columns: 1fr 1fr; }
}

/* ========================
   FORMULARIO SOLICITAR REPUESTO
   ======================== */
.ph-solicitud-section {
    background: linear-gradient(135deg, #003684 0%, #002460 100%);
    padding: 64px 0;
}
.ph-solicitud-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}
.ph-solicitud-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
}
.ph-solicitud-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: rgba(243,109,33,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ph-solicitud-icon svg { width: 26px; height: 26px; fill: var(--payano-naranja); }
.ph-solicitud-title {
    font-size: clamp(20px,4vw,28px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}
.ph-solicitud-sub {
    font-size: 15px;
    color: rgba(255,255,255,.75);
    margin: 0;
    line-height: 1.6;
}

/* Form card */
.ph-solicitud-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
}
.ph-sf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .ph-sf-row { grid-template-columns: 1fr; } }

.ph-sf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ph-sf-row .ph-sf-group { margin-bottom: 0; }

.ph-sf-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #555;
}
.ph-sf-req { color: var(--payano-naranja); }
.ph-sf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #52657d; }

.ph-sf-input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1.5px solid #d8dde5;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    font-family: var(--payano-font) !important;
    color: var(--payano-texto);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
}
.ph-sf-input:focus {
    border-color: var(--payano-azul);
    box-shadow: 0 0 0 3px rgba(0,54,132,.12);
}
.ph-sf-mono { font-family: 'Courier New', monospace !important; letter-spacing: .04em; }
.ph-sf-textarea { resize: vertical; min-height: 80px; }

/* Divisor "o" */
.ph-sf-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 4px 0 20px;
    color: #52657d; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.ph-sf-divider::before, .ph-sf-divider::after {
    content: ''; flex: 1; height: 1px; background: #e8e8e8;
}

/* Upload area */
.ph-sf-upload {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    border: 2px dashed #d0d8e4;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: 14px;
    color: #666;
    background: #fafbfc;
}
.ph-sf-upload:hover, .ph-sf-upload--chosen {
    border-color: var(--payano-azul);
    background: #f0f5ff;
    color: var(--payano-azul);
}
.ph-sf-upload svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.ph-sf-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.ph-sf-upload:focus-within {
    border-color: var(--payano-azul);
    box-shadow: 0 0 0 3px rgba(0,54,132,.16);
}

/* Submit */
.ph-sf-actions { margin-top: 8px; }
.ph-solicitud-form .ph-sf-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    background: #A83F08 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 17px; font-weight: 800;
    padding: 16px 24px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    box-shadow: 0 4px 16px rgba(243,109,33,.3);
    font-family: var(--payano-font) !important;
}
.ph-sf-submit svg { width: 20px; height: 20px; fill: #fff; }
.ph-solicitud-form .ph-sf-submit:hover { background: #843005 !important; transform: translateY(-1px); }
.ph-solicitud-form .ph-sf-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.ph-sf-privacy { font-size: 12px; color: #52657d; text-align: center; margin: 10px 0 0; }
.ph-sf-consent { display:flex; align-items:flex-start; gap:10px; min-height:44px; margin:4px 0 16px; color:#40546a; font-size:14px; line-height:1.45; cursor:pointer; }
.ph-sf-consent input { width:22px; height:22px; margin:0; flex:0 0 auto; accent-color:#A83F08; cursor:pointer; }
.ph-sf-consent:focus-within { color:#003684; }

/* ========================
   CONTRASTE GLOBAL 11.10.1
   Mantiene el naranja de marca como acento y usa tonos accesibles cuando
   el color comunica texto, acciones o enlaces.
   ======================== */
.ph-cat-hero-badge,
.ph-mb-hero-badge,
.ph-ct-hero-badge,
.ph-sn-badge,
.ph-mb-btn,
.ph-ct-form-box .ph-ct-form-submit,
.ph-sn-btn-cat,
.ph-404-btn-secondary {
    background: var(--payano-naranja-accion) !important;
    border-color: var(--payano-naranja-accion) !important;
    color: #fff !important;
}
.ph-cat-count,
.ph-eyebrow,
.ph-mini-link,
.ph-intent-row a,
.ph-featured-sku,
.ph-mb-eyebrow,
.ph-mb-mini-link,
.ph-mb-featured-sku {
    color: var(--payano-naranja-accion) !important;
}
.ph-ct-map-link,
.ph-ct-map-link:hover {
    color: #003684 !important;
}
.ph-cat-cta p,
.ph-mb-equip-sub,
.ph-mb-equip-type,
.ph-ct-card > .ph-ct-card-note,
.ph-ct-form-box .ph-ct-form-note,
.ph-sn-marcas-note,
.ph-mb-legal-note {
    color: #52657d !important;
}
.ph-mb-brand-tag { color: #fff !important; }
.ph-mb-brand-cat .ph-mb-brand-tag { color: #1a1a1a !important; }
.ph-footer h4,
.ph-footer .ph-footer-heading,
.ph-fg-grid h4,
.ph-fg-grid .ph-footer-heading {
    color: #FFB27F !important;
}
.ph-footer p,
.ph-footer a,
.ph-footer-contact-item,
.ph-fg-grid p,
.ph-fg-grid a,
.ph-fg-contact-item,
.ph-fg-contact-item span {
    color: rgba(255,255,255,.75) !important;
}
.ph-footer-contact-item svg,
.ph-fg-contact-item svg {
    fill: #FFB27F !important;
}
.ph-copyright,
.ph-fg-copyright {
    color: rgba(255,255,255,.72) !important;
}
.ph-copyright a,
.ph-fg-copyright a {
    color: #FFB27F !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.ph-copyright span { color: #FFB27F !important; }
.ph-bb-menu {
    background: #003684 !important;
    color: #fff !important;
}
.ph-search-form .ph-search-btn,
body .ph-search-btn {
    background: var(--payano-naranja-accion) !important;
    border-color: var(--payano-naranja-accion) !important;
    color: #fff !important;
}
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.woocommerce ul.products li.product .ast-woo-product-category {
    color: #52657d !important;
}
.woocommerce ul.products li.product .ast-woo-product-category {
    opacity: 1 !important;
}
.ph-search-filter-label {
    color: rgba(255,255,255,.85) !important;
}
.woocommerce-breadcrumb a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.ph-shop-eyebrow,
.ph-shop-quote-kicker {
    color: var(--payano-naranja-accion) !important;
}
.payano-whatsapp-btn .ph-wa-btn-copy small {
    color: #fff !important;
}
.ph-single-sku-lbl,
.ph-single-section-title,
.ph-related-card-sku {
    color: #52657d !important;
}
.ph-single-wa {
    background: #026823 !important;
    border-color: #026823 !important;
    color: #fff !important;
}

/* Mensajes de respuesta */
.ph-sf-msg {
    margin-top: 16px; border-radius: 8px;
    padding: 14px 18px; font-size: 14px; font-weight: 600;
}
.ph-sf-msg--ok { background: #e8f7ee; color: #03832C; border: 1.5px solid #b2e0c2; }
.ph-sf-msg--error { background: #fef0f0; color: #c0392b; border: 1.5px solid #f5c6c6; }

.ph-sf-wa-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px;
    background: var(--payano-verde) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px; font-weight: 800;
    padding: 14px 20px;
    border-radius: 10px;
    transition: background .2s;
    box-shadow: 0 4px 14px rgba(3,131,44,.25);
}
.ph-sf-wa-cta:hover { background: #026823 !important; }

/* ========================
   VERIFICADOR DE COMPATIBILIDAD (producto individual)
   ======================== */
.ph-sp-model-tag--match {
    background: #e8f7ee !important;
    border-color: #03832C !important;
    color: #03832C !important;
    box-shadow: 0 0 0 2px rgba(3,131,44,.18);
}
.ph-sp-checker {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e0e8f0;
}
.ph-sp-checker-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--payano-azul); margin-bottom: 8px;
}
.ph-sp-checker-row {
    display: flex; gap: 8px;
}
.ph-sp-checker-input {
    flex: 1;
    border: 1.5px solid #d0d8e8;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 14px;
    font-family: var(--payano-font) !important;
    outline: none;
    transition: border-color .2s;
}
.ph-sp-checker-input:focus { border-color: var(--payano-azul); }
.ph-sp-checker-btn {
    background: var(--payano-azul) !important;
    color: #fff !important;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    font-family: var(--payano-font) !important;
}
.ph-sp-checker-btn:hover { background: #002260 !important; }
.ph-sp-checker-result {
    margin-top: 10px;
    font-size: 13px; font-weight: 600;
    border-radius: 7px; padding: 9px 13px;
    display: none;
}
.ph-sp-checker-result:not(:empty) { display: block; }
.ph-sp-checker-result--ok {
    background: #e8f7ee; color: #03832C; border: 1.5px solid #b2e0c2;
}
.ph-sp-checker-result--no {
    background: #fff7e6; color: #996600; border: 1.5px solid #ffd080;
}
.ph-sp-checker-result--no a {
    color: var(--payano-azul) !important; font-weight: 700; text-decoration: underline;
}
@media (max-width: 921px) {
    .custom-logo-link .custom-logo,
    #masthead .custom-logo { width: 180px !important; max-width: 180px !important; }
}

/* Contenido editorial de paginas por modelo: evita bloques extensos sin jerarquia. */
.ph-modelo-content {
    max-width: 920px;
    margin: 28px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    line-height: 1.75;
}
.ph-modelo-content > :first-child { margin-top: 0; }
.ph-modelo-content > :last-child { margin-bottom: 0; }
.ph-modelo-content h2,
.ph-modelo-content h3 { color: #003684; }
@media (max-width: 768px) {
    .ph-modelo-content { margin: 20px 16px; padding: 18px; }
}

/* El menu movil de Astra debe quedar por encima del hero de Inicio. */
@media (max-width: 921px) {
    #masthead,
    .site-header,
    #ast-mobile-header,
    .ast-mobile-header-wrap,
    .ast-mobile-header-wrap .ast-primary-header-bar,
    .ast-mobile-header-wrap .main-header-bar,
    .ast-mobile-header-wrap .ast-builder-grid-row,
    .ast-mobile-header-wrap .site-header-primary-section-left,
    .ast-mobile-header-wrap .site-header-primary-section-right,
    .ast-mobile-header-wrap .site-branding,
    .ast-mobile-header-wrap .custom-logo-link {
        background: #ffffff !important;
    }
    .ast-mobile-header-wrap,
    .ast-mobile-header-content {
        position: relative;
        z-index: 100010;
    }
    .ast-mobile-header-content {
        background: #fff;
        box-shadow: 0 10px 24px rgba(0,54,132,.14);
    }
    #ast-mobile-site-navigation.toggled {
        display: block !important;
        height: auto !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    #ast-mobile-site-navigation .main-header-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Garantia comercial: bloque legal legible y enlazable desde Inicio y producto. */
.ph-commercial-warranty {
    max-width: 960px;
    margin: 32px auto;
    padding: 28px;
    background: #f7f9fc;
    border: 1px solid #d8e1ec;
    border-top: 4px solid #F36D21;
    border-radius: 12px;
    color: #24354b;
    line-height: 1.7;
}
.ph-commercial-warranty > :first-child { margin-top: 0; }
.ph-commercial-warranty > :last-child { margin-bottom: 0; }
.ph-commercial-warranty h2,
.ph-commercial-warranty h3 { color: #003684; }
.ph-commercial-warranty h2 { margin-bottom: 10px; }
.ph-commercial-warranty h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.15rem; }
.ph-commercial-warranty ul,
.ph-commercial-warranty ol { margin: 8px 0 16px; padding-left: 24px; }
.ph-commercial-warranty li + li { margin-top: 7px; }
.ph-commercial-warranty a { color: #003684; font-weight: 700; text-decoration: underline; }
.ph-commercial-warranty-note {
    padding: 14px 16px;
    background: #fff;
    border-left: 3px solid #003684;
    border-radius: 6px;
}
@media (max-width: 600px) {
    .ph-commercial-warranty { margin: 24px 0; padding: 20px 18px; }
}

/* Landings SEO de categorias: contenido útil antes y despues del listado. */
.ph-category-seo-intro,
.ph-category-seo-guide {
    max-width: 1160px;
    margin: 18px auto 22px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0,54,132,.13);
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,54,132,.06);
    color: #334155;
}
.ph-category-seo-eyebrow {
    display: inline-flex;
    margin-bottom: 7px;
    color: #A83F08;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ph-category-seo-intro h2,
.ph-category-seo-guide h2,
.ph-category-seo-intro h3,
.ph-category-seo-guide h3 { color: #003684; }
.ph-category-seo-intro h2,
.ph-category-seo-guide h2 {
    margin: 0 0 10px;
    font-size: clamp(22px,3vw,30px);
    line-height: 1.2;
}
.ph-category-seo-intro > p,
.ph-category-seo-guide > p { max-width: 850px; line-height: 1.7; }
.ph-category-seo-columns {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    margin-top: 20px;
}
.ph-category-seo-card {
    padding: 18px;
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 8px;
}
.ph-category-seo-card h3 { margin: 0 0 9px; font-size: 17px; }
.ph-category-seo-card ul { margin: 0; padding-left: 20px; }
.ph-category-seo-card li + li { margin-top: 6px; }
.ph-category-seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.ph-category-seo-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #003684;
    border-radius: 7px;
    color: #003684;
    font-weight: 800;
    text-decoration: none;
}
.ph-category-seo-actions a:first-child {
    background: #03832C;
    border-color: #03832C;
    color: #fff;
}
.ph-category-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 22px;
}
.ph-category-related a {
    padding: 7px 11px;
    background: #f7f9fc;
    border: 1px solid #d5dfeb;
    border-radius: 6px;
    color: #003684;
    font-weight: 750;
    text-decoration: none;
}
.ph-category-seo-faq { display: grid; gap: 10px; }
.ph-category-seo-faq details {
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    overflow: hidden;
}
.ph-category-seo-faq summary {
    cursor: pointer;
    padding: 13px 15px;
    color: #003684;
    font-weight: 800;
}
.ph-category-seo-faq details p { margin: 0; padding: 0 15px 14px; line-height: 1.65; }
@media (max-width: 780px) {
    .ph-category-seo-intro,
    .ph-category-seo-guide { margin: 14px; padding: 19px; }
    .ph-category-seo-columns { grid-template-columns: 1fr; }
    .ph-category-seo-actions { display: grid; }
}
