/*
Theme Name: Autotecnica Plus Ofertas 2026
Theme URI: https://www.autotecnicaplus.com.mx/wp/
Author: Autotecnica Plus
Description: Tema de ofertas integrado con el sitio principal de Autotecnica Plus.
Version: 1.3.0
Text Domain: autotecnica-plus-ofertas-2026
*/

:root {
  --atp-navy: #0c183b;
  --atp-blue: #13287d;
  --atp-yellow: #ffe52c;
  --atp-green: #39847a;
  --atp-ink: #172039;
  --atp-muted: #5d6678;
  --atp-soft: #f4f6f9;
  --atp-line: #dce2ea;
  --atp-white: #fff;
  --atp-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--atp-ink); background: var(--atp-white); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--atp-blue); }
a:hover, a:focus-visible { color: var(--atp-green); }
button, input, textarea, select { font: inherit; }
.atp-container { width: min(var(--atp-container), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: var(--atp-blue); }

.atp-site-header { position: relative; z-index: 100; border-top: 4px solid #25252d; background: #fff; box-shadow: 0 3px 18px rgba(12, 24, 59, .12); }
.atp-contact-bar { min-height: 88px; display: flex; align-items: center; }
.atp-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.atp-socials { display: flex; gap: 10px; }
.atp-social-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--atp-yellow); color: #111; font-weight: 800; text-decoration: none; }
.atp-social-link svg { display: block; width: 21px; height: 21px; fill: currentColor; }
.atp-social-link:hover, .atp-social-link:focus-visible { color: #111; transform: translateY(-2px); }
.atp-contact-options { display: flex; align-items: center; gap: 52px; }
.atp-contact-item { display: grid; grid-template-columns: 30px auto; column-gap: 12px; align-items: center; }
.atp-contact-icon { grid-row: 1 / 3; color: #f3bd00; font-size: 26px; line-height: 1; }
.atp-contact-label { color: #697083; font-size: 14px; }
.atp-contact-item a { color: #10162a; font-size: 14px; text-decoration: none; }

.atp-main-nav { min-height: 142px; position: relative; background: linear-gradient(rgba(245, 248, 253, .86), rgba(245, 248, 253, .86)), url('/assets/images/fachada-1422x941.webp') center 52% / cover; }
.atp-nav-inner { min-height: 142px; display: flex; align-items: center; gap: 28px; }
.atp-brand { flex: 0 0 250px; }
.atp-brand img { width: 225px; max-height: 124px; object-fit: contain; object-position: left center; }
.atp-menu { display: flex; align-items: center; justify-content: center; gap: 3px; margin-left: auto; }
.atp-menu > a, .atp-dropdown-toggle { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 12px; border: 0; background: transparent; color: #10162a; font-weight: 600; text-decoration: none; cursor: pointer; }
.atp-menu > a:hover, .atp-menu > a:focus-visible, .atp-dropdown-toggle:hover, .atp-dropdown-toggle:focus-visible, .atp-menu .is-current { color: var(--atp-blue); }
.atp-dropdown { position: relative; }
.atp-dropdown-toggle::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.atp-submenu { position: absolute; top: calc(100% + 2px); left: 0; z-index: 20; min-width: 245px; display: none; padding: 8px; border: 1px solid var(--atp-line); background: #fff; box-shadow: 0 14px 32px rgba(12, 24, 59, .16); }
.atp-submenu a { display: block; padding: 10px 12px; color: var(--atp-ink); text-decoration: none; }
.atp-submenu a:hover, .atp-submenu a:focus-visible { background: var(--atp-soft); color: var(--atp-blue); }
.atp-dropdown:hover .atp-submenu, .atp-dropdown:focus-within .atp-submenu, .atp-dropdown.is-open .atp-submenu { display: block; }
.atp-nav-cta { flex: 0 0 auto; display: inline-flex; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: 4px; background: var(--atp-yellow); color: #181818; font-weight: 700; text-decoration: none; box-shadow: 0 8px 18px rgba(19, 40, 125, .2); }
.atp-nav-cta:hover, .atp-nav-cta:focus-visible { background: #f4d900; color: #181818; }
.atp-menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 4px; background: var(--atp-blue); cursor: pointer; }
.atp-menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; }

.atp-offers-hero { min-height: 420px; display: flex; align-items: center; position: relative; color: #fff; background: url('/assets/images/fachada-1422x941.webp') center / cover; }
.atp-offers-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 51, .94), rgba(19, 40, 125, .72), rgba(8, 20, 51, .28)); }
.atp-hero-content { position: relative; z-index: 1; padding: 76px 0; }
.atp-kicker { margin: 0 0 12px; color: #ffe52c; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.atp-offers-hero h1 { max-width: 850px; margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: 0; }
.atp-offers-hero p:not(.atp-kicker) { max-width: 700px; margin: 20px 0 0; font-size: 19px; }

.atp-content-band { padding: 70px 0 82px; }
.atp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.atp-section-head h2 { margin: 0; color: var(--atp-blue); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.atp-section-head p { max-width: 580px; margin: 0; color: var(--atp-muted); }
.atp-offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.atp-offer-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--atp-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(12, 24, 59, .08); }
.atp-offer-image { aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf3; }
.atp-offer-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.atp-offer-card:hover .atp-offer-image img { transform: scale(1.025); }
.atp-offer-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.atp-offer-date { margin: 0 0 8px; color: var(--atp-green); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.atp-offer-card h2, .atp-offer-card h3 { margin: 0 0 12px; color: var(--atp-blue); font-size: 23px; line-height: 1.25; }
.atp-offer-card h2 a, .atp-offer-card h3 a { color: inherit; text-decoration: none; }
.atp-offer-excerpt { color: var(--atp-muted); }
.atp-offer-link { margin-top: auto; padding-top: 12px; font-weight: 700; text-decoration: none; }
.atp-empty { padding: 34px; border-left: 5px solid var(--atp-yellow); background: var(--atp-soft); }
.navigation.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 8px 12px; border: 1px solid var(--atp-line); text-decoration: none; }
.page-numbers.current { background: var(--atp-blue); color: #fff; border-color: var(--atp-blue); }

.atp-article { padding: 64px 0 80px; }
.atp-article-wrap { width: min(880px, calc(100% - 40px)); margin-inline: auto; }
.atp-breadcrumb { margin-bottom: 24px; color: var(--atp-muted); font-size: 14px; }
.atp-breadcrumb a { text-decoration: none; }
.atp-article h1 { margin: 0 0 14px; color: var(--atp-blue); font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: 0; }
.atp-article-meta { margin-bottom: 28px; color: var(--atp-muted); }
.atp-article-featured { width: 100%; margin: 0 0 34px; border-radius: 8px; }
.atp-entry-content { font-size: 18px; }
.atp-entry-content > * { max-width: 100%; }
.atp-entry-content h2, .atp-entry-content h3 { margin-top: 1.6em; color: var(--atp-blue); line-height: 1.2; }
.atp-entry-content a { overflow-wrap: anywhere; }
.atp-entry-content .wp-block-image img { border-radius: 8px; }
.atp-post-nav { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--atp-line); }

.atp-cta-band { padding: 48px 0; background: var(--atp-blue); color: #fff; }
.atp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.atp-cta-band h2 { margin: 0 0 6px; color: #fff; font-size: 30px; }
.atp-cta-band p { margin: 0; color: #dce3ff; }
.atp-button { display: inline-flex; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 4px; background: var(--atp-yellow); color: #181818; font-weight: 700; text-decoration: none; }
.atp-button:hover, .atp-button:focus-visible { background: #fff; color: var(--atp-blue); }

.atp-site-footer { padding: 48px 0; background: var(--atp-navy); color: #fff; }
.atp-footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 34px; }
.atp-footer-brand { display: flex; align-items: center; gap: 16px; }
.atp-footer-brand img { width: 70px; }
.atp-footer-brand strong { font-size: 20px; }
.atp-footer-copy { text-align: center; color: #dce3f5; font-size: 14px; }
.atp-footer-copy a { color: #fff; }
.atp-footer-social { display: flex; justify-content: flex-end; gap: 12px; }
.atp-footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #526080; border-radius: 50%; color: #fff; font-weight: 800; text-decoration: none; }
.atp-footer-social svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.atp-footer-social a:hover, .atp-footer-social a:focus-visible { background: var(--atp-yellow); border-color: var(--atp-yellow); color: #111; }
.atp-whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 62px; height: 62px; display: grid; place-items: center; color: #25d366; background: transparent; text-decoration: none; transition: transform .2s ease, color .2s ease; }
.atp-whatsapp-float:hover, .atp-whatsapp-float:focus-visible { color: #128c4a; transform: translateY(-3px); }
.atp-whatsapp-float svg { width: 100%; height: 100%; display: block; fill: currentColor; }

@media (max-width: 1080px) {
  .atp-contact-options { gap: 24px; }
  .atp-nav-cta { display: none; }
  .atp-brand { flex-basis: 210px; }
  .atp-brand img { width: 195px; }
  .atp-menu > a, .atp-dropdown-toggle { padding-inline: 8px; font-size: 14px; }
}

@media (max-width: 900px) {
  .atp-contact-bar { min-height: 58px; }
  .atp-contact-options { margin-left: auto; }
  .atp-contact-label, .atp-contact-icon { display: none; }
  .atp-contact-item { display: block; }
  .atp-main-nav, .atp-nav-inner { min-height: 96px; }
  .atp-brand { flex-basis: auto; }
  .atp-brand img { width: 160px; max-height: 86px; }
  .atp-menu-toggle { display: block; margin-left: auto; }
  .atp-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; max-height: calc(100vh - 120px); overflow-y: auto; padding: 14px 20px 22px; background: #fff; box-shadow: 0 14px 30px rgba(12, 24, 59, .18); }
  .atp-menu.is-open { display: flex; flex-direction: column; }
  .atp-menu > a, .atp-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 16px; }
  .atp-submenu { position: static; min-width: 0; box-shadow: none; border-width: 0 0 0 3px; border-left-color: var(--atp-yellow); }
  .atp-dropdown:hover .atp-submenu { display: none; }
  .atp-dropdown.is-open .atp-submenu { display: block; }
  .atp-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atp-footer-grid { grid-template-columns: 1fr 1fr; }
  .atp-footer-social { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 640px) {
  .atp-container { width: min(100% - 28px, var(--atp-container)); }
  .atp-contact-inner { justify-content: center; }
  .atp-socials { display: none; }
  .atp-contact-options { width: 100%; justify-content: center; gap: 18px; margin-left: 0; }
  .atp-contact-item a { font-size: 12px; }
  .atp-main-nav, .atp-nav-inner { min-height: 86px; }
  .atp-brand img { width: 142px; max-height: 78px; }
  .atp-offers-hero { min-height: 380px; }
  .atp-hero-content { padding: 58px 0; }
  .atp-offers-hero p:not(.atp-kicker) { font-size: 17px; }
  .atp-content-band, .atp-article { padding: 52px 0 62px; }
  .atp-section-head { display: block; }
  .atp-section-head p { margin-top: 12px; }
  .atp-offer-grid { grid-template-columns: 1fr; }
  .atp-cta-inner { align-items: flex-start; flex-direction: column; }
  .atp-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .atp-footer-brand, .atp-footer-social { justify-content: center; }
  .atp-whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
