/*
 * Ara Child — Footer NATIVO de Madara restyleado a CAPIBARA.
 * NO reemplazamos el markup: respetamos el footer de Madara (su menú de footer,
 * copyright, redes y los links que el mu-plugin optimizer inyecta en .bottom-footer).
 * Solo CSS: sacamos las bandas grises y dejamos todo en #09090b, igual al cuerpo.
 */

/* ====== Zona de widgets "bottom_sidebar" / "manga_main_bottom_sidebar"
   (html/main-bottom, va ANTES del footer): también viene gris de Madara → negro
   capibara. Incluye los fondos INTERNOS del widget (.wp-manga-section / .c-widget-wrap)
   que dejaban una banda gris aunque el wrapper ya estuviera en negro. ====== */
.c-sidebar.c-bottom-sidebar,
.c-sidebar.c-bottom-sidebar .container,
.c-sidebar.c-bottom-sidebar .row,
.c-sidebar.c-bottom-sidebar .wp-manga-section,
.c-sidebar.c-bottom-sidebar .widget,
.c-sidebar.c-bottom-sidebar .c-widget-wrap,
.footer-ads {
  background: #09090b !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* si la zona quedó SIN widget real, no dejar ni el hueco gris */
.c-sidebar.c-bottom-sidebar .wp-manga-section:empty,
.c-sidebar.c-bottom-sidebar .widget:empty { display: none !important; }

/* ====== Fondo: negro capibara en todo el footer (mata el gris de Madara) ====== */
.site-footer,
.site-footer .top-footer,
.site-footer .bottom-footer,
.site-footer .c-footer-sidebar {
  background: #09090b !important;        /* zinc-950, igual al cuerpo del home */
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.site-footer {
  border-top: 1px solid #18181b !important;  /* zinc-900, línea sutil de separación */
  padding-top: 2rem;
  /* Madara le pone esquinas redondeadas → se veía como una "tarjeta" flotante.
     Lo dejamos PLANO y a todo el ancho, flush con el cuerpo. */
  border-radius: 0 !important;
  margin: 0 !important;
}
/* Por si el redondeo viene del contenedor de la página (esquinas de abajo). */
.body-wrap,
.wrap { border-radius: 0 !important; }
.site-footer .top-footer { padding: 1.25rem 0 .5rem; }
.site-footer .bottom-footer { padding: 1.5rem 0 2rem; }

/* ====== Copyright ====== */
.site-footer .copyright,
.site-footer .copyright p {
  color: #52525b;                        /* zinc-600 */
  font-size: .8rem;
  margin: 0;
}

/* ====== Menú de footer (si hay footer_menu asignado) ====== */
.site-footer .nav-footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
}
.site-footer .nav-footer li { margin: 0; }
.site-footer .nav-footer a {
  color: #71717a; font-size: .85rem; text-decoration: none;
  transition: color .2s ease;
}
.site-footer .nav-footer a:hover { color: var(--ara-cyan, #06b6d4); }

/* ====== Redes sociales (.wrap_social_account) → círculos capibara ====== */
.site-footer .wrap_social_account {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.site-footer .wrap_social_account ul {
  display: flex; align-items: center; gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.site-footer .wrap_social_account li { margin: 0; list-style: none; }
.site-footer .wrap_social_account a {
  width: 40px; height: 40px; border-radius: 999px;
  background: #18181b; color: #a1a1aa;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-footer .wrap_social_account a:hover {
  background: var(--ara-cyan, #06b6d4); color: #09090b; transform: translateY(-2px);
}

/* ====== Widgets del footer_sidebar (si hay), legibles sobre negro ====== */
.site-footer .c-footer-sidebar { padding: 1.5rem 0; }
.site-footer .c-footer-sidebar .widget-title,
.site-footer .c-footer-sidebar h1,
.site-footer .c-footer-sidebar h2,
.site-footer .c-footer-sidebar h3 { color: #fff; }
.site-footer .c-footer-sidebar,
.site-footer .c-footer-sidebar p,
.site-footer .c-footer-sidebar li { color: #a1a1aa; }
.site-footer .c-footer-sidebar a { color: #71717a; transition: color .2s ease; }
.site-footer .c-footer-sidebar a:hover { color: var(--ara-cyan, #06b6d4); }

/* Los .footer-link (pills) del mu-plugin del amigo NO se tocan: el plugin trae su
   propio estilo inline (pill + hover rojo) y se ve bien sobre el negro. */

/* ============================================================================
   FOOTER RICO ESTILO CAPIBARA (override footer.php del child → .ara-foot)
   Marca (logo + descripción + redes) + columnas de links + barra inferior.
   ============================================================================ */
.ara-foot { padding: 4rem 0 2rem !important; background: #09090b !important; }
/* Madara pone .site-footer{text-align:center} → el LOGO (inline-block) quedaba
   centrado mientras los íconos (flex justify-start) iban a la izquierda. Como
   capibara: TODO el bloque superior a la izquierda; copyright sigue centrado
   (su propia regla más abajo). */
.ara-foot { text-align: left !important; }
/* Contenido CONTENIDO y centrado (como capibara: max-w-7xl mx-auto). Antes tenía
   width:100% → se estiraba a todo el ancho y se veía descentrado. */
.ara-foot .container { max-width: 1240px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ---- Grilla superior: marca (ancha) + 2 columnas de links ---- */
.ara-foot__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* ---- Columna de marca ---- */
.ara-foot__logo { display: inline-block; }
.ara-foot__logo img { height: 40px; width: auto; display: block; }
.ara-foot__desc {
  color: #a1a1aa; font-size: .9rem; line-height: 1.65;
  margin: 1.1rem 0 1.35rem; max-width: 42ch;
}
/* las redes (.wrap_social_account ya = círculos) se alinean a la IZQUIERDA, bajo el logo */
.site-footer .ara-foot__social { justify-content: flex-start; margin-top: 1.25rem; }

/* ---- Columnas de links ---- */
.ara-foot__h {
  color: #fff; font-weight: 800; font-size: .95rem;
  margin: 0 0 1.25rem; letter-spacing: .01em;
}
.ara-foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.ara-foot__links li { margin: 0; }
.ara-foot__links a,
.ara-foot__links button {
  color: #a1a1aa; font-size: .88rem; text-decoration: none;
  font-family: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  transition: color .2s ease;
}
.ara-foot__links a:hover,
.ara-foot__links button:hover { color: var(--ara-cyan, #06b6d4); }

/* ---- Barra inferior: links legales (sin disclaimer) centrados ---- */
.ara-foot__bottom {
  border-top: 1px solid #18181b;
  padding-top: 1.85rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.25rem;
}
/* links legales chiquitos en mayúscula espaciada, como capibara (text-[10px]) */
.ara-foot__bottom-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
.ara-foot__bottom-menu li { margin: 0; }
.ara-foot__bottom-menu a {
  color: #a1a1aa; font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  text-decoration: none; white-space: nowrap; transition: color .2s ease;
}
.ara-foot__bottom-menu a:hover { color: #fff; }

/* ---- Copyright centrado ---- */
.ara-foot__copy {
  margin-top: 2rem; text-align: center;
  color: #a1a1aa; font-size: .78rem;
}
.ara-foot__copy a { color: #a1a1aa; text-decoration: none; }
.ara-foot__copy a:hover { color: var(--ara-cyan, #06b6d4); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .ara-foot__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .ara-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ara-foot { padding: 3rem 0 1.5rem !important; }
  .ara-foot__top { grid-template-columns: 1fr; gap: 2.25rem; }
  .ara-foot__bottom { flex-direction: column; align-items: center; text-align: center; }
  .ara-foot__disclaimer { text-align: center; }
  .ara-foot__bottom-menu { justify-content: center; }
}

/* ===== Footer SEO Box ===== */
.ara-foot__seo-wrap {
  padding: 2rem 0 0;
  border-top: 1px solid #27272a;
  margin-top: 2rem;
}
.ara-foot__seo {
  max-width: 800px;
  margin: 0 auto;
  color: #a1a1aa;
  font-size: .9rem;
  line-height: 1.7;
}
.ara-foot__seo h2 {
  color: #fff;
  font: 900 1.1rem/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 1.5rem 0 .5rem;
}
.ara-foot__seo h2:first-child { margin-top: 0; }
.ara-foot__seo p { margin: 0 0 1rem; }
@media (max-width: 600px) {
  .ara-foot__seo { font-size: .85rem; }
  .ara-foot__seo h2 { font-size: 1rem; }
}
