/* Estilos compartidos del blog de calendi.
   NAV, botones y FOOTER copiados de calendi/index.html: si cambian allá, sincronizar acá. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:   #29B7D3;
  --dark:   #1E1E2E;
  --mid:    #4A4A6A;
  --light:  #F7F8FC;
  --border: #E8EAF0;
  --white:  #FFFFFF;
  --brand:  #4F43FD;
  --ink:    #12175E;
  --acid:   #C2F552;
  --brand-soft: #F5F6FF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  --nav-ease: cubic-bezier(.22, 1, .36, 1);
  --nav-dur: .42s;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}
/* fondo de la barra en su propia capa: al flotar se encoge esta capa,
   el nav mantiene su altura y el contenido de la página no salta */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(18,23,94,0), 0 10px 30px rgba(18,23,94,0);
}
.nav-logo { margin-left: 14px; justify-self: start; }
.nav-logo img { height: 54px; width: auto; display: block; transform-origin: left center; }

/* navbar flotante al scrollear (solo desktop) */
@media (min-width: 901px) {
  nav {
    --nav-gap: max(24px, calc((100% - 1240px) / 2));
    transition: padding var(--nav-dur) var(--nav-ease);
  }
  nav::before {
    transition:
      inset var(--nav-dur) var(--nav-ease),
      border-radius var(--nav-dur) var(--nav-ease),
      background-color var(--nav-dur) var(--nav-ease),
      box-shadow var(--nav-dur) var(--nav-ease);
  }
  .nav-logo { transition: margin var(--nav-dur) var(--nav-ease); }
  .nav-logo img { transition: transform var(--nav-dur) var(--nav-ease); }

  nav.is-floating {
    padding: 12px calc(var(--nav-gap) + 14px) 0;
    pointer-events: none;
  }
  nav.is-floating > * { pointer-events: auto; }
  nav.is-floating::before {
    inset: 12px var(--nav-gap) 0;
    border-radius: 20px;
    background: rgba(255,255,255,0.86);
    box-shadow: 0 0 0 1px rgba(18,23,94,.08), 0 10px 30px rgba(18,23,94,.10);
  }
  nav.is-floating .nav-logo { margin-left: 4px; }
  nav.is-floating .nav-logo img { transform: scale(.8); }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  nav, nav::before, .nav-logo, .nav-logo img { transition: none; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  justify-self: center;
}
.nav-links a, .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  color: var(--mid);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .2s;
}
.nav-links a:hover, .nav-dropdown-trigger:hover { color: var(--brand); }
.nav-chevron { width: 14px; height: 14px; transition: transform .18s; }
.nav-dropdown { position: relative; }
.nav-dropdown.is-open .nav-dropdown-trigger { color: var(--brand); }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(30,30,46,.16);
  padding: 8px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.nav-dropdown-menu a:hover { background: #F5F6FF; color: var(--brand); }
.nav-actions { justify-self: end; display: flex; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-primary { background: var(--cyan); color: var(--white); }
.nav-cta-mobile { display: none; }
.btn-outline { background: transparent; border: 2px solid var(--cyan); color: var(--cyan); }
.btn-brand-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.btn-brand-outline:hover { box-shadow: inset 0 0 0 2px var(--brand), 0 8px 24px rgba(0,0,0,.12); }
.btn-acid { background: var(--acid); color: var(--ink); }
.btn-acid:hover { box-shadow: 0 8px 24px rgba(194,245,82,.55); }
.btn-large { font-size: 15px; padding: 13px 24px; min-height: 54px; }
.btn-white { background: var(--white); color: var(--dark); }
.nav-btn { font-size: 14px; padding: 10px 22px; }

/* ── FOOTER ── */
footer { background: var(--white); }
.footer-bottom-wrap { background: #DBDBFB; margin: 0 16px; }
.footer-blob {
  position: relative;
  background-image: url('/calendi/assets/footer_bg.webp');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding: 99px 4px 7px 60px;
  padding-left: 3%;
  padding-top: 0;
}
.footer-blob-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7% 50px 4%;
  padding-bottom: 0;
  padding-left: 3%;
  margin-bottom: 0;
}
.footer-brand-col { flex: 0 0 250px; margin-top: 75px; }
.footer-logo { height: 68px; width: auto; display: block; margin-bottom: 20px; }
.footer-note {
  position: relative;
  display: inline-block;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .3px;
  transform: rotate(-4deg);
}
.footer-note::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 2.2px;
  background: var(--brand);
  opacity: .55;
  border-radius: 2px;
  top: 4px;
  left: -24px;
  transform: rotate(-38deg);
}
.footer-note-heart { width: 14px; height: 14px; margin-left: 2px; vertical-align: middle; }
.footer-links-col { flex: 0 0 130px; margin-top: 75px; margin-bottom: -30px; }
.footer-links-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; font-weight: 600; color: var(--mid); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--brand); }
.footer-social-col {
  flex: 0 0 140px;
  padding-left: 32px;
  border-left: 1.5px solid rgba(79,67,253,.14);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 75px;
}
.footer-social-note {
  position: relative;
  display: inline-block;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .3px;
  transform: rotate(-3deg);
  margin-bottom: 14px;
}
.footer-social-icons { display: flex; gap: 10px; }
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .15s;
}
.footer-social-icon:hover { background: var(--ink); transform: translateY(-2px); }
.footer-social-icon svg { width: 18px; height: 18px; }
.footer-mascot-col { flex: 1; position: relative; display: flex; justify-content: flex-end; align-self: flex-end; }
.footer-mascot-img { width: 100%; max-width: 400px; height: auto; display: block; }
.footer-thanks-note {
  position: absolute;
  top: -6px;
  right: 8px;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .3px;
  transform: rotate(5deg);
  text-align: right;
}
.footer-thanks-heart { width: 14px; height: 14px; margin-left: 2px; vertical-align: middle; }
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 50px 32px;
}
.footer-copy { font-size: 12.5px; font-weight: 600; color: var(--mid); }
.footer-legal-links { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--mid); }
.footer-legal-links a { color: var(--mid); text-decoration: none; transition: color .2s; }
.footer-legal-links a:hover { color: var(--brand); }

