/* ==========================================================================
   ApiConociendo — tema visual (v2, moderno)
   Colores del logo: girasol + naranja de los petalos, sobre blanco calido,
   con negro calido para texto y secciones oscuras.
   Se carga DESPUES de Bootstrap para poder sobrescribirlo.
   ========================================================================== */

:root {
  /* Marca */
  --ac-sun: #ffd21f;            /* girasol vivo */
  --ac-sun-brand: #f0cc00;      /* amarillo historico del sitio */
  --ac-orange: #ff8a1f;         /* petalo naranja */
  --ac-sun-soft: #fff4c2;
  --ac-grad: linear-gradient(120deg, #ffd21f 0%, #ffb21f 45%, #ff8a1f 100%);
  --ac-amber-text: #9a5800;     /* texto chico sobre blanco (AA) */

  /* Neutros */
  --ac-canvas: #fffdf8;
  --ac-surface: #ffffff;
  --ac-soft: #f6f3ec;
  --ac-ink: #15120c;
  --ac-ink-soft: rgba(21, 18, 12, 0.66);
  --ac-ink-muted: rgba(21, 18, 12, 0.5);
  --ac-line: rgba(21, 18, 12, 0.08);
  --ac-line-strong: rgba(21, 18, 12, 0.16);
  --ac-dark: #14110b;
  --ac-dark-2: #221d13;

  /* Forma */
  --ac-radius-sm: 14px;
  --ac-radius: 22px;
  --ac-radius-lg: 32px;
  --ac-shadow: 0 1px 2px rgba(21, 18, 12, 0.04), 0 10px 30px -14px rgba(21, 18, 12, 0.16);
  --ac-shadow-hover: 0 2px 6px rgba(21, 18, 12, 0.05), 0 28px 60px -24px rgba(21, 18, 12, 0.32);
  --ac-glow: 0 10px 30px -8px rgba(255, 170, 31, 0.55);

  /* Tipografia */
  --ac-font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ac-font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  /* Panal (SVG en linea) */
  --ac-honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16zM28 61v36M2 46l-2 1M54 46l2 1' fill='none' stroke='%23ffc21f' stroke-opacity='.35' stroke-width='1.2'/%3E%3C/svg%3E");

  /* Bootstrap */
  --bs-body-font-family: var(--ac-font-body);
  --bs-body-bg: var(--ac-canvas);
  --bs-body-color: var(--ac-ink);
  --bs-link-color: var(--ac-amber-text);
  --bs-link-hover-color: var(--ac-ink);
  --bs-border-color: var(--ac-line);
  --bs-secondary-color: var(--ac-ink-muted);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--ac-font-body);
  background: var(--ac-canvas);
  color: var(--ac-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-3, .display-4 {
  font-family: var(--ac-font-display);
  color: var(--ac-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
h1, .h1 { letter-spacing: -0.04em; }

a { color: var(--ac-amber-text); text-underline-offset: 3px; }
a:hover { color: var(--ac-ink); }
::selection { background: var(--ac-sun); color: var(--ac-ink); }
hr { border-color: var(--ac-line); opacity: 1; }
.text-muted { color: var(--ac-ink-muted) !important; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ac-sun); outline-offset: 2px; border-radius: 8px; }

/* Texto con degradado girasol.
   Con background-clip:text y espaciado de letras negativo, la ultima letra
   puede quedar recortada a la derecha (p.ej. la "o" de ApiConociendo):
   el padding agranda la caja del fondo y el margen negativo lo compensa. */
.ac-accent, .ac-accent--ink, .ac-brand span b {
  padding-right: .12em;
  margin-right: -.12em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.ac-accent {
  background: var(--ac-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* En fondos claros el degradado puro pierde contraste: se usa una version mas oscura */
.ac-accent--ink {
  background: linear-gradient(120deg, #d99a00, #e0650a);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac-amber-text);
  margin-bottom: .75rem;
}
.ac-eyebrow::before {
  content: "";
  width: 10px; height: 11px;
  background: var(--ac-grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.ac-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .8rem;
  border-radius: 999px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ac-ink-soft);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}
.ac-pill--sun { background: var(--ac-sun); border-color: transparent; color: var(--ac-ink); }
a.ac-pill--sun:hover { color: var(--ac-ink); filter: brightness(1.04); }
.ac-pill--glass {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, .6);
  color: var(--ac-ink);
}

/* --------------------------------------------------------------------------
   Botones (sobrescribe Bootstrap)
   -------------------------------------------------------------------------- */
.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.3rem;
  --bs-btn-padding-y: .62rem;
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: .95rem;
  font-family: var(--ac-font-body);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .38rem; --bs-btn-font-size: .85rem; }
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1.02rem; }

.btn-primary, .ac-btn-sun {
  --bs-btn-bg: var(--ac-sun);
  --bs-btn-border-color: var(--ac-sun);
  --bs-btn-color: var(--ac-ink);
  --bs-btn-hover-bg: #ffc400;
  --bs-btn-hover-border-color: #ffc400;
  --bs-btn-hover-color: var(--ac-ink);
  --bs-btn-active-bg: #ffbb00;
  --bs-btn-active-border-color: #ffbb00;
  --bs-btn-active-color: var(--ac-ink);
}
.btn-primary:hover, .ac-btn-sun:hover { box-shadow: var(--ac-glow); }
.btn-dark, .btn-success, .ac-btn-ink {
  --bs-btn-bg: var(--ac-ink);
  --bs-btn-border-color: var(--ac-ink);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  --bs-btn-active-color: #fff;
}
.btn-light, .btn-outline-success, .btn-outline-secondary, .btn-outline-light, .ac-btn-ghost {
  --bs-btn-bg: var(--ac-surface);
  --bs-btn-border-color: var(--ac-line-strong);
  --bs-btn-color: var(--ac-ink);
  --bs-btn-hover-bg: var(--ac-soft);
  --bs-btn-hover-border-color: var(--ac-line-strong);
  --bs-btn-hover-color: var(--ac-ink);
  --bs-btn-active-bg: var(--ac-soft);
  --bs-btn-active-border-color: var(--ac-line-strong);
  --bs-btn-active-color: var(--ac-ink);
}
.ac-btn-glass {
  --bs-btn-bg: rgba(255, 255, 255, .08);
  --bs-btn-border-color: rgba(255, 255, 255, .2);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .16);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .35);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, .2);
  --bs-btn-active-color: #fff;
  backdrop-filter: blur(6px);
}
.btn-outline-danger, .text-danger.btn {
  --bs-btn-bg: var(--ac-surface);
  --bs-btn-border-color: rgba(190, 40, 50, .35);
  --bs-btn-color: #b3202c;
  --bs-btn-hover-bg: #b3202c;
  --bs-btn-hover-border-color: #b3202c;
  --bs-btn-hover-color: #fff;
}
.text-info.btn { --bs-btn-color: var(--ac-amber-text); --bs-btn-hover-color: var(--ac-ink); }

.ac-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--ac-ink);
  text-decoration: none;
}
.ac-link-arrow::after { content: "→"; transition: transform .18s ease; }
.ac-link-arrow:hover { color: var(--ac-ink); }
.ac-link-arrow:hover::after { transform: translateX(4px); }

