@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700&display=swap');

/* =====================================================================
   KARTING PARAGUAY - Hoja de estilos del sitio publico
   Estetica: portal racing. Carbon azulado + azul y rojo de marca.
   ===================================================================== */

:root {
  /* Paleta oficial Karting Paraguay (logo): azul + rojo sobre carbon */
  --grafito:      #1f2832;   /* carbon azulado del recuadro (header, heros) */
  --grafito-2:    #18202a;   /* carbon mas profundo */
  --grafito-3:    #28323e;   /* carbon 3 (cards oscuras) */
  --grafito-4:    #3a4654;   /* bordes sobre oscuro */
  --azul:         #0e3288;   /* AZUL marca (links, acentos secundarios) */
  --azul-osc:     #0a2666;
  --rojo:         #da1014;   /* ROJO marca (acento principal) */
  --rojo-osc:     #b00c10;
  --naranja:      #da1014;   /* remapeado a rojo */
  --verde:        #16a34a;   /* solo estados de exito */
  --tinta:        #18202a;   /* texto principal sobre claro */
  --gris:         #5b6573;
  --gris-claro:   #eef1f5;
  --gris-borde:   #dde2e9;
  --fondo:        #f4f6f9;   /* fondo de pagina */
  --blanco:       #ffffff;
  --display:      'Barlow Condensed', 'Arial Narrow', sans-serif;
  --texto:        'Barlow', system-ui, -apple-system, sans-serif;
  --sombra:       0 1px 3px rgba(24,32,42,.10), 0 6px 20px rgba(24,32,42,.08);
  --sombra-alta:  0 10px 40px rgba(24,32,42,.20);
  --radio:        10px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--texto);
  background: var(--fondo);
  color: var(--tinta);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--grafito);
}

a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--rojo); }
img { max-width: 100%; }

.container { max-width: 1200px; }

/* ---------- Botones ---------- */
.btn-accent {
  background: var(--rojo);
  border: 1px solid var(--rojo);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: .6rem 1.4rem;
  border-radius: 6px;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn-accent:hover { background: var(--rojo-osc); border-color: var(--rojo-osc); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(218,16,20,.30); }
.btn-accent:active { transform: translateY(0); }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }
.btn-outline-accent {
  background: transparent; border: 1.5px solid var(--rojo); color: var(--rojo);
  font-family: var(--display); font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: .55rem 1.3rem; border-radius: 6px; transition: all .15s ease;
}
.btn-outline-accent:hover { background: var(--rojo); color: #fff; }

/* =====================================================================
   TOPBAR
   ===================================================================== */
.ap-topbar {
  background: var(--grafito);
  color: #aab1c0;
  font-size: .82rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--grafito-3);
}
.ap-topbar__slogan i { color: var(--rojo); }
.ap-topbar__links { display: flex; gap: 1.1rem; align-items: center; }
.ap-topbar__links a { color: #c5cbd6; font-weight: 500; }
.ap-topbar__links a:hover { color: #fff; }
.ap-topbar__premium {
  background: var(--rojo);
  color: #fff !important;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.ap-header {
  background: var(--grafito);
  border-bottom: 3px solid var(--rojo);
  position: sticky;
  top: 0;
  z-index: 200;
}
.ap-header .navbar { padding: .7rem 0; }

.ap-logo { display: flex; align-items: center; gap: .55rem; }
.ap-logo__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--rojo);
  color: #fff;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 900;
}
.ap-logo__text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
}
.ap-logo__text strong { color: var(--rojo); font-weight: 800; }

.ap-header .navbar-nav .nav-link {
  color: #d4d8e0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: .4rem .85rem !important;
  border-radius: 5px;
  transition: color .15s, background .15s;
}
.ap-header .navbar-nav .nav-link:hover { color: #fff; background: var(--grafito-3); }
.nav-link--tools { color: #fff !important; }
.nav-link--tools i { color: var(--rojo); }
.ap-header .navbar-toggler {
  border: 1px solid var(--grafito-3);
  color: #fff;
  font-size: 1.3rem;
  padding: .2rem .55rem;
}

.ap-search { display: flex; position: relative; }
.ap-search input {
  border: 1px solid var(--grafito-3);
  background: var(--grafito-2);
  color: #fff;
  border-radius: 6px;
  padding: .45rem .9rem;
  min-width: 220px;
  font-size: .92rem;
}
.ap-search input::placeholder { color: #6b7280; }
.ap-search input:focus { outline: none; border-color: var(--rojo); background: var(--grafito-3); }
.ap-search button {
  background: var(--rojo);
  border: none;
  color: #fff;
  border-radius: 6px;
  margin-left: .35rem;
  padding: 0 .9rem;
}
.ap-search button:hover { background: var(--rojo-osc); }
.ap-search--page { max-width: 520px; margin: 0 0 1.5rem; }
.ap-search--page input { background: #fff; color: var(--tinta); border-color: var(--gris-borde); }
.ap-search--page input::placeholder { color: var(--gris); }

/* =====================================================================
   ESTRUCTURA
   ===================================================================== */
.ap-main { min-height: 60vh; padding-bottom: 2rem; }
.ap-body { padding: 1.8rem 0; }

/* ---------- Encabezados de seccion ---------- */
.ap-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 1.6rem 0 1.1rem;
}
.ap-section-head h1, .ap-section-head h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
  padding-left: .7rem;
  border-left: 5px solid var(--rojo);
  line-height: 1;
}
.ap-section-head h2 i { color: var(--rojo); -webkit-text-fill-color: var(--rojo); }
.ap-section-head a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--gris);
}
.ap-section-head a:hover { color: var(--rojo); }
.ap-section-head--page {
  border-bottom: 1px solid var(--gris-borde);
  padding-bottom: .8rem;
  margin-top: 0;
}
.ap-section-head--page h1 { font-size: 2rem; }
.ap-section-intro { color: var(--gris); margin: -.3rem 0 1.3rem; }
.ap-section-center { text-align: center; font-size: 1.8rem; text-transform: uppercase; margin: 2.5rem 0 1.4rem; }
.ap-section-block { margin-top: 2rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.ap-hero { padding: 1.8rem 0 .4rem; }
.ap-hero__side { display: flex; flex-direction: column; gap: .85rem; height: 100%; } 
.ap-hero__main { display: flex; flex-direction: column; gap: .85rem; height: 100%; }

/* =====================================================================
   TARJETAS DE NOTICIA
   ===================================================================== */
.ap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.ap-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ap-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ap-card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ap-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.ap-card__img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.ap-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ap-card:hover .ap-card__img img { transform: scale(1.05); }
.ap-card__cat {
  position: absolute; top: .6rem; left: .6rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .2rem .55rem;
  border-radius: 3px;
}
.ap-card__sponsor {
  position: absolute; top: .6rem; right: .6rem;
  background: rgba(15,17,21,.85);
  color: #f5c451;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 3px;
}
.ap-card__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; }
.ap-card__title { font-size: 1.08rem; line-height: 1.25; margin: 0 0 .4rem; }
.ap-card__title a { color: var(--grafito); }
.ap-card__title a:hover { color: var(--rojo); }
.ap-card__excerpt { color: var(--gris); font-size: .92rem; margin: 0 0 .6rem; }
.ap-card__meta {
  margin-top: auto;
  display: flex; gap: .9rem;
  color: var(--gris);
  font-size: .8rem;
  padding-top: .5rem;
  border-top: 1px solid var(--gris-claro);
}
.ap-card__meta i { color: var(--rojo); }

.ap-card--big .ap-card__img { aspect-ratio: 16/9; }
.ap-card--big .ap-card__title { font-size: 1.7rem; }
.ap-card--big .ap-card__body { padding: 1.1rem 1.2rem 1.3rem; }

/* ---------- Lista compacta ---------- */
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-list li { border-bottom: 1px solid var(--gris-claro); }
.ap-list li:last-child { border-bottom: none; }
.ap-list a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem 0;
}
.ap-list__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gris-borde);
  width: 1.4rem; text-align: center;
  flex-shrink: 0;
}
.ap-list li:nth-child(1) .ap-list__num,
.ap-list li:nth-child(2) .ap-list__num,
.ap-list li:nth-child(3) .ap-list__num { color: var(--rojo); }
.ap-list a img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ap-list__title { font-size: .9rem; line-height: 1.3; color: var(--tinta); font-weight: 500; }
.ap-list a:hover .ap-list__title { color: var(--rojo); }

/* =====================================================================
   WIDGETS / SIDEBAR
   ===================================================================== */
