/* ===========================
   CTA + FOOTER (COMPARTIDO)
   =========================== */

:root{
  --a23-cta-bg:#343434;
  --a23-btn-bg:#51a0d5;
  --a23-btn-text:#000000;
  --a23-footer-bg:#51a0d5;
  --a23-text-light:#ffffff;
  --a23-shadow: 0 8px 28px rgba(0,0,0,.25);
}

html{
  background: #ffffff;
}


/* Sticky footer cuando la página es corta */
html, body{
  height: auto;
  min-height: 100%;
}
body{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   CTA + FOOTER (FINAL PÁGINA)
   =========================== */

.a23-container{
  width:min(92vw,1180px);
  margin-inline:auto;
  padding: clamp(16px, 3vw, 24px);
}

/* CTA */
.a23-cta{
  background: var(--a23-cta-bg);
  color: var(--a23-text-light);
  padding-block: clamp(20px, 4vw, 36px);
  margin: 0;
  border: 0 !important;

  inline-size: 100vw; max-inline-size: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display:block;
}
@supports (width: 100dvw){
  .a23-cta{
    inline-size:100dvw; max-inline-size:100dvw;
    margin-left:  calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}
html, body { overflow-x: hidden; }

.a23-cta .a23-container{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}
.a23-cta h2{
  margin: 0 0 14px 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.a23-lead{
  margin: 0 0 8px 0;
  font-size: clamp(16px, 2vw, 18px);
}
.a23-sub{
  margin: 0;
  font-size: clamp(14px, 1.8vw, 17px);
  opacity: .95;
}
.a23-btn-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 6vw, 52px);
  padding: 0 clamp(20px, 5vw, 32px);
  background: var(--a23-btn-bg);
  color: var(--a23-btn-text);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--a23-shadow);
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.a23-btn-cta:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* FOOTER */
.a23-footer{
  margin-top:auto;
  border-top: 0 !important;
  background: var(--a23-footer-bg);
  color: #fff;
  padding-block: 4px;
  margin: 0;
  border: 0 !important;

  inline-size: 100vw; max-inline-size: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display:block;
}
@supports (width: 100dvw){
  .a23-footer{
    inline-size:100dvw; max-inline-size:100dvw;
    margin-left:  calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

.a23-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
}

/* Brand (izquierda) */
.a23-footer-brand {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  text-align: left;
  gap: 10px;
}
.a23-brand-logo {
  width: clamp(90px, 14vw, 120px);
  height: auto;
}
.a23-brand-copy {
  margin: 0;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.15;
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

/* Unificar tipografía en centro/derecha */
.a23-footer-center,
.a23-footer-right,
.a23-footer-center span,
.a23-footer-right span,
.a23-credito {
  font-family: "ParrafosFont", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.2;
  margin: 0;
}

/* Centro */
.a23-footer-center {
  text-align: center;
  display: grid;
  gap: 4px;
  line-height: 1.15;
}

/* Derecha */
.a23-footer-right {
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}
.a23-ig {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  transition: background .15s ease, transform .15s ease;
}
.a23-ig:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.a23-credito { font-size: 14px; text-align: center; }

/* Responsive CTA / Footer */
@media (max-width: 900px) {
  .a23-cta .a23-container{
    grid-template-columns: 1fr;
    text-align:center;
    justify-items:center;
  }
  .a23-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .a23-footer-right {
    justify-self: center;
    justify-items: center;
  }
  .a23-footer-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Footer: layout desktop */
@media (min-width: 769px) {
  .a23-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }
  .a23-footer-brand {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    align-self: center;
  }
  .a23-footer-right {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    text-align: center;
    margin: 0;
    transform: translateY(-80px);
  }
  .a23-footer-center {
    grid-column: 3;
    justify-self: end;
    text-align: right;
    align-self: center;
  }
}

/* Tipografía CTA unificada con index principal */
.a23-cta,
.a23-cta h2,
.a23-cta .a23-lead,
.a23-cta .a23-sub,
.a23-btn-cta{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif !important;
}
.a23-cta h2{
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
.a23-cta .a23-lead,
.a23-cta .a23-sub{
  font-weight: 400 !important;
}

/* ===========================
   CHAT GLOBAL Awhak Bot
   =========================== */

:root{
  --awhak-chat-bg-page:#ffffff;
  --awhak-chat-panel:#1b1b1b;
  --awhak-chat-panel-text:#ffffff;
  --awhak-chat-panel-muted: rgba(255,255,255,.72);
  --awhak-chat-chat-bg:#f5f6f7;
  --awhak-chat-bubble:#eef0f2;
  --awhak-chat-bubble-text:#111827;
  --awhak-chat-user:#1f2937;
  --awhak-chat-user-text:#ffffff;
  --awhak-chat-border: rgba(17,18,20,.14);
  --awhak-chat-shadow: 0 18px 50px rgba(0,0,0,.18);
  --awhak-chat-radius: 18px;
  --awhak-chat-radius-bubble: 14px;
  --awhak-chat-btn:#ffffff;
  --awhak-chat-btn-border: rgba(17,18,20,.22);
  --awhak-chat-input-bg:#ffffff;
  --awhak-chat-input-border: rgba(17,18,20,.18);
  --awhak-chat-input-text:#111827;
  --awhak-chat-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.awhak-chat-launcher{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #111214;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px rgba(0,0,0,.25);
  border: 0;
  cursor: pointer;
  z-index: 9999;
}
.awhak-chat-launcher svg{opacity:.92}

.awhak-chat-window{
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--awhak-chat-chat-bg);
  border: 1px solid var(--awhak-chat-border);
  border-radius: var(--awhak-chat-radius);
  box-shadow: var(--awhak-chat-shadow);
  overflow: hidden;
  display: none;
  z-index: 9999;
  font-family: var(--awhak-chat-font);
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 0 !important;
}
.awhak-chat-window.open{display:flex;flex-direction:column}

.awhak-chat-header{
  height: 60px;
  background: var(--awhak-chat-panel);
  color: var(--awhak-chat-panel-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.awhak-chat-icon-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: .95;
}
.awhak-chat-icon-btn:hover{opacity:1}

.awhak-chat-avatar-wrap{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.15);
  overflow: hidden;
  flex: 0 0 auto;
}
.awhak-chat-avatar-wrap img{width:100%;height:100%;object-fit:cover}

.awhak-chat-titlecol{
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}
.awhak-chat-title{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
  margin: 0;
}
.awhak-chat-sub{
  margin: 0;
  font-size: 12px;
  color: var(--awhak-chat-panel-muted);
  line-height: 1.2;
}
.awhak-chat-spacer{flex:1 1 auto}

.awhak-chat-messages{
  padding: 14px 14px 12px;
  overflow: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--awhak-chat-chat-bg);
}

.awhak-chat-msg-row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.awhak-chat-msg-row:not(.awhak-chat-user) > div{max-width:78%}
.awhak-chat-msg-row.awhak-chat-user{
  justify-content: flex-end;
  margin-left: auto;
  width: 100%;
}
.awhak-chat-msg-row.awhak-chat-user > div{
  max-width: 78%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.awhak-chat-mini-avatar{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17,18,20,.14);
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.awhak-chat-mini-avatar img{width:100%;height:100%;object-fit:cover}

.awhak-chat-bubble{
  max-width: 78%;
  background: var(--awhak-chat-bubble);
  color: var(--awhak-chat-bubble-text);
  border-radius: var(--awhak-chat-radius-bubble);
  padding: 12px;
  line-height: 1.35;
  font-size: 14px;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.awhak-chat-bubble-bot{border-top-left-radius:10px}
.awhak-chat-bubble-bot a{
  color: #2563eb;
  text-decoration: underline;
}
.awhak-chat-accept-btn{
  margin-top: 4px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: #51a0d5;
  color: #000;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.awhak-chat-accept-btn:hover{
  filter: brightness(1.05);
}
.awhak-chat-bubble-user{
  background: var(--awhak-chat-user);
  color: var(--awhak-chat-user-text);
  border-top-right-radius: 10px;
  max-width: 100%;
}

.awhak-chat-meta{
  font-size: 12px;
  color: rgba(17,18,20,.45);
  margin-top: 6px;
}
.awhak-chat-meta-dark{
  color: rgba(255,255,255,.55);
  text-align: right;
}

.awhak-chat-input-wrap{
  flex: 0 0 auto;
  padding: 12px 12px 8px;
  background: var(--awhak-chat-chat-bg);
  border-top: 1px solid rgba(17,18,20,.10);
}
.awhak-chat-inputbar{
  background: var(--awhak-chat-input-bg);
  border: 1px solid var(--awhak-chat-input-border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.awhak-chat-text{
  flex: 1 1 auto;
  border: 0;
  outline: none;
  font-size: 16px;
  color: var(--awhak-chat-input-text);
  background: transparent;
}
.awhak-chat-send{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .8;
}
.awhak-chat-send:hover{opacity:1}
.awhak-chat-send:disabled,
.awhak-chat-text:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.awhak-chat-disclaimer{
  text-align: center;
  font-size: 12px;
  color: rgba(17,18,20,.55);
  padding: 8px 14px 10px;
  background: var(--awhak-chat-chat-bg);
}

.awhak-toast{
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100001;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 48px rgba(15,23,42,.18);
  backdrop-filter: blur(14px);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.awhak-toast.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.awhak-toast.is-success{
  border-color: rgba(16,185,129,.18);
}
.awhak-toast.is-error{
  border-color: rgba(239,68,68,.18);
}
.awhak-toast-badge{ display:none; }
.awhak-toast-text{
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.awhak-toast-close{
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.awhak-toast-close:hover{
  background: rgba(15,23,42,.12);
}

/* Boton flotante WhatsApp (arriba del chat) */
.awhak-whatsapp-float{
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #12b75a;
  color: #ffffff;
  text-decoration: none;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
}
.awhak-whatsapp-icon{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.awhak-whatsapp-float:hover{ filter: brightness(1.05); }

@media (max-width:420px){
  .awhak-chat-window{
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
  }
  .awhak-chat-launcher{
    right: 12px;
    bottom: 16px;
  }
  .awhak-toast{
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    padding: 12px 13px;
    gap: 10px;
  }
  .awhak-toast-text{
    font-size: 13px;
  }
  .awhak-whatsapp-float{
    right: 12px;
    bottom: 86px;
    width: 52px;
    height: 52px;
  }
}

/* Logo global */
.brand{ display:flex; align-items:center; flex:0 0 auto; min-width:260px }
.brand img{
  height:clamp(78px, 9vw, 140px);
  width:auto;
  display:block;
  object-fit:contain;
}

/* ===========================
   NAV GLOBAL (logo + links)
   =========================== */
.hero-bar{ position:absolute; inset:0 0 auto 0; z-index:2 }
.nav-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  padding:14px 0;
}
.nav-desktop{ display:flex; align-items:center; margin-left:24px }
.nav-desktop > ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:70px; align-items:center; justify-content:center;
}
.nav-desktop a{
  font-family: "SourceSansCustom","Source Sans Variable",system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif !important;
  font-weight:700 !important;
  font-variation-settings: "wght" 700 !important;
  letter-spacing: 0;
  color:#fff;
  font-size:1.3rem;
  opacity:.92;
}
.nav-desktop a:hover{ opacity:1 }
.nav-desktop li:nth-child(1) a,
.nav-desktop li:nth-child(3) a{ white-space:nowrap }

@media (min-width:769px) and (max-width:1024px){
  .nav-row{ align-items:flex-start }
  .nav-desktop > ul{
    flex-wrap:wrap; gap:20px 50px; justify-content:center; align-items:center;
    margin-top:14px;
  }
  .nav-desktop > ul li:nth-child(5){
    order:2; flex-basis:100%; margin-left:85px; text-align:left;
  }
}

@media (min-width:1025px) and (max-width:1299px){
  .nav-desktop{ flex:1 1 0; min-width:0 }
  .nav-row{ gap:12px }
  .nav-desktop > ul{ gap:28px; flex-wrap:wrap; row-gap:8px; justify-content:flex-start }
  .nav-desktop a{ font-size:1.06rem }
}
@media (min-width:1300px){
  .nav-desktop > ul{ gap: clamp(28px, 4vw, 60px) }
}

.menu-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:28px;
  line-height:1;
  padding:8px;
  border-radius:10px;
  cursor:pointer;
  color:#ffffff;
  margin-left:auto;
}
@media (max-width:1024px){
  .menu-toggle{ display:inline-flex !important }
  .nav-desktop{ display:none !important }
}

.nav-mobile{
  display:none;
  position:fixed !important;
  inset:0 !important;
  z-index:100000 !important;
  background:#ffffff !important;
  padding:0;
  width:100vw;
  max-width:100vw;
  height:100vh;
  min-height:100vh;
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.nav-mobile.show{ display:block }
.nav-mobile::before{
  content:"";
  position:fixed;
  inset:0;
  background:#ffffff;
  z-index:-1;
}
.nav-mobile-panel{
  max-width:none;
  width:100%;
  margin:0;
  display:flex;
  flex-direction:column;
  min-height:100dvh;
}
.nav-mobile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 20px 18px;
  background:#0b0b0f;
}
.nav-mobile-brand img{
  width:120px;
  height:auto;
  display:block;
  filter: brightness(0) invert(1);
}
.menu-close{
  border:0;
  background:transparent;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  color:#ffffff;
  padding:6px;
  border-radius:10px;
}
.menu-close:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
.nav-mobile-section{
  display:grid;
  gap:10px;
  padding:18px 20px 26px;
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}
.nav-mobile-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #eef0f3;
}
.nav-mobile-list .has-submenu{
  display:grid;
  align-items:stretch;
  gap:8px;
}
.nav-link-btn{
  all:unset;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  padding:10px 0;
  font-family: "SourceSansCustom","Source Sans Variable",system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif !important;
  font-weight:700 !important;
  font-variation-settings: "wght" 700;
  font-size:18px;
  color:#111827;
}
.nav-link-btn span:first-child{
  font-family: inherit;
  font-weight: inherit;
  font-variation-settings: "wght" 700;
  color:#111827;
  font-size:18px;
}
.nav-submenu{
  list-style:none;
  margin:0;
  padding:0 0 6px 16px;
  display:none;
  gap:6px;
}
.nav-submenu li{
  border-bottom:0;
  padding:6px 0;
}
.nav-submenu a{
  font-size:16px;
  color:#374151;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
}
.has-submenu.is-open .nav-submenu{
  display:grid;
}
.has-submenu.is-open .nav-chevron{
  transform: rotate(90deg);
}
.nav-mobile-list a{
  font-family: "SourceSansCustom","Source Sans Variable",system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif !important;
  font-weight:700 !important;
  font-variation-settings: "wght" 700 !important;
  letter-spacing: 0;
  color:#111827;
  font-size:18px;
}
.nav-chevron{
  font-size:22px;
  color:#111827;
}
@media (min-width:1025px){
  .nav-mobile{ display:none !important; visibility:hidden !important }
}

body.nav-open{
  overflow:hidden;
  position:fixed;
  width:100%;
  height:100%;
  touch-action:none;
}
html.nav-open{
  overflow:hidden;
}

@media (max-width:1024px){
  .nav-mobile-panel{
    max-width:none;
    margin:0;
  }
}