/* Boton circular con flecha (tarjetas) */
.ac-arrow {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ac-soft);
  color: var(--ac-ink);
  transition: background-color .2s ease, transform .2s ease;
}
.ac-arrow svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */
.form-control, .form-select {
  border-radius: var(--ac-radius-sm);
  border: 1px solid var(--ac-line-strong);
  background-color: var(--ac-surface);
  color: var(--ac-ink);
  padding: .7rem .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: #ffb21f;
  box-shadow: 0 0 0 4px rgba(255, 210, 31, .35);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--ac-ink-soft); }
.form-check-input:checked { background-color: var(--ac-ink); border-color: var(--ac-ink); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(255, 210, 31, .35); border-color: #ffb21f; }

.alert { border-radius: var(--ac-radius-sm); border: 1px solid var(--ac-line); }
.alert-success { background: #ecf7e4; color: #2f5a14; border-color: #cfe8bd; }
.alert-danger { background: #fdecec; color: #8f1d26; border-color: #f6cccc; }

/* --------------------------------------------------------------------------
   Utilidades de Bootstrap usadas en paginas viejas
   -------------------------------------------------------------------------- */
.card { border-radius: var(--ac-radius); border: 1px solid var(--ac-line); background: var(--ac-surface); }
.shadow, .shadow-sm, .shadow-lg { box-shadow: var(--ac-shadow) !important; }
.bg-white.rounded, .bg-light.rounded, .shadow.rounded {
  border-radius: var(--ac-radius) !important;
  border: 1px solid var(--ac-line);
}
.bg-light { background-color: var(--ac-surface) !important; }
.rounded { border-radius: var(--ac-radius-sm) !important; }

/* --------------------------------------------------------------------------
   Header / navegacion
   -------------------------------------------------------------------------- */
.ac-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ac-line);
}
.ac-header .navbar { padding: .6rem 0; }
.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ac-ink);
  font-family: var(--ac-font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.04em;
}
.ac-brand img { width: 40px; height: 40px; transition: transform .4s ease; }
.ac-brand:hover { color: var(--ac-ink); }
.ac-brand:hover img { transform: rotate(-12deg) scale(1.05); }
.ac-brand span b {
  font-weight: 800;
  background: linear-gradient(120deg, #e6a800, #f07800);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ac-header .nav-link {
  color: var(--ac-ink-soft);
  font-weight: 600;
  font-size: .94rem;
  padding: .45rem .85rem !important;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.ac-header .nav-link:hover, .ac-header .nav-link:focus, .ac-header .nav-link.show {
  color: var(--ac-ink);
  background: var(--ac-soft);
}
.ac-header .dropdown-menu {
  border-radius: 18px;
  border: 1px solid var(--ac-line);
  box-shadow: var(--ac-shadow-hover);
  padding: .45rem;
  min-width: 15rem;
  max-height: 70vh;
  overflow-y: auto;
}
.ac-header .dropdown-item {
  border-radius: 10px;
  padding: .5rem .8rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ac-ink);
}
.ac-header .dropdown-item:hover, .ac-header .dropdown-item:focus { background: var(--ac-sun-soft); color: var(--ac-ink); }
.ac-header .navbar-toggler {
  border: 1px solid var(--ac-line-strong);
  border-radius: 999px;
  padding: .42rem .68rem;
}
.ac-header .navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(255, 210, 31, .35); }

.ac-search { position: relative; display: flex; align-items: center; }
.ac-search input {
  border-radius: 999px;
  padding: .52rem 2.7rem .52rem 1.05rem;
  min-width: 14rem;
  font-size: .93rem;
  background: var(--ac-soft);
  border-color: transparent;
}
.ac-search input:focus { background: var(--ac-surface); }
.ac-search button {
  position: absolute;
  right: 4px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 0;
  background: var(--ac-ink);
  display: grid;
  place-items: center;
  color: var(--ac-sun);
  transition: transform .15s ease;
}
.ac-search button:hover { transform: scale(1.06); }

