/*
Theme Name: Coppernet
Theme URI: https://coppernet.com.co
Author: Coppernet
Description: Tema de tienda y servicios para Coppernet (sistemas, telecomunicaciones y tecnología). Compatible con WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: coppernet
License: GPL-2.0-or-later
*/

/* ==========================================================================
   Variables: paleta Coppernet
   ========================================================================== */
:root {
    --ink: #1A3A52;
    --ink-2: #244E6A;
    --ink-line: #3A6280;
    --copper: #E58B4F;
    --copper-l: #F2AB7A;
    --copper-d: #A9542A;
    --copper-d-hover: #8F4623;
    --copper-t: #F8E3D3;
    --sage: #67C7BC;
    --sage-d: #2A8A86;
    --sage-t: #1D736F;
    --sand: #F4F1EC;
    --paper: #FBFAF7;
    --photo: #ECE7DF;
    --text: #26343F;
    --text-2: #3F4F5B;
    --muted: #5B6B76;
    --border: #E4DED5;
    --border-2: #CFC8BC;
    --field: #8C8376;
    --on-dark: #D5DEE3;
    --on-dark-2: #C5D2DA;
    --btn-line: #6F94AD;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); }

:focus-visible { outline: 3px solid var(--sage-d); outline-offset: 2px; }
.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible { outline-color: var(--sage); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
    clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
    left: 12px; top: 12px; z-index: 100; padding: 12px 16px;
    background: var(--ink); color: #fff; border-radius: 8px;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
    padding: 16px 28px; border-radius: 10px; min-height: 44px;
    border: 1px solid transparent; cursor: pointer;
}
.btn--copper { background: var(--copper); color: var(--ink); }
.btn--copper:hover { background: #EE9A62; }
.btn--ghost { border-color: var(--btn-line); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--solid { background: var(--copper-d); color: #fff; justify-content: center; }
.btn--solid:hover { background: var(--copper-d-hover); }
.btn--outline { border-color: var(--border-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

/* Botones de WooCommerce y bloques */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button,
.wp-block-button__link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--ink); color: #fff; border: 0; border-radius: 10px;
    padding: 13px 16px; min-height: 44px;
    font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
    cursor: pointer; text-decoration: none;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wp-element-button:hover,
.wp-block-button__link:hover { background: var(--ink-2); color: #fff; }
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt { background: var(--copper-d); color: #fff; }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover { background: var(--copper-d-hover); color: #fff; }
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled { opacity: 0.5; }

/* ==========================================================================
   Barra superior y encabezado
   ========================================================================== */
.topbar {
    background: var(--ink); color: var(--on-dark);
    font-size: 13px; text-align: center; padding: 10px 24px;
}

.site-header { background: var(--paper); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.site-header__inner {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 16px 32px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { display: block; flex: none; }
.brand--custom img { max-height: 48px; width: auto; }
.wordmark {
    font-family: var(--font-display); font-weight: 700; font-size: 28px;
    letter-spacing: -0.04em; color: var(--ink); line-height: 1;
}
.wordmark span { color: var(--copper-d); }
.wordmark--dark { color: #fff; font-size: 26px; }
.wordmark--dark span { color: var(--copper); }

.main-nav ul.menu,
.main-nav .menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px 28px;
    font-size: 15px; font-weight: 500; color: var(--text);
}
.main-nav a:hover { color: var(--copper-d); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--copper-d); }
.header-spacer { flex: 1 1 0; min-width: 0; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.search-form {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-2); border-radius: 999px;
    padding: 0 14px; background: var(--paper); color: var(--muted);
}
.search-form:focus-within { outline: 3px solid var(--sage-d); outline-offset: 2px; }
.search-form input[type="search"] {
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 15px; color: var(--text);
    padding: 11px 0; width: 170px; min-width: 0;
}

.cart-link {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-2); border-radius: 999px; background: var(--paper);
    padding: 10px 16px; min-height: 44px;
    font-size: 15px; font-weight: 500; color: var(--ink);
}
.cart-link:hover { border-color: var(--ink); }
.cart-count {
    background: var(--copper-d); color: #fff;
    font-size: 12px; font-weight: 600;
    min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
}

.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    border: 1px solid var(--border-2); border-radius: 10px;
    background: var(--paper); color: var(--ink); cursor: pointer;
}

/* ==========================================================================
   Portada
   ========================================================================== */
.hero {
    background-color: var(--ink);
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 88px 0;
}
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__svg { width: 100%; max-width: 520px; height: auto; }

.eyebrow {
    font-family: var(--font-mono); font-weight: 500; font-size: 13px;
    letter-spacing: 0.14em; color: var(--sage);
}
.eyebrow--dark { color: var(--sage-t); }

.hero h1 {
    margin: 20px 0 0; font-weight: 700;
    font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04;
    letter-spacing: -0.03em; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--copper); }
.hero__lead { margin: 24px 0 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--on-dark-2); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__checks {
    margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px;
    font-size: 14px; color: var(--on-dark-2);
}
.hero__checks span { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks svg { color: var(--sage); }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: 80px 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); padding: 88px 0; }

.section__head {
    display: flex; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: 12px;
}
.section__title {
    margin: 0; font-weight: 700; font-size: 36px;
    letter-spacing: -0.03em; color: var(--ink);
}
.section__title--light { color: #fff; }
.section__title--wide { margin-top: 14px; max-width: 640px; font-size: 40px; line-height: 1.1; }
.section__title--spaced { margin-top: 14px; }
.section__link { font-weight: 600; font-size: 15px; color: var(--copper-d); }
.section__link:hover { text-decoration: underline; }

/* Categorías */
.cat-grid { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.cat-card {
    flex: 1 1 170px; min-width: 0;
    background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
    padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.cat-card:hover { border-color: var(--copper); }
.cat-card__icon {
    width: 52px; height: 52px; border-radius: 14px; background: var(--copper-t);
    display: flex; align-items: center; justify-content: center; color: var(--copper-d);
}
.cat-card__name { font-weight: 600; font-size: 17px; color: var(--ink); }
.cat-card__sub { font-size: 14px; color: var(--muted); }

/* Productos */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px; list-style: none; margin: 36px 0 0; padding: 0;
}
ul.products::before, ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { width: auto; float: none; margin: 0; }

.product-card {
    background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column; list-style: none;
}
.product-card:hover { border-color: var(--copper); }
.product-card__media {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 190px; background: var(--photo);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--copper); color: var(--ink);
    font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em;
    padding: 4px 10px; border-radius: 999px;
}
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.product-card__cat {
    font-family: var(--font-mono); font-weight: 500; font-size: 12px;
    letter-spacing: 0.1em; color: var(--sage-t); text-transform: uppercase;
}
.product-card__title {
    margin: 0; font-family: var(--font-body); font-weight: 600;
    font-size: 17px; line-height: 1.35; color: var(--ink);
}
.product-card__title a:hover { color: var(--copper-d); }
.product-card .price {
    display: block; margin-top: 4px;
    font-family: var(--font-display); font-weight: 700; font-size: 24px;
    letter-spacing: -0.02em; color: var(--ink);
}
.product-card .price del { font-size: 15px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.product-card .price ins { text-decoration: none; }
.product-card__actions { margin-top: auto; padding-top: 12px; }
.product-card__actions .button { width: 100%; }
.product-card__actions .added_to_cart {
    display: block; margin-top: 8px; text-align: center;
    font-size: 14px; font-weight: 600; color: var(--copper-d);
}

/* Servicios */
.service-grid { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px; }
.service-card {
    flex: 1 1 250px; min-width: 0;
    background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px;
    padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.service-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--sage); }
.service-card__num { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--on-dark-2); }
.service-card h2,
.service-card h3 {
    margin: 6px 0 0; font-weight: 700; font-size: 22px;
    letter-spacing: -0.02em; color: #fff;
}
.service-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }
.service-card__link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--copper-l); }
.service-card__link:hover { text-decoration: underline; }
.on-dark { color: var(--on-dark-2); }

/* Promoción */
.promo { background: var(--copper); color: var(--ink); padding: 64px 0; }
.promo__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.promo__text { flex: 1 1 420px; min-width: 0; }
.promo__label { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; }
.promo h2 {
    margin: 12px 0 0; font-weight: 700; font-size: 44px;
    line-height: 1.08; letter-spacing: -0.03em; color: var(--ink);
}
.promo p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }

/* Por qué Coppernet */
.why-grid { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; }
.why-item { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; color: var(--copper-d); }
.why-item h3 { margin: 0; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.why-item p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* Contacto y formularios */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact__intro { flex: 1 1 380px; min-width: 0; }
.contact__title { margin: 14px 0 0; font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; }
.contact__lead { margin: 18px 0 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.contact__details {
    margin-top: 32px; display: flex; flex-direction: column; gap: 10px;
    font-family: var(--font-mono); font-weight: 500; font-size: 14px;
}
.contact__details a { text-decoration: underline; text-underline-offset: 3px; }
.admin-hint {
    margin: 24px 0 0; padding: 12px 16px; border: 1px dashed var(--field);
    border-radius: 10px; font-size: 14px; color: var(--text-2); background: var(--paper);
}

.form-card {
    flex: 1 1 420px; min-width: 0;
    background: var(--paper); border: 1px solid var(--border); border-radius: 16px;
    padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%; border: 1px solid var(--field); border-radius: 8px;
    padding: 12px 14px; min-height: 44px;
    font-family: inherit; font-size: 16px; color: var(--text); background: var(--paper);
}
.field textarea { resize: vertical; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--copper-d); }
.field--check label { font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.field--check a { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.notice--ok { background: #E3F1EE; color: #14524E; }
.notice--error { background: #F8E1D6; color: #7A3418; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 64px 0 32px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer__brand { flex: 1.6 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { margin: 0; max-width: 320px; font-size: 15px; line-height: 1.6; }
.footer__col { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col h2 {
    margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: 12px;
    letter-spacing: 0.12em; color: #fff; text-transform: uppercase;
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}
.footer__pay { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; }

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 50;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--copper-d); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(26, 58, 82, 0.28);
}
.wa-float:hover { background: var(--copper-d-hover); }

/* ==========================================================================
   Contenido: páginas, entradas y servicios
   ========================================================================== */
.page-title {
    margin: 0 0 24px; font-weight: 700; font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1; letter-spacing: -0.03em; color: var(--ink);
}
.meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.entry-lead { margin: 0 0 24px; font-size: 19px; line-height: 1.6; color: var(--text-2); }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { border-radius: 14px; }
.entry-content { font-size: 17px; line-height: 1.7; color: var(--text); }
.entry-content h2 { margin: 36px 0 12px; font-size: 26px; letter-spacing: -0.02em; }
.entry-content h3 { margin: 28px 0 10px; font-size: 21px; }
.entry-content a { color: var(--copper-d); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin: 6px 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 12px; }
.post-card { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.post-card:hover { border-color: var(--copper); }
.post-card__media img { display: block; width: 100%; height: 190px; object-fit: cover; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card__body h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.post-card__body p { margin: 0; font-size: 15px; color: var(--text-2); }
.navigation.pagination { margin-top: 32px; }
.navigation .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation .page-numbers { padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 8px; }
.navigation .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-navigation { margin-top: 40px; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.service-page { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.service-page__main { flex: 1 1 460px; min-width: 0; }
.service-page__aside { flex: 1 1 380px; min-width: 0; }
.aside-title { margin: 0 0 16px; font-size: 24px; letter-spacing: -0.02em; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a { color: var(--copper-d); }
.woocommerce-products-header__title.page-title,
.woocommerce .page-title { margin: 0 0 20px; }
.woocommerce .woocommerce-result-count { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.woocommerce .woocommerce-ordering { margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select {
    border: 1px solid var(--field); border-radius: 8px; padding: 10px 12px;
    min-height: 44px; font-family: inherit; font-size: 15px; background: var(--paper); color: var(--text);
}

.shop-pills { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.shop-pills a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    border: 1px solid var(--border-2); border-radius: 999px;
    font-size: 14px; font-weight: 500; background: var(--paper);
}
.shop-pills a:hover { border-color: var(--ink); }
.shop-pills .is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }

.woocommerce span.onsale {
    background: var(--copper); color: var(--ink); min-height: 0; min-width: 0;
    font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em;
    padding: 4px 10px; line-height: 1.4; border-radius: 999px; top: 12px; left: 12px; right: auto;
}

/* Producto individual */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none; width: 100%; margin: 0; }
.woocommerce div.product div.images img { border-radius: 14px; }
.single-product .product_title { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.03em; }
.single-product .summary .price { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); }
.single-product .summary .price del { font-size: 18px; color: var(--muted); }
.single-product .summary .price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.woocommerce div.product form.cart { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce .quantity .qty {
    min-height: 44px; width: 84px; border: 1px solid var(--field); border-radius: 8px;
    font-size: 16px; background: var(--paper); color: var(--text);
}
.woocommerce div.product .product_meta { font-size: 14px; color: var(--muted); }
.woocommerce div.product .product_meta a { color: var(--copper-d); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 16px; font-weight: 600; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--copper-d); }
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 { font-size: 28px; letter-spacing: -0.02em; margin: 24px 0 0; }

/* Avisos, carrito y pago */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-radius: 10px; background: var(--sand); color: var(--text);
}
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--sage-d); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--sage-d); }
.woocommerce table.shop_table { border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--border); }
.woocommerce-cart .cart_totals h2, .woocommerce-checkout h3 { font-size: 24px; letter-spacing: -0.02em; }
.wc-block-components-button:not(.is-link) {
    background: var(--copper-d) !important; color: #fff !important;
    border-radius: 10px !important; min-height: 48px; font-weight: 600;
}
.wc-block-components-button:not(.is-link):hover { background: var(--copper-d-hover) !important; }

/* ==========================================================================
   Pantallas pequeñas
   ========================================================================== */
@media (max-width: 820px) {
    .single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; width: 100%; order: 5; }
    .main-nav.is-open { display: block; }
    .main-nav ul.menu, .main-nav .menu { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 12px 0; min-height: 44px; border-top: 1px solid var(--border); }
    .header-spacer { display: none; }
    .header-tools { width: 100%; order: 6; }
    .search-form { flex: 1 1 auto; }
    .search-form input[type="search"] { width: 100%; }
    .hero { padding: 56px 0; }
    .section { padding: 56px 0; }
    .section--dark { padding: 64px 0; }
    .section__title { font-size: 30px; }
    .section__title--wide, .contact__title { font-size: 32px; }
    .promo { padding: 48px 0; }
    .promo h2 { font-size: 34px; }
    .form-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
