:root {
  --amunt-pink: #cf035c;
  --amunt-sage: #678e82;
  --amunt-ink: #0a0000;
  --amunt-soft: #f6f4f0;
  --amunt-white: #fff;
  --amunt-text: #666;
  --amunt-border: #e5e5e5;
  --amunt-content: 1024px;
  --amunt-wide: 1180px;
  --amunt-space-xs: 8px;
  --amunt-space-sm: 16px;
  --amunt-space-md: 28px;
  --amunt-space-lg: 48px;
  --amunt-space-xl: 80px;

  /* Correspondencia con la paleta global de Astra. */
  --ast-global-color-0: var(--amunt-pink);
  --ast-global-color-1: var(--amunt-sage);
  --ast-global-color-2: var(--amunt-ink);
  --ast-global-color-3: var(--amunt-text);
  --ast-global-color-4: var(--amunt-soft);
  --ast-global-color-5: var(--amunt-white);
  --ast-global-color-6: var(--amunt-border);
}

body {
  color: var(--amunt-ink);
  font-family: Jost, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  line-height: 1.05;
}

a {
  color: var(--amunt-pink);
}

a:hover,
a:focus-visible {
  color: var(--amunt-sage);
}

button,
input[type="submit"],
input[type="button"],
.ast-button {
  border-radius: 0;
  background: var(--amunt-pink);
  font-family: Jost, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

input:not([type="submit"]):not([type="button"]),
textarea,
select {
  border: 1px solid var(--amunt-border);
  border-radius: 0;
  color: var(--amunt-ink);
  background: var(--amunt-white);
  font-family: Jost, Helvetica, Arial, sans-serif;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--amunt-pink) 35%, transparent);
  outline-offset: 3px;
}

/* Astra añade un título de página que no existía en las plantillas originales. */
body.page article > .entry-header {
  display: none;
}

body.page .site-content > .ast-container {
  max-width: none;
  padding: 0;
}

body.page .entry-content {
  margin: 0;
}

.site-header .ast-primary-header-bar {
  min-height: 80px;
}

.site-header .custom-logo-link img {
  width: 150px;
  max-width: 150px;
}

.main-header-menu .menu-link {
  color: var(--amunt-sage) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  padding-inline: 15px;
}

.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus {
  color: var(--amunt-pink) !important;
}

/* Alternancia cromática utilizada por la navegación del sitio original. */
.main-header-menu > .menu-item:nth-child(1) > .menu-link,
.main-header-menu > .menu-item:nth-child(3) > .menu-link {
  color: var(--amunt-sage) !important;
}

.amatic-title .uagb-heading-text,
.amatic-subtitle .uagb-heading-text,
.single-post h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.amunt-footer-grid h3 {
  font-family: "Amatic SC", cursive;
  font-weight: 700;
}

.amunt-claim {
  font-size: clamp(46px, 5.1vw, 72px);
  line-height: 1.05;
}

.amatic-title .uagb-heading-text {
  font-size: clamp(64px, 7.4vw, 100px);
}

body .wp-block-button__link,
body .amunt-button {
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  padding: 13px 25px !important;
}

.amunt-about-copy p,
.single-post .entry-content {
  font-size: 16px;
}

.logo-grid a {
  border: 0;
  padding: 16px;
}

.amunt-news li,
.blog .post {
  border-radius: 0;
}

.amunt-news a {
  font-family: "Amatic SC", cursive;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
}

/* Blog: cabecera y retícula equivalentes a la plantilla Divi original. */
.amunt-blog-hero {
  display: flex;
  min-height: 640px;
  padding: 50px 24px 90px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: #fff;
  background: var(--amunt-pink);
  text-align: center;
}

.amunt-blog-hero img {
  width: min(470px, 72vw);
  height: auto;
}

.amunt-blog-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Amatic SC", cursive;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
}

body.blog .site-content > .ast-container {
  display: block;
  max-width: none;
  padding: 0;
}

body.blog .site-main {
  width: min(100% - 48px, 1080px);
  max-width: 1080px;
  margin: 70px auto 90px;
  padding: 0 24px;
}

body.blog .ast-article-post .ast-article-inner {
  overflow: hidden;
  height: 100%;
  border: 0;
  border-radius: 30px !important;
  background: var(--amunt-pink);
}

body.blog .ast-article-post {
  margin-bottom: 28px;
}