.ap-widget {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1rem 1.1rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--sombra);
}
.ap-widget__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 0 0 .7rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--grafito);
}
.ap-widget__title i { color: var(--rojo); }
.ap-widget--cta {
  background: linear-gradient(150deg, var(--grafito), var(--grafito-2));
  border: none;
  color: #cdd2dc;
  text-align: center;
}
.ap-widget--cta h3 { color: #fff; font-size: 1.2rem; text-transform: uppercase; }
.ap-widget--cta h3 i { color: #f5c451; }
.ap-widget--cta p { font-size: .9rem; margin: .5rem 0 .9rem; }

.ap-brands-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.ap-brands-cloud a {
  background: var(--gris-claro);
  color: var(--grafito);
  font-family: var(--display);
  font-weight: 600;
  font-size: .85rem;
  padding: .25rem .6rem;
  border-radius: 4px;
}
.ap-brands-cloud a:hover { background: var(--rojo); color: #fff; }

/* =====================================================================
   HERRAMIENTAS RAPIDAS
   ===================================================================== */
.ap-tools-quick { padding: .8rem 0; }
.ap-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .8rem;
}
.ap-tool-card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1rem .7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  box-shadow: var(--sombra);
  transition: transform .15s ease, border-color .15s ease;
}
.ap-tool-card:hover { transform: translateY(-3px); border-color: var(--rojo); }
.ap-tool-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 1.35rem;
}
.ap-tool-card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: .86rem;
  color: var(--grafito);
  line-height: 1.15;
  text-transform: uppercase;
}
.ap-tools-grid--full { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ap-tools-grid--full .ap-tool-card { padding: 1.5rem 1.1rem; }
.ap-tool-card--soon h3 { font-size: 1.05rem; text-transform: uppercase; margin: .3rem 0 0; }
.ap-tool-card--soon p { font-size: .85rem; color: var(--gris); margin: 0; }
.ap-tool-card__soon {
  background: var(--gris-claro);
  color: var(--gris);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 12px;
  margin-top: .3rem;
}
.ap-tools-hero { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.ap-tools-hero h1 { font-size: 2.2rem; text-transform: uppercase; margin: .6rem 0 .5rem; }
.ap-tools-hero p { color: var(--gris); }

/* =====================================================================
   BADGES / CAJAS
   ===================================================================== */
.ap-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--grafito);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .6px;
  padding: .3rem .8rem;
  border-radius: 20px;
}
.ap-badge i { color: var(--rojo); }
.ap-badge--gold { background: linear-gradient(135deg, var(--naranja), var(--rojo)); }
.ap-badge--gold i { color: #fff; }

.ap-cta-box, .ap-note-box {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.6rem;
  margin-top: 2rem;
  box-shadow: var(--sombra);
}
.ap-cta-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(150deg, var(--grafito), var(--grafito-2));
  border: none;
}
.ap-cta-box h2 { color: #fff; text-transform: uppercase; margin: 0 0 .3rem; }
.ap-cta-box p { color: #aab1c0; margin: 0; }
.ap-note-box {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fff7ed;
  border-color: #fed7aa;
}
.ap-note-box i { color: var(--naranja); font-size: 1.4rem; }
.ap-note-box p { margin: 0; color: #9a3412; }

/* =====================================================================
   BREADCRUMB
   ===================================================================== */
.ap-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--gris-borde);
  font-size: .84rem;
  padding: .55rem 0;
}
.ap-breadcrumb a { color: var(--gris); }
.ap-breadcrumb a:hover { color: var(--rojo); }
.ap-breadcrumb span { color: var(--grafito); font-weight: 600; }
.ap-breadcrumb i { color: var(--gris-borde); font-size: .7rem; }

/* =====================================================================
   PAGINACION
   ===================================================================== */
.ap-paginacion { margin: 1.8rem 0 .5rem; }
.ap-paginacion ul { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.ap-paginacion a, .ap-paginacion span {
  display: grid; place-items: center;
  min-width: 38px; height: 38px;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--grafito);
}
.ap-paginacion a:hover { border-color: var(--rojo); color: var(--rojo); }
.ap-paginacion .activa span { background: var(--rojo); border-color: var(--rojo); color: #fff; }

/* =====================================================================
   ORDEN (tabs)
   ===================================================================== */
.ap-orden { display: flex; gap: .3rem; }
.ap-orden a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--gris);
  padding: .3rem .8rem;
  border-radius: 5px;
  border: 1px solid var(--gris-borde);
  background: #fff;
}
.ap-orden a.activo { background: var(--grafito); color: #fff; border-color: var(--grafito); }

/* =====================================================================
   COMPARTIR
   ===================================================================== */
.ap-share {
  display: flex; align-items: center; gap: .5rem;
  margin: 1.1rem 0;
  flex-wrap: wrap;
}
.ap-share span { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: .85rem; color: var(--gris); }
.ap-share a, .ap-share__copy {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: #fff;
  border: none;
  font-size: 1.05rem;
}
.ap-share .wa { background: #25d366; }
.ap-share .fb { background: #1877f2; }
.ap-share .tw { background: #000; }
.ap-share .tg { background: #0088cc; }
.ap-share__copy { background: var(--gris); cursor: pointer; }
.ap-share a:hover, .ap-share__copy:hover { opacity: .85; color: #fff; }

/* =====================================================================
   ARTICULO
   ===================================================================== */
.ap-article {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.6rem;
  box-shadow: var(--sombra);
}
.ap-article__sponsor-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  padding: .25rem .7rem;
  border-radius: 4px;
  margin-bottom: .8rem;
}
.ap-article__cat {
  display: inline-block;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .5px;
  padding: .25rem .7rem;
  border-radius: 4px;
}
.ap-article__title {
  font-size: 2.3rem;
  line-height: 1.1;
  margin: .7rem 0 .5rem;
}
.ap-article__lead {
  font-size: 1.15rem;
  color: var(--gris);
  font-weight: 500;
  line-height: 1.5;
}
.ap-article__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--gris-claro);
  border-bottom: 1px solid var(--gris-claro);
  font-size: .85rem;
  color: var(--gris);
  margin: .8rem 0;
}
.ap-article__meta i { color: var(--rojo); }
.ap-article__brand { color: var(--azul); font-weight: 600; }
.ap-article__image { margin: 1rem 0; }
.ap-article__image img { width: 100%; border-radius: var(--radio); }
.ap-article__content { font-size: 1.05rem; line-height: 1.75; color: #2a2e38; }
.ap-article__content p { margin: 0 0 1.1rem; }
.ap-article__content h2, .ap-article__content h3 { margin: 1.6rem 0 .7rem; }
.ap-article__content img { border-radius: var(--radio); margin: 1rem 0; }
.ap-article__content a { text-decoration: underline; }
.ap-article__source {
  background: var(--gris-claro);
  border-left: 4px solid var(--gris);
  padding: .7rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: .9rem;
  color: var(--gris);
  margin: 1.2rem 0;
}
.ap-article__source i { color: var(--rojo); }

/* ---------- CTA ClasiCar ---------- */
.ap-clasicar-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  background: linear-gradient(135deg, var(--azul-osc), var(--azul));
  color: #fff;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radio);
  margin: 1.6rem 0;
}
.ap-clasicar-cta h4 { color: #fff; text-transform: uppercase; margin: 0 0 .25rem; }
.ap-clasicar-cta p { margin: 0; color: #cdd9f5; font-size: .92rem; }

/* ---------- Relacionados ---------- */
.ap-related { margin-top: 2rem; }
.ap-related h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  padding-left: .6rem;
  border-left: 5px solid var(--rojo);
  margin-bottom: 1rem;
}

/* ---------- Marca header ---------- */
.ap-brand-head {
  display: flex; align-items: center; gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sombra);
}
.ap-brand-head img { max-height: 64px; max-width: 140px; object-fit: contain; }
.ap-brand-head__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--grafito);
  color: var(--rojo);
  border-radius: 10px;
  font-size: 1.8rem;
}
.ap-brand-head h1 { font-size: 2rem; text-transform: uppercase; margin: 0; }
.ap-brand-head__country { color: var(--gris); font-size: .9rem; }

/* =====================================================================
   PREMIUM
   ===================================================================== */
.ap-premium-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}
.ap-premium-hero h1 { font-size: 2.4rem; text-transform: uppercase; margin: .7rem 0 .5rem; }
.ap-premium-hero p { color: var(--gris); font-size: 1.05rem; }

.ap-premium-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1rem;
}
.ap-benefit {
  display: flex; gap: .8rem; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.1rem;
  box-shadow: var(--sombra);
}
.ap-benefit i { color: var(--rojo); font-size: 1.6rem; }
.ap-benefit h3 { font-size: 1.05rem; text-transform: uppercase; margin: 0 0 .2rem; }
.ap-benefit p { font-size: .88rem; color: var(--gris); margin: 0; }

.ap-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.ap-plan {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.6rem 1.3rem;
  text-align: center;
  box-shadow: var(--sombra);
  position: relative;
}
.ap-plan--destacado {
  border: 2px solid var(--rojo);
  box-shadow: var(--sombra-alta);
}
.ap-plan__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--rojo);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .72rem;
  padding: .2rem .8rem;
  border-radius: 12px;
}
.ap-plan__name { font-size: 1.3rem; text-transform: uppercase; margin: 0 0 .6rem; }
.ap-plan__price { display: flex; align-items: baseline; justify-content: center; gap: .25rem; }
.ap-plan__currency { font-family: var(--display); font-weight: 700; color: var(--gris); }
.ap-plan__amount { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--grafito); line-height: 1; }
.ap-plan__period { color: var(--gris); font-size: .9rem; margin: .1rem 0; }
.ap-plan__usd { color: var(--gris); font-size: .82rem; }
.ap-plan__features { list-style: none; padding: 0; margin: 1rem 0; text-align: left; }
.ap-plan__features li { padding: .35rem 0; font-size: .9rem; border-bottom: 1px solid var(--gris-claro); }
.ap-plan__features i { color: var(--verde); margin-right: .4rem; }

/* =====================================================================
   PUBLICIDAD
   ===================================================================== */
.ap-publi-hero, .ap-tools-hero { text-align: center; }
.ap-publi-hero { max-width: 760px; margin: 0 auto 2rem; }
.ap-publi-hero h1 { font-size: 2.3rem; text-transform: uppercase; margin: .6rem 0 .5rem; }
.ap-publi-hero p { color: var(--gris); }
.ap-publi-espacios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.ap-espacio {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.3rem 1rem;
  text-align: center;
  box-shadow: var(--sombra);
}
.ap-espacio i { color: var(--rojo); font-size: 1.9rem; }
.ap-espacio h3 { font-size: 1.05rem; text-transform: uppercase; margin: .5rem 0 .3rem; }
.ap-espacio p { font-size: .86rem; color: var(--gris); margin: 0; }

