/* ========================================
   AUTONOMO.ES - USER.CSS LIMPIO
   Joomla 5 / Cassiopeia
   ======================================== */

/* ========================================
   VARIABLES Y BASE RESPONSIVE
   ======================================== */

:root {
  --ae-brand: #1E3A8A;
  --ae-brand-dark: #172e6b;
  --ae-text: #1f2937;
  --ae-heading: #111827;
  --ae-muted: #6b7280;
  --ae-border: #e5e7eb;
  --ae-soft: #f8fafc;

  --ae-serif: Georgia, "Times New Roman", Times, serif;
  --ae-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

body {
  font-family: var(--ae-sans);
  color: var(--ae-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========================================
   ENLACES Y BOTONES GLOBALES
   ======================================== */

a {
  color: var(--ae-brand);
  text-decoration: none;
}

a:hover {
  color: var(--ae-brand-dark);
  text-decoration: underline;
}

.btn-primary {
  background-color: var(--ae-brand);
  border-color: var(--ae-brand);
}

.btn-primary:hover {
  background-color: var(--ae-brand-dark);
  border-color: var(--ae-brand-dark);
}

button,
input,
textarea,
select,
.btn,
.breadcrumb,
.pagination {
  font-family: var(--ae-sans);
}

/* ========================================
   HEADER Y MARCA
   ======================================== */

.container-header {
  background: #fff;
  border-bottom: 1px solid var(--ae-border);
}

/* Marca */
.container-header > .grid-child:first-child {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0 6px;
}

.container-header .navbar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.container-header .brand-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.container-header .brand-logo img {
  display: none;
}

.container-header .brand-logo::after {
  content: "AUTONOMO";
  font-family: var(--ae-serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--ae-brand);
  text-transform: uppercase;
}

/* Navegación base */
.container-nav {
  border-top: 1px solid var(--ae-border);
}

.container-nav,
.container-nav .mod-menu > li > a {
  font-family: var(--ae-sans);
}

.container-nav .navbar {
  padding: 0;
}

.container-nav .mod-menu > li > a {
  color: var(--ae-text);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.container-nav .mod-menu > li > a:hover,
.container-nav .mod-menu > li.active > a,
.container-nav .mod-menu > li.current > a,
.container-nav .mod-menu > li.current.active > a {
  color: var(--ae-brand);
  text-decoration: none;
}

.container-nav .mod-menu > li.current > a,
.container-nav .mod-menu > li.active > a,
.container-nav .mod-menu > li.current.active > a {
  background-color: rgba(30, 58, 138, 0.12);
  border-radius: 8px;
  font-weight: 600;
}

.container-nav .mod-menu > li > a:focus,
.container-nav .mod-menu > li > a:active,
.container-nav .mod-menu > li > a:focus-visible {
  outline: none;
  box-shadow: none;
}

.container-nav .navbar-toggler {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: var(--ae-brand);
  padding: 8px 10px;
  line-height: 1;
}

.container-nav .navbar-toggler:hover,
.container-nav .navbar-toggler:focus {
  border-color: var(--ae-brand);
  box-shadow: none;
}

.container-nav .navbar-toggler .icon-menu {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  color: var(--ae-brand);
}

/* Header desktop */
@media (min-width: 992px) {
  .container-header > .grid-child.container-nav {
    min-height: 42px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  .container-header > .grid-child.container-nav .navbar {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container-header > .grid-child.container-nav .navbar-collapse {
    width: 100%;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .container-nav .mod-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .container-nav .mod-menu > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .container-nav .mod-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    line-height: 1.1;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .container-nav .mod-menu > li > a:hover {
    background-color: rgba(30, 58, 138, 0.06);
  }

  .container-nav .navbar-toggler {
    display: none;
  }
}

/* Header móvil: hamburguesa superpuesta sobre la franja del logo */
@media (max-width: 991.98px) {
  .container-header {
    position: relative;
  }

  .container-header > .grid-child:first-child {
    position: relative;
    z-index: 10;
    min-height: 70px;
    padding: 10px 56px 10px 16px;
  }

  .container-header .navbar-brand {
    position: relative;
    z-index: 10;
    width: 100%;
    justify-content: center;
  }

  .container-header .brand-logo {
    position: relative;
    z-index: 10;
  }

  .container-header .brand-logo::after {
    font-size: 28px;
    line-height: 1;
  }

  .container-header .container-nav {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 20;
    width: auto;
    height: 70px;
    margin: 0;
    padding: 0;
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .container-header .container-nav .navbar {
    width: auto;
    min-height: 70px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .container-header .container-nav .navbar-toggler {
    position: relative;
    z-index: 30;
    margin: 0;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .container-header .container-nav .navbar-toggler .icon-menu {
    font-size: 22px;
    line-height: 1;
  }

  .container-header .container-nav .navbar-toggler[aria-expanded="true"] {
    display: none;
  }

  .container-header .container-nav .navbar-collapse {
    position: absolute;
    top: 70px;
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 24px));
    background: #fff;
    z-index: 25;
  }

  .container-header .container-nav .navbar-collapse:not(.show) {
    display: none !important;
  }

  .container-header .container-nav .navbar-collapse.show {
    display: block !important;
    margin: 0;
    padding-top: 0;
  }

  .container-header .container-nav .mod-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ae-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .container-header .container-nav .mod-menu > li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container-header .container-nav .mod-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    padding: 0.7rem 1rem;
    margin: 0;
    line-height: 1.2;
    font-size: 0.98rem;
  }

  .container-header .container-nav .mod-menu > li.current > a,
  .container-header .container-nav .mod-menu > li.active > a,
  .container-header .container-nav .mod-menu > li.current.active > a {
    padding: 0.7rem 1rem;
  }
}

/* ========================================
   HEADER MÓVIL STICKY
   Mantiene visible logo + hamburguesa en móvil
   ======================================== */

/* ========================================
   HEADER MÓVIL STICKY - PRUEBA CON STICKY
   ======================================== */

@media (max-width: 991.98px) {
  body .container-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: #fff;
  }

  body .container-header .container-nav {
    z-index: 1040;
  }

  body .container-header .container-nav .navbar-collapse {
    z-index: 1050;
  }
}


/* ========================================
   ANCHO EDITORIAL RESPONSIVE
   ======================================== */

/* Artículos: lectura */
.view-article article.item-page,
.view-article .com-content-article {
  width: min(100%, 780px);
  max-width: calc(100vw - 32px);
  margin-left: auto;
  margin-right: auto;
}

/* Listados: portada, blog y categorías */
.view-featured main,
.view-category main,
.blog,
.blog-featured,
.com-content-category-blog {
  width: min(100%, 1120px);
  max-width: calc(100vw - 32px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .view-article article.item-page,
  .view-article .com-content-article,
  .view-featured main,
  .view-category main,
  .blog,
  .blog-featured,
  .com-content-category-blog {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.view-article .com-content-article img,
.view-article article.item-page img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TIPOGRAFÍA EDITORIAL
   ======================================== */

/* Color general de titulares */
h1,
h2,
h3,
.view-article h1,
.view-article h2,
.view-article h3,
.blog h1,
.blog-featured h1,
.com-content-category-blog h1 {
  color: var(--ae-heading);
}

/* Balanceo solo en titulares principales, no en títulos de listados */
.view-article h1,
.view-article h2,
.blog h1,
.blog-featured h1,
.com-content-category-blog h1 {
  text-wrap: balance;
}

/* H1 y H2 de artículo conectan visualmente con la marca */
.view-article h1,
.view-article h2,
.blog h1,
.blog-featured h1,
.com-content-category-blog h1 {
  font-family: var(--ae-serif);
  letter-spacing: -0.02em;
}

.view-article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
}

.view-article h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  font-weight: 700;
  margin-top: 2.6rem;
  margin-bottom: 0.85rem;
}

.view-article h3 {
  font-family: var(--ae-sans);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  line-height: 1.35;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.view-article .com-content-article p,
.view-article article.item-page p {
  font-size: 1.055rem;
  line-height: 1.78;
  margin-bottom: 1.15rem;
}

.view-article .com-content-article ul,
.view-article .com-content-article ol,
.view-article article.item-page ul,
.view-article article.item-page ol {
  font-size: 1.055rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.view-article .com-content-article li,
.view-article article.item-page li {
  margin-bottom: 0.45rem;
}

.view-article .com-content-article a,
.view-article article.item-page a {
  color: var(--ae-brand);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.view-article .com-content-article a:hover,
.view-article article.item-page a:hover {
  color: var(--ae-brand-dark);
  text-decoration: underline;
}

.view-article .com-content-article > p:first-of-type,
.view-article article.item-page > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.72;
  color: #374151;
}

.view-article strong {
  color: var(--ae-heading);
  font-weight: 700;
}

.article-visual figcaption,
small,
.small,
.text-muted,
.com-content-article__info,
.article-info,
dl.article-info {
  font-family: var(--ae-sans);
  color: var(--ae-muted);
}

@media (max-width: 767.98px) {
  body {
    font-size: 16px;
    line-height: 1.62;
  }

  .view-article h1 {
    font-size: 2rem;
    line-height: 1.14;
    margin-bottom: 0.9rem;
  }

  .view-article h2 {
    font-size: 1.45rem;
    line-height: 1.26;
    margin-top: 2.2rem;
  }

  .view-article h3 {
    font-size: 1.18rem;
  }

  .view-article .com-content-article p,
  .view-article article.item-page p,
  .view-article .com-content-article ul,
  .view-article .com-content-article ol,
  .view-article article.item-page ul,
  .view-article article.item-page ol {
    font-size: 1rem;
    line-height: 1.72;
  }

  .view-article .com-content-article > p:first-of-type,
  .view-article article.item-page > p:first-of-type {
    font-size: 1.04rem;
    line-height: 1.68;
  }
}

/* ========================================
   HOME HERO - PRESENTACIÓN EDITORIAL
   ======================================== */

.ae-home-hero {
  width: min(100%, 960px);
  margin: 0 auto 2.6rem;
  padding: 2rem;
  border: 1px solid rgba(30, 58, 138, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.07), rgba(255, 255, 255, 0.96) 58%),
    #ffffff;
}

.ae-home-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--ae-sans);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ae-brand);
}

.ae-home-hero h1 {
  max-width: 820px;
  margin: 0 0 0.9rem;
  font-family: var(--ae-serif);
  color: var(--ae-heading);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ae-home-intro {
  max-width: 760px;
  margin: 0 0 1.45rem;
  color: #374151;
  font-size: 1.06rem;
  line-height: 1.7;
}

.ae-home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.ae-home-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(30, 58, 138, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ae-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.ae-home-pillar:hover {
  border-color: rgba(30, 58, 138, 0.35);
  background: rgba(30, 58, 138, 0.035);
  color: var(--ae-text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.ae-home-pillar-label {
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--ae-brand);
  font-family: var(--ae-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ae-home-pillar strong {
  display: block;
  color: var(--ae-heading);
  font-family: var(--ae-serif);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.ae-home-pillar span:last-child {
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .ae-home-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ae-home-hero {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1.35rem 1.1rem;
    border-radius: 18px;
  }

  .ae-home-hero h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .ae-home-intro {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
  }

  .ae-home-pillar {
    padding: 0.95rem;
    border-radius: 15px;
  }
}

/* h2 post bloque hero */
.ae-section-title {
  width: min(100%, 860px);
  margin: 0 auto 1.2rem;
  font-family: var(--ae-serif);
  color: var(--ae-heading);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
}


/* ========================================
   LISTADOS EDITORIALES: PORTADA Y CATEGORÍAS BLOG
   ======================================== */

.view-featured .blog-featured,
.view-category .blog,
.view-category .com-content-category-blog {
  padding-top: 0.25rem;
}

/* Cada pieza del listado: separación vertical */
.view-featured .blog-item,
.view-category .blog-item,
.view-featured .items-leading > div,
.view-category .items-leading > div,
.view-featured .items-row,
.view-category .items-row {
  padding-bottom: 0;
  margin-bottom: 1.45rem;
  border-bottom: 0;
}

/* Línea separadora alineada con el bloque textual */
.view-featured .blog-item .item-content,
.view-category .blog-item .item-content {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--ae-border);
}

/* Último artículo sin línea final */
.view-featured .blog-item:last-child .item-content,
.view-category .blog-item:last-child .item-content,
.view-featured .items-leading > div:last-child .item-content,
.view-category .items-leading > div:last-child .item-content,
.view-featured .items-row:last-child .item-content,
.view-category .items-row:last-child .item-content {
  border-bottom: 0;
}

/* Encabezado de página en categorías blog:
   cubre tanto H1 dentro de .page-header como H1 directo */
.view-category .com-content-category-blog.blog > .page-header,
.view-featured .blog-featured > .page-header {
  width: min(100%, 860px);
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0;
}

.view-category .com-content-category-blog.blog > h1,
.view-featured .blog-featured > h1 {
  width: min(100%, 860px);
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0;
  font-family: var(--ae-serif);
  color: var(--ae-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.view-category .com-content-category-blog.blog > .page-header h1,
.view-featured .blog-featured > .page-header h1 {
  margin: 0;
  font-family: var(--ae-serif);
  color: var(--ae-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Descripción de categoría, si se usa */
.view-category .com-content-category-blog.blog > .category-desc,
.view-featured .blog-featured > .category-desc {
  width: min(100%, 860px);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile */
@media (max-width: 767.98px) {
  .view-category .com-content-category-blog.blog > .page-header,
  .view-featured .blog-featured > .page-header,
  .view-category .com-content-category-blog.blog > h1,
  .view-featured .blog-featured > h1,
  .view-category .com-content-category-blog.blog > .category-desc,
  .view-featured .blog-featured > .category-desc {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .view-category .com-content-category-blog.blog > h1,
  .view-featured .blog-featured > h1,
  .view-category .com-content-category-blog.blog > .page-header h1,
  .view-featured .blog-featured > .page-header h1 {
    font-size: 2rem;
    line-height: 1.14;
  }
}

/* Bloque textual centrado dentro del ancho de listado */
.view-category .blog-item .item-content,
.view-featured .blog-item .item-content {
  width: min(100%, 860px);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.view-category .blog-item .page-header,
.view-featured .blog-item .page-header,
.view-featured .items-leading .page-header,
.view-category .items-leading .page-header,
.view-featured .items-row .page-header,
.view-category .items-row .page-header {
  width: 100%;
  max-width: none;
  margin: 0 0 0.45rem;
  padding: 0;
}

/* Títulos de artículos en listados: categoría, portada y featured */
.view-category .blog-item .page-header h2,
.view-category .blog-item .page-header h2 a,
.view-category .com-content-category-blog__item .page-header h2,
.view-category .com-content-category-blog__item .page-header h2 a,
.view-category .items-leading .page-header h2,
.view-category .items-leading .page-header h2 a,
.view-category .items-row .page-header h2,
.view-category .items-row .page-header h2 a,
.view-featured .blog-item .page-header h2,
.view-featured .blog-item .page-header h2 a,
.view-featured .items-leading .page-header h2,
.view-featured .items-leading .page-header h2 a,
.view-featured .items-row .page-header h2,
.view-featured .items-row .page-header h2 a,
.view-featured .blog-featured .page-header h2,
.view-featured .blog-featured .page-header h2 a,
.view-featured .blog-featured .item-title,
.view-featured .blog-featured .item-title a,
.view-featured .blog-featured .items-leading h2,
.view-featured .blog-featured .items-leading h2 a,
.view-featured .blog-featured .items-row h2,
.view-featured .blog-featured .items-row h2 a,
.view-featured main .page-header h2,
.view-featured main .page-header h2 a {
  font-family: var(--ae-serif);
  color: var(--ae-heading);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.18;
  text-decoration: none;
  text-wrap: wrap;
  text-wrap-style: auto;
}

.view-category .blog-item .page-header h2,
.view-category .com-content-category-blog__item .page-header h2,
.view-category .items-leading .page-header h2,
.view-category .items-row .page-header h2,
.view-featured .blog-item .page-header h2,
.view-featured .items-leading .page-header h2,
.view-featured .items-row .page-header h2,
.view-featured .blog-featured .page-header h2,
.view-featured .blog-featured .item-title,
.view-featured .blog-featured .items-leading h2,
.view-featured .blog-featured .items-row h2,
.view-featured main .page-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.75rem;
}

.view-category .blog-item .page-header h2 a:hover,
.view-category .com-content-category-blog__item .page-header h2 a:hover,
.view-category .items-leading .page-header h2 a:hover,
.view-category .items-row .page-header h2 a:hover,
.view-featured .blog-item .page-header h2 a:hover,
.view-featured .items-leading .page-header h2 a:hover,
.view-featured .items-row .page-header h2 a:hover,
.view-featured .blog-featured .page-header h2 a:hover,
.view-featured .blog-featured .item-title a:hover,
.view-featured .blog-featured .items-leading h2 a:hover,
.view-featured .blog-featured .items-row h2 a:hover,
.view-featured main .page-header h2 a:hover {
  color: var(--ae-brand);
  text-decoration: none;
}

.view-featured .blog-item p,
.view-category .blog-item p,
.view-featured .items-leading p,
.view-category .items-leading p,
.view-featured .items-row p,
.view-category .items-row p {
  width: 100%;
  max-width: none;
  margin: 0 0 0.75rem;
  color: #374151;
  line-height: 1.68;
}

.view-category .blog-item .item-content > p:last-child,
.view-featured .blog-item .item-content > p:last-child {
  margin-bottom: 0;
}

.view-category .blog-item .item-content > ul,
.view-featured .blog-item .item-content > ul,
.view-category .blog-item .item-content > ol,
.view-featured .blog-item .item-content > ol {
  width: 100%;
  max-width: none;
  margin: 0.45rem 0 0.7rem;
  padding-left: 1.25rem;
}

.view-featured .readmore,
.view-category .readmore,
.view-featured .readmore a,
.view-category .readmore a {
  font-family: var(--ae-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ae-brand);
  text-decoration: none;
}

.view-featured .readmore a:hover,
.view-category .readmore a:hover {
  color: var(--ae-brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 767.98px) {
.view-featured .blog-item,
.view-category .blog-item,
.view-featured .items-leading > div,
.view-category .items-leading > div,
.view-featured .items-row,
.view-category .items-row {
  padding-bottom: 0;
  margin-bottom: 1.2rem;
}

.view-featured .blog-item .item-content,
.view-category .blog-item .item-content {
  padding-bottom: 1.15rem;
}

  .view-category .blog-item .item-content,
  .view-featured .blog-item .item-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .view-category .blog-item .page-header,
  .view-featured .blog-item .page-header {
    margin-bottom: 0.4rem;
  }

  .view-category .blog-item .page-header h2,
  .view-category .com-content-category-blog__item .page-header h2,
  .view-category .items-leading .page-header h2,
  .view-category .items-row .page-header h2,
  .view-featured .blog-item .page-header h2,
  .view-featured .items-leading .page-header h2,
  .view-featured .items-row .page-header h2,
  .view-featured .blog-featured .page-header h2,
  .view-featured .blog-featured .item-title,
  .view-featured .blog-featured .items-leading h2,
  .view-featured .blog-featured .items-row h2,
  .view-featured main .page-header h2 {
    font-size: 1.55rem;
    line-height: 1.18;
    margin-bottom: 0.65rem;
  }

  .view-featured .blog-item p,
  .view-category .blog-item p,
  .view-featured .items-leading p,
  .view-category .items-leading p,
  .view-featured .items-row p,
  .view-category .items-row p {
    margin-bottom: 0.65rem;
    line-height: 1.64;
  }
}

/* ========================================
   METADATO EDITORIAL EN ARTÍCULOS
   ======================================== */

.view-article dl.article-info {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin: 0.15rem 0 1.8rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--ae-border);
  border-radius: 999px;
  background: var(--ae-soft);
  font-family: var(--ae-sans);
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--ae-muted);
}

.view-article .article-info-term {
  display: none;
}

.view-article dl.article-info dd {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
}

.view-article dl.article-info dd + dd::before {
  content: "·";
  margin: 0 0.45rem 0 0.2rem;
  color: #9ca3af;
}

.view-article dl.article-info .icon-calendar,
.view-article dl.article-info [class^="icon-"],
.view-article dl.article-info [class*=" icon-"] {
  font-size: 0.85em;
  opacity: 0.55;
}

.view-article dl.article-info a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .view-article dl.article-info {
    font-size: 0.82rem;
    padding: 0.35rem 0.62rem;
    margin-bottom: 1.4rem;
  }
}

/* ========================================
   BLOQUES EDITORIALES EN ARTÍCULOS
   ======================================== */

.article-visual {
  margin: 28px 0;
}

.article-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.article-visual figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ae-muted);
  text-align: center;
}

.article-key-box {
  margin: 24px 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--ae-brand);
  background: var(--ae-soft);
  border-radius: 10px;
  font-family: var(--ae-sans);
}

.article-key-box p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ========================================
   TABLAS EDITORIALES EN ARTÍCULOS
   ======================================== */

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--ae-border);
  border-radius: 14px;
  background: #fff;
}

.article-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--ae-sans);
  font-size: 0.96rem;
  line-height: 1.55;
}

.article-table th,
.article-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

.article-table thead th {
  background: var(--ae-soft);
  color: var(--ae-brand);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  border-bottom: 1px solid var(--ae-border);
}

.article-table tbody tr + tr {
  border-top: 1px solid #edf0f3;
}

.article-table tbody td {
  color: #374151;
  font-size: 0.95rem;
}

.article-table tbody td:first-child {
  font-weight: 600;
  color: var(--ae-heading);
}

@media (max-width: 640px) {
  .article-table-wrap {
    margin: 20px 0;
    border-radius: 12px;
  }

  .article-table {
    min-width: 620px;
    font-size: 0.92rem;
  }

  .article-table th,
  .article-table td {
    padding: 12px 14px;
  }
}

/* ========================================
   CHECKLISTS EDITORIALES PREMIUM
   ======================================== */

.article-check-list {
  --article-accent: var(--ae-brand);
  --article-border: var(--ae-border);
  --article-soft-bg: var(--ae-soft);
  --article-check-bg: #ffffff;

  position: relative;
  margin: 1.8rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.045), rgba(255, 255, 255, 0) 42%),
    var(--article-check-bg);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: var(--ae-sans);
  overflow: hidden;
}

.article-check-list::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--article-accent);
  opacity: 0.9;
}

.article-check-list-title {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 0.2rem;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--ae-heading);
  line-height: 1.35;
}

.article-check-list-title::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--article-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: -0.08rem;
}

/* Caso con wrapper: <div class="article-check-list"><ul>...</ul></div> */
.article-check-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.article-check-list li {
  position: relative;
  margin: 0;
  padding: 0.8rem 0.9rem 0.8rem 2.65rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  color: var(--ae-text);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.025);
}

