/* ═══════════════════════════════════════════════════════════
   Silver Soluciones — Design System Compartido
   Incluir en todas las páginas del sitio
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0052CC;
    --primary-dark: #003d99;
    --primary-light: #e8f0ff;
    --accent-cyan: #00D4FF;
    --accent-magenta: #E91E8C;
    --accent-green: #00B359;
    --dark: #0a0a0a;
    --dark-2: #111827;
    --light: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* ─── TIPOGRAFÍA ──────────────────────────────────── */
h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
/* Páginas sin plantilla propia (fallback index.php) — ej. producto individual
   de WooCommerce — no deben heredar el tamaño de h1/h2 pensado para Heroes. */
body.single-product h1,
body.woocommerce-shop section.container.section-pad > h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.3;
}
body.single-product h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.3;
}
h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.75; color: var(--gray-600); }

/* ─── SCROLL PROGRESS BAR ─────────────────────────── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    z-index: 9999;
    transition: width 0.08s linear;
}

/* ─── NAVBAR ──────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    height: 76px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; }
#navbar ul { display: flex; list-style: none; gap: 2rem; }
#navbar a {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}
#navbar a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
#navbar a:hover { color: var(--primary); }
#navbar a:hover::after { width: 100%; }
.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* ─── NAV DROPDOWN (desktop) ──────────────────────── */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-dropdown-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.nav-item-dropdown:hover .nav-dropdown-caret,
.nav-item-dropdown:focus-within .nav-dropdown-caret {
    transform: rotate(180deg);
}
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%; left: -1rem; right: -1rem;
    height: 0.85rem;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 230px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.14), 0 1px 0 rgba(0,0,0,0.04);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
    z-index: 1001;
}
.nav-item-dropdown:hover > .nav-dropdown-menu,
.nav-item-dropdown:focus-within > .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.nav-dropdown-menu a.nav-dropdown-subitem { padding-left: 1.9rem; font-size: 0.8rem; font-weight: 500; color: var(--gray-500); }

/* ─── NAV DROPDOWN — NESTED FLYOUT (3rd level, desktop only) ── */
.nav-dropdown-nested {
    position: relative;
}
/* Invisible bridge over the gap to the nested flyout, so moving the mouse
   diagonally toward it doesn't drop out of :hover and close it (same trick
   as .nav-item-dropdown::after for the top-level dropdown). */
.nav-dropdown-nested::after {
    content: '';
    position: absolute;
    top: -0.5rem;
    bottom: -0.5rem;
    left: 100%;
    width: 0.85rem;
}
.nav-dropdown-nested.nav-dropdown-flip-left::after {
    left: auto;
    right: 100%;
}
.nav-dropdown-nested-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.nav-dropdown-nested-trigger .nav-dropdown-caret {
    transform: rotate(-90deg);
    transition: transform 0.25s ease;
}
.nav-dropdown-nested:hover .nav-dropdown-nested-trigger .nav-dropdown-caret,
.nav-dropdown-nested:focus-within .nav-dropdown-nested-trigger .nav-dropdown-caret {
    transform: rotate(-90deg) translateX(2px);
}
.nav-dropdown-menu--nested {
    top: -0.5rem;
    left: calc(100% + 0.6rem);
    transform: translateX(-8px);
    z-index: 1002;
}
.nav-dropdown-nested:hover > .nav-dropdown-menu--nested,
.nav-dropdown-nested:focus-within > .nav-dropdown-menu--nested {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
/* Flipped by main.js when the flyout would overflow the right edge of the viewport */
.nav-dropdown-menu--nested.nav-dropdown-flip-left {
    left: auto;
    right: calc(100% + 0.6rem);
    transform: translateX(8px);
}
.nav-dropdown-nested:hover > .nav-dropdown-menu--nested.nav-dropdown-flip-left,
.nav-dropdown-nested:focus-within > .nav-dropdown-menu--nested.nav-dropdown-flip-left {
    transform: translateX(0);
}

/* ─── NAV DROPDOWN (mobile) ────────────────────────── */
.nav-mobile-item-dropdown { border-bottom: 1px solid var(--gray-100); }
.nav-mobile-item-dropdown:last-child { border-bottom: none; }
.nav-mobile-item-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}
.nav-mobile-item-dropdown a {
    border-bottom: none !important;
    flex: 1;
}
.nav-mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 0 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-mobile-submenu-toggle svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray-400);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-mobile-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
    padding-left: 1rem;
}
.nav-mobile-submenu.open { max-height: 640px; overflow-y: auto; }
.nav-mobile-submenu a {
    display: block;
    padding: 0.7rem 0 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--gray-600) !important;
}
.nav-mobile-submenu a:hover { color: var(--primary) !important; }
.nav-mobile-submenu a.nav-dropdown-subitem {
    padding-left: 1.2rem !important;
    font-size: 0.84rem !important;
    color: var(--gray-500) !important;
}