body.blog .post-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

body.blog .ast-blog-featured-section,
body.blog .post-thumb,
body.blog .ast-blog-featured-section .post-thumb-img-content {
  margin: 0;
}

body.blog .ast-blog-featured-section img,
body.blog .post-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 0;
}

body.blog .post-content > .ast-blog-single-element:not(.ast-blog-featured-section) {
  padding-inline: 28px;
}

body.blog article .entry-title,
body.blog article .entry-title a {
  margin: 22px 0 12px;
  color: #fff;
  font-family: Jost, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

body.blog article .entry-header {
  margin: 0 0 18px;
  padding: 0 28px;
}

body.blog article .entry-meta,
body.blog article .entry-meta a {
  color: #fff;
  font-family: Jost, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

body.blog article .entry-meta .posted-by a,
body.blog article .entry-meta .posted-on {
  color: #fff;
}

body.blog .ast-excerpt-container {
  display: none !important;
}

body.blog .ast-read-more-container {
  margin-top: auto;
  padding: 0 28px 28px;
}

body.blog .ast-read-more-container a {
  color: #fff !important;
  font-family: Jost, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: lowercase;
}

body.blog .ast-read-more-container a:hover {
  text-decoration: underline;
}

body.blog .ast-pagination {
  width: 100%;
  margin-top: 20px;
}

/* Entrada individual: el contenido importado conserva la composición original. */
body.single-post .site-content > .ast-container {
  display: block;
  max-width: none;
  padding: 0;
}

body.single-post .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.single-post article,
body.single-post .ast-article-single {
  margin: 0 0 60px;
  padding: 0 0 25px;
  color: #666;
  background: #fff;
}

body.single-post article > .entry-header {
  display: none;
}

body.single-post .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #666;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.7;
}

body.single-post .entry-content > *:not(.alignfull) {
  width: min(100% - 48px, 1024px);
  margin-right: auto;
  margin-left: auto;
}

body.single-post .entry-content h1 {
  margin-top: 70px;
  color: var(--amunt-pink);
  font-family: "Amatic SC", cursive;
  font-size: clamp(64px, 9.4vw, 120px);
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.site-above-footer-wrap[data-section="section-above-footer-builder"] {
  background: var(--amunt-pink);
}

/* Colaboradores: relación tipográfica fiel a la página de origen. */
.page-id-1765 .amunt-partners-original {
  width: min(100% - 48px, 1024px);
  margin: 0 auto;
  padding: 48px 0 70px;
}

.page-id-1765 .amunt-partners-original ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-id-1765 .amunt-partners-original li {
  margin: 0 0 18px;
  color: #666;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

/* Documentos largos: una sola cabecera y la misma caja de lectura del origen. */
.page-id-542 .legal-page .legal-page .amatic-title,
.page-id-555 .legal-page .legal-page .amatic-title,
.page-id-558 .legal-page .legal-page .amatic-title,
.page-id-552 .legal-page .legal-page .amatic-title {
  display: none;
}

.page-id-542 .legal-page,
.page-id-555 .legal-page,
.page-id-558 .legal-page,
.page-id-552 .legal-page {
  max-width: none;
  padding: 70px 0 !important;
}

.page-id-542 .legal-page > .uagb-container-inner-blocks-wrap,
.page-id-555 .legal-page > .uagb-container-inner-blocks-wrap,
.page-id-558 .legal-page > .uagb-container-inner-blocks-wrap,
.page-id-552 .legal-page > .uagb-container-inner-blocks-wrap {
  width: min(100% - 48px, 1024px);
  max-width: 1024px;
}

.legal-page .amatic-title .uagb-heading-text {
  margin-bottom: 55px;
  color: var(--amunt-pink);
  font-size: clamp(58px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  text-align: left;
}

.legal-page p,
.legal-page li {
  color: #666;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.85;
}

.legal-page p strong,
.legal-page li strong,
.legal-page h3 {
  color: var(--amunt-ink);
  font-family: Jost, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

@media (max-width: 921px) {
  .site-header .custom-logo-link img {
    width: 125px;
    max-width: 125px;
  }
}

@media (max-width: 640px) {
  .amunt-claim {
    font-size: clamp(42px, 13vw, 58px);
  }

  .amatic-title .uagb-heading-text {
    font-size: clamp(58px, 18vw, 82px);
  }

  .amunt-blog-hero {
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
