/*
Theme Name: AE Press
Theme URI: https://argentinosemigrados.com
Author: Argentinos Emigrados
Description: Tema reconstruido 1:1 desde HTML mobile/desktop (inline styles).
Version: 2.2.26
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: ae-press
*/

body { margin: 0; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a {
  color: #3acacc;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}
a:hover,
a:focus-visible {
  color: #2eb5b7;
}
.noscroll::-webkit-scrollbar { display: none; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.ae-d { display: none; }
.ae-m { display: block; }
@media (min-width: 900px) {
  .ae-m { display: none; }
  .ae-d { display: block; }
}
.ae-hero-bleed {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ae-hero-bleed__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ae-hero-bleed__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
}
body.ae-drawer-open,
body.ae-search-open { overflow: hidden; }

/* Search overlay — entry/exit mirrored (0.28s ease, like drawer) */
.ae-search {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 20px 40px;
  pointer-events: none;
}
.ae-search.is-open {
  pointer-events: auto;
}
.ae-search__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(20, 18, 15, 0.48);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.ae-search.is-open .ae-search__scrim {
  opacity: 1;
}
.ae-search__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: #FFFFFF;
  border-top: 2px solid #141412;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(20, 18, 15, 0.18);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.ae-search.is-open .ae-search__panel {
  opacity: 1;
  transform: translateY(0);
}
.ae-search__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ae-search__eyebrow {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #3acacc;
}
.ae-search__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #E3E3E0;
  background: #FFFFFF;
  cursor: pointer;
  color: #141412;
  flex: none;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ae-search__close-x {
  font-size: 14px;
  line-height: 1;
}
.ae-search__close:hover {
  background: #F7F7F6;
  border-color: #CBCBC7;
}
.ae-search__label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B8A85;
  margin-bottom: 8px;
}
.ae-search__input {
  width: 100%;
  height: 56px;
  border: 1px solid #E3E3E0;
  background: #F7F7F6;
  padding: 0 16px;
  font-family: 'Newsreader', serif;
  font-size: 20px;
  color: #141412;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.ae-search__input:focus {
  border-color: #141412;
  background: #FFFFFF;
}
.ae-search__submit {
  width: 100%;
  height: 50px;
  border: 0;
  background: #3acacc;
  color: #FFFFFF;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
}
.ae-search__submit:hover {
  background: #2eb5b7;
}
.ae-search__hint {
  margin: 14px 0 0;
  font-family: 'Newsreader', serif;
  font-size: 14px;
  line-height: 1.4;
  color: #8B8A85;
}

/* --------------------------------------------------------------------------
   Unified link / CTA hovers
   Inline colors win over element rules, so these use !important.
   Text → brand (#3acacc). Brand text → darker (#2eb5b7). CTAs keep their fills.
   -------------------------------------------------------------------------- */

/* Neutral / dark text links → brand */
a[style*="color:#141412"]:hover,
a[style*="color:#141412"]:focus-visible,
a[style*="color:#3B3A36"]:hover,
a[style*="color:#3B3A36"]:focus-visible,
a[style*="color:#4A4945"]:hover,
a[style*="color:#4A4945"]:focus-visible,
a[style*="color:#8B8A85"]:hover,
a[style*="color:#8B8A85"]:focus-visible,
a[style*="color:#A4A39E"]:hover,
a[style*="color:#A4A39E"]:focus-visible,
button[style*="color:#141412"][style*="background:none"]:hover,
button[style*="color:#141412"][style*="background:none"]:focus-visible {
  color: #3acacc !important;
}

/* Brand text links (#3acacc) → darker teal */
a[style*="color:#3acacc"]:hover,
a[style*="color:#3acacc"]:focus-visible {
  color: #2eb5b7 !important;
}

/* Titles inside list/card links follow the same brand hover */
a:hover > span[style*="color:#141412"],
a:focus-visible > span[style*="color:#141412"],
a:hover span[style*="font-family:'Instrument Serif'"][style*="color:#141412"],
a:focus-visible span[style*="font-family:'Instrument Serif'"][style*="color:#141412"] {
  color: #3acacc !important;
}

/* Soft chips (destino / etapa filters, footer tags) */
a[style*="border:1px solid #E3E3E0"]:hover,
a[style*="border:1px solid #E3E3E0"]:focus-visible {
  color: #141412 !important;
  border-color: #141412 !important;
  background: #FFFFFF !important;
}

/* Image / card media links — scale on hover */
a[style*="position:relative"][style*="overflow:hidden"],
a[style*="display:block"][style*="position:relative"],
a[style*="display:block"]:not([style*="inline-flex"]):not([style*="border:1px"]) {
  overflow: hidden;
}
a[style*="position:relative"] img,
a[style*="display:block"] > img,
a[style*="flex:none"][style*="width:"] img {
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.4s ease, filter 0.4s ease;
  will-change: transform;
}
a[style*="position:relative"]:hover img,
a[style*="position:relative"]:focus-visible img,
a[style*="display:block"]:hover > img,
a[style*="display:block"]:focus-visible > img,
a[style*="flex:none"][style*="width:"]:hover img,
a[style*="flex:none"][style*="width:"]:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1.04);
}