/* ── XLG ── */
@media (min-width: 1600px) {
  .footer-blob-content { gap: 50px; }
}

/* ── FOOTER MID BREAKPOINTS (desktop only, above the 900px mobile switch) ── */
@media (max-width: 1390px) and (min-width: 901px) {
  .footer-logo { height: 54px; }
  .footer-brand-col { flex: 0 0 200px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .footer-social-col { display: none; }
}

/* ── RESPONSIVE TABLET (nav + footer) ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; height: 68px; grid-template-columns: auto 1fr; }
  .nav-logo { margin-left: 0; }
  .nav-logo img { height: 42px; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline-flex; }
  .nav-links { display: none; }
  .btn { font-size: 13px; padding: 9px 18px; }
  .btn-large { font-size: 15px; padding: 13px 26px; }

  /* Footer */
  .footer-blob { background: #F5F6FF; padding: 0; }
  .footer-bottom-wrap { background: #F5F6FF; margin: 0; }
  .footer-blob-content {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 32px;
    max-width: none;
    padding: 40px 20px;
  }
  .footer-brand-col { flex: 1 1 100%; margin-top: 0; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-links-col { flex: 1 1 45%; margin-top: 0; margin-bottom: 0; }
  .footer-social-col {
    flex: 1 1 100%;
    width: 100%;
    border-left: none;
    border-top: 1.5px solid rgba(79,67,253,.14);
    padding-left: 0;
    padding-top: 24px;
    margin-top: 0;
    align-items: center;
  }
  .footer-mascot-col { flex: 1 1 100%; align-self: center; flex-direction: column; align-items: center; justify-content: center; }
  .footer-mascot-img { max-width: 200px; }
  .footer-thanks-note { position: static; text-align: center; margin-bottom: 12px; }
  .footer-bottom-bar { max-width: none; padding: 20px 20px 28px; flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════
   BLOG
   ══════════════════════════════════════════════ */
.blog-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 28px 96px; }

.crumbs { max-width: 760px; margin: 0 auto 28px; font-size: 14px; font-weight: 700; color: var(--mid); }
.crumbs a { color: var(--mid); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; opacity: .5; }

.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 100px;
}

/* ── índice del blog ── */
.blog-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.blog-head h1 {
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--ink);
  margin: 14px 0 12px;
}
.blog-head p { font-size: 17px; font-weight: 600; color: var(--mid); line-height: 1.6; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); justify-content: center; gap: 28px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--border), 0 18px 40px rgba(18,23,94,.12); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { font-size: 20px; font-weight: 900; line-height: 1.25; color: var(--ink); letter-spacing: -.3px; }
.post-card p { font-size: 16px; font-weight: 600; color: var(--mid); line-height: 1.55; }
.post-meta { font-size: 13px; font-weight: 700; color: var(--mid); opacity: .8; }

/* ── artículo ── */
.article { max-width: 760px; margin: 0 auto; }
.article-head h1 {
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -1.4px;
  line-height: 1.08;
  color: var(--ink);
  margin: 16px 0 18px;
}
.article-lead { font-size: 19px; font-weight: 600; color: var(--mid); line-height: 1.6; }
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mid);
}
.article-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--brand); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; letter-spacing: .5px;
}
.article-byline img.article-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); padding: 0; }
.article-byline img { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); object-fit: contain; padding: 4px; }
.article-byline strong { color: var(--ink); display: block; }
.article-cover { width: 100%; border-radius: 24px; display: block; margin-bottom: 40px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.article-body { font-size: 18px; line-height: 1.75; color: #2B2B40; font-weight: 500; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 56px;
  scroll-margin-top: 110px;
}
.article-body h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--ink);
  margin-top: 32px;
  letter-spacing: -.3px;
}
.article-body strong { color: var(--ink); font-weight: 800; }
.article-body a { color: var(--brand); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body li::marker { color: var(--brand); }

.toc {
  background: var(--brand-soft);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 8px;
}
.toc-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.toc ol { padding-left: 20px; font-size: 16.5px; }
.toc li + li { margin-top: 4px; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--brand); }