/* ─── BOTONES ─────────────────────────────────────── */
.btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0,82,204,0.4);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,82,204,0.45);
}
.btn-ghost {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ─── SECCIONES GENÉRICAS ─────────────────────────── */
section { position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
.section-pad { padding-top: 7rem; padding-bottom: 7rem; }
.section-dark { background: var(--dark-2); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}
.section-dark .section-label { color: var(--accent-cyan); }

/* ─── CSS SCROLL-DRIVEN ANIMATIONS ───────────────── */
@supports (animation-timeline: view()) {
    .sda-fade-up {
        animation: sdaFadeUp linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
    }
    .sda-fade-left {
        animation: sdaFadeLeft linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 32%;
    }
    .sda-fade-right {
        animation: sdaFadeRight linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 32%;
    }
    .sda-scale-in {
        animation: sdaScaleIn linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
    @keyframes sdaFadeUp {
        from { opacity: 0; transform: translateY(60px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes sdaFadeLeft {
        from { opacity: 0; transform: translateX(-40px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes sdaFadeRight {
        from { opacity: 0; transform: translateX(40px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes sdaScaleIn {
        from { opacity: 0; transform: scale(0.88); }
        to   { opacity: 1; transform: scale(1); }
    }
}
@supports not (animation-timeline: view()) {
    .sda-fade-up, .sda-fade-left, .sda-fade-right, .sda-scale-in {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sda-fade-up.in-view, .sda-fade-left.in-view, .sda-fade-right.in-view, .sda-scale-in.in-view {
        opacity: 1;
        transform: none;
    }
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
    background: #283069;
    color: white;
    padding: 5rem 3rem 0;
}
.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer .footer-brand-logo,
footer.footer img.footer-brand-logo {
    height: 52px !important;
    width: auto !important;
    max-width: none !important;
    margin-bottom: 1.8rem;
    display: block;
}
.footer-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 0.6rem;
}
.footer-units {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em;
    font-weight: 500;
}
.footer-divider {
    display: inline-block;
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.2);
}
.footer-col-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.4rem;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}
.footer-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.footer-contact-item:hover .footer-contact-icon {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.footer-contact-icon svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.6); }
.footer-contact-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}
.footer-contact-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    line-height: 1.4;
}
a.footer-contact-value:hover { color: rgba(255,255,255,0.7); }
.footer-social-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.4rem;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social-link svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.6); transition: stroke 0.2s; }
.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.footer-social-link:hover svg { stroke: white; }
.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
    display: inline-block;
}
.footer-nav-links a:hover { color: white; transform: translateX(4px); }
/* El ítem "Contacto" puede llevar la clase nav-cta (píldora azul) para el
   menú principal. En el footer, wp_nav_menu pone esa clase en el <li> (no
   en el <a>), y la regla .nav-cta original pinta el fondo/padding/radius
   sobre ESE elemento con esa clase — hay que resetear el <li>, no el <a>. */
.footer-nav-links li.nav-cta {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.footer-nav-links li.nav-cta a,
.footer-nav-links a.nav-cta {
    color: rgba(255,255,255,0.55) !important;
    padding: 0 !important;
    font-weight: 500 !important;
}
.footer-nav-links li.nav-cta a:hover,
.footer-nav-links a.nav-cta:hover { color: white !important; }
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.6rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-bottom-text { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom-badge { font-size: 0.72rem; color: rgba(255,255,255,0.2); font-weight: 500; letter-spacing: 0.04em; }

/* ─── HAMBURGER ───────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(0,0,0,0.05); }
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
    transform-origin: center;
}
#navbar.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navbar.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#navbar.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 1.5rem 1.5rem;
    z-index: 999;
    flex-direction: column;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
    pointer-events: none;
}
#navbar.nav-open .nav-mobile-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.nav-mobile-panel a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
}
.nav-mobile-panel a:last-child { border-bottom: none; }
.nav-mobile-panel a:hover { color: var(--primary); transform: translateX(4px); }
.nav-mobile-panel .nav-cta {
    margin-top: 0.75rem;
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    text-align: center;
    border-bottom: none !important;
    transition: background 0.2s !important;
}
.nav-mobile-panel .nav-cta:hover { background: var(--primary-dark); transform: none !important; }

/* ─── RESPONSIVE COMPARTIDO ───────────────────────── */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section-pad { padding-top: 5rem; padding-bottom: 5rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    #navbar { padding: 0 1.5rem; }
    #navbar ul { display: none; }
    .nav-hamburger { display: flex; }
    .nav-mobile-panel { display: flex; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer { padding: 3.5rem 1.5rem 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── FORMULARIO DE COTIZACIÓN (CF7 compartido, ficha de producto) ─── */
.silver-quote-form {
    max-width: 480px;
    margin-top: 1rem;
    padding: 1.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
}
.silver-quote-form-target {
    font-size: 0.92rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.silver-quote-form .form-group {
    margin-bottom: 1.1rem;
}
.silver-quote-form .form-group:last-of-type {
    margin-bottom: 0;
}
.silver-quote-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}
.silver-quote-form .form-input,
.silver-quote-form .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.silver-quote-form .form-input:focus,
.silver-quote-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.silver-quote-form .form-textarea {
    min-height: 110px;
    resize: vertical;
}
.silver-quote-form .wpcf7-form-control-wrap {
    display: block;
}
.silver-quote-form input[type="submit"] {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0,82,204,0.4);
}
.silver-quote-form input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,82,204,0.45);
}
.silver-quote-form .wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: #d92d2d;
    margin-top: 0.3rem;
}
.silver-quote-form .wpcf7-response-output {
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 1.2rem;
}

/* ─── BOTONES NATIVOS DE WOOCOMMERCE ────────────────────────
   Unifica todos los botones que WooCommerce renderiza por su cuenta
   (tienda, carrito, checkout, ficha de producto) con el mismo estilo
   pill azul corporativo + texto blanco del resto del sitio (.btn-primary). */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce a.added_to_cart,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button,
.wc-block-components-product-button__button,
.wp-block-woocommerce-product-button a.wp-block-button__link,
.wc-block-grid__product-add-to-cart a.wp-block-button__link,
.wc-block-components-product-button a.added_to_cart,
.wc-block-product a.button,
.wc-block-product a.add_to_cart_button {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(0,82,204,0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce a.added_to_cart:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover,
.wc-block-components-product-button__button:hover,
.wp-block-woocommerce-product-button a.wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart a.wp-block-button__link:hover,
.wc-block-components-product-button a.added_to_cart:hover,
.wc-block-product a.button:hover,
.wc-block-product a.add_to_cart_button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,82,204,0.45);
}
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce a.button.disabled,
.woocommerce ul.products li.product a.button.disabled,
.wc-block-components-product-button__button:disabled {
    background: var(--gray-400);
    color: white;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
    cursor: not-allowed;
}
li.wc-block-product {
    text-align: center;
}

/* ─── CONTENIDO DE DESCRIPCIÓN DE PRODUCTO (WooCommerce) ─────
   El reset global (* { margin:0; padding:0 }) deja sin espaciado
   cualquier texto enriquecido (párrafos, listas, títulos) dentro de
   la descripción de producto. Estas reglas solo aplican dentro de esos
   contenedores exclusivos de WooCommerce — no tocan el resto del sitio. */
.woocommerce-Tabs-panel--description,
.woocommerce-product-details__short-description {
    line-height: 1.7;
    color: var(--gray-700, #374151);
}
.woocommerce-Tabs-panel--description p,
.woocommerce-product-details__short-description p {
    margin: 0 0 1.1rem;
}
.woocommerce-Tabs-panel--description ul,
.woocommerce-Tabs-panel--description ol,
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}
.woocommerce-Tabs-panel--description li,
.woocommerce-product-details__short-description li {
    margin-bottom: 0.5rem;
}
.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3,
.woocommerce-Tabs-panel--description h4 {
    margin: 1.8rem 0 1rem;
    line-height: 1.3;
}
.woocommerce-Tabs-panel--description h2:first-child,
.woocommerce-Tabs-panel--description h3:first-child,
.woocommerce-Tabs-panel--description h4:first-child {
    margin-top: 0;
}
.woocommerce-Tabs-panel--description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0.5rem 0 1.1rem;
}
.woocommerce-Tabs-panel--description iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 0.5rem 0 1.1rem;
}
/* Tablas de especificaciones importadas (ej. HTML scrapeado de tiendas
   VTEX de fabricantes como Kärcher) — sin esto se renderizan sin
   espaciado con los estilos por defecto del navegador. */
.woocommerce-Tabs-panel--description table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.1rem;
}
.woocommerce-Tabs-panel--description table td,
.woocommerce-Tabs-panel--description table th {
    padding: 1rem;
    border: 1px solid var(--gray-200, #e5e7eb);
    vertical-align: top;
    line-height: 1.7;
}
.woocommerce-Tabs-panel--description table p {
    margin: 0 0 0.6rem;
}
.woocommerce-Tabs-panel--description table p:last-child {
    margin-bottom: 0;
}