.article-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.1);
  color: var(--article-accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.article-check-list strong {
  color: var(--ae-heading);
}

/* Variante de 3 columnas con wrapper */
.article-check-list--three li {
  padding: 0.85rem 0.95rem 0.85rem 2.65rem;
}

@media (min-width: 768px) {
  .article-check-list--three ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Compatibilidad cuando article-check-list se aplica directamente al UL */
ul.article-check-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 1.8rem 0;
  padding: 1.1rem 1.15rem;
}

ul.article-check-list li {
  list-style: none;
}

ul.article-check-list li::marker {
  content: "";
}

/* Variante de 3 columnas aplicada directamente al UL */
@media (min-width: 768px) {
  ul.article-check-list--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Ajuste móvil */
@media (max-width: 575.98px) {
  .article-check-list,
  ul.article-check-list {
    padding: 1rem;
    border-radius: 16px;
  }

  .article-check-list li {
    padding: 0.75rem 0.8rem 0.75rem 2.45rem;
  }

  .article-check-list li::before {
    left: 0.75rem;
  }
}

/* Variante para errores frecuentes / advertencias */
.article-check-list--warning {
  --article-accent: #b45309;
  border-color: rgba(180, 83, 9, 0.18);
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.055), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.article-check-list--warning .article-check-list-title::before {
  content: "!";
  background: var(--article-accent);
}

.article-check-list--warning li::before {
  content: "!";
  background: rgba(180, 83, 9, 0.11);
  color: var(--article-accent);
}

/* ========================================
   PAGINACIÓN MÓVIL
   ======================================== */

@media (max-width: 767.98px) {
  nav.pagination,
  .com-content-category-blog__navigation,
  .com-content-category-blog .pagination {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .pagination,
  ul.pagination,
  nav.pagination ul {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
  }

  .pagination li,
  ul.pagination li,
  nav.pagination li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  .pagination a,
  .pagination span,
  ul.pagination a,
  ul.pagination span,
  nav.pagination a,
  nav.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 9px;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
  }
}

/* ========================================
   COOKIES - COOKIEHINT
   ======================================== */

#redim-cookiehint {
  background-color: #fff !important;
  border-top: 1px solid var(--ae-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px 20px !important;
  font-size: 14px;
}

#redim-cookiehint span.headline::before {
  content: none !important;
  display: none !important;
}

#redim-cookiehint .headline {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ae-heading);
}

