/* ==========================================================================
   REDISEÑO clausulasuelotoledo.com — capa visual (solo CSS) sobre Cassiopeia
   + user.css de la plantilla hija. Estilo editorial: marfil, Newsreader +
   Public Sans, acento verde bosque. Para quitarla: borrar el bloque
   <!-- rediseno --> del index.php (o este archivo).
   No oculta ningún texto ni enlace: solo color, tipografía, espaciado y orden.
   ========================================================================== */

:root {
  --rd-bg: #f6f2ea;
  --rd-surface: #fffdf9;
  --rd-line: #e4dccd;
  --rd-text: #24221f;
  --rd-muted: #5d574e;
  --rd-accent: #2f4a3a;
  --rd-accent-hover: #24392c;
  --rd-ink: #1c2b22;
  --rd-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --rd-sans: "Public Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rd-max: 1180px;
  --rd-read: 760px;

  --cassiopeia-color-primary: var(--rd-accent);
  --cassiopeia-color-link: var(--rd-accent);
  --cassiopeia-color-hover: var(--rd-accent-hover);
  --cassiopeia-font-family-body: var(--rd-sans);
  --cassiopeia-font-family-headings: var(--rd-serif);
  --cassiopeia-font-weight-headings: 500;
  --cst-accent: var(--rd-accent);
  --cst-accent-dark: var(--rd-accent-hover);
  --template-bg-light: var(--rd-bg);
  --template-special-color: var(--rd-accent);
  --link-color: var(--rd-accent);
  --body-bg: var(--rd-bg);
  --body-color: var(--rd-text);
}

