/*
Theme Name: BateriaYa Tandil
Theme URI: https://example.com/
Author: BateriaYa Tandil
Description: Tema WordPress a medida para BateriaYa Tandil. Sitio de una página con servicio de diagnóstico, asesoramiento y reemplazo de batería a domicilio. Todos los textos son editables desde Apariencia → Personalizar.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: baterias-tandil
*/

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: #475569;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
::selection { background: rgba(220,38,38,.18); color: #0f172a; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

.bt-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Tokens */
.bt-site { --bt-red: #dc2626; --bt-red-dark: #b91c1c; --bt-green: #15803d; --bt-green-dark: #0f6630; }
.bt-container { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .bt-container { padding: 0 32px; } }
.bt-section { position: relative; padding: 80px 0; }
@media (min-width: 640px) { .bt-section { padding: 112px 0; } }
.bt-bg-muted { background: #f8fafc; }
.bt-bg-white { background: #ffffff; }
.bt-heading {
  font-family: Oswald, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: #0f172a; line-height: 1.08;
}
.bt-red { color: var(--bt-red); }
.bt-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; color: var(--bt-red); margin-bottom: 14px;
}

/* Buttons */
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; padding: 14px 26px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; border: 1px solid transparent;
  transition: transform .2s ease, filter .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer; line-height: 1;
}
.bt-btn:hover { transform: translateY(-2px); }
.bt-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.bt-btn-lg { padding: 16px 30px; font-size: 15px; }
.bt-btn-lg svg { width: 20px; height: 20px; }

.bt-btn-whatsapp { background: var(--bt-green); color: #fff; box-shadow: 0 12px 26px rgba(21,128,61,.28); }
.bt-btn-whatsapp:hover { background: var(--bt-green-dark); }

.bt-btn-red { background: var(--bt-red); color: #fff; box-shadow: 0 12px 26px rgba(220,38,38,.28); }
.bt-btn-red:hover { background: var(--bt-red-dark); }

.bt-btn-outline { background: #fff; color: #1e293b; border-color: #cbd5e1; }
.bt-btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }

/* Header */
.bt-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: transparent; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.bt-header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-color: #e2e8f0; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.bt-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 640px) { .bt-header-inner { height: 76px; } }

.bt-brand { display: flex; align-items: center; gap: 10px; }
.bt-brand-icon { display: block; height: 22px; width: auto; flex-shrink: 0; }
.bt-brand-text { font-family: Oswald, Inter, sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: #0f172a; }
@media (min-width: 640px) { .bt-brand-text { font-size: 18px; } }

.bt-nav-desktop { display: none; align-items: center; gap: 20px; flex-wrap: nowrap; }
.bt-nav-desktop a { font-size: 13px; color: #64748b; transition: color .2s ease; white-space: nowrap; flex-shrink: 0; }
.bt-nav-desktop a:hover { color: #0f172a; }
.bt-header-cta { display: none; flex-shrink: 0; }
.bt-nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; }
.bt-nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .bt-nav-desktop { display: flex; } .bt-header-cta { display: block; } .bt-nav-toggle { display: none; } }
@media (min-width: 1200px) { .bt-nav-desktop { gap: 28px; } .bt-nav-desktop a { font-size: 14px; } }

.bt-mobile-menu { display: none; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.bt-mobile-menu.is-open { display: block; }
.bt-mobile-menu nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; }
.bt-mobile-menu a { padding: 12px; border-radius: 10px; font-weight: 500; color: #334155; }
.bt-mobile-menu a:hover { background: #f1f5f9; }
.bt-mobile-menu .bt-btn { margin-top: 12px; width: 100%; }

/* Hero */
.bt-hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; padding-top: 64px; }
@media (min-width: 640px) { .bt-hero { padding-top: 76px; } }
.bt-hero-bg { position: absolute; inset: 0; }
.bt-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bt-hero-bg::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 45%, rgba(255,255,255,.45) 100%); }
.bt-hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, #fff 0%, transparent 40%, rgba(255,255,255,.55) 100%); }
.bt-hero-content { position: relative; z-index: 1; padding: 48px 0; }
.bt-hero-inner { max-width: 640px; }
.bt-badge { display: inline-flex; align-items: center; border: 1px solid rgba(220,38,38,.3); background: rgba(220,38,38,.08); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--bt-red); }
.bt-hero h1.bt-heading { margin-top: 22px; font-size: clamp(42px, 7vw, 68px); }
.bt-hero-subtitle { margin: 10px 0 0; font-size: 19px; font-weight: 600; color: #334155; }
.bt-hero-block { margin-top: 28px; display: grid; gap: 10px; }
.bt-hero-question { font-size: 26px; font-weight: 600; color: #0f172a; margin: 0; }
.bt-hero-lead { font-size: 17px; color: #64748b; margin: 0; max-width: 460px; }
.bt-hero-notes { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.bt-hero-notes span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #64748b; }
.bt-hero-notes svg { width: 16px; height: 16px; color: var(--bt-red); }
.bt-hero-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .bt-hero-actions { flex-direction: row; align-items: center; } }

/* Banner de páginas internas: mismo estilo visual del hero (imagen de
   fondo, degradado, badge), pero más bajo, para Servicio, Cuánto
   cuesta y Preguntas frecuentes. */
.bt-page-hero { position: relative; display: flex; align-items: center; min-height: 46vh; overflow: hidden; padding-top: 96px; padding-bottom: 40px; }
.bt-page-hero .bt-hero-inner { max-width: 640px; }
.bt-page-hero h1.bt-heading { margin-top: 18px; font-size: clamp(32px, 5vw, 48px); }

/* Media + text grid sections */
.bt-grid-2 { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .bt-grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; } }
.bt-media-first { order: 2; }
.bt-media-second { order: 1; }
@media (min-width: 1024px) { .bt-media-first { order: 1; } .bt-media-second { order: 2; } }

.bt-photo { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 24px 48px rgba(15,23,42,.08); }
.bt-photo img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .7s ease; }
.bt-photo:hover img { transform: scale(1.04); }

.bt-copy h2.bt-heading { font-size: clamp(30px, 4vw, 44px); }
.bt-copy p { margin: 14px 0 0; font-size: 18px; color: #64748b; }
.bt-copy .bt-strong-line { margin-top: 20px; font-size: 17px; font-weight: 600; color: #0f172a; }
.bt-copy .bt-actions { margin-top: 32px; }

.bt-bullets { list-style: none; margin: 16px 0 0; display: grid; gap: 12px; }
.bt-bullets li { display: flex; align-items: flex-start; gap: 12px; color: #475569; font-size: 17px; line-height: 1.5; }
.bt-bullets .bt-dot { margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--bt-red); flex-shrink: 0; }

/* Section headers */
.bt-section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.bt-section-head-left { max-width: 640px; margin: 0; text-align: left; }
.bt-section-head h2.bt-heading { font-size: clamp(30px, 4vw, 44px); }
.bt-section-head p { margin: 14px 0 0; font-size: 18px; color: #64748b; }

/* Service steps timeline */
.bt-timeline { padding-left: 44px; border-left: 1px solid #e2e8f0; display: grid; gap: 34px; }
.bt-timeline-item { position: relative; }
.bt-timeline-node { position: absolute; left: -60px; top: -2px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(220,38,38,.1); box-shadow: inset 0 0 0 1px rgba(220,38,38,.25); color: var(--bt-red); }
.bt-timeline-node svg { width: 18px; height: 18px; }
.bt-timeline-title { font-family: Oswald, Inter, sans-serif; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: #0f172a; margin: 2px 0 0; }
.bt-timeline-item p { margin: 6px 0 0; color: #64748b; }

/* Pricing */
.bt-payment-block { max-width: 560px; margin: 44px auto 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 26px; border-radius: 18px; border: 1px solid #e2e8f0; background: #fff; }
.bt-payment-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(220,38,38,.1); color: var(--bt-red); }
.bt-payment-icon svg { width: 20px; height: 20px; }
.bt-payment-block .bt-label { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #334155; }
.bt-payment-block .bt-methods { margin: 4px 0 0; font-size: 15px; color: #64748b; }

.bt-price-cta { margin-top: 32px; display: flex; justify-content: center; }

.bt-needs-box { max-width: 620px; margin: 56px auto 0; padding: 28px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; }
.bt-needs-label { margin: 0 0 20px; text-align: center; font-size: 16px; font-weight: 600; color: #0f172a; }
.bt-needs { display: grid; gap: 12px; }
.bt-need { display: flex; align-items: center; gap: 14px; }
.bt-need-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: rgba(220,38,38,.1); color: var(--bt-red); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.bt-need svg { width: 18px; height: 18px; color: #94a3b8; flex-shrink: 0; }
.bt-need-text { color: #334155; font-size: 15px; }
.bt-needs-closing { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e2e8f0; text-align: center; font-family: Oswald, Inter, sans-serif; font-weight: 600; text-transform: uppercase; font-size: 17px; color: #0f172a; }

.bt-brands-block { max-width: 720px; margin: 44px auto 0; padding: 26px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; text-align: center; }
.bt-brands-title { margin: 0 0 16px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #334155; }
.bt-brands-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bt-brand-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; font-weight: 600; font-size: 14px; color: #334155; }
.bt-brand-chip svg { width: 16px; height: 16px; color: var(--bt-red); }

.bt-brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 640px) { .bt-brands-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; } }
.bt-brand-card { text-align: center; }
.bt-brand-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; }
.bt-brand-card-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 14px; border: 1px solid #e2e8f0; background: #f8fafc; color: var(--bt-red); }
.bt-brand-card-icon svg { width: 40px; height: 40px; }
.bt-brand-name { margin: 12px 0 2px; font-family: Oswald, Inter, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; color: #0f172a; }
.bt-brand-warranty { margin: 0; font-size: 13px; color: #64748b; }

.bt-warranty-block { margin-top: 20px; }

/* Atención (imagen de fondo) */
.bt-attention { position: relative; display: flex; align-items: center; min-height: 78vh; overflow: hidden; }
.bt-attention-bg { position: absolute; inset: 0; }
.bt-attention-bg img { width: 100%; height: 100%; object-fit: cover; }
.bt-attention-bg::before { content:""; position:absolute; inset:0; background: rgba(255,255,255,.78); }
.bt-attention-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,.25) 100%); }
.bt-attention-content { position: relative; z-index: 1; padding: 80px 0; width: 100%; }
.bt-attention-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.bt-attention-inner h2.bt-heading { font-size: clamp(30px, 5vw, 48px); }
.bt-attention-inner p { margin: 14px 0 0; font-size: 18px; color: #64748b; }
.bt-attention-claim { margin-top: 40px; font-family: Oswald, Inter, sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(24px,4vw,38px); line-height: 1.2; color: #0f172a; }
.bt-attention-actions { margin-top: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
@media (min-width: 640px) { .bt-attention-actions { flex-direction: row; } }

/* FAQ */
.bt-faq-list { max-width: 720px; margin: 40px auto 0; display: grid; gap: 12px; }
.bt-faq-item { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; }
.bt-faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; color: #0f172a; }
.bt-faq-item summary::-webkit-details-marker { display: none; }
.bt-faq-item summary svg { width: 18px; height: 18px; color: var(--bt-red); flex-shrink: 0; transition: transform .25s ease; }
.bt-faq-item[open] summary svg { transform: rotate(45deg); }
.bt-faq-item p { margin: 0; padding: 0 20px 20px; color: #64748b; }
.bt-faq-cta { margin-top: 40px; display: flex; justify-content: center; }

/* Final CTA */
.bt-final { position: relative; background: #f1f5f9; padding: 96px 0; }
@media (min-width: 640px) { .bt-final { padding: 128px 0; } }
.bt-final-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.bt-final-bar { display: block; width: 64px; height: 4px; margin: 0 auto 24px; border-radius: 999px; background: var(--bt-red); }
.bt-final h2.bt-heading { font-size: clamp(34px, 6vw, 56px); }
.bt-final p { margin: 20px auto 0; max-width: 480px; font-size: 18px; color: #64748b; }
.bt-final .bt-actions { margin-top: 36px; display: flex; justify-content: center; }

/* Footer */
.bt-footer { border-top: 1px solid #e2e8f0; background: #fff; }
.bt-footer-top { padding: 56px 0; display: grid; gap: 40px; }
@media (min-width: 640px) { .bt-footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bt-footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.bt-footer-brand p { margin-top: 16px; max-width: 320px; font-size: 14px; color: #94a3b8; }
.bt-footer h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #0f172a; margin: 0; }
.bt-footer-nav ul { list-style: none; margin: 16px 0 0; display: grid; gap: 10px; }
.bt-footer-nav a { font-size: 14px; color: #94a3b8; }
.bt-footer-nav a:hover { color: #0f172a; }
.bt-footer-contact ul { list-style: none; margin: 16px 0 0; display: grid; gap: 10px; }
.bt-footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #94a3b8; }
.bt-footer-contact svg { width: 15px; height: 15px; color: var(--bt-red); flex-shrink: 0; }
.bt-footer-cta { margin-top: 16px; }
.bt-copyright { border-top: 1px solid #e2e8f0; padding: 20px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between; text-align: center; }
@media (min-width: 640px) { .bt-copyright { flex-direction: row; text-align: left; } }
.bt-copyright p { margin: 0; font-size: 12px; color: #cbd5e1; }

/* Mobile WhatsApp bar */
.bt-mobile-wa { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; }
.bt-mobile-wa-inner { border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); padding: 12px 16px; }
.bt-mobile-wa .bt-btn { width: 100%; }
@media (min-width: 1024px) { .bt-mobile-wa { display: none; } }