/* ficha de cada app */
.app-card {
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--border);
  padding: 26px 28px;
  margin-top: 24px;
}
.app-card h3 { margin-top: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-rank {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--acid);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 100px;
}
.app-card.is-winner {
  box-shadow: 0 0 0 2px var(--brand), 0 18px 44px rgba(79,67,253,.14);
  background: linear-gradient(180deg, var(--brand-soft), var(--white) 220px);
}
.app-card.is-winner .app-rank { background: var(--brand); }
.app-card > * + * { margin-top: 14px; }
.app-price { font-size: 16.5px; font-weight: 700; color: var(--mid); line-height: 1.6; }
.app-price strong { color: var(--ink); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pros-cons > div { background: var(--light); border-radius: 16px; padding: 18px 20px; font-size: 16px; line-height: 1.55; }
.pros-cons h4 { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.pros-cons .pros h4 { color: #3E8A1E; }
.pros-cons .cons h4 { color: #B4462F; }
.pros-cons ul { padding-left: 18px; }
.pros-cons li + li { margin-top: 4px; }

/* tabla comparativa */
.table-scroll {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--border);
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
  /* la tabla sale del ancho de lectura (760px) para respirar en desktop */
  --table-w: min(1240px, calc(100vw - 56px));
  width: var(--table-w);
  margin-left: calc((100% - var(--table-w)) / 2);
}
.compare {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.compare tbody th { font-weight: 900; color: var(--ink); white-space: nowrap; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare tr.is-winner th, .compare tr.is-winner td { background: var(--brand-soft); }
.compare tr.is-winner th { color: var(--brand); }
.compare .yes { color: #3E8A1E; font-weight: 800; }
.compare .no { color: #B4462F; font-weight: 800; }
.compare .na { color: var(--mid); opacity: .75; }
.table-note { font-size: 15px; color: var(--mid); line-height: 1.6; margin-top: 12px; }

.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  font-size: 16.5px;
}

/* CTA dentro del artículo */
.article-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #ECEBFF, #F7F6FF);
  box-shadow: 0 0 0 2px var(--brand);
  color: var(--ink);
  border-radius: 26px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.article-cta img { width: 200px; height: auto; flex: none; }
.article-cta h2 { color: var(--ink); margin: 0 0 8px; font-size: 28px; }
.article-cta p { color: var(--mid); font-size: 17px; line-height: 1.6; margin-bottom: 18px; }
.article-body .article-cta a.btn { color: var(--ink); }

/* FAQ */
.faq details {
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--border);
  padding: 18px 22px;
}
.faq details + details { margin-top: 12px; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; font-size: 17px; color: #3A3A55; }

.article-disclaimer { font-size: 13.5px; color: var(--mid); line-height: 1.6; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .blog-wrap { padding: 28px 20px 64px; }
  .article-body { font-size: 16.5px; }
  .article-lead { font-size: 17px; }
  .app-card { padding: 22px 20px; }
  .pros-cons { grid-template-columns: 1fr; }
  .table-scroll { --table-w: calc(100vw - 40px); }
  .article-cta { flex-direction: column; text-align: center; padding: 30px 24px; }
  .article-cta img { width: 170px; }
}

/* ── WHATSAPP FLOAT (igual que calendi/index.html) ── */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45);
  z-index: 900;
  animation: whatsapp-float-pulse 2.4s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 16px 34px rgba(37,211,102,.55); animation-play-state: paused; }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes whatsapp-float-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }
@media (max-width: 900px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}