#redim-cookiehint .cookiecontent {
  color: #4b5563;
  line-height: 1.5;
}

#redim-cookiehint .cookiebuttons {
  margin-top: 12px;
}

#redim-cookiehint .cookiebuttons a {
  margin-right: 10px;
}

#cookiehintsubmit {
  background-color: var(--ae-brand) !important;
  border: 1px solid var(--ae-brand) !important;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
}

#cookiehintsubmit:hover {
  background-color: var(--ae-brand-dark) !important;
  border-color: var(--ae-brand-dark) !important;
}

#cookiehintsubmitno {
  background-color: transparent !important;
  border: 1px solid #d1d5db !important;
  color: var(--ae-brand) !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
}

#cookiehintsubmitno:hover {
  background-color: #f3f4f6 !important;
}

#cookiehintinfo a {
  color: var(--ae-brand);
  font-size: 13px;
}

#cookiehintinfo a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  #redim-cookiehint {
    padding: 14px 16px !important;
    font-size: 13px;
  }

  #redim-cookiehint .headline {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  #redim-cookiehint .cookiecontent {
    font-size: 13px;
    line-height: 1.5;
  }

  #redim-cookiehint .cookiebuttons {
    margin-top: 14px;
  }

  #redim-cookiehint .cookiebuttons a {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
  }

  #cookiehintsubmit,
  #cookiehintsubmitno {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  #cookiehintinfo {
    margin-top: 4px;
    text-align: center;
  }

  #cookiehintinfo a {
    display: inline-block;
    font-size: 13px;
  }
}