.ac-admin-chip {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ac-ink);
  background: var(--ac-sun);
  border-radius: 999px;
  padding: .22rem .65rem;
}
.ac-header .dropdown-menu .btn { margin: 0 .25rem .35rem; }

@media (max-width: 991.98px) {
  .ac-header .navbar-collapse {
    margin-top: .65rem;
    padding: .75rem;
    background: var(--ac-surface);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow-hover);
  }
  .ac-search input { min-width: 0; width: 100%; }
  .ac-search { width: 100%; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.ac-main { padding-top: 1.25rem; padding-bottom: 3rem; }

.ac-section-head {
  margin: 3rem 0 1.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ac-section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; font-weight: 800; }
.ac-section-head p { color: var(--ac-ink-soft); margin: .5rem 0 0; }

.ac-aside-title { font-size: 1.05rem; font-weight: 700; margin: .25rem 0 1rem; }

/* --------------------------------------------------------------------------
   Hero oscuro (inicio)
   -------------------------------------------------------------------------- */
.ac-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ac-radius-lg);
  background: var(--ac-dark);
  color: #fff;
  padding: clamp(1.6rem, 3.2vw, 2.75rem) clamp(1.4rem, 4vw, 3.25rem);
}
.ac-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 82% 30%, rgba(255, 196, 31, .45), transparent 70%),
    radial-gradient(35% 50% at 65% 95%, rgba(255, 120, 20, .35), transparent 70%),
    radial-gradient(30% 40% at 0% 0%, rgba(255, 210, 31, .12), transparent 70%);
}
.ac-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ac-honeycomb);
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 90% at 80% 40%, #000 20%, transparent 75%);
  opacity: .9;
}
.ac-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: .8rem 0 .9rem;
  max-width: 16ch;
  text-wrap: balance;
}
.ac-hero p.lead { color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 32rem; margin-bottom: 0; }
.ac-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.ac-hero .ac-pill--live {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
}
.ac-hero .ac-pill--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--ac-sun);
  box-shadow: 0 0 0 4px rgba(255, 210, 31, .25);
}
.ac-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.ac-hero-stats strong {
  display: block;
  font-family: var(--ac-font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.ac-hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* Collage de la derecha */
.ac-hero-visual { position: relative; padding: .9rem 0 1.4rem .9rem; max-width: 400px; margin-left: auto; }
.ac-hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  border: 1px solid rgba(255, 255, 255, .14);
}
.ac-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 17, 11, .55));
}
.ac-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ac-ink);
  border-radius: 18px;
  padding: .6rem .8rem .6rem .6rem;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
  text-decoration: none;
  max-width: 290px;
  animation: ac-float 6s ease-in-out infinite;
}
.ac-float:hover { color: var(--ac-ink); }
.ac-float img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.ac-float small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-amber-text); }
.ac-float strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--ac-font-display);
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ac-float--a { left: -1.5rem; bottom: 0; }
.ac-float--b { right: -1rem; top: 0; animation-delay: -3s; padding: .55rem .9rem; }
.ac-float--b .ac-float-logo { width: 36px; height: 36px; border-radius: 0; }
@keyframes ac-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Chips de temas */
.ac-topics {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem .1rem .35rem;
  margin-top: .9rem;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.ac-topics::-webkit-scrollbar { display: none; }
.ac-topics .ac-topics-label {
  flex: none;
  align-self: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ac-ink-muted);
  margin-right: .25rem;
}
.ac-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ac-ink);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.ac-chip:hover { background: var(--ac-sun); border-color: var(--ac-sun); color: var(--ac-ink); transform: translateY(-1px); }
.ac-chip img { width: 22px; height: 22px; border-radius: 99px; object-fit: cover; }
.ac-chip.is-active { background: var(--ac-ink); border-color: var(--ac-ink); color: #fff; }
.ac-chip.is-active:hover { background: var(--ac-ink); color: #fff; }

.ac-card-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ac-amber-text);
}

/* Formularios de administracion */
.ac-form-card {
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
}
.ac-form-card .input-group-text {
  border-radius: var(--ac-radius-sm) 0 0 var(--ac-radius-sm);
  background: var(--ac-soft);
  border-color: var(--ac-line-strong);
  color: var(--ac-ink-muted);
  font-size: .88rem;
}
.ac-form-card .input-group .form-control { border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0; }
.ac-form-card .form-text { color: var(--ac-ink-muted); font-size: .82rem; }
.ac-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.ac-photo { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.ac-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ac-radius-sm); }
@media (max-width: 575.98px) {
  .ac-form-card .input-group-text { display: none; }
  .ac-form-card .input-group .form-control { border-radius: var(--ac-radius-sm); }
}