/* CTA shared transition */
a[style*="border:1px solid #141412"][style*="color:#141412"][style*="text-transform:uppercase"],
button[style*="border:1px solid #141412"][style*="color:#141412"][style*="text-transform:uppercase"],
a[style*="background:#3acacc"][style*="text-transform:uppercase"],
button[style*="background:#3acacc"][style*="text-transform:uppercase"],
button[type="submit"][style*="background:#3acacc"],
a[style*="background:#FFFFFF"][style*="color:#141412"][style*="text-transform:uppercase"],
.ae-cta {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

/* Hero / banner white CTA → brand fill (same family as solid brand) */
a[style*="background:#FFFFFF"][style*="color:#141412"][style*="text-transform:uppercase"]:hover,
a[style*="background:#FFFFFF"][style*="color:#141412"][style*="text-transform:uppercase"]:focus-visible {
  background: #3acacc !important;
  color: #FFFFFF !important;
}

/* Ghost / outline → fill black */
a[style*="border:1px solid #141412"][style*="color:#141412"][style*="text-transform:uppercase"]:hover,
a[style*="border:1px solid #141412"][style*="color:#141412"][style*="text-transform:uppercase"]:focus-visible,
button[style*="border:1px solid #141412"][style*="color:#141412"][style*="text-transform:uppercase"]:hover,
button[style*="border:1px solid #141412"][style*="color:#141412"][style*="text-transform:uppercase"]:focus-visible,
.ae-cta--outline:hover,
.ae-cta--outline:focus-visible {
  background: #141412 !important;
  color: #FFFFFF !important;
  border-color: #141412 !important;
}

/* Solid brand → darker teal */
a[style*="background:#3acacc"]:hover,
a[style*="background:#3acacc"]:focus-visible,
button[style*="background:#3acacc"]:hover,
button[style*="background:#3acacc"]:focus-visible,
.ae-cta--solid:hover,
.ae-cta--solid:focus-visible {
  background: #2eb5b7 !important;
  color: #FFFFFF !important;
}

/* Solid black CTAs */
a[style*="background:#141412"][style*="color:#FFFFFF"][style*="text-transform:uppercase"]:hover,
a[style*="background:#141412"][style*="color:#FFFFFF"][style*="text-transform:uppercase"]:focus-visible,
button[style*="background:#141412"][style*="color:#FFFFFF"][style*="text-transform:uppercase"]:hover,
button[style*="background:#141412"][style*="color:#FFFFFF"][style*="text-transform:uppercase"]:focus-visible {
  background: #2A2926 !important;
  color: #FFFFFF !important;
  border-color: #2A2926 !important;
}

@media (max-width: 899px) {
  .ae-search {
    padding: 10vh 16px 32px;
  }
  .ae-search__panel {
    padding: 22px 18px 20px;
  }
  .ae-search__input {
    height: 52px;
    font-size: 18px;
  }
  .ae-search__close-label {
    display: none;
  }
  .ae-search__close {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

.ae-ad,
.ae-ad__link,
.ae-ad__canvas {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.ae-ad__canvas > div {
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
}

/* Video lightbox */
.ae-video {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.ae-video.is-open { pointer-events: auto; }
.ae-video__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(20, 18, 15, 0.72);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.ae-video.is-open .ae-video__scrim { opacity: 1; }
.ae-video__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: #141412;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.ae-video.is-open .ae-video__panel {
  opacity: 1;
  transform: translateY(0);
}
.ae-video__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 16px;
}
.ae-video__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.ae-video__frame iframe,
.ae-video__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.ae-video__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #141412;
}
.ae-video__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.15;
  color: #FFFFFF;
}
.ae-video__ext {
  flex: none;
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #DEDEDA;
}
body.ae-video-open { overflow: hidden; }

@media (max-width: 720px) {
  .ae-video {
    padding: 56px 12px 20px;
    align-items: flex-start;
  }
  .ae-video__panel {
    width: 100%;
  }
  .ae-video__close {
    top: -48px;
    right: 0;
  }
  .ae-video__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 14px 16px;
  }
  .ae-video__title {
    width: 100%;
    flex: none;
    font-size: 18px;
  }
  .ae-video__ext {
    align-self: flex-start;
  }
}