@media (min-width: 992px) {
  #redim-cookiehint > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  #redim-cookiehint .cookiehead,
  #redim-cookiehint .cookiecontent {
    flex: 1;
  }

  #redim-cookiehint .cookiebuttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    flex-shrink: 0;
    white-space: nowrap;
  }

  #redim-cookiehint .cookiebuttons a {
    margin-right: 0 !important;
  }

  #cookiehintsubmit {
    order: 1;
  }

  #cookiehintsubmitno {
    order: 2;
  }

  #cookiehintinfo {
    order: 3;
    margin-left: 8px;
  }

  #cookiehintinfo a {
    font-size: 13px;
    opacity: 0.85;
  }

  #cookiehintinfo a:hover {
    opacity: 1;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.container-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.container-footer > .grid-child {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container-footer .mod-custom,
.container-footer .mod-custom.custom {
  width: 100%;
  text-align: center;
}

.container-footer .mod-custom p {
  margin: 0;
  text-align: center !important;
}

.container-footer .mod-custom img {
  display: block;
  margin: 10px auto 0;
}

/* estilos para imagenes */
.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.article-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}


/* ========================================
   CALCULADORA CUOTA AUTÓNOMOS
   ======================================== */

.ae-calc {
  --calc-brand: var(--ae-brand, #1E3A8A);
  --calc-border: var(--ae-border, #e5e7eb);
  --calc-soft: var(--ae-soft, #f8fafc);
  --calc-text: var(--ae-text, #1f2937);
  --calc-muted: var(--ae-muted, #6b7280);

  margin: 2rem 0;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid var(--calc-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ae-calc__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: .55rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--calc-brand);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.ae-calc__title {
  margin: 0 0 .45rem 0;
  color: var(--ae-heading, #111827);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.ae-calc__intro {
  margin: 0 0 1.2rem 0;
  color: var(--calc-muted);
}

.ae-calc__section-title {
  margin: 0 0 .65rem 0;
  font-weight: 800;
  color: var(--ae-heading, #111827);
}

.ae-calc__type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.2rem;
}

.ae-calc__type {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  min-height: 100%;
  padding: .9rem;
  border: 1px solid var(--calc-border);
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ae-calc__type:hover {
  border-color: rgba(30, 58, 138, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.ae-calc__type input {
  margin-top: .25rem;
  accent-color: var(--calc-brand);
}

.ae-calc__type-main {
  display: block;
  color: var(--ae-heading, #111827);
  font-weight: 800;
}

.ae-calc__type-help {
  display: block;
  margin-top: .15rem;
  color: var(--calc-muted);
  font-size: .88rem;
  line-height: 1.35;
}

.ae-calc__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}

.ae-calc__field label {
  display: block;
  margin-bottom: .35rem;
  color: var(--ae-heading, #111827);
  font-weight: 800;
}

.ae-calc__field small {
  display: block;
  margin-top: .45rem;
  color: var(--calc-muted);
  line-height: 1.35;
}

.ae-calc__section-title--spaced {
  margin-top: 1.15rem;
}

.ae-calc__input {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--calc-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--calc-text);
  font-size: 1rem;
}

.ae-calc__input:focus {
  outline: none;
  border-color: var(--calc-brand);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.ae-calc__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: .15rem;
  padding: .9rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: var(--calc-brand);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.ae-calc__button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.ae-calc__microcopy {
  margin: .75rem 0 0 0;
  color: var(--calc-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.ae-calc-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(30, 58, 138, 0.18);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ae-calc-result__headline {
  margin: 0 0 .75rem 0;
  color: var(--calc-brand);
  font-weight: 900;
}

.ae-calc-result__amount {
  margin: .25rem 0 1rem 0;
  color: var(--ae-heading, #111827);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ae-calc-result__amount span {
  display: block;
  margin-top: .15rem;
  color: var(--calc-muted);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.ae-calc-result__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.ae-calc-result__item {
  padding: .8rem;
  border: 1px solid var(--calc-border);
  border-radius: 14px;
  background: var(--calc-soft);
}

.ae-calc-result__item small {
  display: block;
  margin-bottom: .25rem;
  color: var(--calc-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ae-calc-result__item strong {
  display: block;
  color: var(--ae-heading, #111827);
  font-size: 1rem;
}

.ae-calc-result__note {
  margin: .55rem 0 0 0;
  color: var(--calc-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.ae-calc-result__note strong {
  color: var(--calc-text);
}

.ae-calc-error {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
}

@media (max-width: 640px) {
  .ae-calc__type-grid,
  .ae-calc__form-grid,
  .ae-calc-result__grid {
    grid-template-columns: 1fr;
  }

  .ae-calc {
    border-radius: 18px;
  }
}

/* ========================================
   ESQUEMA DE FLUJO EDITORIAL
   ======================================== */

.article-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin: 1.6rem 0;
}

.article-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--ae-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.article-flow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--ae-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  flex: 0 0 auto;
}

.article-flow-step h4 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ae-heading);
}

.article-flow-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ae-text);
}

.article-flow-arrow {
  display: none;
}

@media (min-width: 992px) {
  .article-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0.9rem;
    align-items: stretch;
  }

  .article-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ae-brand);
    opacity: 0.8;
  }
}

@media (max-width: 991.98px) {
  .article-flow {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .article-flow-step {
    padding: 1rem;
  }
}


/* ========================================
   CALCULADORA COSTE TRABAJADOR
   Ajuste específico para artículo de contratación
   ======================================== */

#calc-coste-trabajador {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

#calc-coste-trabajador .ae-calc__form-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

#calc-coste-trabajador .ae-calc__field {
  max-width: 100%;
}

#calc-coste-trabajador .ae-calc__field label {
  margin-bottom: 0.3rem;
}

#calc-coste-trabajador .ae-calc__button {
  width: auto;
  min-width: 220px;
  margin-top: 0.4rem;
  padding: 0.85rem 1.25rem;
}

#calc-coste-trabajador .ae-calc-result__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  #calc-coste-trabajador .ae-calc__button {
    width: 100%;
    min-width: 0;
  }

  #calc-coste-trabajador .ae-calc-result__grid {
    grid-template-columns: 1fr;
  }
}