.ap-check-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.ap-check-list li { padding: .35rem 0; font-size: .92rem; color: #cdd2dc; }
.ap-check-list i { color: #4ade80; margin-right: .4rem; }

/* =====================================================================
   FORMULARIOS
   ===================================================================== */
.ap-form-card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.6rem;
  box-shadow: var(--sombra);
}
.ap-form-card h2 { font-size: 1.4rem; text-transform: uppercase; margin: 0 0 1.1rem; }
.ap-form-card h2 i { color: var(--rojo); }
.ap-form .form-label { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: .85rem; color: var(--grafito); }
.ap-form .form-control, .ap-form .form-select {
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  padding: .55rem .8rem;
}
.ap-form .form-control:focus, .ap-form .form-select:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.ap-contact-info {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.3rem;
  box-shadow: var(--sombra);
}
.ap-contact-info h3 { font-size: 1.15rem; text-transform: uppercase; margin: 0 0 .8rem; }
.ap-contact-info p { margin: .45rem 0; color: var(--tinta); }
.ap-contact-info i { color: var(--rojo); width: 1.2rem; }

/* =====================================================================
   AUTENTICACION
   ===================================================================== */
.ap-auth { display: flex; justify-content: center; padding: 1.5rem 0; }
.ap-auth__card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-alta);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}
.ap-auth__head { text-align: center; margin-bottom: 1.3rem; }
.ap-auth__head .ap-logo__icon { margin: 0 auto .6rem; width: 54px; height: 54px; font-size: 1.8rem; }
.ap-auth__head h1 { font-size: 1.7rem; text-transform: uppercase; margin: 0; }
.ap-auth__head p { color: var(--gris); font-size: .9rem; margin: .2rem 0 0; }
.ap-auth__link { font-size: .85rem; color: var(--gris); }
.ap-auth__foot {
  text-align: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gris-claro);
  font-size: .9rem;
  color: var(--gris);
}

/* =====================================================================
   PANEL DE USUARIO
   ===================================================================== */
.ap-panel-head {
  display: flex; align-items: center; gap: 1.1rem;
  background: linear-gradient(150deg, var(--grafito), var(--grafito-2));
  border-radius: var(--radio);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.ap-panel-avatar {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--rojo);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
}
.ap-panel-head h1 { color: #fff; text-transform: uppercase; margin: 0 0 .3rem; font-size: 1.7rem; }
.ap-panel-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--grafito-3);
  color: #cdd2dc;
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: 12px;
}
.ap-panel-badge--premium { background: linear-gradient(135deg, var(--naranja), var(--rojo)); color: #fff; }

/* =====================================================================
   PAGINA ESTATICA
   ===================================================================== */
.ap-page {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 2rem;
  box-shadow: var(--sombra);
}
.ap-page__title {
  font-size: 2rem;
  text-transform: uppercase;
  padding-bottom: .7rem;
  border-bottom: 3px solid var(--rojo);
  margin: 0 0 1.3rem;
}
.ap-page__content { font-size: 1.03rem; line-height: 1.75; color: #2a2e38; }
.ap-page__content h2, .ap-page__content h3 { margin: 1.5rem 0 .6rem; }
.ap-page__content p { margin: 0 0 1rem; }
.ap-page__updated { color: var(--gris); font-size: .85rem; margin-top: 1.5rem; }

.ap-search-count { color: var(--gris); margin-bottom: 1rem; }
.ap-search-count strong { color: var(--rojo); }

/* =====================================================================
   404
   ===================================================================== */
.ap-404 { text-align: center; padding: 2.5rem 1rem; }
.ap-404__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: 7rem;
  line-height: 1;
  color: var(--rojo);
}
.ap-404 h1 { font-size: 2rem; text-transform: uppercase; }
.ap-404 p { color: var(--gris); }
.ap-404__actions { display: flex; gap: .7rem; justify-content: center; margin-top: 1.2rem; }

/* =====================================================================
   ESTADO VACIO
   ===================================================================== */
.ap-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 1px dashed var(--gris-borde);
  border-radius: var(--radio);
  color: var(--gris);
}
.ap-empty i { font-size: 2.6rem; color: var(--gris-borde); }
.ap-empty p { margin: .7rem 0; }

/* =====================================================================
   BANNERS
   ===================================================================== */
.ap-banner { position: relative; display: inline-block; max-width: 100%; }
.ap-banner img { border-radius: 4px; }
.ap-banner__label {
  position: absolute; top: 2px; right: 2px;
  background: rgba(15,17,21,.6);
  color: #fff;
  font-size: .58rem;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
}
.ap-banner--sticky_mobile .ap-banner__label { display: none; }

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.ap-newsletter {
  background: linear-gradient(135deg, var(--rojo), var(--naranja));
  padding: 1.8rem 0;
  color: #fff;
  margin-top: 2rem;
}
.ap-newsletter h3 { color: #fff; text-transform: uppercase; margin: 0 0 .3rem; }
.ap-newsletter p { margin: 0; color: rgba(255,255,255,.9); }
.ap-newsletter__form { display: flex; gap: .5rem; }
.ap-newsletter__form input {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: .65rem .9rem;
}
.ap-newsletter__form .btn {
  background: var(--grafito);
  border: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  padding: .65rem 1.3rem;
}
.ap-newsletter__form .btn:hover { background: #000; color: #fff; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.ap-footer {
  background: var(--grafito);
  color: #9aa1af;
  padding: 2.5rem 0 1.2rem;
  font-size: .9rem;
}
.ap-footer h5 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.ap-footer ul { list-style: none; padding: 0; margin: 0; }
.ap-footer ul li { margin-bottom: .4rem; }
.ap-footer ul a { color: #9aa1af; }
.ap-footer ul a:hover { color: var(--rojo); }
.ap-logo--footer .ap-logo__text { font-size: 1.3rem; }
.ap-footer__desc { margin: .8rem 0; line-height: 1.6; }
.ap-footer__social { display: flex; gap: .5rem; }
.ap-footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--grafito-3);
  color: #fff;
  border-radius: 6px;
  font-size: 1.05rem;
}
.ap-footer__social a:hover { background: var(--rojo); color: #fff; }
.ap-footer__bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--grafito-3);
  font-size: .82rem;
  color: #6b7280;
}
.ap-footer__bottom a { color: #9aa1af; }

/* =====================================================================
   STICKY MOBILE / WHATSAPP
   ===================================================================== */
.ap-sticky-mobile {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--gris-borde);
  padding: .4rem;
  text-align: center;
  z-index: 300;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.ap-sticky-mobile__close {
  position: absolute; top: -26px; right: 6px;
  width: 26px; height: 26px;
  background: var(--grafito);
  color: #fff;
  border: none;
  border-radius: 50% 50% 0 0;
  font-size: 1rem;
  line-height: 1;
}
.ap-whatsapp-float {
  position: fixed; bottom: 18px; right: 18px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 1.7rem;
  box-shadow: var(--sombra-alta);
  z-index: 250;
}
.ap-whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
  .ap-header { position: static; }
  .ap-search { margin-top: .7rem; }
  .ap-search input { min-width: 0; width: 100%; }
  .ap-tools-grid { grid-template-columns: repeat(3, 1fr); }
  .ap-premium-benefits, .ap-publi-espacios { grid-template-columns: repeat(2, 1fr); }
  .ap-clasicar-cta, .ap-cta-box { flex-direction: column; text-align: center; }
}
@media (max-width: 575px) {
  .ap-grid, .ap-grid--3, .ap-grid--2 { grid-template-columns: 1fr; }
  .ap-tools-grid, .ap-tools-grid--full { grid-template-columns: repeat(2, 1fr); }
  .ap-premium-benefits, .ap-publi-espacios { grid-template-columns: 1fr; }
  .ap-card--big .ap-card__title { font-size: 1.3rem; }
  .ap-article { padding: 1.1rem; }
  .ap-article__title { font-size: 1.6rem; }
  .ap-section-head h1, .ap-section-head--page h1 { font-size: 1.5rem; }
  .ap-404__code { font-size: 4.5rem; }
  .ap-topbar__slogan { display: none; }
}

/* =====================================================================
   FASE 3 - HERRAMIENTAS PARA CONDUCTORES
   ===================================================================== */

/* ---- Tarjetas del hub (enlace) ---- */
.ap-tool-card--link {
  text-decoration: none;
  color: inherit;
  position: relative;
}
.ap-tool-card--link h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  margin: .3rem 0 0;
  color: var(--grafito);
}
.ap-tool-card--link p { font-size: .85rem; color: var(--gris); margin: 0; }
.ap-tool-card__go {
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  color: var(--rojo);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}
.ap-tool-card__tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--azul);
  background: #e8efff;
  border-radius: 12px;
  padding: .12rem .5rem;
}

/* ---- Layout de cada herramienta ---- */
.ap-tool-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1.6rem;
  align-items: start;
}
.ap-tool-main {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.5rem;
}
.ap-tool-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.3rem;
  border-bottom: 2px solid var(--gris-borde);
}
.ap-tool-head__ic {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--tc, var(--rojo));
  color: #fff;
  font-size: 1.6rem;
}
.ap-tool-head h1 {
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 0 0 .15rem;
}
.ap-tool-head p { margin: 0; color: var(--gris); font-size: .9rem; }

/* ---- Formularios de herramienta ---- */
.ap-tool-form { margin-bottom: 1.2rem; }
.ap-tool-form .form-label {
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .25rem;
}
.ap-field-hint {
  display: block;
  font-size: .78rem;
  color: var(--gris);
  margin-top: .25rem;
}

/* ---- Resultados ---- */
.ap-tool-result {
  background: var(--gris-claro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.2rem;
  margin-top: 1.2rem;
}
.ap-tool-result__label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--gris);
  margin-bottom: .5rem;
}
.ap-tool-bignum {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--grafito);
  line-height: 1.1;
  margin-bottom: .8rem;
}
.ap-tool-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: 1rem;
}
.ap-tool-stats > div {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  padding: .6rem .7rem;
}
.ap-tool-stats span {
  display: block;
  font-size: .76rem;
  color: var(--gris);
  text-transform: uppercase;
}
.ap-tool-stats strong {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--grafito);
}
.ap-tool-table-wrap { overflow-x: auto; }
.ap-tool-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .86rem;
}
.ap-tool-table th, .ap-tool-table td {
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--gris-borde);
  text-align: right;
}
.ap-tool-table th:first-child, .ap-tool-table td:first-child { text-align: left; }
.ap-tool-table thead th {
  background: var(--grafito);
  color: #fff;
  text-transform: uppercase;
  font-size: .76rem;
}
.ap-tool-table__sep { text-align: center !important; color: var(--gris); }
.ap-tool-hint { font-size: .82rem; color: var(--gris); margin: .4rem 0 0; }
.ap-tool-disclaimer {
  display: flex;
  gap: .5rem;
  font-size: .8rem;
  color: var(--gris);
  background: #fff;
  border-left: 3px solid var(--naranja);
  padding: .6rem .8rem;
  margin: 1rem 0 0;
  border-radius: 4px;
}
.ap-tool-disclaimer i { color: var(--naranja); }