/* Franja compacta de noticias (inicio, arriba del blog) */
.ac-news-strip {
  display: flex;
  align-items: stretch;
  gap: .75rem;
  margin-top: 1rem;
  padding: .5rem;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: 20px;
}
.ac-news-strip-head {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding: .35rem .9rem;
  border-radius: 14px;
  background: var(--ac-dark);
  color: #fff;
}
.ac-news-strip-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--ac-font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.ac-news-strip-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--ac-sun);
  box-shadow: 0 0 0 4px rgba(255, 210, 31, .25);
  animation: ac-pulse 2s ease-in-out infinite;
}
@keyframes ac-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 210, 31, 0); } }
.ac-news-strip-all { font-size: .78rem; font-weight: 600; color: var(--ac-sun); text-decoration: none; white-space: nowrap; }
.ac-news-strip-all:hover { color: #fff; }
.ac-news-strip-list {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: .5rem;
}
.ac-news-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: .35rem .6rem .35rem .35rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ac-ink);
  transition: background-color .15s ease;
}
.ac-news-item:hover { background: var(--ac-soft); color: var(--ac-ink); }
.ac-news-item img { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; }
.ac-news-item span { min-width: 0; }
.ac-news-item small {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ac-amber-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-news-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--ac-font-display);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
@media (max-width: 767.98px) {
  .ac-news-strip { flex-direction: column; gap: .4rem; }
  .ac-news-strip-head { flex-direction: row; align-items: center; justify-content: space-between; padding: .45rem .8rem; }
  /* En celular: carrusel horizontal que se desliza con el dedo */
  .ac-news-strip-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ac-news-strip-list::-webkit-scrollbar { display: none; }
  .ac-news-item { flex: 0 0 86%; scroll-snap-align: start; }
  .ac-news-item:only-child { flex-basis: 100%; }
}

/* Seccion de noticias del inicio: banda clara con borde */
.ac-news-band {
  border-radius: var(--ac-radius-lg);
  background: var(--ac-soft);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 3rem;
}
.ac-news-band .ac-section-head { margin-top: 0; }
.ac-news-band .ac-grid { margin-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* --------------------------------------------------------------------------
   Destacado + grilla de articulos (inicio)
   -------------------------------------------------------------------------- */
.ac-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 991.98px) { .ac-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ac-feed { grid-template-columns: 1fr; } }

.ac-feature {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--ac-dark);
}
@media (max-width: 575.98px) { .ac-feature { grid-column: auto; grid-row: auto; min-height: 420px; } }
.ac-feature > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s ease;
}
.ac-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 11, 0) 25%, rgba(20, 17, 11, .55) 55%, rgba(20, 17, 11, .92) 100%);
}
.ac-feature:hover { color: #fff; }
.ac-feature:hover > img { transform: scale(1.04); }
.ac-feature h3 {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: .9rem 0 .6rem;
  max-width: 36rem;
}
.ac-feature .ac-feature-sub {
  color: rgba(255, 255, 255, .78);
  max-width: 36rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-feature .ac-feature-sub p { margin: 0; }
.ac-feature-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .7);
}
.ac-feature-foot .ac-arrow { background: var(--ac-sun); color: var(--ac-ink); }
.ac-feature:hover .ac-arrow { transform: translateX(4px); }
.ac-feature .ac-admin-actions { position: absolute; top: 1rem; right: 1rem; }

