:root {
  --serena-green: #2f665d;
  --serena-green-deep: #243f48;
  --serena-blue: #58b7db;
  --serena-lilac: #9b77c6;
  --serena-peach: #ebb188;
  --serena-warm: #fbfaf7;
  --serena-mist: #eaf3f0;
  --serena-text: #496b69;
}

body.serena-seo-post,
body.page-id-39922,
body.blog {
  background: var(--serena-warm);
  color: var(--serena-text);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

body.page-id-39922 h1,
body.page-id-39922 h2,
body.page-id-39922 h3,
body.page-id-39922 .elementor-post__title,
body.blog h1,
body.blog h2,
body.blog h3,
body.blog .elementor-post__title,
.serena-seo-shell h1,
.serena-seo-shell h2,
.serena-seo-shell h3 {
  color: var(--serena-green-deep) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: -.025em;
}

body.page-id-39922 .elementor-post__title a,
body.blog .elementor-post__title a {
  color: var(--serena-green-deep) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body.page-id-39922 .elementor-post__excerpt,
body.page-id-39922 .elementor-post__read-more,
body.blog .elementor-post__excerpt,
body.blog .elementor-post__read-more {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif !important;
}

body.page-id-39922 .elementor-post__read-more,
body.blog .elementor-post__read-more {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--serena-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

/* Colección de artículos: proporción, altura y movimiento coherentes. */
body.page-id-39922 .elementor-widget-archive-posts .elementor-posts-container,
body.blog .elementor-widget-archive-posts .elementor-posts-container {
  align-items: stretch;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post,
body.blog .elementor-widget-archive-posts .elementor-post {
  min-width: 0;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__card,
body.blog .elementor-widget-archive-posts .elementor-post__card {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(47, 102, 93, .14);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__thumbnail__link,
body.blog .elementor-widget-archive-posts .elementor-post__thumbnail__link {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__thumbnail,
body.blog .elementor-widget-archive-posts .elementor-post__thumbnail {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__thumbnail img,
body.blog .elementor-widget-archive-posts .elementor-post__thumbnail img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  transition: none !important;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__card:hover .elementor-post__thumbnail img,
body.blog .elementor-widget-archive-posts .elementor-post__card:hover .elementor-post__thumbnail img {
  transform: none !important;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__thumbnail__link::after,
body.blog .elementor-widget-archive-posts .elementor-post__thumbnail__link::after {
  display: none !important;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__text,
body.blog .elementor-widget-archive-posts .elementor-post__text {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.page-id-39922 .elementor-widget-archive-posts .elementor-post__read-more,
body.blog .elementor-widget-archive-posts .elementor-post__read-more {
  width: max-content;
  margin-top: auto;
}

.serena-blog-carousel-nav {
  display: none;
}

.serena-seo-shell {
  overflow: hidden;
  background: var(--serena-warm);
  padding: 0 0 84px;
}

.serena-seo-container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.serena-seo-container--narrow { width: min(100% - 40px, 920px); }
.serena-seo-container--wide { width: min(100% - 40px, 1080px); }
.serena-seo-container--article { width: min(100% - 40px, 780px); }

.serena-seo-hero {
  padding: clamp(54px, 7vw, 96px) 0 46px;
  background: linear-gradient(180deg, var(--serena-mist), rgba(234,243,240,.35));
  text-align: center;
}

.serena-seo-back {
  display: block;
  width: max-content;
  margin: 0 auto 22px;
  color: var(--serena-green) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.serena-seo-chip,
.serena-seo-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(88,183,219,.16);
  color: var(--serena-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.serena-seo-hero h1 {
  max-width: 900px;
  margin: 20px auto 18px;
  font-size: clamp(2.45rem, 5.2vw, 4.75rem);
  font-weight: 600;
  line-height: .99;
  text-wrap: balance;
}

.serena-seo-summary {
  max-width: 740px;
  margin: 0 auto;
  color: var(--serena-text);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.serena-seo-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  color: #617a78;
  font-size: 13px;
}

.serena-seo-featured {
  margin: 42px 0 54px;
  overflow: hidden;
  aspect-ratio: 16 / 8.7;
  border-radius: 22px;
  background: var(--serena-mist);
}

.serena-seo-featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serena-seo-copy {
  color: var(--serena-text);
  font-size: clamp(1.04rem, 1.2vw, 1.16rem);
  line-height: 1.82;
}

.serena-seo-copy > p:first-child {
  color: var(--serena-green-deep);
  font-size: clamp(1.17rem, 1.7vw, 1.34rem);
  font-weight: 500;
  line-height: 1.65;
}

.serena-seo-copy h2 {
  margin: 58px 0 18px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
}

.serena-seo-copy h3 {
  margin: 34px 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.16;
}

.serena-seo-copy p { margin: 0 0 22px; }
.serena-seo-copy ul { margin: 18px 0 28px; padding-left: 1.25em; }
.serena-seo-copy li { margin-bottom: 10px; padding-left: 5px; }
.serena-seo-copy strong { color: var(--serena-green-deep); }
.serena-seo-copy a { color: var(--serena-green); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.serena-seo-table-wrap {
  width: 100%;
  margin: 28px 0 34px;
  overflow-x: auto;
  border: 1px solid #d7e3df;
  border-radius: 18px;
  background: #fff;
}

.serena-seo-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--serena-text);
  font-size: .94rem;
  line-height: 1.55;
}

.serena-seo-table th,
.serena-seo-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #e2ebe8;
  text-align: left;
  vertical-align: top;
}

.serena-seo-table th {
  background: var(--serena-mist);
  color: var(--serena-green-deep);
  font-weight: 800;
}

.serena-seo-table tbody tr:last-child td { border-bottom: 0; }

.serena-seo-alert {
  margin: 38px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--serena-blue);
  border-radius: 0 18px 18px 0;
  background: #edf7fa;
  color: var(--serena-green-deep);
  font-size: .98em;
  font-weight: 600;
}

.serena-seo-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  margin-top: 68px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 22px;
  background: var(--serena-green-deep);
  color: #fff;
}

.serena-seo-cta h2 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.06;
}

.serena-seo-cta p { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.serena-seo-cta__eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.serena-seo-cta__actions { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

.serena-seo-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid var(--serena-peach);
  border-radius: 999px;
  background: var(--serena-peach);
  color: var(--serena-green-deep) !important;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  transition: transform .25s ease, background-color .25s ease;
}

.serena-seo-button:hover,
.serena-seo-button:focus-visible { transform: translateY(-2px); background: #f4c8aa; }
.serena-seo-button--light { border-color: rgba(255,255,255,.32); background: transparent; color: #fff !important; }

.serena-seo-more {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #d7e3df;
}

.serena-seo-more a { color: var(--serena-green) !important; font-weight: 800; text-decoration: none; }

@media (max-width: 760px) {
  body.page-id-39922 .elementor-widget-archive-posts .elementor-posts-container,
  body.blog .elementor-widget-archive-posts .elementor-posts-container {
    display: flex !important;
    overflow-x: auto;
    grid-template-columns: none !important;
    gap: 16px !important;
    margin-inline: -16px;
    padding: 4px 16px 16px;
    scroll-behavior: smooth;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.page-id-39922 .elementor-widget-archive-posts .elementor-posts-container::-webkit-scrollbar,
  body.blog .elementor-widget-archive-posts .elementor-posts-container::-webkit-scrollbar {
    display: none;
  }

  body.page-id-39922 .elementor-widget-archive-posts .elementor-post,
  body.blog .elementor-widget-archive-posts .elementor-post {
    flex: 0 0 calc(100vw - 56px) !important;
    width: calc(100vw - 56px) !important;
    max-width: 420px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  body.page-id-39922 .elementor-widget-archive-posts .elementor-post__thumbnail__link,
  body.blog .elementor-widget-archive-posts .elementor-post__thumbnail__link {
    aspect-ratio: 4 / 3;
  }

  .serena-blog-carousel-nav {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    gap: 12px;
    align-items: center;
    width: min(100%, 420px);
    margin: 10px auto 24px;
  }

  .serena-blog-carousel-arrow {
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--serena-green);
    color: #fff;
    font: 700 25px/1 "DM Sans", sans-serif;
    cursor: pointer;
  }

  .serena-blog-carousel-arrow:focus-visible {
    outline: 3px solid rgba(88, 183, 219, .48);
    outline-offset: 3px;
  }

  .serena-blog-carousel-dots {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }

  .serena-blog-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfddd8;
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
  }

  .serena-blog-carousel-dot.is-active {
    width: 22px;
    background: var(--serena-green);
  }

  .serena-seo-shell { padding-bottom: 58px; }
  .serena-seo-container,
  .serena-seo-container--narrow,
  .serena-seo-container--wide,
  .serena-seo-container--article { width: min(100% - 32px, 780px); }
  .serena-seo-hero { padding: 38px 0 34px; text-align: left; }
  .serena-seo-back { margin-inline: 0; }
  .serena-seo-hero h1 { margin: 16px 0; font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .serena-seo-summary { margin: 0; }
  .serena-seo-byline { justify-content: flex-start; font-size: 12px; }
  .serena-seo-featured { margin: 26px 0 36px; aspect-ratio: 4 / 3; border-radius: 18px; }
  .serena-seo-copy { font-size: 1.03rem; line-height: 1.75; }
  .serena-seo-copy h2 { margin-top: 44px; }
  .serena-seo-cta { grid-template-columns: 1fr; align-items: start; margin-top: 54px; padding: 28px 22px; }
  .serena-seo-cta__actions { width: 100%; min-width: 0; }
  .serena-seo-more { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .serena-seo-button { transition: none; }
  body.page-id-39922 .elementor-widget-archive-posts .elementor-posts-container,
  body.blog .elementor-widget-archive-posts .elementor-posts-container { scroll-behavior: auto; }
  body.page-id-39922 .elementor-widget-archive-posts .elementor-post__thumbnail img,
  body.blog .elementor-widget-archive-posts .elementor-post__thumbnail img { transition: none; }
}