/* --- Base ---------------------------------------------------------------- */
html { background: var(--rd-bg); }
body.site {
  background: var(--rd-bg);
  color: var(--rd-text);
  font-family: var(--rd-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.site h1, body.site h2, body.site h3, body.site h4, body.site h5 {
  font-family: var(--rd-serif);
  color: var(--rd-text);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-transform: none;
}
body.site h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
body.site h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 2.2rem 0 .8rem; }
body.site h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); margin: 1.6rem 0 .5rem; }
body.site h2 strong, body.site h3 strong { font-weight: 500; }
body.site em { font-style: italic; }
body.site a { color: var(--rd-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(47, 74, 58, .35); transition: color .2s, text-decoration-color .2s; }
body.site a:hover { color: var(--rd-accent-hover); text-decoration-color: currentColor; }
body.site p { margin: 0 0 1rem; }
body.site strong { font-weight: 600; }
::selection { background: rgba(47, 74, 58, .18); }
body.site [style*="text-align: justify"], body.site [style*="text-align:justify"] { text-align: left !important; }

/* --- Cabecera ------------------------------------------------------------ */
body.site .container-header {
  background: var(--rd-surface);
  background-image: none;
  color: var(--rd-text);
  border-bottom: 1px solid var(--rd-line);
  box-shadow: none;
}
body.site .container-header .container-topbar {
  background: var(--rd-bg);
  color: var(--rd-muted);
  border-bottom: 1px solid var(--rd-line);
  font-size: 13px;
  padding-top: 7px;
  padding-bottom: 7px;
}
body.site .container-topbar p { letter-spacing: 0; text-transform: none; }
body.site .container-topbar > div:first-child p {
  color: var(--rd-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.site .container-header .container-nav {
  max-width: var(--rd-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  align-items: center;
  gap: 1.5rem;
}
/* marca tipográfica (decorativa, no es texto del documento) */
body.site .container-header .container-nav::before {
  content: "Cláusula Suelo Toledo";
  font-family: var(--rd-serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--rd-ink);
  letter-spacing: -.01em;
  white-space: nowrap;
  padding: 18px 0;
  flex: 0 0 auto;
}
body.site .container-header .mod-menu > li > a,
body.site .container-header .mod-menu > li > .mod-menu__heading,
body.site .container-header .metismenu.mod-menu > li.metismenu-item > a {
  color: var(--rd-text);
  font-size: 15px;
  font-weight: 400;
  padding: 24px 11px;
  text-decoration: none;
  opacity: 1;
}
body.site .container-header .mod-menu > li > a:hover,
body.site .container-header .mod-menu > li.active > a,
body.site .container-header .mod-menu > li.current > a {
  color: var(--rd-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--rd-accent);
}
body.site .container-header .metismenu.mod-menu .mm-toggler { color: var(--rd-muted); }
body.site .container-header .mod-menu .mm-collapse,
body.site .container-header .mod-menu ul.mod-menu__sub {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(36, 34, 31, .08);
  padding: 6px 0;
}
body.site .container-header .mod-menu .mm-collapse a,
body.site .container-header .mod-menu ul.mod-menu__sub a {
  color: var(--rd-text);
  font-size: 14.5px;
  padding: 9px 18px;
  text-decoration: none;
  background: transparent;
}
body.site .container-header .mod-menu .mm-collapse a:hover,
body.site .container-header .mod-menu ul.mod-menu__sub a:hover { color: var(--rd-accent); background: var(--rd-bg); }
body.site .container-header .container-search { margin-left: 0; }

/* --- Botones ------------------------------------------------------------- */
body.site .cst-btn,
body.site .uk-button, body.site .uk-button-primary,
body.site .btn-primary, body.site .btn.btn-primary,
body.site button.validate, body.site .contact-form .btn {
  display: inline-block;
  background: var(--rd-accent);
  border: 1px solid var(--rd-accent);
  color: #fff !important;
  font-family: var(--rd-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  padding: 11px 22px;
  border-radius: 2px;
  box-shadow: none;
  text-decoration: none !important;
  transition: background .2s, border-color .2s;
}
body.site .cst-btn:hover,
body.site .uk-button:hover, body.site .btn-primary:hover, body.site button.validate:hover {
  background: var(--rd-accent-hover);
  border-color: var(--rd-accent-hover);
}
body.site .cst-btn-nav { margin: 0; padding: 9px 18px; }
body.site .btn-secondary, body.site .btn-outline-primary {
  background: transparent; color: var(--rd-accent) !important; border: 1px solid var(--rd-accent); border-radius: 2px;
}

/* --- Portada: cabecera ----------------------------------------------------- */
body.site .cst-hero {
  background: var(--rd-surface);
  background-image: none;
  color: var(--rd-text);
  min-height: 0;
  display: block;
  text-align: left;
  border-bottom: 1px solid var(--rd-line);
  overflow: hidden;
}
body.site .cst-hero::before {
  inset: 0 0 0 auto;
  width: 42%;
  background: #cfc6b4 url("/images/14.jpg") center / cover no-repeat;
  filter: saturate(.75);
}
body.site .cst-hero-inner {
  position: relative;
  max-width: var(--rd-max);
  margin: 0 auto;
  padding: 96px 24px 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.site .cst-hero-inner > * { max-width: 600px; }
body.site .cst-hero-titles { position: static; min-height: 0; margin: 0; }
body.site .cst-hero h1,
body.site .cst-hero-t1, body.site .cst-hero-t2 {
  position: static;
  animation: none;
  opacity: 1;
  display: block;
  color: var(--rd-ink);
  text-shadow: none;
  font-family: var(--rd-serif);
  margin: 0;
}
body.site .cst-hero-t1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; }
body.site .cst-hero-t2 {
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--rd-accent);
  line-height: 1.2;
  margin-top: .45rem;
}
body.site .cst-hero-sub {
  order: -1;
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
  font-family: var(--rd-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rd-accent);
  text-shadow: none;
}
body.site .cst-hero-small {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-muted);
  text-shadow: none;
  margin: 1.5rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rd-line);
  max-width: 480px;
}
body.site .cst-hero .cst-btn { font-size: 16px; letter-spacing: .02em; padding: 13px 30px; }

/* --- Zonas de contenido ---------------------------------------------------- */
body.site .site-grid .grid-child.container-top-a,
body.site .site-grid .grid-child.container-top-b,
body.site .site-grid .grid-child.container-bottom-a,
body.site .site-grid .grid-child.container-bottom-b,
body.site .site-grid .grid-child.container-component {
  max-width: var(--rd-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
body.site .container-top-a { margin-top: 4.5rem; }
body.site .site-grid .card { background: transparent; border: 0; box-shadow: none; }
body.site .container-top-a .card, body.site .container-top-b .card,
body.site .container-bottom-a .card, body.site .container-bottom-b .card { margin-bottom: 4rem; }

/* bloques de texto de portada: ancho de lectura */
body.site #mod-custom219, body.site #mod-custom168 { max-width: var(--rd-read); }
body.site .cst-local > h2:first-child, body.site #mod-custom168 > h2:first-child { margin-top: 0; }
body.site .cst-local > h2:first-child { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
body.site .cst-local > h2:first-child::before,
body.site .cst-ventajas h2::before,
body.site .cst-guias > h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--rd-accent);
  margin-bottom: 1.1rem;
}
body.site .cst-local h3 { font-size: 1.3rem; }
body.site #mod-custom168 { border-top: 1px solid var(--rd-line); padding-top: 3rem; }
body.site #mod-custom168 img[src*="sello"] { margin-top: .5rem; }

/* Presupuesto cerrado */
body.site .cst-intro { text-align: left; border-top: 1px solid var(--rd-line); padding-top: 3rem; }
body.site .cst-intro-title {
  font-family: var(--rd-serif);
  text-transform: none;
  letter-spacing: -.005em;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  margin: 0 0 1.4rem;
}
body.site .cst-intro-img img { border-radius: 2px; border: 1px solid var(--rd-line); max-height: 260px; }

/* 100 % de sentencias */
body.site .cst-100 {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-left: 3px solid var(--rd-accent);
  border-radius: 2px;
  padding: 2rem 2.2rem;
}
body.site .cst-100 h2 { margin-top: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
body.site .cst-100 h2 img { max-width: 150px; border-radius: 2px; }
body.site .cst-100 p { color: var(--rd-muted); max-width: var(--rd-read); }
body.site .cst-100 p:last-child { margin-bottom: 0; }

/* Ventajas */
body.site .cst-ventajas { background: transparent; border: 0; border-radius: 0; padding: 0; }
body.site .cst-ventajas-top {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 2px;
  padding: 1.5rem;
}
body.site .cst-ventajas-top img { width: 150px; height: auto; margin: 0; border-radius: 2px; flex: 0 0 auto; }
body.site .cst-ventajas-top blockquote {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-family: var(--rd-serif);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--rd-ink);
  max-width: none;
}
body.site .cst-ventajas h2 {
  text-align: left;
  text-transform: none;
  letter-spacing: -.005em;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  margin: 3.5rem 0 1.8rem;
}
body.site .cst-ventajas-grid { gap: 1px; background: var(--rd-line); border: 1px solid var(--rd-line); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.site .cst-ventajas-grid li { background: var(--rd-surface); padding: 1.6rem 1.6rem 1.8rem; transition: background .2s; }
body.site .cst-ventajas-grid li:hover { background: #fffaf1; }
body.site .cst-ventajas-grid h3 { font-family: var(--rd-serif); font-size: 1.3rem; font-weight: 500; color: var(--rd-ink); margin: 0 0 .5rem; }
body.site .cst-ventajas-grid p { color: var(--rd-muted); font-size: 16px; }

/* Nuestro trabajo */
body.site .cst-trabajo-intro { grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: end; border-top: 1px solid var(--rd-line); padding-top: 3rem; }
body.site .cst-kicker { color: var(--rd-accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; }
body.site .cst-trabajo-intro h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin: 0; }
body.site .cst-trabajo-intro > p { color: var(--rd-muted); margin: 0; }
body.site .cst-trabajo-grid li {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
body.site .cst-trabajo-grid li:hover { border-color: var(--rd-accent); transform: translateY(-2px); }
body.site .cst-trabajo-grid img { height: 210px; opacity: 1; filter: saturate(.8); }
body.site .cst-trabajo-grid li:hover img { transform: none; opacity: 1; }
body.site .cst-trabajo-grid div { position: static; background: none; color: var(--rd-text); padding: 1.2rem 1.3rem 1.4rem; }
body.site .cst-trabajo-grid strong { font-family: var(--rd-serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; color: var(--rd-ink); }
body.site .cst-trabajo-grid span { font-size: 15px; color: var(--rd-muted); margin-top: .35rem; opacity: 1; }

/* Guías */
body.site .cst-guias { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 2px; padding: 2.6rem 2.4rem; }
body.site .cst-guias > h2 { margin-top: 0; max-width: 820px; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); }
body.site .cst-guias > p { color: var(--rd-muted); max-width: var(--rd-read); }
body.site .cst-guias h3 {
  font-family: var(--rd-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rd-accent);
  border-bottom: 1px solid var(--rd-line);
  padding-bottom: .6rem;
  margin: 1.6rem 0 .6rem;
}
body.site .cst-guias ul { list-style: none; padding: 0; margin: 0; }
body.site .cst-guias li { padding: .32rem 0; font-size: 15.5px; line-height: 1.45; }
body.site .cst-guias li a { color: var(--rd-text); text-decoration-color: var(--rd-line); }
body.site .cst-guias li a:hover { color: var(--rd-accent); text-decoration-color: var(--rd-accent); }

/* --- Páginas interiores ---------------------------------------------------- */
body.site .container-component { margin-top: 0; }
body.site .mod-breadcrumbs__wrapper { max-width: var(--rd-read); width: 100%; margin: 0 auto; }
body.site .site-grid { column-gap: 0; grid-column-gap: 0; }
body.site .mod-breadcrumbs.breadcrumb {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 2rem 0 0 !important;
  margin: 0;
  font-size: 13px;
  color: var(--rd-muted);
}
body.site .mod-breadcrumbs .breadcrumb-item, body.site .mod-breadcrumbs .breadcrumb-item.active { color: var(--rd-muted); }
body.site .mod-breadcrumbs__here { color: var(--rd-muted); }
body.site main > .item-page,
body.site main > .com-contact,
body.site main > .blog, body.site main > .com-content-category-blog,
body.site main > .category-list, body.site main > .com-content-category {
  max-width: var(--rd-read);
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
body.site .item-page .page-header { border-bottom: 1px solid var(--rd-line); padding-bottom: 1.4rem; margin: 0 0 2rem; }
body.site .item-page .page-header h1,
body.site .com-content-article .page-header h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--rd-ink);
  margin: 0;
}
body.site .com-content-article__body h2 { text-align: left !important; }
body.site .com-content-article__body > p:first-child,
body.site .cst-lead {
  font-family: var(--rd-serif);
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem);
  line-height: 1.5;
  color: var(--rd-muted);
}
body.site .com-content-article__body img, body.site .item-page img { border-radius: 2px !important; max-width: 100%; height: auto; }
body.site .cst-guia-img img { border: 1px solid var(--rd-line); }
body.site .com-content-article__body ul, body.site .com-content-article__body ol { padding-left: 1.25rem; }
body.site .com-content-article__body li { margin-bottom: .4rem; }
body.site .com-content-article__body li::marker { color: var(--rd-accent); }
body.site blockquote {
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--rd-ink);
  border-left: 2px solid var(--rd-accent);
  padding: .2rem 0 .2rem 1.2rem;
  margin: 1.6rem 0;
  max-width: none;
}
body.site table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--rd-surface); }
body.site table th, body.site table td { border: 1px solid var(--rd-line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
body.site table th { background: var(--rd-bg); font-weight: 600; }
body.site .com-content-article__body { overflow-wrap: break-word; }
body.site .com-content-article__body table { display: block; overflow-x: auto; }
body.site .uk-panel-box, body.site .blubox-jck, body.site .grebox-jck, body.site .redbox-jck, body.site .blabox-jck, body.site .yelbox-jck {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-left: 3px solid var(--rd-accent);
  border-radius: 2px;
  color: var(--rd-text);
}
body.site .article-info, body.site .article-info-term { color: var(--rd-muted); font-size: 13px; }
body.site .pagination .page-link { color: var(--rd-accent); border-color: var(--rd-line); background: var(--rd-surface); border-radius: 2px; }
body.site .pagination .active .page-link { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }

/* Contacto */
body.site .com-contact h2 { margin-top: 2rem; }
body.site .com-contact__container > h2:first-child { margin-top: 0; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--rd-ink); }
body.site .com-contact__info {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 2px;
  padding: 1.5rem 1.8rem;
  font-size: 16px;
}
body.site .com-contact__info [class^="icon-"], body.site .com-contact__info [class*=" icon-"] { color: var(--rd-accent); }
body.site .contact-form fieldset legend { font-family: var(--rd-serif); font-size: 1.3rem; }
body.site .form-control, body.site .form-select, body.site input[type="text"], body.site input[type="email"], body.site input[type="tel"], body.site textarea {
  background: var(--rd-surface);
  border: 1px solid #cfc5b3;
  border-radius: 2px;
  color: var(--rd-text);
  font-size: 16px;
  box-shadow: none;
}
body.site .form-control:focus, body.site textarea:focus, body.site input:focus {
  border-color: var(--rd-accent);
  box-shadow: 0 0 0 3px rgba(47, 74, 58, .15);
  outline: 0;
}
body.site .well { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* --- Pie ------------------------------------------------------------------- */
body.site .container-footer {
  background: var(--rd-ink);
  background-image: none;
  color: #cfd6cf;
  margin-top: 0;
  border-top: 0;
}
body.site .container-footer .grid-child { max-width: none; }
body.site .container-footer .mod-custom:first-child { padding: 40px 24px 28px; font-size: 14.5px; color: #cfd6cf; }
body.site .container-footer a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, .35); }
body.site .container-footer a:hover { color: #fff; text-decoration-color: #fff; }
body.site .cst-footlinks {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 24px 34px;
  font-size: 14px;
}
body.site .cst-footlinks a { color: #dfe5df; text-decoration: none; margin: 0 12px; line-height: 2.2; }
body.site .cst-footlinks a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
body.site .cst-whatsapp { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); width: 54px; height: 54px; background-size: 30px 30px; }
body.site .back-to-top-link { background: var(--rd-accent); border-radius: 2px; }

/* --- Escritorio ------------------------------------------------------------ */
body.site .container-header .container-topbar { padding-left: max(24px, calc((100% - var(--rd-max)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--rd-max)) / 2 + 24px)); }
@media (min-width: 992px) {
  body.site .container-header .container-nav { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 1rem; }
  body.site .container-header .container-nav .mod-menu { flex: 0 1 auto; margin-left: auto; flex-wrap: nowrap; gap: 0; }
  body.site .container-header .metismenu.mod-menu > li.metismenu-item { margin: 0; padding: 0; }
  body.site .container-header .metismenu.mod-menu > li.parent > ul.mm-collapse { min-width: 300px; }
  body.site .container-header .metismenu.mod-menu > li.metismenu-item > a { padding: 24px 9px; white-space: nowrap; }
  body.site .container-header .metismenu.mod-menu > li.metismenu-item > .mm-toggler { margin-inline-start: -10px; margin-inline-end: 0; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body.site .container-header .container-nav::before { font-size: 20px; }
  body.site .container-header .metismenu.mod-menu > li.metismenu-item > a { padding: 22px 7px; font-size: 14px; }
}

/* --- Móvil y tableta ------------------------------------------------------- */
@media (max-width: 991.98px) {
  body.site .container-header .container-nav { flex-wrap: wrap; padding: 0 20px 12px; gap: 0; }
  body.site .container-header .container-nav::before { flex-basis: 100%; padding: 16px 0 6px; font-size: 22px; }
  body.site .container-header .mod-menu { padding: 0; margin: 0 0 6px; width: 100%; gap: 0; }
  body.site .container-header .metismenu.mod-menu > li.metismenu-item { margin: 0; padding: 0; border-bottom: 1px solid var(--rd-line); }
  body.site .container-header .metismenu.mod-menu > li.metismenu-item > a,
  body.site .container-header .mod-menu > li > a { padding: 10px 10px 10px 0; font-size: 16px; }
  body.site .container-header .metismenu.mod-menu .mm-collapse { box-shadow: none; border: 0; border-left: 2px solid var(--rd-line); margin: 0 0 8px; }
  body.site .container-header .container-search { margin: 6px 0 0; width: 100%; }
}
@media (max-width: 767.98px) {
  body.site { font-size: 16.5px; }
  body.site .container-header .container-topbar { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 20px; }
  body.site .container-topbar p { font-size: 13px; }
  body.site .cst-btn-nav { display: block; text-align: center; }
  body.site .cst-hero::before { inset: 0 0 auto 0; width: 100%; height: 190px; }
  body.site .cst-hero-inner { padding: 222px 20px 56px; }
  body.site .cst-hero-inner > * { max-width: 100%; }
  body.site .cst-hero .cst-btn, body.site .cst-hero-cta { width: 100%; text-align: center; }
  body.site .cst-hero-small { font-size: 17px; }
  body.site .site-grid .grid-child.container-top-a,
  body.site .site-grid .grid-child.container-top-b,
  body.site .site-grid .grid-child.container-bottom-a,
  body.site .site-grid .grid-child.container-bottom-b,
  body.site .site-grid .grid-child.container-component { padding-left: 20px; padding-right: 20px; }
  body.site .container-top-a { margin-top: 3rem; }
  body.site .container-top-a .card, body.site .container-top-b .card,
  body.site .container-bottom-a .card, body.site .container-bottom-b .card { margin-bottom: 3rem; }
  body.site .cst-100 { padding: 1.5rem 1.3rem; }
  body.site .cst-100 h2 { flex-direction: column; align-items: flex-start; gap: .6rem; }
  body.site .cst-ventajas-top { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.3rem; }
  body.site .cst-ventajas-grid { grid-template-columns: 1fr; }
  body.site .cst-trabajo-intro { grid-template-columns: 1fr; gap: 1rem; }
  body.site .cst-guias { padding: 1.8rem 1.3rem; }
  body.site .cst-guias > div { grid-template-columns: 1fr !important; }
  body.site #mod-custom168 img[src*="sello"] { width: 96px !important; height: 96px !important; }
  body.site main > .item-page, body.site main > .com-contact { padding-top: 1rem; }
  body.site .com-contact__info { padding: 1.2rem; }
  body.site .cst-footlinks a { display: inline-block; margin: 0 8px; }
  body.site .uk-width-medium-1-2, body.site .uk-width-medium-1-3, body.site .uk-width-medium-4-5, body.site .uk-width-medium-1-5, body.site .uk-width-large-5-6 { flex-basis: 100%; max-width: 100%; }
  body.site img { max-width: 100%; height: auto; }
}

/* --- Aparición suave (solo si capa.js añade .rd-anim; sin JS todo visible) -- */
.rd-anim .rd-oculto { opacity: 0; transform: translateY(14px); }
.rd-anim .rd-visto { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .rd-anim .rd-oculto { opacity: 1; transform: none; }
  body.site * { transition: none !important; }
}

/* --- Ajustes finos de portada ---------------------------------------------- */
/* fondo decorativo duplicado del módulo "Presupuesto cerrado" (la misma imagen sigue en el <img>) */
body.site #mod-custom132 { background-image: none !important; }
body.site .cst-intro-img img { max-height: 300px; }
/* zona de componente vacía en portada: sin relleno */
body.site.itemid-101 .container-component main > .item-page { padding: 0; }
body.site.itemid-101 .container-component { margin: 0 auto; }
/* ventajas: rejilla sin celdas vacías de color */
body.site .cst-ventajas-grid { background: transparent; border: 0; gap: 12px; }
body.site .cst-ventajas-grid li { border: 1px solid var(--rd-line); border-radius: 2px; }
body.site .cst-ventajas-grid li:hover { border-color: var(--rd-accent); }
@media (min-width: 1100px) { body.site .cst-ventajas-grid { grid-template-columns: repeat(5, 1fr); } }

/* --- Foto de portada: encuadre en la catedral iluminada ---------------------- */
body.site .cst-hero::before { background-position: 17% 62%; filter: saturate(.85) brightness(1.18) contrast(1.05); }
@media (max-width: 767.98px) { body.site .cst-hero::before { background-position: 20% 60%; } }

/* --- Menú plegable en móvil (solo si el JS ha creado el botón; sin JS el menú se ve entero) --- */
.rd-menu-btn { display: none; }
@media (max-width: 991.98px) {
  body.site .container-header .container-nav { position: relative; }
  html.rd-menu-js body.site .rd-menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    position: absolute; top: 12px; right: 20px;
    background: transparent; border: 1px solid var(--rd-line); border-radius: 2px;
    color: var(--rd-ink); font: 600 15px/1 var(--rd-sans, inherit); padding: 9px 12px; cursor: pointer;
  }
  html.rd-menu-js body.site .rd-menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  html.rd-menu-js body.site .container-header .container-nav:not(.rd-abierto) .mod-menu { display: none; }
  html.rd-menu-js body.site .container-header .container-nav.rd-abierto .rd-menu-btn span { box-shadow: none; }
}