/* ---- Panel lateral de herramientas ---- */
.ap-tool-aside-nav {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1rem;
}
.ap-tool-aside-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .55rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--tinta);
  font-size: .86rem;
  font-weight: 500;
}
.ap-tool-aside-link:hover { background: var(--gris-claro); }
.ap-tool-aside-link.activo {
  background: var(--grafito);
  color: #fff;
}
.ap-tool-aside-ic { font-size: 1.05rem; }

/* ---- Tasador: rango de precios ---- */
.ap-tasador-rango {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.ap-tasador-rango__item {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  padding: .9rem .6rem;
  text-align: center;
}
.ap-tasador-rango__item span {
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  color: var(--gris);
}
.ap-tasador-rango__item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--grafito);
  margin: .15rem 0;
}
.ap-tasador-rango__item small { color: var(--gris); font-size: .78rem; }
.ap-tasador-rango__item--medio {
  background: var(--grafito);
  border-color: var(--grafito);
}
.ap-tasador-rango__item--medio span,
.ap-tasador-rango__item--medio small { color: #aab1c0; }
.ap-tasador-rango__item--medio strong { color: #fff; font-size: 1.35rem; }

/* ---- Comparador ---- */
.ap-compare-table td, .ap-compare-table th { text-align: center; }
.ap-compare-table__lbl {
  text-align: left !important;
  font-weight: 600;
  background: var(--gris-claro);
}

/* ---- Checklist ---- */
.ap-checklist-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--grafito);
  color: #fff;
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  position: sticky;
  top: .5rem;
  z-index: 5;
}
.ap-checklist-live span { font-size: .8rem; text-transform: uppercase; }
.ap-checklist-live strong { font-family: var(--display); font-size: 1.5rem; }
.ap-checklist-live.es-bajo strong { color: #4ade80; }
.ap-checklist-live.es-medio strong { color: #fbbf24; }
.ap-checklist-live.es-alto strong { color: #f87171; }
.ap-checklist-group {
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  padding: .5rem 1rem 1rem;
  margin-bottom: 1rem;
}
.ap-checklist-group legend {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--rojo);
  width: auto;
  padding: 0 .4rem;
  margin: 0;
}
.ap-checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--gris-borde);
}
.ap-checklist-item:last-child { border-bottom: 0; }
.ap-checklist-item__txt { font-size: .88rem; }
.ap-checklist-opts { display: flex; gap: .3rem; flex: 0 0 auto; }
.ap-checklist-opt {
  cursor: pointer;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  padding: .25rem .5rem;
  color: var(--gris);
  user-select: none;
}
.ap-checklist-opt input { display: none; }
.ap-checklist-opt--bien:has(input:checked) {
  background: var(--verde); color: #fff; border-color: var(--verde);
}
.ap-checklist-opt--regular:has(input:checked) {
  background: var(--naranja); color: #fff; border-color: var(--naranja);
}
.ap-checklist-opt--mal:has(input:checked) {
  background: var(--rojo); color: #fff; border-color: var(--rojo);
}
.ap-checklist-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.ap-checklist-result {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.ap-checklist-score {
  text-align: center;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: .8rem 1.1rem;
}
.ap-checklist-score__num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
}
.ap-checklist-score__lbl {
  font-size: .76rem;
  text-transform: uppercase;
  font-weight: 700;
}
.ap-checklist-score__txt p { margin: 0 0 .2rem; font-weight: 600; }
.ap-checklist-score__txt small { color: var(--gris); }
.ap-checklist-result--bajo  { border-left: 4px solid var(--verde); }
.ap-checklist-result--medio { border-left: 4px solid var(--naranja); }
.ap-checklist-result--alto  { border-left: 4px solid var(--rojo); }
.ap-checklist-result--bajo  .ap-checklist-score__num { color: var(--verde); }
.ap-checklist-result--medio .ap-checklist-score__num { color: var(--naranja); }
.ap-checklist-result--alto  .ap-checklist-score__num { color: var(--rojo); }

/* ---- Recordatorios ---- */
.ap-rec-list { display: flex; flex-direction: column; gap: .6rem; }
.ap-rec-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--gris-borde);
  border-radius: 8px;
  padding: .7rem .9rem;
}
.ap-rec-item--proximo { border-left-color: var(--naranja); }
.ap-rec-item--vencido { border-left-color: var(--rojo); }
.ap-rec-item__ic {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: grid; place-items: center;
  background: var(--gris-claro);
  border-radius: 8px;
  color: var(--grafito);
  font-size: 1.1rem;
}
.ap-rec-item__body { flex: 1; }
.ap-rec-item__body strong { font-size: .92rem; }
.ap-rec-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  font-size: .8rem;
  color: var(--gris);
  margin-top: .15rem;
}
.ap-rec-item__aviso { font-weight: 700; color: var(--grafito); }
.ap-rec-item--proximo .ap-rec-item__aviso { color: var(--naranja); }
.ap-rec-item--vencido .ap-rec-item__aviso { color: var(--rojo); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .ap-tool-layout { grid-template-columns: 1fr; }
  .ap-tool-stats { grid-template-columns: 1fr; }
  .ap-tasador-rango { grid-template-columns: 1fr; }
  .ap-checklist-item { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .ap-checklist-result { flex-direction: column; text-align: center; }
}

/* =====================================================================
   FASE 4 - CHECKOUT, PAGOS Y SUSCRIPCIONES
   ===================================================================== */

.ap-checkout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.6rem;
  align-items: start;
}
.ap-checkout__main {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.6rem;
}
.ap-checkout__title {
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}

/* ---- Resumen lateral ---- */
.ap-checkout__resumen {
  background: var(--grafito);
  color: #fff;
  border-radius: var(--radio);
  padding: 1.2rem;
}
.ap-checkout__resumen h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 .8rem;
  color: #aab1c0;
}
.ap-checkout__plan {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  border-bottom: 1px solid #2c313c;
  padding-bottom: .7rem;
  margin-bottom: .7rem;
}
.ap-checkout__plan span { font-weight: 600; }
.ap-checkout__plan strong {
  font-family: var(--display);
  font-size: 1.4rem;
}
.ap-checkout__dias { font-size: .85rem; color: #aab1c0; margin: 0; }
.ap-checkout__resumen .ap-field-hint { color: #8b93a3; }

/* ---- Seleccion de medio de pago ---- */
.ap-pay-methods { display: flex; flex-direction: column; gap: .7rem; }
.ap-pay-method {
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 2px solid var(--gris-borde);
  border-radius: 10px;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ap-pay-method:hover { border-color: var(--gris); }
.ap-pay-method:has(input:checked) {
  border-color: var(--rojo);
  background: #fef2f2;
}
.ap-pay-method input { accent-color: var(--rojo); width: 18px; height: 18px; }
.ap-pay-method__ic {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--grafito);
  color: #fff;
  border-radius: 9px;
  font-size: 1.3rem;
}
.ap-pay-method__txt strong { display: block; font-size: .98rem; }
.ap-pay-method__txt small { color: var(--gris); font-size: .82rem; }

/* ---- Cajas de pago (etapa B) ---- */
.ap-pay-box {
  border: 1px solid var(--gris-borde);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.ap-pay-box h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 .6rem;
}
.ap-pay-box--upload { background: var(--gris-claro); }
.ap-pay-qr {
  text-align: center;
  margin: 1rem 0;
}
.ap-pay-qr img {
  max-width: 240px;
  width: 100%;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: var(--sombra);
}
.ap-pay-data {
  list-style: none;
  padding: 0;
  margin: .8rem 0;
}
.ap-pay-data li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .8rem;
  background: var(--gris-claro);
  border-radius: 6px;
  margin-bottom: .4rem;
}
.ap-pay-data span { color: var(--gris); text-transform: uppercase; font-size: .78rem; }
.ap-pay-data strong { font-family: var(--display); font-size: 1.05rem; }
.ap-pay-instr {
  background: var(--gris-claro);
  border-left: 3px solid var(--azul);
  padding: .7rem .9rem;
  border-radius: 4px;
  font-size: .9rem;
  white-space: pre-line;
}
.ap-pay-box--upload .ap-pay-instr { background: #fff; }
.ap-pay-msg { font-size: .9rem; margin-top: .6rem; font-weight: 600; }
.ap-pay-msg.es-ok { color: var(--verde); }
.ap-pay-msg.es-error { color: var(--rojo); }

/* ---- Etiqueta de estado ---- */
.ap-estado-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 12px;
  margin-top: .8rem;
}
.ap-estado-tag--pendiente { background: #fef3c7; color: #92400e; }

/* ---- Paginas de resultado de pago ---- */
.ap-pago-final {
  max-width: 540px;
  margin: 1rem auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 2.4rem 1.6rem;
}
.ap-pago-final i { font-size: 3.4rem; }
.ap-pago-final--ok i { color: var(--verde); }
.ap-pago-final--wait i { color: var(--naranja); }
.ap-pago-final h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: .6rem 0 .4rem;
}
.ap-pago-final p { color: var(--gris); margin: 0 0 1.3rem; }
.ap-pago-final__acciones {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .ap-checkout { grid-template-columns: 1fr; }
}

/* ---- Panel: lista de pagos del usuario ---- */
.ap-panel-pagos { list-style: none; padding: 0; margin: 0; }
.ap-panel-pagos li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--gris-borde);
}
.ap-panel-pagos li:last-child { border-bottom: 0; }
.ap-panel-pagos strong { display: block; font-size: .88rem; }
.ap-panel-pagos small { color: var(--gris); font-size: .78rem; }
.ap-panel-pagos__est {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 12px;
  white-space: nowrap;
}

/* =====================================================================
   FASE 5 - CONTENIDO PATROCINADO (PUBLINOTAS)
   ===================================================================== */

