/*
Theme Name: Centro Digital
Template: twentytwentyfive
Author: Centro Digital
Description: Tema de la tienda Centro Digital — impresión DTF con envío a todo México.
Version: 1.2.0
Text Domain: centrodigital
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--wp--preset--color--cyan-ink); outline-offset: 2px; }
.mono { font-family: var(--wp--preset--font-family--mono); }

/* ---------- Barra de aviso ---------- */
.cd-ann { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); font: 500 12px/1 var(--wp--preset--font-family--mono); letter-spacing: .04em; }
.cd-ann .cd-ann__in { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cd-speed { display: inline-block; background: var(--wp--preset--color--yellow); color: #201E1E; font: 800 12px/1 var(--wp--preset--font-family--rubik); text-transform: uppercase; letter-spacing: .02em; padding: 6px 10px; border-radius: 4px; transform: skewX(-10deg); }
.cd-speed > span { display: inline-block; transform: skewX(10deg); }

/* ---------- Encabezado ---------- */
.cd-header { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .cd-header { top: 32px; }
.cd-header__in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cd-logo img { height: 34px; width: auto; display: block; }
.cd-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.cd-nav a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 6px; }
.cd-nav a:hover { background: var(--wp--preset--color--surface-2); }
.cd-actions { display: flex; gap: 8px; align-items: center; }
.cd-actions a.cd-btn-ghost { border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 8px 12px; text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 500; font-size: 14px; }
.cd-reg { display: flex; height: 4px; }
.cd-reg i { flex: 1; }
@media (max-width: 781px) { .cd-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; } .cd-nav a { white-space: nowrap; } .admin-bar .cd-header { top: 0; } }

/* ---------- Tipografía display ---------- */
.cd-display { font-family: var(--wp--preset--font-family--rubik); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: .95; }
.cd-display em { font-style: normal; display: inline-block; transform: skewX(-10deg); color: var(--wp--preset--color--magenta-ink); }
.cd-eyebrow { font: 500 12px/1.4 var(--wp--preset--font-family--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--cyan-ink); }
.cd-stripes { display: flex; flex-direction: column; gap: 5px; width: 72px; transform: skewX(-10deg); }
.cd-stripes i { height: 6px; border-radius: 3px; background: var(--wp--preset--color--ink); }
.cd-stripes i:nth-child(2) { width: 80%; margin-left: 20%; }
.cd-stripes i:nth-child(3) { width: 55%; margin-left: 45%; }

/* ---------- Secciones portada ---------- */
.cd-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.cd-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 48px; }
.cd-hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 12px 0 18px; }
.cd-hero p.lead { font-size: 19px; color: var(--wp--preset--color--muted); max-width: 52ch; }
.cd-hero__art { border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--film); aspect-ratio: 5/4; }
.cd-hero__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 10px; }
.cd-btn { display: inline-flex; align-items: center; justify-content: center; font: 600 16px var(--wp--preset--font-family--rubik); padding: 14px 22px; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--wp--preset--color--magenta-ink); background: var(--wp--preset--color--magenta-ink); color: #fff; }
.cd-btn:hover { filter: brightness(1.08); color: #fff; }
.cd-btn.ghost { background: transparent; color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }
.cd-hint { font-size: 14px; color: var(--wp--preset--color--muted); }
@media (max-width: 860px) { .cd-hero { grid-template-columns: 1fr; padding-block: 28px; } }

.cd-trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; margin-block: 8px 56px; }
.cd-trust > div { background: var(--wp--preset--color--surface); padding: 18px; }
.cd-trust strong { display: block; font-weight: 600; margin-bottom: 4px; }
.cd-trust span { font-size: 14px; color: var(--wp--preset--color--muted); }
@media (max-width: 781px) { .cd-trust { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.cd-sec { margin-block: 56px; }
.cd-sec h2 { font-family: var(--wp--preset--font-family--rubik); font-weight: 900; text-transform: uppercase; letter-spacing: -.015em; font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 20px; }
.cd-cats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.cd-cat { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 18px; }
.cd-cat:hover { border-color: var(--wp--preset--color--magenta-ink); }
.cd-cat h3 { margin: 6px 0 0; font-size: 20px; font-weight: 800; }
.cd-cat .price { font: 500 13px var(--wp--preset--font-family--mono); color: var(--wp--preset--color--muted); }
.cd-cat .art { aspect-ratio: 16/10; border-radius: 8px; background: var(--wp--preset--color--surface-2); display: grid; place-items: center; overflow: hidden; }
.cd-cats--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 781px) { .cd-cats { grid-template-columns: 1fr; } }

.cd-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.cd-steps li { border-top: 4px solid var(--wp--preset--color--ink); padding-top: 12px; }
.cd-steps li:nth-child(1) { border-color: var(--wp--preset--color--cyan); }
.cd-steps li:nth-child(2) { border-color: var(--wp--preset--color--magenta); }
.cd-steps li:nth-child(3) { border-color: var(--wp--preset--color--yellow); }
.cd-steps li::before { counter-increment: s; content: "Paso " counter(s); display: block; font: 500 12px var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--magenta-ink); margin-bottom: 6px; }
.cd-steps strong { display: block; margin-bottom: 4px; }
.cd-steps span { color: var(--wp--preset--color--muted); font-size: 15px; }
@media (max-width: 781px) { .cd-steps { grid-template-columns: 1fr 1fr; } }