.ae-video.is-gallery .ae-video__frame {
  padding-top: 0;
  height: min(78vh, 720px);
  background: #0E0E0C;
}
.ae-video.is-gallery .ae-video__frame img {
  object-fit: contain;
}

.ae-chip {
  flex: none;
  height: 38px;
  padding: 0 16px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0;
  background: #FFFFFF;
  color: #4A4945;
  border: 1px solid #E3E3E0;
}
.ae-chip.is-active {
  background: #141412;
  color: #FFFFFF;
  border-color: #141412;
}

.ae-file {
  position: relative;
  display: block;
  border: 1px dashed #C4C4C1;
  background: #F7F7F6;
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.ae-file.is-drag,
.ae-file.has-file {
  border-color: #141412;
  background: #FFFFFF;
}
.ae-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Article body from the_content — mirrors HTML design typography */
.ae-prose p,
.ae-prose li {
  margin: 0 0 18px;
  font-family: 'Newsreader', serif;
  font-size: 17.5px;
  line-height: 1.62;
  color: #24231F;
  text-wrap: pretty;
}
.ae-prose--d p,
.ae-prose--d li { font-size: 19px; line-height: 1.65; }
.ae-prose ul,
.ae-prose ol {
  margin: 0 0 22px;
  padding: 0 0 0 1.15em;
}
.ae-prose li {
  margin: 0 0 10px;
}
.ae-prose li:last-child {
  margin-bottom: 0;
}
.ae-prose h2 {
  margin: 26px 0 12px;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  color: #141412;
  scroll-margin-top: 24px;
}
.ae-prose--d h2 { font-size: 34px; }
.ae-prose blockquote {
  margin: 24px 0;
  padding: 20px;
  background: #F7F7F6;
  border-top: 2px solid #141412;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.ae-prose blockquote p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.16;
  color: #141412;
  margin: 0;
}
.ae-prose img { max-width: 100%; height: auto; }
.ae-prose video,
.ae-prose iframe,
.ae-prose embed,
.ae-prose object,
.ae-prose .wp-video,
.ae-prose .wp-video-shortcode,
.ae-prose .mejs-container,
.ae-prose .mejs-overlay,
.ae-prose .mejs-layer {
  max-width: 100% !important;
  width: 100% !important;
}
.ae-prose video,
.ae-prose .wp-video-shortcode {
  display: block;
  height: auto !important;
  aspect-ratio: 16 / 9;
  background: #141412;
  margin: 8px 0 22px;
}
.ae-prose .wp-video {
  margin: 8px 0 22px;
}
.ae-prose iframe {
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0;
  border: 0;
}

/* Article / noticia sidebar follows until end of post column */
.ae-article-layout {
  display: flex;
  gap: 56px;
  padding: 44px 48px 60px;
  align-items: stretch;
}
.ae-article-share {
  width: 104px;
  flex: none;
  align-self: flex-start;
  position: sticky;
  top: 28px;
}
.ae-article-main {
  flex: 1;
  max-width: 760px;
  min-width: 0; /* allow media to shrink inside flex */
}
.ae-article-aside {
  width: 340px;
  flex: none;
}
.ae-article-aside__sticky {
  position: sticky;
  top: 28px;
}

/* Drop cap only on the first real paragraph — never on TOC / groups */
.ae-prose > p:first-of-type::first-letter {
  float: left;
  font-family: 'Instrument Serif', serif;
  font-size: 58px;
  line-height: 0.78;
  padding: 4px 9px 0 0;
  color: #141412;
}

/* Table of contents (bmd-toc / generic TOC blocks) */
.ae-prose .bmd-toc,
.ae-prose .wp-block-table-of-contents,
.ae-prose .ez-toc-container,
.ae-prose .lwptoc {
  margin: 0 0 32px;
  padding: 22px 24px 20px;
  background: #F7F7F6;
  border-top: 2px solid #141412;
  border-right: 1px solid #ECECEA;
  border-bottom: 1px solid #ECECEA;
  border-left: 1px solid #ECECEA;
}
.ae-prose .bmd-toc .wp-block-group__inner-container {
  margin: 0;
  padding: 0;
}
.ae-prose .bmd-toc-title,
.ae-prose .bmd-toc h2,
.ae-prose .bmd-toc h3,
.ae-prose .bmd-toc h4,
.ae-prose .wp-block-table-of-contents__title,
.ae-prose .ez-toc-title {
  margin: 0 0 14px !important;
  padding: 0;
  font-family: 'Jost', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3acacc !important;
  float: none !important;
}
.ae-prose .bmd-toc-title::first-letter,
.ae-prose .bmd-toc h3::first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding: 0 !important;
  font-family: inherit !important;
}
.ae-prose .bmd-toc-list,
.ae-prose .bmd-toc ul,
.ae-prose .wp-block-table-of-contents ul,
.ae-prose .ez-toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: ae-toc;
}
.ae-prose .bmd-toc-list > li,
.ae-prose .bmd-toc ul > li,
.ae-prose .wp-block-table-of-contents li,
.ae-prose .ez-toc-list > li {
  counter-increment: ae-toc;
  position: relative;
  margin: 0 !important;
  padding: 11px 0 11px 2.1em;
  border-top: 1px solid #E3E3E0;
  font-family: 'Newsreader', serif;
  font-size: 16.5px !important;
  line-height: 1.35 !important;
  color: #141412;
}
.ae-prose--d .bmd-toc-list > li,
.ae-prose--d .bmd-toc ul > li {
  font-size: 17.5px !important;
}
.ae-prose .bmd-toc-list > li:first-child,
.ae-prose .bmd-toc ul > li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.ae-prose .bmd-toc-list > li::before,
.ae-prose .bmd-toc ul > li::before {
  content: counter(ae-toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #8B8A85;
}
.ae-prose .bmd-toc-list > li:first-child::before,
.ae-prose .bmd-toc ul > li:first-child::before {
  top: 4px;
}
.ae-prose .bmd-toc-list a,
.ae-prose .bmd-toc a,
.ae-prose .wp-block-table-of-contents a,
.ae-prose .ez-toc-list a {
  color: #141412;
  text-decoration: none;
  text-wrap: pretty;
}
.ae-prose .bmd-toc-list a:hover,
.ae-prose .bmd-toc a:hover {
  color: #3acacc;
}
@media (max-width: 899px) {
  .ae-prose .bmd-toc,
  .ae-prose .wp-block-table-of-contents,
  .ae-prose .ez-toc-container {
    padding: 18px 16px 16px;
    margin-bottom: 26px;
  }
  .ae-prose .bmd-toc-list > li,
  .ae-prose .bmd-toc ul > li {
    font-size: 15.5px !important;
    padding: 10px 0 10px 2em;
  }
}

