/* ===== Maxi Accesorios — estilos globales ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6477;
  --border: #e3e7ef;
  --primary: #111111;
  --primary-dark: #000000;
  --accent: #d38907;
  --accent-dark: #b07205;
  --success: #16a34a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__head p { margin-top: 12px; font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: currentColor; color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--blue { background: var(--primary); color: #fff; }
.btn--blue:hover { background: var(--primary-dark); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* ----- Top bar + header ----- */
.topbar { background: var(--primary-dark); color: #e5e5e5; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50; background: #000;
  border-bottom: 1px solid #1f1f1f;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 88px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1.1rem;
}
.logo span b { color: var(--accent); font-weight: 800; }
.logo img { height: 66px; width: auto; }
.footer .logo img { height: 52px; }

/* Barra de servicio técnico bajo el menú */
.service-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #000; font-weight: 700; font-size: .95rem; border-bottom: 1px solid var(--border);
  letter-spacing: .03em; text-transform: uppercase; padding: 10px 16px; text-align: center;
}
.service-bar:hover { background: #faf6ec; text-decoration: none; }
.service-bar svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }

.nav ul { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav a { color: #fff; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ----- Hero ----- */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(211,137,7,.35), transparent 40%),
              linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
  color: #fff; padding: 90px 0 100px; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #f5c35c; }
.hero p { color: #d4d4d4; font-size: 1.12rem; margin: 20px 0 32px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 1.8rem; color: #fff; }
.hero__stats span { font-size: .85rem; color: #a3a3a3; }
.hero__art { position: relative; display: grid; place-items: center; }
.phone {
  width: 230px; height: 460px; border-radius: 38px; background: #0a0a0a;
  border: 10px solid #262626; box-shadow: 0 30px 60px rgba(0,0,0,.45); position: relative;
  display: grid; place-items: center; transform: rotate(-6deg);
}
.phone::before { content: ""; position: absolute; top: 12px; width: 70px; height: 18px; border-radius: 10px; background: #262626; }
.phone__screen {
  width: 100%; height: 100%; border-radius: 28px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #111111, #d38907); color: #fff; font-weight: 700; font-size: 1.3rem; padding: 20px;
}
.badge-float {
  position: absolute; background: #fff; color: var(--text); border-radius: 12px; padding: 10px 14px;
  font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center;
}
.badge-float--1 { top: 40px; left: 0; }
.badge-float--2 { bottom: 60px; right: 0; }

/* Hero interior (páginas) */
.page-hero {
  background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d4d4d4; max-width: 640px; margin: 14px auto 0; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: #a3a3a3; }
.breadcrumb a { color: #fff; }

/* ----- Tarjetas ----- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: .25s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
  background: #f2f2f2;
}
.card__link { display: inline-block; margin-top: 14px; font-weight: 600; }

/* Producto */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product__img {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 4rem;
  background: linear-gradient(135deg, #f2f2f2, #fdf3e0);
}
.product__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.product__tag { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.product__body p { font-size: .9rem; flex: 1; }
.product__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.chip { font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 600; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--border); background: #fff; padding: 8px 18px; border-radius: 999px;
  font-family: inherit; font-size: .9rem; cursor: pointer; color: var(--text);
}
.filter.is-active, .filter:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Split / features */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 22px 0 28px; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: #dcfce7; color: var(--success); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.visual-box {
  border-radius: 22px; min-height: 340px; display: grid; place-items: center; font-size: 6rem;
  background: linear-gradient(135deg, #ececec, #fbecc8); box-shadow: var(--shadow);
}

/* Proceso */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* Tabla de precios de reparación */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
th { background: var(--bg-alt); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Testimonios */
.testimonial p { font-style: italic; }
.testimonial .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial footer { margin-top: 16px; font-weight: 600; font-size: .9rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--accent), #e6a52e); color: #fff; border-radius: 24px;
  padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; }
.cta p { color: #fdf6e7; margin-top: 8px; }
.cta .btn { background: #fff; color: var(--accent-dark); }

/* ----- Blog ----- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card__img {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 3.4rem;
  background: linear-gradient(135deg, #111111, #d38907);
}
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h2, .post-card__body h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.post-card__body h2 a, .post-card__body h3 a { color: var(--text); }
.post-card__body p { font-size: .92rem; flex: 1; }
.meta { font-size: .8rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.meta .cat { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.blog-search { max-width: 520px; margin: 0 auto 36px; }
.blog-search input {
  width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border);
  font-family: inherit; font-size: 1rem;
}

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.article { font-size: 1.05rem; }
.article h2 { margin: 38px 0 14px; font-size: 1.6rem; }
.article h3 { margin: 28px 0 10px; }
.article p { margin-bottom: 18px; color: #374151; }
.article ul, .article ol { margin: 0 0 20px 24px; color: #374151; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 4px solid var(--accent); background: #fdf6e7; padding: 16px 22px; border-radius: 0 12px 12px 0;
  margin: 24px 0; color: #6b4503;
}
.article a, .card p a, .sidebar a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.card__link { color: var(--accent-dark); }
.article .lead { font-size: 1.2rem; color: var(--text); }
.toc { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0 0 0 20px; }
.sidebar .card { margin-bottom: 24px; }
.sidebar h3 { margin-top: 0; font-size: 1.05rem; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.sidebar li:last-child { border: 0; }
.author { display: flex; gap: 14px; align-items: center; margin-top: 36px; padding: 22px; background: var(--bg-alt); border-radius: var(--radius); }
.author__avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; }

/* ----- Contacto ----- */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.info-list .card__icon { flex-shrink: 0; width: 46px; height: 46px; font-size: 1.2rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 300px; background: var(--bg-alt); display: grid; place-items: center; }

/* ----- Footer ----- */
.footer { background: #0a0a0a; color: #a3a3a3; padding: 64px 0 24px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer p { color: #a3a3a3; font-size: .92rem; margin-top: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: .92rem; }
.footer a { color: #a3a3a3; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer__bottom { border-top: 1px solid #262626; margin-top: 44px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ----- Responsive ----- */
@media (max-width: 1180px) {
  .nav ul { gap: 20px; }
}
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 88px; left: 0; right: 0; background: #000; border-bottom: 1px solid #1f1f1f; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; align-items: stretch; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid #262626; }
  .nav li:last-child a { border: 0; }
  .nav li a.btn { display: flex; justify-content: center; margin-top: 10px; border: 0; padding: 12px; color: #fff; }
}
@media (max-width: 860px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta { padding: 36px 26px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--4, .footer__grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .container { padding: 0 16px; }
  .logo img { height: 48px; }
  .service-bar { font-size: .82rem; }
}

/* ===== Ajustes para WordPress ===== */

/* ----- Header: carrito y botón ----- */
.header .logo { order: 1; }
.header .nav { order: 2; display: flex; align-items: center; gap: 24px; }
.header__actions { order: 3; display: flex; align-items: center; gap: 12px; }
.nav ul { margin: 0; }
.header-cart { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; }
.header-cart:hover { background: #1a1a1a; text-decoration: none; }
.header-cart svg { width: 24px; height: 24px; fill: currentColor; }
.header-cart__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #000; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
@media (max-width: 1000px) {
  .header .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 20px; }
  .header .nav.is-open { display: flex; }
  .nav .nav__cta { margin: 10px 20px 0; justify-content: center; }
}

/* ----- Contenido de páginas ----- */
.page-content { max-width: 900px; margin: 0 auto; }
.page-content > * + * { margin-top: 1em; }
.page-content h2 { margin-top: 1.6em; }
.page-content ul, .page-content ol { margin-left: 24px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.article__cover { margin: 0 0 28px; }
.article__cover img { border-radius: var(--radius); width: 100%; height: auto; }
.article img { border-radius: 12px; height: auto; }
.blog-search form { margin: 0; }
.filters a.filter:hover { text-decoration: none; }

.pagination { margin-top: 40px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: #000; color: #fff; border-color: #000; text-decoration: none; }

.wc-crumbs { background: var(--bg-alt); padding: 14px 0; }
.wc-crumbs .breadcrumb { margin: 0; color: var(--muted); }
.wc-crumbs .breadcrumb a { color: var(--text); }
.section--shop { padding-top: 48px; }


/* WhatsApp en la barra superior */
.topbar__wa { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.topbar__wa svg { width: 16px; height: 16px; fill: #25d366; flex-shrink: 0; }
.topbar__wa:hover { color: #25d366; text-decoration: none; }