.cd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cd-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 22px; }
.cd-card h3 { margin-top: 0; font-size: 20px; font-weight: 800; }
@media (max-width: 781px) { .cd-split { grid-template-columns: 1fr; } }
table.cd-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
table.cd-t th, table.cd-t td { padding: 9px 10px; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; }
table.cd-t th { font: 500 11px var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); }
.cd-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 12px 0; }
.cd-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cd-faq summary::after { content: "+"; font: 500 18px var(--wp--preset--font-family--mono); color: var(--wp--preset--color--muted); }
.cd-faq details[open] summary::after { content: "–"; }
.cd-faq details p { margin: 8px 0 0; color: var(--wp--preset--color--muted); }

/* ---------- Pie ---------- */
.cd-footer { background: #201E1E; color: #F6F7F9; padding: 48px 16px 28px; margin-top: 64px; }
.cd-footer__in { max-width: 1200px; margin: 0 auto; }
.cd-footer .cols { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.4fr 1fr; gap: 28px; }
.cd-footer .suc { font-size: 13px; opacity: .82; margin: 0 0 10px; line-height: 1.4; }
.cd-footer .suc strong { display: block; font-weight: 600; opacity: 1; }
.cd-footer .suc a { display: inline; padding: 0; font-size: 13px; }
.cd-footer a { color: #F6F7F9; opacity: .82; text-decoration: none; display: block; padding: 3px 0; font-size: 14px; }
.cd-footer a:hover { opacity: 1; text-decoration: underline; }
.cd-footer h4 { font: 500 12px var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 0 0 10px; }
.cd-footer .pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cd-footer .pay span { border: 1px solid currentColor; border-radius: 5px; padding: 3px 8px; font: 500 11px var(--wp--preset--font-family--mono); opacity: .85; }
.cd-footer .legal { border-top: 1px solid rgba(246,247,249,.2); margin-top: 32px; padding-top: 16px; font-size: 12px; opacity: .7; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1100px) { .cd-footer .cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 781px) { .cd-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cd-footer .cols { grid-template-columns: 1fr; } }

/* ---------- WooCommerce ---------- */
.woocommerce .price, .wc-block-components-product-price, .wp-block-woocommerce-product-price { font-family: var(--wp--preset--font-family--rubik); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button, .wc-block-components-button:not(.is-link), .wp-block-button__link, .single_add_to_cart_button { background: var(--wp--preset--color--magenta-ink) !important; color: #fff !important; border-radius: 8px !important; font-weight: 600 !important; }
.wc-block-components-product-badge, .onsale { background: var(--wp--preset--color--yellow) !important; color: #201E1E !important; }
.woocommerce-store-notice, p.demo_store { background: var(--wp--preset--color--ink) !important; }

/* ---------- Márgenes en páginas internas y tienda ---------- */
main.wp-block-group:not(:has(.cd-wrap)) { padding-inline: 16px; padding-block: 24px 16px; }
main.wp-block-group:not(:has(.cd-wrap)) > * { max-width: 1200px; margin-inline: auto; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font: 500 12px var(--wp--preset--font-family--mono); color: var(--wp--preset--color--muted); }

/* ---------- Fotos y videos del taller ---------- */
.cd-hero__art { position: relative; }
.cd-hero__art video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-hero__tag { position: absolute; left: 12px; bottom: 12px; background: rgba(20,23,29,.78); color: #fff; font: 500 12px var(--wp--preset--font-family--mono); padding: 6px 10px; border-radius: 99px; }
.cd-cat .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-sub { margin: -8px 0 20px; color: var(--wp--preset--color--muted); max-width: 640px; }
.cd-taller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.cd-taller figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--surface-2); aspect-ratio: 4/3; }
.cd-taller__vid { grid-column: span 2; grid-row: span 2; aspect-ratio: auto !important; }
.cd-taller img, .cd-taller video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-taller figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(20,23,29,.78); color: #fff; font: 500 12px var(--wp--preset--font-family--mono); padding: 5px 9px; border-radius: 99px; pointer-events: none; }
.cd-taller__vid figcaption { top: 10px; bottom: auto; left: 10px; }
@media (max-width: 781px) {
	.cd-taller { grid-template-columns: 1fr 1fr; }
	.cd-taller__vid { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9 !important; }
}
/* Ficha de producto: proceso */
.cd-proc { margin: 40px 0 0; }
.cd-proc h2 { font-family: var(--wp--preset--font-family--rubik); font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 14px; }
.cd-proc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cd-proc figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--wp--preset--color--surface-2); }
.cd-proc img, .cd-proc video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-proc figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(20,23,29,.78); color: #fff; font: 500 12px var(--wp--preset--font-family--mono); padding: 5px 9px; border-radius: 99px; }
@media (max-width: 781px) { .cd-proc__grid { grid-template-columns: 1fr; } }
