/*
Theme Name: Kadence Child - Alfredo Escolar
Theme URI: https://alfredoescolar.com/
Description: Tema hijo de Kadence. Home editorial con bandas alternadas, carrusel de servicios y blog al frente.
Author: Alfredo Escolar
Author URI: https://alfredoescolar.com/
Template: kadence
Version: 2.0.0
Text Domain: kadence-child
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --bg: #FFFFFF;
  --bg-gris: #F5F5F7;
  --bg-negro: #0D0D0D;

  --ink: #1D1D1F;
  --ink-dim: #6E6E73;
  --ink-faint: #86868B;
  --ink-negro: #F5F5F7;
  --ink-negro-dim: #A1A1A6;

  --azul: #0071E3;
  --azul-oscuro: #0058B0;
  --line: rgba(0,0,0,.09);

  --grad: linear-gradient(100deg,#2997FF 0%,#BF5AF2 52%,#FF375F 100%);

  --maxw: 1120px;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

body.ae-home { background: #FFFFFF; margin: 0; padding: 0; }

/* ==========================================================================
   2. BASE
   ========================================================================== */
.ae-site * { margin: 0; padding: 0; box-sizing: border-box; }

.ae-site {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ae-site h1, .ae-site h2, .ae-site h3, .ae-site h4,
.ae-site p, .ae-site span, .ae-site div, .ae-site li { color: inherit; }

.ae-site a { color: inherit; text-decoration: none; }
.ae-site a:not(.btn) {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ae-site .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.ae-site .banda { padding: 72px 0; }
.ae-site .banda-gris { background: var(--bg-gris); }
.ae-site .banda-negra { background: var(--bg-negro); color: var(--ink-negro); }

.ae-site .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ae-site .kick {
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.ae-site .banda-negra .kick { color: var(--ink-faint); }

.ae-site .lnk {
  color: var(--azul); font-size: 15px;
  display: inline-block; margin-right: 22px;
}
.ae-site .lnk:hover { text-decoration: underline; }

.ae-site a:focus-visible, .ae-site button:focus-visible {
  outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px;
}

.ae-site .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ==========================================================================
   3. FRANJA SUPERIOR — última nota
   ========================================================================== */
.ae-site .franja {
  background: var(--bg-negro);
  color: var(--ink-negro);
  text-align: center;
  padding: 11px 20px;
  font-size: 13.5px;
}
.ae-site .franja b { font-weight: 500; color: #2997FF; }
.ae-site .franja a { color: var(--ink-negro); }
.ae-site .franja a:hover { text-decoration: underline; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.ae-site .hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ae-site .nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.ae-site .logo { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.ae-site .logo span { color: var(--azul); }
.ae-site .nav-links { display: flex; gap: 26px; font-size: 14px; }
.ae-site .nav-links a { color: var(--ink); transition: opacity .2s; }
.ae-site .nav-links a:hover { opacity: .6; }
.ae-site .menu-toggle {
  display: none; background: none; border: none;
  color: var(--ink); font-size: 22px; cursor: pointer; line-height: 1;
}

/* ==========================================================================
   5. NOTA DESTACADA
   ========================================================================== */
.ae-site .lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.ae-site .lead-img {
  aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; background: var(--bg-gris);
}
.ae-site .lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-site .lead .kick { color: var(--azul); }
.ae-site .lead h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px,3.6vw,44px); line-height: 1.1;
  letter-spacing: -.03em; margin: 14px 0 16px;
}
.ae-site .lead h1 a:hover { opacity: .7; }
.ae-site .lead .bajada { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.ae-site .meta { font-size: 13px; color: var(--ink-faint); }

/* ==========================================================================
   6. NOTAS RECIENTES
   ========================================================================== */
.ae-site .recientes { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.ae-site .nota-img {
  aspect-ratio: 16/10; border-radius: 14px; overflow: hidden;
  background: #E2E2E7; margin-bottom: 16px;
}
.ae-site .nota-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ae-site .nota:hover .nota-img img { transform: scale(1.04); }
.ae-site .nota .cat {
  font-family: var(--display); font-weight: 700; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
  display: block; margin-bottom: 8px;
}
.ae-site .nota h3 {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  line-height: 1.3; letter-spacing: -.015em;
}
.ae-site .nota .meta { margin-top: 10px; }

/* ==========================================================================
   7. CARRUSEL DE SERVICIOS
   ========================================================================== */
.ae-site .carrusel { padding: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.ae-site .riel { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }

.ae-site .slide {
  min-width: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: 1fr .78fr;
  gap: 52px; align-items: center;
  padding: 56px 0 52px;
}
.ae-site .slide-solo-texto {
  grid-template-columns: 1fr; text-align: center; padding: 76px 0 68px;
}
.ae-site .slide-solo-texto .titulo,
.ae-site .slide-solo-texto .bajada { margin-left: auto; margin-right: auto; }
.ae-site .slide-solo-texto .kick { justify-content: center; }
.ae-site .slide-solo-texto .slide-links { justify-content: center; }

.ae-site .slide .titulo {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px,4.2vw,52px); line-height: 1.05;
  letter-spacing: -.03em; margin: 14px 0 16px; max-width: 17ch;
}
.ae-site .slide .bajada {
  font-size: 17px; color: var(--ink-dim); line-height: 1.55;
  max-width: 44ch; margin-bottom: 22px;
}
.ae-site .slide-links { display: flex; flex-wrap: wrap; }

.ae-site .slide-foto {
  border-radius: 20px; overflow: hidden; background: var(--bg-gris);
  aspect-ratio: 4/5; max-height: 470px; margin-left: auto;
}
.ae-site .slide-foto img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%; display: block;
}

.ae-site .puntos { display: flex; justify-content: center; gap: 9px; padding: 0 0 32px; }
.ae-site .punto {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D2D2D7; border: none; padding: 0; cursor: pointer;
  transition: background .3s, width .3s;
}
.ae-site .punto[aria-current="true"] { background: var(--ink); width: 24px; border-radius: 100px; }

/* ==========================================================================
   8. TEMAS
   ========================================================================== */
.ae-site .temas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ae-site .tema {
  background: var(--bg-gris); border-radius: 100px; padding: 10px 18px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  transition: background .25s;
}
.ae-site .tema:hover { background: #EBEBF0; }
.ae-site .tema i { font-style: normal; font-weight: 400; color: var(--ink-faint); font-size: 13px; margin-left: 6px; }

/* ==========================================================================
   9. NEWSLETTER
   ========================================================================== */
.ae-site .news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ae-site .news h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(24px,3vw,34px); letter-spacing: -.025em;
  line-height: 1.12; margin: 12px 0 10px;
}
.ae-site .news p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; }
.ae-site .news-form iframe { width: 100%; border: none; }
.ae-site .news-fallback {
  display: inline-block; background: var(--azul); color: #fff !important;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 100px;
}
.ae-site .news-fallback:hover { background: var(--azul-oscuro); }

/* ==========================================================================
   10. BANDA NEGRA — firma
   ========================================================================== */
.ae-site .banda-negra h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(24px,3.2vw,38px); letter-spacing: -.025em;
  line-height: 1.12; margin: 14px 0 14px; max-width: 24ch;
}
.ae-site .banda-negra p { color: var(--ink-negro-dim); font-size: 16px; max-width: 60ch; line-height: 1.6; }
.ae-site .firma-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 30px;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 30px; margin-top: 34px;
  max-width: 620px;
}
.ae-site .firma-stats .num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px,3vw,36px); line-height: 1; letter-spacing: -.02em;
}
.ae-site .firma-stats .num sup { font-size: .45em; color: #2997FF; }
.ae-site .firma-stats .lbl {
  font-size: 11px; color: var(--ink-faint); margin-top: 9px;
  text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--display); font-weight: 600;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.ae-site .ft {
  background: var(--bg-gris); border-top: 1px solid var(--line);
  padding: 30px 0; font-size: 13px; color: var(--ink-faint);
}
.ae-site .ft-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.ae-site .ft a { color: var(--ink-dim); }
.ae-site .ft a:hover { color: var(--ink); }
.ae-site .ft-links { display: flex; gap: 20px; }

/* ==========================================================================
   12. ANIMACIÓN
   ========================================================================== */
.ae-site .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.ae-site .reveal.in { opacity: 1; transform: none; }
.no-js .ae-site .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .ae-site .banda { padding: 52px 0; }
  .ae-site .lead { grid-template-columns: 1fr; gap: 24px; }
  .ae-site .recientes { grid-template-columns: 1fr; gap: 34px; }
  .ae-site .news { grid-template-columns: 1fr; gap: 26px; }
  .ae-site .nav-links { display: none; }
  .ae-site .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 22px 28px; gap: 18px;
  }
  .ae-site .menu-toggle { display: block; }
  .ae-site .slide {
    grid-template-columns: 1fr; gap: 24px;
    padding: 30px 0 26px; text-align: left;
  }
  .ae-site .slide-foto {
    order: -1; aspect-ratio: 4/3; max-height: none; margin-left: 0;
  }
  .ae-site .slide-foto img { object-position: center 18%; }
  .ae-site .slide .titulo { max-width: none; }
  .ae-site .slide-solo-texto { padding: 44px 0 38px; }
  .ae-site .firma-stats { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-site .riel, .ae-site .reveal, .ae-site .nota-img img { transition: none; }
  .ae-site .reveal { opacity: 1; transform: none; }
}
