/* MiCorreo — promo BLACK (base referencia.html) */

:root {
  --mc-yellow: #ffce00;
  --mc-navy: #152663;
  --mc-text: #191919;
  --mc-muted: #49454f;
  --mc-bg: #fafafa;
  --mc-bg-2: #f4efef;
  --mc-header-h: 64px;
  --mc-font: "Gilroy-Regular", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mc-font-semibold: "Gilroy-SemiBold", "Segoe UI", system-ui, sans-serif;
  --mc-font-medium: "Gilroy-Medium", "Segoe UI", system-ui, sans-serif;
  --mc-font-bold: "Gilroy-Bold", "Segoe UI", system-ui, sans-serif;
}

.mc-promo {
  font-family: var(--mc-font);
  color: var(--mc-text);
  background: var(--mc-bg);
  -webkit-font-smoothing: antialiased;
}

.mc-promo h2 {
  font-family: var(--mc-font-semibold);
  color: var(--mc-navy);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin: 0;
}

.mc-promo h4 {
  font-family: var(--mc-font);
  font-weight: 400;
  color: var(--mc-text);
  line-height: 1.55;
  margin: 0;
}

/* ── Header ── */
.mc-header {
  background: var(--mc-yellow);
  z-index: 500;
  box-shadow: 0 1px 0 rgba(21, 38, 99, 0.08);
}

.mc-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--mc-header-h);
}

.mc-header__brand img {
  height: 40px;
  width: auto;
  display: block;
}

.mc-header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mc-header__nav a {
  font-family: var(--mc-font-medium);
  font-size: 0.9rem;
  color: var(--mc-navy);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}

.mc-header__nav a:hover {
  background: rgba(21, 38, 99, 0.06);
}

.mc-header__toggle {
  display: none;
  border: none;
  background: rgba(21, 38, 99, 0.08);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}