.ap-sponsored-block { margin-top: 1.5rem; }
.ap-sponsored-head {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.ap-sponsored-head i { color: var(--naranja); }

.ap-card--sponsor {
  border: 1px solid #fed7aa;
  background: #fffbf5;
}
.ap-card__sponsor-flag {
  position: absolute;
  top: .6rem; left: .6rem;
  background: var(--naranja);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .2rem .55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.ap-card__by {
  font-size: .76rem;
  color: var(--naranja);
  font-weight: 600;
  margin-top: .35rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* =====================================================================
   FASE 6 - PWA E INTEGRACION CON CLASICAR
   ===================================================================== */

/* ---- Tarjeta de instalacion de la app ---- */
.ap-install-card {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 130%);
  z-index: 1080;
  width: calc(100% - 24px);
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--grafito);
  color: #fff;
  border-radius: 12px;
  padding: .8rem 1rem;
  box-shadow: var(--sombra-alta);
  transition: transform .3s ease;
}
.ap-install-card.visible { transform: translate(-50%, 0); }
.ap-install-card__ic {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid; place-items: center;
  background: var(--rojo);
  border-radius: 9px;
  font-size: 1.25rem;
}
.ap-install-card__txt { flex: 1; line-height: 1.25; }
.ap-install-card__txt strong { display: block; font-size: .95rem; }
.ap-install-card__txt small { color: #aab1c0; font-size: .78rem; }
.ap-install-card__btn {
  background: var(--rojo);
  color: #fff;
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .82rem;
  padding: .5rem .9rem;
  border-radius: 7px;
  cursor: pointer;
}
.ap-install-card__btn:hover { background: var(--rojo-osc); }
.ap-install-card__close {
  background: transparent;
  border: 0;
  color: #8b93a3;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
}

/* ---- Bloque CTA de ClasiCar ---- */
.ap-clasicar-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--grafito-2), var(--grafito));
  border-radius: var(--radio);
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0;
}
.ap-clasicar-box__tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .76rem;
  color: #fff;
  background: var(--rojo);
  padding: .15rem .55rem;
  border-radius: 4px;
}
.ap-clasicar-box__txt h3 {
  color: #fff;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: .45rem 0 .2rem;
}
.ap-clasicar-box__txt p { color: #aab1c0; margin: 0; font-size: .9rem; }

/* ---- Listado de avisos de ClasiCar (sidebar) ---- */
.ap-clasicar-list { list-style: none; padding: 0; margin: 0 0 .8rem; }
.ap-clasicar-list li { margin-bottom: .5rem; }
.ap-clasicar-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--tinta);
}
.ap-clasicar-list img,
.ap-clasicar-list__ph {
  width: 56px; height: 44px;
  flex: 0 0 56px;
  object-fit: cover;
  border-radius: 6px;
}
.ap-clasicar-list__ph {
  display: grid; place-items: center;
  background: var(--gris-claro);
  color: var(--gris);
}
.ap-clasicar-list__t { font-size: .84rem; line-height: 1.25; font-weight: 500; }
.ap-clasicar-list a:hover .ap-clasicar-list__t { color: var(--rojo); }

@media (max-width: 560px) {
  .ap-clasicar-box { flex-direction: column; align-items: flex-start; }
  .ap-clasicar-box .btn { width: 100%; }
}

/* =====================================================================
   FASE 6 - PAGINA /autos-en-venta (avisos de ClasiCar)
   ===================================================================== */

.ap-autos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ap-auto-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.ap-auto-card:hover {
  transform: translateY(-3px);
  border-color: var(--rojo);
}
.ap-auto-card__img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--gris-claro);
  overflow: hidden;
}
.ap-auto-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ap-auto-card__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gris);
  font-size: 2.4rem;
}
.ap-auto-card__flag {
  position: absolute;
  bottom: .55rem; left: .55rem;
  background: var(--grafito);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.ap-auto-card__body {
  padding: .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.ap-auto-card__body strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--grafito);
}
.ap-auto-card__go {
  margin-top: auto;
  font-size: .82rem;
  color: var(--rojo);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}

@media (max-width: 1024px) { .ap-autos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .ap-autos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .ap-autos-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   BOTON "CONTINUAR CON GOOGLE"
   ===================================================================== */

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn-google:hover {
  background: #f8f9fb;
  box-shadow: 0 1px 3px rgba(60,64,67,.16), 0 4px 8px rgba(60,64,67,.08);
  color: #1f1f1f;
}
.btn-google:active { background: #f1f3f4; }
.btn-google__ic {
  width: 18px; height: 18px;
  display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3c-1.6 4.7-6.1 8-11.3 8-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3l5.7-5.7C34.1 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/><path fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3l5.7-5.7C34.1 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/><path fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2c-2 1.5-4.5 2.4-7.2 2.4-5.2 0-9.6-3.3-11.3-7.9l-6.6 5.1C9.6 39.6 16.2 44 24 44z'/><path fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.3-2.2 4.2-4.1 5.6l6.2 5.2c-.4.4 6.6-4.8 6.6-14.8 0-1.3-.1-2.4-.4-3.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.ap-auth__divider {
  position: relative;
  text-align: center;
  margin: .8rem 0 1rem;
  color: var(--gris);
  font-size: .82rem;
}
.ap-auth__divider::before,
.ap-auth__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--gris-borde);
}
.ap-auth__divider::before { left: 0; }
.ap-auth__divider::after  { right: 0; }
.ap-auth__divider span { background: #fff; padding: 0 .4rem; }

/* =====================================================================
   HEADER - DROPDOWNS DE NAVEGACION
   ===================================================================== */

.ap-dropdown {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15, 17, 21, .25);
  padding: .45rem .35rem;
  min-width: 220px;
  margin-top: .3rem !important;
}
.ap-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
  font-size: .92rem;
  padding: .55rem .8rem;
  border-radius: 6px;
  color: var(--tinta, #1a1a1a);
}
.ap-dropdown .dropdown-item:hover,
.ap-dropdown .dropdown-item:focus {
  background: var(--rojo, #dc2626);
  color: #fff;
}
.ap-dropdown .dropdown-item i { font-size: .95rem; opacity: .8; }
.ap-dropdown .dropdown-divider { margin: .35rem .5rem; opacity: .35; }

/* Indicador de enlace externo */
.ap-extern {
  font-size: .72rem !important;
  opacity: .55;
  margin-left: .2rem;
}

/* Apertura por hover en desktop (mas comodo que click) */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu { display: block; }
  .navbar-nav .dropdown > .dropdown-toggle:active { pointer-events: none; }
}

/* =====================================================================
   BLOQUE DE CREDITOS / ATRIBUCION (notas generadas con IA)
   Estilo discreto, recuadro gris al estilo Diario Paraguayo.
   ===================================================================== */

.ap-articulo-creditos {
  margin: 1.8rem 0 1rem;
  padding: .85rem 1rem;
  background: #f4f5f7;
  border: 1px solid #e4e6ea;
  border-radius: 6px;
  color: #5b6271;
  font-size: .87rem;
  line-height: 1.55;
}

/* El icono queda oculto en la variante discreta. */
.ap-articulo-creditos__icono { display: none; }

.ap-articulo-creditos__cuerpo { flex: 1; min-width: 0; }
.ap-articulo-creditos__cuerpo p {
  margin: 0 0 .35rem;
  color: #5b6271;
}
.ap-articulo-creditos__cuerpo p:last-of-type { margin-bottom: 0; }
.ap-articulo-creditos__cuerpo strong {
  color: #2b303b;
  font-weight: 600;
}

.ap-articulo-creditos__sub {
  font-style: italic;
  font-size: .82rem !important;
  color: #7a8190 !important;
}

.ap-articulo-creditos__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .25rem;
  color: #5b6271 !important;
  text-decoration: underline !important;
  font-size: .85rem;
  font-weight: 500;
  background: transparent;
  padding: 0;
}
.ap-articulo-creditos__link:hover {
  color: var(--rojo, #dc2626) !important;
}
.ap-articulo-creditos__link i { font-size: .8rem; opacity: .7; }

/* =====================================================================
   CUERPO DEL ARTICULO - TEXTO JUSTIFICADO (uniforme para todas las notas)
   ===================================================================== */

.ap-article__content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: .01em;
}

/* En pantallas muy chicas, justify puede dejar huecos feos.
   Volvemos a alineacion izquierda para ancho < 480px. */
@media (max-width: 480px) {
  .ap-article__content p { text-align: left; hyphens: manual; }
}

/* =====================================================================
   FLASH MESSAGES (banner de exito/error/aviso en la cabecera publica)
   ===================================================================== */

.ap-flash {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 3rem 1.15rem 1.25rem;
  border: 1px solid transparent;
  border-left-width: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  animation: ap-flash-in .35s ease-out;
}

.ap-flash__icon { font-size: 1.55rem; flex-shrink: 0; line-height: 1; }
.ap-flash__msg  { flex: 1; min-width: 0; }