/* Tarjeta estandar (grillas de inicio, categorias y busqueda) */
.ac-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ac-ink);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  height: 100%;
}
.ac-card:hover { color: var(--ac-ink); box-shadow: var(--ac-shadow-hover); transform: translateY(-4px); border-color: transparent; }
.ac-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ac-soft); }
.ac-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ac-card:hover .ac-card-media img { transform: scale(1.06); }
.ac-card-media .ac-pill { position: absolute; left: .8rem; top: .8rem; }
.ac-card-body { padding: 1.05rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ac-card-body h3, .ac-card-body h4 { font-size: 1.15rem; margin: 0; line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
.ac-card-body .ac-card-text {
  color: var(--ac-ink-soft);
  font-size: .94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-card-body .ac-card-text p { margin: 0; }
.ac-card-foot {
  margin-top: auto;
  padding-top: .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
  color: var(--ac-ink-muted);
}
.ac-card:hover .ac-arrow { background: var(--ac-sun); transform: translateX(3px); }
.ac-card-body time { font-size: .82rem; color: var(--ac-ink-muted); }
.ac-card .ac-admin-actions { padding: 0 1.2rem 1rem; }

/* Tarjeta de busqueda que completa la grilla del inicio */
.ac-cta-tile {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 220px;
  padding: 1.4rem;
  border-radius: var(--ac-radius);
  background: var(--ac-sun-soft);
  border: 1px solid rgba(255, 178, 31, .35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ac-cta-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16zM28 61v36M2 46l-2 1M54 46l2 1' fill='none' stroke='%23ffa51f' stroke-opacity='.3' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
          mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.ac-cta-tile h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 1rem; }
.ac-cta-tile .ac-search input { min-width: 0; width: 100%; background: var(--ac-surface); border-color: rgba(255, 178, 31, .4); }
.ac-cta-tile .ac-search { width: 100%; }

.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ac-admin-actions { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }

.ac-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .75rem;
  border: 1px dashed var(--ac-line-strong);
  border-radius: var(--ac-radius);
  background: var(--ac-sun-soft);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Tarjetas chicas ("Te puede interesar")
   -------------------------------------------------------------------------- */
.ac-mini {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  padding: .55rem;
  margin-bottom: .7rem;
  border-radius: 18px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  text-decoration: none;
  color: var(--ac-ink);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ac-mini:hover { color: var(--ac-ink); box-shadow: var(--ac-shadow); transform: translateY(-2px); }
.ac-mini img { width: 92px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }
.ac-mini small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ac-amber-text); margin-bottom: .2rem; }
.ac-mini strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--ac-font-display);
  font-weight: 700;
  font-size: .97rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.ac-mini-grid > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.ac-mini-grid .ac-mini { margin: 0; }
@media (max-width: 991.98px) { .ac-mini-grid > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ac-mini-grid > div { grid-template-columns: 1fr; } }
.ac-sticky-aside { position: sticky; top: 90px; }

/* --------------------------------------------------------------------------
   Promo ApiDatos (estilo de las publicaciones de @apidatos.app)
   -------------------------------------------------------------------------- */
.ac-app {
  --ac-app-ink: #1d1a12;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 3rem 0 1rem;
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  border-radius: var(--ac-radius-lg);
  color: var(--ac-app-ink);
  background:
    radial-gradient(70% 60% at 0% 0%, #fff4c9 0%, rgba(255, 244, 201, 0) 70%),
    linear-gradient(160deg, #fbd95a 0%, #f4c22a 45%, #e9a90f 100%);
}
/* panal blanco, como en los posts */
.ac-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16zM28 61v36M2 46l-2 1M54 46l2 1' fill='none' stroke='%23ffffff' stroke-opacity='.38' stroke-width='1.3'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}
/* hexagono grande de adorno, abajo a la izquierda */
.ac-app::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px; height: 250px;
  left: -70px; bottom: -110px;
  border: 2px solid rgba(255, 255, 255, .55);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(255, 255, 255, .12);
}

.ac-app-brand { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.ac-app-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.ac-app-name { font-family: var(--ac-font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.ac-app-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: .82rem;
  font-weight: 600;
}
.ac-app-tag::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--ac-app-ink); }

.ac-app h2 {
  color: var(--ac-app-ink);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.ac-app h2 span { color: #fff; text-shadow: 0 2px 18px rgba(170, 110, 0, .25); }
.ac-app-lead { font-size: 1.05rem; color: rgba(29, 26, 18, .78); max-width: 32rem; margin: 0 0 1.4rem; }

/* tarjeta translucida (como la de "Respuesta" de los posts) */
.ac-app-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: .5rem;
  display: grid;
  gap: .15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 34rem;
}
.ac-app-features li { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem .6rem; font-size: .95rem; line-height: 1.4; color: rgba(29, 26, 18, .78); }
.ac-app-features b { display: block; color: var(--ac-app-ink); font-weight: 700; }
.ac-app-check {
  flex: none;
  width: 26px; height: 26px;
  margin-top: .1rem;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--ac-app-ink);
  color: #fff;
}
.ac-app-check svg { width: 13px; height: 13px; }

.ac-app-stores { display: flex; flex-wrap: wrap; gap: .55rem; }
.ac-store {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.05rem .55rem .8rem;
  border-radius: 14px;
  background: var(--ac-app-ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ac-store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.ac-store svg { width: 24px; height: 24px; flex: none; }
.ac-store small { display: block; font-size: .68rem; font-weight: 500; opacity: .75; margin-bottom: .1rem; }
.ac-app-more { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .92rem; color: var(--ac-app-ink); text-decoration: none; }
.ac-app-more:hover { color: var(--ac-app-ink); text-decoration: underline; }

/* Telefonos con capturas reales */
.ac-app-visual { position: relative; height: 470px; }
.ac-phone {
  position: absolute;
  width: 210px;
  aspect-ratio: 420 / 911;
  padding: 7px;
  border-radius: 38px;
  background: #15130e;
  box-shadow: 0 40px 70px -30px rgba(80, 50, 0, .65), inset 0 0 0 2px #3a352a;
}
.ac-phone::before {
  content: "";
  position: absolute;
  top: 13px; left: 50%;
  width: 60px; height: 17px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #15130e;
  z-index: 1;
}
.ac-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; display: block; }
.ac-phone--front { left: 50%; top: 0; transform: translateX(-62%) rotate(-4deg); z-index: 2; }
.ac-phone--back { left: 50%; top: 28px; transform: translateX(10%) rotate(5deg); }

.ac-app-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ac-app-ink);
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
  white-space: nowrap;
  animation: ac-float 6s ease-in-out infinite;
}
.ac-app-chip i { width: 8px; height: 8px; border-radius: 99px; background: #5fbf3a; box-shadow: 0 0 0 4px rgba(95, 191, 58, .2); }
.ac-app-chip--a { left: 0; bottom: 70px; }
.ac-app-chip--b { right: 0; top: 40px; animation-delay: -3s; background: var(--ac-app-ink); color: #fff; }

@media (max-width: 991.98px) {
  .ac-app { grid-template-columns: 1fr; }
  .ac-app-visual { height: 380px; max-width: 440px; width: 100%; margin: 0 auto; }
  .ac-phone { width: 170px; border-radius: 32px; padding: 6px; }
  .ac-phone img { border-radius: 26px; }
}
.ac-app-desc { font-style: normal; }

/* Asistente por WhatsApp: tarjeta oscura de ancho completo dentro del bloque */
.ac-wa {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: 26px;
  background: var(--ac-app-ink);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(60, 35, 0, .6);
}
.ac-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 80% at 100% 0%, rgba(37, 211, 102, .22), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(255, 196, 31, .18), transparent 70%);
}
.ac-wa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ac-honeycomb);
  background-size: 56px 97px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(110deg, transparent 40%, #000);
          mask-image: linear-gradient(110deg, transparent 40%, #000);
}
.ac-wa-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .9rem; }
.ac-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .8rem .32rem .55rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, .14);
  color: #5ee08f;
  font-size: .82rem;
  font-weight: 700;
}
.ac-wa-badge svg { width: 17px; height: 17px; }
.ac-wa-premium {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--ac-sun);
  color: var(--ac-app-ink);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.ac-wa h3 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 .7rem;
  text-wrap: balance;
}
.ac-wa h3 span { color: var(--ac-sun); }
.ac-wa p { color: rgba(255, 255, 255, .7); margin: 0 0 1.2rem; max-width: 32rem; font-size: 1rem; }
.ac-wa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ac-wa-btn {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: #25d366;
  color: #062b14;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ac-wa-btn:hover { color: #062b14; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .7); }
.ac-wa-link { color: #fff; font-weight: 600; text-decoration: none; }
.ac-wa-link:hover { color: var(--ac-sun); }
.ac-wa-note { display: block; margin-top: .7rem; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* Mini chat estilo WhatsApp (modo oscuro) */
.ac-wa-chat {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .8rem .8rem 1rem;
  border-radius: 22px;
  background: #0b141a;
  border: 1px solid rgba(255, 255, 255, .08);
  min-height: 250px;
}
.ac-wa-chat-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .2rem .2rem .65rem;
  margin-bottom: .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ac-wa-chat-head img { width: 34px; height: 34px; border-radius: 99px; }
.ac-wa-chat-head b { display: block; font-size: .9rem; line-height: 1.2; }
.ac-wa-chat-head small { font-size: .74rem; color: #5ee08f; }
.ac-wa-msg {
  position: relative;
  max-width: 86%;
  padding: .5rem .7rem 1.1rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.4;
}
.ac-wa-msg time { position: absolute; right: .6rem; bottom: .3rem; font-size: .66rem; color: rgba(255, 255, 255, .55); }
.ac-wa-msg--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.ac-wa-msg--in  { align-self: flex-start; background: #202c33; border-top-left-radius: 4px; animation: ac-wa-reply 7s ease infinite; }
.ac-wa-msg--in b { color: var(--ac-sun); }
.ac-wa-ticks { color: #53bdeb; letter-spacing: -.2em; margin-left: .15rem; }
/* "escribiendo..." y la respuesta ocupan el mismo lugar: no hay saltos ni huecos */
.ac-wa-reply { display: grid; }
.ac-wa-reply > * { grid-area: 1 / 1; justify-self: start; align-self: start; }
.ac-wa-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: .65rem .8rem;
  border-radius: 14px;
  border-top-left-radius: 4px;
  background: #202c33;
  animation: ac-wa-typing 7s ease infinite;
}
.ac-wa-typing i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .6); animation: ac-wa-dot 1s ease-in-out infinite; }
.ac-wa-typing i:nth-child(2) { animation-delay: .15s; }
.ac-wa-typing i:nth-child(3) { animation-delay: .3s; }
/* ciclo: "escribiendo..." y despues aparece la respuesta */
@keyframes ac-wa-typing { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes ac-wa-reply { 0%, 32% { opacity: 0; transform: translateY(8px); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ac-wa-dot { 50% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ac-wa-typing { display: none; }
  .ac-wa-msg--in { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .ac-wa { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .ac-wa { order: 8; margin-top: 1.1rem; padding: 1.25rem 1rem; border-radius: 22px; }
  .ac-wa h3 { font-size: 1.6rem; }
  .ac-wa p { font-size: .94rem; }
  .ac-wa-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .ac-wa-btn { justify-content: center; }
  .ac-wa-note { text-align: center; }
  .ac-wa-chat { min-height: 0; }
  /* orden en celular: etiquetas, titulo, chat, boton */
  .ac-wa { display: flex; flex-direction: column; gap: 1rem; }
  .ac-wa-copy { display: contents; }
  .ac-wa-tags { order: 1; margin: 0; }
  .ac-wa h3 { order: 2; margin: 0; }
  .ac-wa p { display: none; }
  .ac-wa-chat { order: 3; }
  .ac-wa-actions { order: 4; }
  .ac-wa-note { order: 5; margin-top: -.5rem; }
}

/* Pantallas medianas en dos columnas: telefonos un poco mas chicos */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ac-app-visual { height: 420px; }
  .ac-phone { width: 172px; border-radius: 32px; padding: 6px; }
  .ac-phone img { border-radius: 26px; }
}

@media (max-width: 575.98px) {
  /* En celular se ordena como los posts: titulo -> telefonos -> funciones -> tiendas */
  .ac-app { margin-top: 2rem; padding: 1.4rem 1.1rem 1.25rem; border-radius: 26px; gap: 0; }
  .ac-app-copy { display: contents; }
  .ac-app-brand { order: 1; margin-bottom: 1rem; }
  .ac-app h2 { order: 2; font-size: 2rem; margin-bottom: .6rem; }
  .ac-app-lead { order: 3; font-size: .97rem; margin-bottom: .5rem; }
  .ac-app-visual { order: 4; }
  .ac-app-features { order: 5; }
  .ac-app-stores { order: 6; }
  .ac-app-more { order: 7; justify-self: center; }
  .ac-app-tag { margin-left: auto; font-size: .74rem; padding: .3rem .7rem; }

  /* funciones como chips cortos */
  .ac-app-features { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin-bottom: 1rem; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ac-app-features li { padding: .35rem .7rem .35rem .4rem; gap: .4rem; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: .82rem; align-items: center; }
  .ac-app-features b { display: inline; }
  .ac-app-desc { display: none; }
  .ac-app-check { width: 20px; height: 20px; margin: 0; }
  .ac-app-check svg { width: 11px; height: 11px; }

  /* tiendas: Google Play y App Store lado a lado, web abajo */
  .ac-app-stores { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
  .ac-store { justify-content: center; padding: .6rem .55rem; font-size: .9rem; border-radius: 12px; }
  .ac-store:last-child { grid-column: 1 / -1; }
  .ac-store svg { width: 20px; height: 20px; }
  .ac-app-visual { height: 350px; margin: .25rem auto .5rem; }
  .ac-phone { width: 140px; border-radius: 27px; padding: 5px; }
  .ac-phone::before { width: 44px; height: 13px; top: 10px; }
  .ac-phone img { border-radius: 23px; }
  .ac-app-chip { font-size: .74rem; padding: .4rem .7rem; }
  .ac-app-chip--a { left: -4px; bottom: 40px; }
  .ac-app-chip--b { right: -4px; top: 18px; }
}

/* --------------------------------------------------------------------------
   Pagina de articulo
   -------------------------------------------------------------------------- */
.ac-article {
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  padding: clamp(1.25rem, 3.5vw, 3rem);
  margin-bottom: 2rem;
}
.ac-article-head { max-width: 46rem; margin: 0 auto 1.75rem; }
.ac-article-head > .ac-eyebrow { display: flex; }
.ac-article-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: .9rem 0 1.1rem;
}
.ac-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.ac-cover {
  margin: 0 auto 2.25rem;
  border-radius: var(--ac-radius);
  overflow: hidden;
  max-width: 52rem;
  background: var(--ac-soft);
}
.ac-cover img { width: 100%; height: auto; display: block; }
/* Portada vertical: se muestra entera y centrada, sin pasar de 640px de alto */
.ac-cover--vertical { display: flex; justify-content: center; max-width: 100%; background: var(--ac-soft); padding: clamp(.75rem, 2vw, 1.25rem); }
.ac-cover--vertical img { width: auto; max-width: 100%; max-height: 640px; border-radius: 14px; }

/* Contenido escrito con el editor (TinyMCE) */
.ac-prose {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.78;
  color: #2b261c;
  overflow-wrap: anywhere;
}
.ac-prose h1, .ac-prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -0.035em; margin: 2.6rem 0 .9rem; }
.ac-prose h3 { font-size: clamp(1.3rem, 2.1vw, 1.5rem); font-weight: 700; margin: 2.1rem 0 .65rem; }
.ac-prose h4, .ac-prose h5, .ac-prose h6 { font-size: 1.12rem; margin: 1.7rem 0 .5rem; }
.ac-prose p { margin: 0 0 1.2rem; }
.ac-prose ul, .ac-prose ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.ac-prose li { margin-bottom: .45rem; }
.ac-prose ul li::marker { color: #ffaa1f; font-size: 1.15em; }
.ac-prose ol li::marker { color: var(--ac-amber-text); font-weight: 800; }
.ac-prose strong, .ac-prose b { color: var(--ac-ink); }
.ac-prose a {
  color: var(--ac-ink);
  text-decoration: underline;
  text-decoration-color: #ffbf1f;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ac-prose a:hover { background: var(--ac-sun-soft); }
.ac-prose blockquote, .ac-prose q { quotes: none; }
.ac-prose blockquote {
  border: 0;
  background: var(--ac-sun-soft);
  border-radius: var(--ac-radius-sm);
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  color: var(--ac-ink);
  position: relative;
}
.ac-prose blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--ac-grad);
}
.ac-prose img { border-radius: var(--ac-radius-sm); height: auto; }
.ac-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .97rem; display: block; overflow-x: auto; }
.ac-prose th, .ac-prose td { border: 1px solid var(--ac-line-strong); padding: .6rem .8rem; }
.ac-prose th { background: var(--ac-soft); }
.ac-prose iframe { max-width: 100%; border-radius: var(--ac-radius-sm); }
.ac-prose figure { margin: 2rem 0; }
.ac-prose figure img { display: block; margin: 0 auto; }
/* Imagen vertical dentro del articulo: entera, centrada y sin ocupar toda la pantalla */
.ac-prose .ac-figure--vertical img { width: auto; max-width: 100%; max-height: min(640px, 80vh); }
.ac-prose figcaption { font-size: .86rem; color: var(--ac-ink-muted); text-align: center; margin-top: .65rem; }
.ac-prose figcaption a { color: inherit; text-decoration-color: var(--ac-line-strong); }

.ac-topic-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  margin: .5rem 0 1.5rem;
  border-radius: var(--ac-radius-sm);
  border: 1px dashed var(--ac-line-strong);
  font-size: .85rem;
  color: var(--ac-ink-soft);
}

.ac-article-foot {
  max-width: 46rem;
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ac-line);
}
.ac-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 1.25rem; }
.ac-share a {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ac-soft);
  transition: transform .15s ease, background-color .15s ease;
}
.ac-share a:hover { transform: translateY(-2px); background: var(--ac-sun); }
.ac-share img { width: 24px; height: 24px; }

/* Galeria de fotos de noticias (radios + imagenes superpuestas) */
.galeria {
  position: relative;
  height: calc(420px + 3em);
  margin: 0 auto 2.25rem;
  max-width: 52rem;
  border-radius: var(--ac-radius);
  overflow: hidden;
  background: var(--ac-soft);
}
.galeria img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.galeria input[type=radio] {
  position: relative;
  z-index: 2;
  top: calc(100% - 2.2em);
  left: .9em;
  margin-right: .35em;
  accent-color: var(--ac-sun);
  width: 1.05em; height: 1.05em;
}
.galeria input[type=radio]:nth-of-type(1):checked ~ img:nth-of-type(1),
.galeria input[type=radio]:nth-of-type(2):checked ~ img:nth-of-type(2),
.galeria input[type=radio]:nth-of-type(3):checked ~ img:nth-of-type(3),
.galeria input[type=radio]:nth-of-type(4):checked ~ img:nth-of-type(4),
.galeria input[type=radio]:nth-of-type(5):checked ~ img:nth-of-type(5),
.galeria input[type=radio]:nth-of-type(6):checked ~ img:nth-of-type(6),
.galeria input[type=radio]:nth-of-type(7):checked ~ img:nth-of-type(7) { opacity: 1; }
@media (max-width: 767.98px) { .galeria { height: calc(240px + 3em); } }

/* --------------------------------------------------------------------------
   Comentarios
   -------------------------------------------------------------------------- */
.ac-comments { max-width: 46rem; margin: 2.75rem auto 0; }
.ac-comments > .card { padding: 1.6rem !important; background: var(--ac-soft); border-color: transparent; }
.ac-comments #titlecomment { font-family: var(--ac-font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
#listCommets { border: 0; background: transparent; padding: 0 !important; }
#listCommets > article.card { padding: 1.1rem 1.25rem !important; border-radius: 18px; margin-bottom: .75rem !important; }
#listCommets article article.card { background: var(--ac-soft); border: 0; border-left: 3px solid var(--ac-sun); }
#listCommets p.h6 { font-family: var(--ac-font-body); font-weight: 700; margin-bottom: .35rem; }
#listCommets .text-success { color: #3f7a17 !important; }
#listCommets .text-primary { color: var(--ac-amber-text) !important; font-size: .85rem; }

/* --------------------------------------------------------------------------
   Encabezado de categoria / busqueda (oscuro, como el hero)
   -------------------------------------------------------------------------- */
.ac-page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ac-radius-lg);
  background: var(--ac-dark);
  color: #fff;
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  margin-bottom: 2rem;
}
.ac-page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 80% at 90% 20%, rgba(255, 196, 31, .4), transparent 70%),
    radial-gradient(35% 60% at 70% 110%, rgba(255, 120, 20, .3), transparent 70%);
}
.ac-page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ac-honeycomb);
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(60% 100% at 85% 30%, #000 15%, transparent 75%);
          mask-image: radial-gradient(60% 100% at 85% 30%, #000 15%, transparent 75%);
}
.ac-page-head .ac-eyebrow { color: var(--ac-sun); }
.ac-page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 0 0 .9rem; }
.ac-page-head .ac-page-desc { color: rgba(255, 255, 255, .72); max-width: 44rem; font-size: 1.08rem; }
.ac-page-head .ac-page-desc p:last-child { margin-bottom: 0; }
.ac-page-head .ac-pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.ac-page-head--image { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; align-items: center; }
.ac-page-head--image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  transform: rotate(3deg);
}
@media (max-width: 767.98px) {
  .ac-page-head--image { grid-template-columns: 1fr; }
  .ac-page-head--image img { display: none; }
}