.mc-header__toggle span {
  display: block;
  height: 2px;
  background: var(--mc-navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ── Layout ── */
.mc-main {
  padding-top: var(--mc-header-h);
}

.mc-section-title {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

.mc-section-title__row {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.mc-section-title__row hr {
  border: none;
  border-top: 2px solid var(--mc-navy);
  opacity: 0.25;
  margin: 0;
}

/* ── Hero seguimiento ── */
.mc-hero {
  background: var(--mc-bg);
  padding: 1.75rem 1.25rem 1rem;
}

.mc-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mc-hero__card {
  background: var(--mc-bg-2);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mc-hero__card img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.mc-hero__card h3 {
  font-family: var(--mc-font-semibold);
  font-size: 1.05rem;
  color: var(--mc-navy);
  margin: 0 0 0.35rem;
}

.mc-hero__card p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--mc-muted);
  line-height: 1.45;
}

.mc-link {
  font-family: var(--mc-font-semibold);
  font-size: 1rem;
  color: var(--mc-navy);
  text-decoration: none;
  border-bottom: 3px solid var(--mc-yellow);
  padding-bottom: 2px;
}

.mc-link:hover {
  color: var(--mc-navy);
  opacity: 0.85;
}

/* ── Chat ── */
.mc-chat-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.mc-promo .card-atendimento {
  border-radius: 16px;
  border: 1px solid rgba(21, 38, 99, 0.08);
  box-shadow: 0 8px 32px rgba(21, 38, 99, 0.08);
  overflow: hidden;
}

.mc-promo .card-atendimento .card-header {
  background: var(--mc-navy) !important;
  border-bottom: 3px solid var(--mc-yellow) !important;
  padding: 0.85rem 1rem !important;
}

.mc-promo .chat-agent__name {
  font-family: var(--mc-font-semibold);
  color: #fff;
}

.mc-promo .chat-agent__status {
  color: rgba(255, 255, 255, 0.82);
}

.mc-promo .chat-agent__avatar {
  background: var(--mc-yellow);
  border-color: rgba(255, 255, 255, 0.35);
}

.mc-promo .card-header-right {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.mc-promo .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: mcPulse 2s ease-in-out infinite;
}

@keyframes mcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.mc-promo .card-atendimento .card-body {
  background: #eef1f6 !important;
  min-height: 420px;
  max-height: calc(100vh - 280px);
  max-height: calc(100dvh - 280px);
}

.mc-promo .mensagem-chat.bot .mensagens .text .msg {
  background: #fff !important;
  border: 1px solid rgba(21, 38, 99, 0.1);
}

.mc-promo .mensagem-chat.user .mensagens .text .msg {
  background: var(--mc-yellow) !important;
  color: var(--mc-navy) !important;
}

/* ── Serviços (referencia) ── */
.mc-services {
  background: var(--mc-bg);
  padding: 0 0 3rem;
}

.mc-services__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mc-svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}

.mc-svc--reverse .mc-svc__visual {
  order: -1;
}

.mc-svc__logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 1.25rem;
}

.mc-svc__titulo {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.55;
  margin-bottom: 1rem;
  max-width: 34rem;
}

.mc-svc__visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ── Por qué elegirnos ── */
.mc-why {
  background: var(--mc-bg);
  padding: 0 1rem 3rem;
}

.mc-why__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.mc-why__item h4 {
  font-family: var(--mc-font-semibold);
  color: var(--mc-navy);
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.mc-why__item img {
  width: 28%;
  max-width: 72px;
  height: auto;
}

/* ── Footer ── */
.mc-footer {
  background: var(--mc-yellow);
  color: var(--mc-navy);
  padding: 2rem 0 2.5rem;
}

.mc-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mc-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.mc-footer__label {
  font-family: var(--mc-font-semibold);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.mc-footer__grid a {
  font-size: 0.82rem;
  color: var(--mc-navy);
  text-decoration: none;
  line-height: 1.7;
}

.mc-footer__grid a:hover {
  text-decoration: underline;
}

.mc-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.mc-footer__social img {
  width: 28px;
  height: 28px;
}

.mc-footer__brand {
  text-align: center;
  padding-top: 0.5rem;
}

.mc-footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
}

.mc-footer__copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--mc-navy);
  line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 991px) {
  .mc-header__toggle {
    display: block;
  }

  .mc-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mc-yellow);
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(21, 38, 99, 0.08);
    flex-direction: column;
    align-items: stretch;
  }

  .mc-header__nav.is-open {
    display: flex;
  }

  .mc-header__inner {
    position: relative;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    min-height: 56px;
  }

  .mc-header__brand img {
    height: 32px;
  }

  :root {
    --mc-header-h: 56px;
  }

  .mc-hero__inner {
    grid-template-columns: 1fr;
  }

  .mc-hero {
    display: none;
  }

  .mc-chat-wrap {
    padding: 0;
    max-width: 100%;
  }

  .mc-promo .card-atendimento {
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: calc(100dvh - var(--mc-header-h) - 120px);
    display: flex;
    flex-direction: column;
  }

  .mc-promo .card-atendimento .card-body {
    flex: 1;
    min-height: 0;
    max-height: none !important;
  }

  .mc-services,
  .mc-why,
  .mc-section-title--services {
    display: none;
  }

  .mc-footer {
    padding: 1.25rem 0 1.5rem;
  }

  .mc-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .mc-footer__social {
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .mc-svc__logo--mobile {
    display: none;
  }
}

@media (max-width: 991px) {
  .mc-svc {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }

  .mc-svc__logo--desktop {
    display: none;
  }

  .mc-svc__visual {
    order: -1 !important;
  }
}

/* Mobile shell (teclado) — integração com black-promo-v2 */
@media (max-width: 768px) {
  html.promo-mobile-shell body.mc-promo {
    height: var(--promo-vh, 100dvh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  html.promo-mobile-shell body.mc-promo .mc-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: var(--mc-header-h);
  }

  html.promo-mobile-shell body.mc-promo .mc-chat-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html.promo-mobile-shell body.mc-promo .card-atendimento {
    flex: 1;
    min-height: 0 !important;
  }

  html.promo-mobile-shell body.mc-promo .mc-footer {
    flex-shrink: 0;
  }
}