.ap-flash.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #14532d;
}
.ap-flash.alert-success .ap-flash__icon { color: #16a34a; }

.ap-flash.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
  color: #7f1d1d;
}
.ap-flash.alert-danger .ap-flash__icon { color: #dc2626; }

.ap-flash.alert-warning {
  background: #fefce8;
  border-color: #fde68a;
  border-left-color: #ca8a04;
  color: #713f12;
}
.ap-flash.alert-warning .ap-flash__icon { color: #ca8a04; }

.ap-flash.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #1d4ed8;
  color: #1e3a8a;
}
.ap-flash.alert-info .ap-flash__icon { color: #1d4ed8; }

.ap-flash .btn-close {
  position: absolute; right: .8rem; top: 50%;
  transform: translateY(-50%);
  opacity: .55;
}
.ap-flash .btn-close:hover { opacity: 1; }

@keyframes ap-flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   BLOQUE DE CREDITO DE COTIZACION (proveida por cambios.com.py)
   ===================================================================== */

.ap-cotiz-credito {
  margin: 1.2rem 0;
  padding: .85rem 1rem;
  background: #f4f5f7;
  border: 1px solid #e4e6ea;
  border-left: 3px solid var(--naranja, #ea580c);
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.55;
  color: #2b303b;
}
.ap-cotiz-credito i { color: var(--naranja, #ea580c); margin-right: .3rem; }
.ap-cotiz-credito strong { color: var(--rojo, #dc2626); }
.ap-cotiz-credito__attr {
  display: inline-block;
  margin-top: .25rem;
  font-style: italic;
  color: #5b6271;
  font-size: .82rem;
}
.ap-cotiz-credito__attr a {
  color: var(--rojo, #dc2626);
  text-decoration: underline;
  font-weight: 500;
}
.ap-cotiz-credito__attr a:hover { color: var(--naranja, #ea580c); }

/* =====================================================================
   PLAN BADGE (Free/Premium + contador mensual)
   ===================================================================== */

.ap-plan-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tipo cnt"
    "bar  bar"
    "msg  msg";
  align-items: center;
  gap: .35rem .9rem;
  padding: .85rem 1rem;
  background: #f4f5f7;
  border: 1px solid #e4e6ea;
  border-left: 4px solid #1d4ed8;
  border-radius: 8px;
  margin: 0 0 1.2rem;
  font-size: .9rem;
}
.ap-plan-badge--ok    { border-left-color: #16a34a; background: #f0fdf4; }
.ap-plan-badge--warn  { border-left-color: #ca8a04; background: #fefce8; }
.ap-plan-badge--limit { border-left-color: #dc2626; background: #fef2f2; }
.ap-plan-badge--visit { border-left-color: #1d4ed8; background: #eff6ff; grid-template-areas: "tipo cnt"; }

.ap-plan-badge__tipo { grid-area: tipo; font-weight: 700; color: #0f172a; white-space: nowrap; }
.ap-plan-badge__tipo i { color: var(--rojo, #dc2626); margin-right: .2rem; }
.ap-plan-badge--ok    .ap-plan-badge__tipo i { color: #16a34a; }
.ap-plan-badge--warn  .ap-plan-badge__tipo i { color: #ca8a04; }
.ap-plan-badge--limit .ap-plan-badge__tipo i { color: #dc2626; }

.ap-plan-badge__cnt { grid-area: cnt; text-align: right; color: #4b5563; font-size: .88rem; }
.ap-plan-badge__cnt strong { color: #0f172a; font-size: 1.05rem; }

.ap-plan-badge__bar {
  grid-area: bar;
  height: 6px;
  background: #e4e6ea;
  border-radius: 3px;
  overflow: hidden;
}
.ap-plan-badge__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #16a34a);
  transition: width .25s ease;
}
.ap-plan-badge--warn  .ap-plan-badge__bar span { background: linear-gradient(90deg, #ca8a04, #ca8a04); }
.ap-plan-badge--limit .ap-plan-badge__bar span { background: linear-gradient(90deg, #dc2626, #dc2626); width: 100% !important; }

.ap-plan-badge__msg { grid-area: msg; font-size: .82rem; color: #4b5563; }
.ap-plan-badge__cta { color: #dc2626; font-weight: 600; text-decoration: underline; }
.ap-plan-badge__cta:hover { color: #ea580c; }

/* =====================================================================
   PLAN BLOQUEO (panel cuando el plan no permite acceso)
   ===================================================================== */

.ap-plan-bloqueo {
  background: #fff;
  border: 2px dashed #e4e6ea;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.ap-plan-bloqueo__icon i {
  font-size: 3.5rem;
  color: #ea580c;
  margin-bottom: 1rem;
}
.ap-plan-bloqueo h2 {
  margin: 0 0 .8rem;
  color: #0f172a;
  font-size: 1.5rem;
}
.ap-plan-bloqueo p {
  margin: 0 0 1.5rem;
  color: #4b5563;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.ap-plan-bloqueo__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.ap-plan-bloqueo__actions .btn { padding: .65rem 1.5rem; font-weight: 600; }

/* =====================================================================
   PAGINA /mis-pagos
   ===================================================================== */

.ap-pagos-page__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e4e6ea;
}
.ap-pagos-page__head h1 { margin: 0 0 .3rem; color: #0f172a; }
.ap-pagos-page__head h1 i { color: var(--rojo, #dc2626); }
.ap-pagos-page__head p { margin: 0; font-size: .92rem; }

.ap-pagos-page__badge {
  display: flex; align-items: center; gap: .8rem;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(217,119,6,.25);
}
.ap-pagos-page__badge i { font-size: 1.8rem; }
.ap-pagos-page__badge strong { font-size: 1rem; }
.ap-pagos-page__badge small { opacity: .9; }

/* Filtros */
.ap-pagos-filtros {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e4e6ea;
}
.ap-pagos-filtros a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1rem;
  border-radius: 20px;
  background: #f4f5f7;
  color: #4b5563;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .15s;
}
.ap-pagos-filtros a:hover { background: #e4e6ea; color: #0f172a; }
.ap-pagos-filtros a.is-active {
  background: #0f172a; color: #fff;
  border-color: #0f172a;
}
.ap-pagos-filtros a span {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
  font-size: .75rem;
  text-align: center;
}
.ap-pagos-filtros a.is-active span { background: rgba(255,255,255,.2); }

/* Lista de pagos */
.ap-pagos-list { display: flex; flex-direction: column; gap: 1rem; }

.ap-pago-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "estado body acciones";
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .15s;
}
.ap-pago-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.07); }

.ap-pago-item--pendiente { border-left: 4px solid #ca8a04; }
.ap-pago-item--aprobado  { border-left: 4px solid #16a34a; }
.ap-pago-item--rechazado { border-left: 4px solid #dc2626; opacity: .8; }

.ap-pago-item__estado {
  grid-area: estado;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 16px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ap-pago-item__body { grid-area: body; }
.ap-pago-item__body h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: #0f172a;
}
.ap-pago-item__body h3 small { color: #7a8190; font-weight: 400; font-size: .85rem; }

.ap-pago-item__meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: .9rem;
  font-size: .85rem;
  color: #4b5563;
}
.ap-pago-item__meta li { display: inline-flex; align-items: center; gap: .25rem; }
.ap-pago-item__meta i { color: #7a8190; }

.ap-pago-item__hint {
  margin: .6rem 0 0;
  font-size: .85rem;
  color: #5b6271;
  padding: .5rem .75rem;
  background: #f4f5f7;
  border-left: 3px solid #1d4ed8;
  border-radius: 4px;
}

.ap-pago-item__acciones {
  grid-area: acciones;
  display: flex; flex-direction: column; gap: .4rem;
}

@media (max-width: 700px) {
  .ap-pago-item {
    grid-template-columns: 1fr;
    grid-template-areas: "estado" "body" "acciones";
  }
  .ap-pago-item__acciones { flex-direction: row; flex-wrap: wrap; }
}

/* Empty state */
.ap-pagos-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 2px dashed #e4e6ea;
  border-radius: 12px;
}
.ap-pagos-empty i {
  font-size: 3.5rem;
  color: #d1d5db;
  margin-bottom: .8rem;
}
.ap-pagos-empty h2 {
  margin: 0 0 .5rem;
  font-size: 1.3rem;
  color: #0f172a;
}
.ap-pagos-empty p { color: #5b6271; margin: 0 0 1.5rem; }

/* =====================================================================
   COMENTARIOS / RESEÑAS en noticias
   ===================================================================== */

.ap-comentarios {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e6ea;
  scroll-margin-top: 80px;
}

.ap-comentarios__titulo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: #0f172a;
}
.ap-comentarios__titulo i { color: var(--rojo, #dc2626); }
.ap-comentarios__count {
  background: #f4f5f7;
  color: #4b5563;
  font-size: .85rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* Form */
.ap-comentarios__form {
  background: #f9fafb;
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.ap-comentarios__form .form-label { font-size: .9rem; margin-bottom: .35rem; }
.ap-comentarios__form textarea {
  resize: vertical;
  min-height: 80px;
  font-size: .92rem;
}
.ap-comentarios__hint {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .6rem;
}

/* Estado: bloqueado para anonimos */
.ap-comentarios__login {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.ap-comentarios__login i {
  font-size: 2.5rem;
  color: #9ca3af;
  display: block;
  margin-bottom: .6rem;
}
.ap-comentarios__login p {
  color: #4b5563;
  margin: 0 0 1rem;
}
.ap-comentarios__login div .btn { margin: 0 .15rem; }

/* Lista de comentarios */
.ap-comentarios__lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-comentario {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .8rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 10px;
}

.ap-comentario__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #312e81);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.ap-comentario__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.ap-comentario__head {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}
.ap-comentario__head strong { color: #0f172a; font-size: .95rem; }
.ap-comentario__head time { color: #7a8190; font-size: .8rem; margin-left: auto; }

.ap-comentario__badge {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .2rem;
}

.ap-comentario__texto {
  margin: 0;
  color: #1f2937;
  line-height: 1.5;
  font-size: .93rem;
  word-break: break-word;
}

.ap-comentario__borrar {
  margin-top: .4rem;
}
.btn-link-rojo {
  background: none;
  border: 0;
  color: #b91c1c;
  font-size: .78rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.btn-link-rojo:hover { color: #7f1d1d; }

/* Vacio */
.ap-comentarios__vacio {
  text-align: center;
  padding: 2rem 1rem;
  color: #7a8190;
}
.ap-comentarios__vacio i {
  font-size: 2rem;
  display: block;
  margin-bottom: .5rem;
  color: #d1d5db;
}
.ap-comentarios__vacio p { margin: 0; font-size: .9rem; }

/* =====================================================================
   LOGO EN CAJA BLANCA REDONDEADA (header + footer)
   ===================================================================== */

.ap-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
}

.ap-logo__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 20px;
  padding: 0;
  transition: transform .15s;
}
.ap-logo:hover .ap-logo__box {
  transform: translateY(-1px);
}

.ap-logo__img {
  height: 50px;          /* tamaño en header (logo cuadrado con recuadro) */
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

/* Versión footer */
.ap-logo--footer .ap-logo__box {
  padding: 0;
}
.ap-logo--footer .ap-logo__img {
  height: 58px;
  max-width: 240px;
}

@media (max-width: 575px) {
  .ap-logo__img      { height: 42px; max-width: 170px; }
  .ap-logo__box      { padding: 0; border-radius: 16px; }
}

/* =====================================================================
   PWA INSTALL BANNER (inferior, mobile-first)
   ===================================================================== */

.ap-pwa-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 9998;
  padding: 14px 16px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .25s;
}
.ap-pwa-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.ap-pwa-banner__inner {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.ap-pwa-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.ap-pwa-banner__txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ap-pwa-banner__txt strong { font-size: .95rem; color: #0f172a; }
.ap-pwa-banner__txt span   { font-size: .78rem; color: #5b6271; }

.ap-pwa-banner__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.ap-pwa-banner__btn {
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  padding: .55rem .85rem;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: background .15s;
}
.ap-pwa-banner__btn--primary {
  background: var(--rojo, #dc2626);
  color: #fff;
}
.ap-pwa-banner__btn--primary:hover { background: #b91c1c; }
.ap-pwa-banner__btn--ghost {
  background: #f4f5f7;
  color: #5b6271;
  padding: .55rem .65rem;
}
.ap-pwa-banner__btn--ghost:hover { background: #e4e6ea; color: #0f172a; }

@media (max-width: 480px) {
  .ap-pwa-banner__txt span { display: none; } /* esconder subtexto en muy chico */
  .ap-pwa-banner__btn--primary { padding: .55rem .75rem; font-size: .82rem; }
}

/* Modal de instrucciones iOS */
.ap-pwa-ios-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s;
}
.ap-pwa-ios-modal.is-visible { opacity: 1; }

.ap-pwa-ios-modal__card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 380px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ap-pwa-ios-modal__close {
  position: absolute;
  top: 10px; right: 10px;
  border: 0;
  background: #f4f5f7;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: #5b6271;
}
.ap-pwa-ios-modal__icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  margin: 0 auto .8rem;
  display: block;
}
.ap-pwa-ios-modal__card h3 {
  font-size: 1.1rem;
  color: #0f172a;
  margin: 0 0 .8rem;
}
.ap-pwa-ios-modal__card ol {
  text-align: left;
  margin: 0;
  padding-left: 1.2rem;
  font-size: .9rem;
  line-height: 1.55;
  color: #334155;
}
.ap-pwa-ios-modal__card ol li { margin-bottom: .4rem; }
.ap-pwa-ios-modal__card ol i {
  display: inline-block;
  margin: 0 .15rem;
  color: #2563eb;
}

/* =====================================================================
   CLASICAR - precio y ciudad en cards de avisos
   ===================================================================== */
.ap-auto-card__precio {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rojo, #dc2626);
  margin-top: .25rem;
}
.ap-auto-card__ciudad {
  display: block;
  font-size: .8rem;
  color: #7a8190;
  margin-top: .15rem;
}
.ap-auto-card__ciudad i { color: #9ca3af; }

/* =====================================================================
   AUTOS EN VENTA - seccion destacada en home (integracion ClasiCar)
   ===================================================================== */

.ap-autos-home {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f9fafb 0%, #f4f5f7 100%);
  margin: 2rem 0;
}

.ap-autos-home__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}
.ap-autos-home__head .ap-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--rojo, #dc2626);
  color: #fff;
  padding: .3rem .75rem;
  border-radius: 16px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.ap-autos-home__head h2 {
  margin: 0 0 .25rem;
  font-size: 1.6rem;
  color: #0f172a;
}
.ap-autos-home__head p {
  margin: 0;
  color: #4b5563;
  font-size: .92rem;
}

.ap-autos-home__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 991px) {
  .ap-autos-home__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .ap-autos-home__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .ap-autos-home__grid { grid-template-columns: 1fr; gap: .7rem; }
}

/* La sección destacada usa .ap-auto-card (ya existe del CSS de /autos-en-venta).
   Si no estuviera definido, agregamos uno básico que funciona como respaldo. */
.ap-autos-home .ap-auto-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.ap-autos-home .ap-auto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  color: inherit;
}
.ap-autos-home .ap-auto-card__img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: #f4f5f7;
  overflow: hidden;
}
.ap-autos-home .ap-auto-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ap-autos-home .ap-auto-card__ph {
  display: flex;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #c4c9d3;
  font-size: 3rem;
}
.ap-autos-home .ap-auto-card__flag {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(15,23,42,.85);
  color: #fff;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}
.ap-autos-home .ap-auto-card__body {
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ap-autos-home .ap-auto-card__body strong {
  font-size: .9rem;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: .35rem;
  display: block;
}
.ap-autos-home .ap-auto-card__precio {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rojo, #dc2626);
  margin-bottom: .15rem;
}
.ap-autos-home .ap-auto-card__ciudad {
  font-size: .78rem;
  color: #7a8190;
  margin-top: auto;
}
.ap-autos-home .ap-auto-card__ciudad i { color: #9ca3af; margin-right: .15rem; }

/* =====================================================================
   PLACEHOLDERS DE PUBLICIDAD - "Anunciá acá"
   Se muestran cuando una ubicación no tiene banner activo.
   Cada uno respeta las dimensiones del slot correspondiente.
   ===================================================================== */

.ap-ph {
  display: flex;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, background .2s;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.ap-ph:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,38,38,.18);
}
.ap-ph::before {
  content: 'PUBLICIDAD';
  position: absolute;
  top: 4px; right: 6px;
  font-size: .58rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .08em;
  background: rgba(255,255,255,.7);
  padding: 1px 4px;
  border-radius: 3px;
  pointer-events: none;
}

/* ===== Variante HORIZONTAL (header, home_top, entre_bloques, footer) ===== */
.ap-ph--horiz {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  border-radius: 8px;
  /* Dimensiones del 728x90 con responsive a 970x90 */
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 0 auto;
}
.ap-ph--horiz .ap-ph__icon {
  font-size: 2.2rem;
  color: #fff;
  background: var(--rojo, #dc2626);
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-ph--horiz .ap-ph__body { flex: 1; line-height: 1.3; }
.ap-ph--horiz .ap-ph__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .25rem;
}
.ap-ph--horiz .ap-ph__sub {
  display: block;
  font-size: .85rem;
  color: #475569;
}
.ap-ph--horiz .ap-ph__cta {
  background: var(--rojo, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.1rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ap-ph--horiz .ap-ph__cta i { margin-left: .25rem; }

/* Tonos */
.ap-ph--top    { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 2px dashed #fb923c; }
.ap-ph--med    { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 2px dashed #f59e0b; }
.ap-ph--low    { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); border: 2px dashed #94a3b8; }

/* Mobile: stack vertical para los horizontales */
@media (max-width: 540px) {
  .ap-ph--horiz {
    flex-direction: column;
    gap: .6rem;
    padding: 1rem;
    min-height: 100px;
    text-align: center;
  }
  .ap-ph--horiz .ap-ph__icon {
    width: 40px; height: 40px;
    font-size: 1.5rem;
  }
  .ap-ph--horiz .ap-ph__title { font-size: 1rem; }
  .ap-ph--horiz .ap-ph__sub { font-size: .75rem; }
  .ap-ph--horiz .ap-ph__cta {
    font-size: .8rem;
    padding: .45rem .9rem;
  }
}

/* ===== Variante BOX (sidebar, in_article, entre_noticias) - 300x250 ===== */
.ap-ph--box {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 300px;
  height: 250px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  border-radius: 10px;
  background: linear-gradient(160deg, #fff 0%, #fef3c7 60%, #fde68a 100%);
  border: 2px dashed #f59e0b;
  gap: .5rem;
}
.ap-ph--box .ap-ph__icon {
  font-size: 2.8rem;
  color: var(--rojo, #dc2626);
  margin-bottom: .25rem;
}
.ap-ph--box .ap-ph__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.ap-ph--box .ap-ph__sub {
  font-size: .8rem;
  color: #6b5d35;
  margin-bottom: .25rem;
}
.ap-ph--box .ap-ph__cta {
  background: var(--rojo, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  margin-top: .25rem;
}
.ap-ph--box .ap-ph__brand {
  font-size: .65rem;
  color: #92400e;
  font-weight: 700;
  letter-spacing: .08em;
  margin-top: .35rem;
}

/* ===== Variante STICKY MOBILE - 320x50 ===== */
.ap-ph--sticky {
  width: 100%;
  max-width: 320px;
  min-height: 50px;
  align-items: center;
  gap: .6rem;
  padding: .35rem .8rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  color: #fff !important;
  border: none;
}
.ap-ph--sticky::before {
  color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.15);
}
.ap-ph--sticky i { font-size: 1.4rem; flex-shrink: 0; }
.ap-ph--sticky .ap-ph__title {
  flex: 1;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.ap-ph--sticky .ap-ph__cta {
  background: rgba(255,255,255,.95);
  color: var(--rojo, #dc2626);
  font-weight: 700;
  font-size: .78rem;
  padding: .25rem .6rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Anchor mejorado: heredar color en hover sin underline */
.ap-ph, .ap-ph:hover, .ap-ph:visited { color: inherit; }

/* =====================================================================
   MENSAJE DE SEGURIDAD bajo formularios protegidos con reCAPTCHA
   ===================================================================== */
.ap-form-security {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  background: linear-gradient(90deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 6px;
  font-size: .85rem;
  line-height: 1.5;
  color: #166534;
}
.ap-form-security > i {
  font-size: 1.4rem;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: .1rem;
}
.ap-form-security strong { color: #14532d; }
.ap-form-security a {
  color: #166534;
  text-decoration: underline;
  font-weight: 600;
}
.ap-form-security a:hover { color: #14532d; }

@media (max-width: 540px) {
  .ap-form-security {
    font-size: .8rem;
    padding: .75rem .9rem;
  }
  .ap-form-security > i { font-size: 1.2rem; }
}

/* =====================================================================
   HERRAMIENTAS PARA PILOTOS  (Karting Paraguay)
   Componentes de las 10 calculadoras. Estetica racing de marca.
   ===================================================================== */

.ap-tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.8rem; align-items: start; }
.ap-tool-main { min-width: 0; }

.ap-tool-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; margin-bottom: 1.4rem;
  background: var(--grafito); border-radius: var(--radio);
  border-left: 5px solid var(--tc, var(--rojo));
}
.ap-tool-head__ic {
  width: 54px; height: 54px; flex: 0 0 54px;
  display: grid; place-items: center;
  background: var(--tc, var(--rojo)); color: #fff;
  border-radius: 10px; font-size: 1.7rem;
}
.ap-tool-head h1 { color: #fff; font-size: 1.55rem; margin: 0 0 .15rem; }
.ap-tool-head p { color: #aab1c0; margin: 0; font-size: .92rem; text-transform: none; font-family: var(--texto); }

.ap-tool-card {
  background: var(--blanco); border: 1px solid var(--gris-borde);
  border-radius: var(--radio); padding: 1.3rem; box-shadow: var(--sombra);
}
.ap-card-h { font-size: 1.05rem; margin: 0 0 .8rem; color: var(--grafito); }
.ap-tool-card hr { border: 0; border-top: 1px solid var(--gris-borde); margin: 1.1rem 0; }

.ap-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.ap-field { display: flex; flex-direction: column; }
.ap-field--full { grid-column: 1 / -1; }
.ap-field-label { font-weight: 700; font-size: .85rem; margin-bottom: .35rem; color: var(--grafito); text-transform: uppercase; letter-spacing: .3px; font-family: var(--display); }
.ap-field-hint { font-size: .82rem; color: var(--gris); margin-top: .35rem; }
.ap-field-hint code, .ap-tool-card code { background: var(--gris-claro); padding: .05rem .35rem; border-radius: 4px; font-size: .82em; color: var(--grafito); }

.ap-input-suffix { position: relative; display: flex; align-items: center; }
.ap-input-suffix input { padding-right: 3.2rem; }
.ap-input-suffix span {
  position: absolute; right: .7rem; font-weight: 700; color: var(--gris);
  font-size: .85rem; pointer-events: none;
}

/* Resultados / stats */
.ap-tool-result {
  margin-top: 1.3rem; background: var(--grafito); border-radius: var(--radio);
  padding: 1.3rem; border: 1px solid var(--grafito-4);
}
.ap-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.ap-stat {
  background: var(--grafito-3); border-radius: 8px; padding: .9rem 1rem;
  display: flex; flex-direction: column; gap: .25rem; border: 1px solid var(--grafito-4);
}
.ap-stat--hl { border-color: var(--rojo); box-shadow: inset 0 0 0 1px var(--rojo); }
.ap-stat__label { font-size: .76rem; color: #9aa1af; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.ap-stat__val { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1; }
.ap-stat--hl .ap-stat__val { color: var(--rojo); }
.ap-note { color: #c5cbd6; font-size: .92rem; line-height: 1.5; margin: 0; }

/* Tablas de datos (tiempos, campeonato) */
.ap-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ap-table thead th {
  text-align: left; font-family: var(--display); text-transform: uppercase;
  font-size: .8rem; letter-spacing: .5px; color: #9aa1af; padding: .55rem .7rem;
  border-bottom: 2px solid var(--grafito-4);
}
.ap-table tbody td { padding: .55rem .7rem; border-bottom: 1px solid var(--grafito-4); color: #e6e9ef; }
.ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-row-best td { background: rgba(212,255,0,.10); color: #fff; }
.ap-best-flag { background: var(--rojo); color: #fff; font-weight: 800; font-size: .68rem; padding: .1rem .45rem; border-radius: 4px; letter-spacing: .5px; }

/* Registro de horas de motor */
.ap-engine-list { display: flex; flex-direction: column; gap: .9rem; }
.ap-engine-item {
  background: var(--blanco); border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--gris); border-radius: 8px; padding: 1rem 1.1rem;
}
.ap-engine-item--ok { border-left-color: var(--azul); }
.ap-engine-item--warn { border-left-color: #f59e0b; }
.ap-engine-item--danger { border-left-color: #ef4444; }
.ap-engine-item__top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ap-engine-item__top strong { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; }
.ap-engine-hours { font-weight: 700; color: var(--grafito); white-space: nowrap; }
.ap-progress { height: 8px; background: var(--gris-claro); border-radius: 5px; margin: .6rem 0 .4rem; overflow: hidden; }
.ap-progress__bar { height: 100%; background: var(--azul); border-radius: 5px; }
.ap-engine-item--warn .ap-progress__bar { background: #f59e0b; }
.ap-engine-item--danger .ap-progress__bar { background: #ef4444; }
.ap-engine-alert { font-size: .82rem; color: #b45309; font-weight: 600; }
.ap-engine-alert--warn { color: #b45309; }
.ap-engine-item--danger .ap-engine-alert { color: #b91c1c; }
.ap-engine-note { font-size: .85rem; color: var(--gris); margin: .5rem 0 0; }
.ap-engine-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .7rem; }
.ap-inline { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.ap-inline-input { width: 80px; }
.ap-link-danger { color: #ef4444 !important; }

/* Setup tracker */
.ap-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-chip {
  background: var(--blanco); border: 1px solid var(--gris-borde); color: var(--grafito);
  padding: .35rem .8rem; border-radius: 20px; font-size: .85rem; font-weight: 600;
}
.ap-chip.activo, .ap-chip:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.ap-setup-card {
  background: var(--blanco); border: 1px solid var(--gris-borde);
  border-radius: 8px; padding: 1rem 1.1rem; box-shadow: var(--sombra);
}
.ap-setup-card__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; border-bottom: 1px solid var(--gris-borde); padding-bottom: .6rem; margin-bottom: .6rem; }
.ap-setup-card__head strong { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; }
.ap-setup-card__head span { font-size: .85rem; color: var(--gris); }
.ap-setup-card__head form { margin-left: auto; }
.ap-setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem .9rem; font-size: .9rem; }
.ap-setup-grid b { color: var(--gris); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; }
.ap-setup-notes { margin: .7rem 0 0; font-size: .9rem; color: var(--tinta); background: var(--gris-claro); padding: .6rem .8rem; border-radius: 6px; }

/* Checklist pre-carrera */
.ap-check-block { border: 0; padding: 0; margin: 0 0 1.4rem; }
.ap-check-block legend {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: 1rem; letter-spacing: .5px; color: var(--grafito);
  border-bottom: 2px solid var(--rojo); padding-bottom: .3rem; margin-bottom: .7rem; width: 100%;
}
.ap-check-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .3rem; cursor: pointer; border-radius: 6px; }
.ap-check-item:hover { background: var(--gris-claro); }
.ap-check-item input { position: absolute; opacity: 0; }
.ap-check-box {
  width: 24px; height: 24px; flex: 0 0 24px; border: 2px solid var(--gris-borde);
  border-radius: 6px; display: grid; place-items: center; color: transparent; transition: all .12s;
}
.ap-check-box i { font-size: .9rem; }
.ap-check-item input:checked + .ap-check-box { background: var(--azul); border-color: var(--azul); color: #fff; }
.ap-check-text { font-size: .95rem; }
.ap-crit-tag { background: #fde68a; color: #92400e; font-size: .68rem; font-weight: 800; padding: .05rem .4rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.ap-checklist-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

/* Banner de resultado (checklist) */
.ap-result-banner {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  border-radius: var(--radio); margin-bottom: 1.2rem; color: #fff;
}
.ap-result-banner i { font-size: 2rem; }
.ap-result-banner strong { display: block; font-size: 1.15rem; font-family: var(--display); text-transform: uppercase; }
.ap-result-banner span { font-size: .9rem; opacity: .9; }
.ap-result-banner--ok { background: #15803d; }
.ap-result-banner--warn { background: #b45309; }
.ap-result-banner--bad { background: #b91c1c; }
.ap-crit-list { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.ap-crit-list h4 { color: #b91c1c; font-size: .95rem; margin: 0 0 .4rem; }
.ap-crit-list ul { margin: 0; padding-left: 1.2rem; color: #7f1d1d; font-size: .9rem; }

/* Conversor de unidades */
.ap-conv-row { display: flex; align-items: center; gap: 1rem; }
.ap-conv-row .ap-input-suffix { flex: 1; }
.ap-conv-ic { font-size: 1.3rem; color: var(--azul); flex: 0 0 auto; }
.ap-mini-result { font-size: .92rem; padding: .8rem 1rem; border-radius: 8px; }
.ap-mini-result--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ap-mini-result--bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Muro de login (herramientas con cuenta) */
.ap-login-wall {
  max-width: 460px; margin: 2rem auto; text-align: center;
  background: var(--grafito); border-radius: var(--radio); padding: 2.5rem 2rem;
  border-top: 4px solid var(--rojo);
}
.ap-login-wall__ic { font-size: 2.8rem; color: var(--rojo); }
.ap-login-wall h2 { color: #fff; margin: .8rem 0 .5rem; }
.ap-login-wall p { color: #aab1c0; margin-bottom: 1.4rem; }
.ap-login-wall .btn { margin: .3rem; }

/* Estado vacio */
.ap-empty {
  text-align: center; padding: 2.5rem 1rem; color: var(--gris);
  background: var(--blanco); border: 1px dashed var(--gris-borde); border-radius: var(--radio);
}
.ap-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: var(--gris-borde); }

/* Punto de color (menu de categorias) */
.ap-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }

/* Aside de herramientas */
.ap-tool-aside-nav { background: var(--blanco); border: 1px solid var(--gris-borde); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); }
.ap-tool-aside-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 7px; color: var(--tinta); font-weight: 600; font-size: .9rem; }
.ap-tool-aside-link:hover { background: var(--gris-claro); color: var(--grafito); }
.ap-tool-aside-link.activo { background: var(--grafito); color: #fff; }
.ap-tool-aside-ic { width: 26px; text-align: center; font-size: 1.05rem; }
.ap-widget__title { font-size: 1rem; margin: 0 0 .7rem; color: var(--grafito); }

@media (max-width: 860px) {
  .ap-tool-layout { grid-template-columns: 1fr; }
  .ap-tool-aside { order: 2; }
}