.ac-empty {
  border: 1px dashed var(--ac-line-strong);
  border-radius: var(--ac-radius);
  padding: 2rem;
  text-align: center;
  color: var(--ac-ink-soft);
  margin-bottom: 2rem;
}

/* Paginas simples (login, error, mensajes) */
.ac-narrow {
  max-width: 30rem;
  margin: 3rem auto;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: var(--ac-shadow);
}
.ac-narrow .ac-narrow-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  background: var(--ac-grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ac-narrow .ac-narrow-icon img { width: 42px; height: 42px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ac-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ac-dark);
  color: rgba(255, 255, 255, .7);
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
}
.ac-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 70% at 100% 0%, rgba(255, 196, 31, .22), transparent 70%);
}
.ac-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ac-honeycomb);
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(50% 90% at 100% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(50% 90% at 100% 0%, #000 10%, transparent 70%);
}
.ac-footer .ac-brand { color: #fff; }
.ac-footer p { max-width: 26rem; margin: .9rem 0 0; font-size: .95rem; }
.ac-footer h6 { color: #fff; font-family: var(--ac-font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.ac-footer ul { list-style: none; padding: 0; margin: 0; }
.ac-footer li { margin-bottom: .5rem; }
.ac-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .15s ease; }
.ac-footer a:hover { color: var(--ac-sun); }
.ac-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Aviso de cookies (barra inferior)
   -------------------------------------------------------------------------- */
.aviso-cookies {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1050;
  width: calc(100% - 32px);
  max-width: 640px;
  background: rgba(20, 17, 11, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--ac-radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
  padding: .85rem .9rem .85rem 1.1rem;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
}
.aviso-cookies.activo { display: flex; }
.aviso-cookies .galleta { width: 34px; height: 34px; flex: none; }
.aviso-cookies .parrafo { margin: 0; flex: 1; line-height: 1.45; }
.aviso-cookies .parrafo strong { color: #fff; }
.aviso-cookies .parrafo a { color: var(--ac-sun); font-weight: 600; }
.aviso-cookies .boton {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--ac-sun);
  color: var(--ac-ink);
  font-weight: 700;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.aviso-cookies .boton:hover { transform: translateY(-1px); box-shadow: var(--ac-glow); }
.fondo-aviso-cookies { display: none; }
@media (max-width: 575.98px) {
  .aviso-cookies { flex-wrap: wrap; }
  .aviso-cookies .boton { width: 100%; }
}

/* --------------------------------------------------------------------------
   Compatibilidad con clases antiguas
   -------------------------------------------------------------------------- */
.titulo { font-family: var(--ac-font-display); font-weight: 800; }
.enlace { text-decoration: none; color: var(--ac-ink); }
.enlace:hover { color: var(--ac-amber-text); }
.creativeCommons { color: var(--ac-ink); }
.media img { border-radius: var(--ac-radius-sm); }
.img_galeria img { width: 90%; height: 100%; object-fit: initial; }

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

/* Celulares muy chicos (320-360px) */
@media (max-width: 360px) {
  .ac-app-visual { height: 310px; }
  .ac-phone { width: 122px; border-radius: 24px; }
  .ac-phone img { border-radius: 20px; }
  .ac-app h2 { font-size: 1.8rem; }
  .ac-store { font-size: .84rem; }
}
