/*
Theme Name:   GeneratePress Child
Description:  bloquesautocad.com
Author:       Sergio González | Sertec Digital
Author URI:   www.sertecdigital.com
Template:     generatepress
Version:      1.0.8
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/

/* ===============================
   FUENTE (DM Sans local)
   Coloca los TTF en:
   /wp-content/themes/generatepress-child/assets/fonts/dm-sans/
================================= */
@font-face{
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/DMSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/DMSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face{
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   VARIABLES
================================= */
:root{
  --sd-max-width: 1200px;

  --sd-color-accent: #0ea5e9;     /* azul subrayado */
  --sd-color-hero:   #f3f4f6;     /* gris claro */
  --sd-color-text:   #6b7280;     /* gris texto */
  --sd-color-text-2: #4b5563;     /* gris más fuerte */
  --sd-color-border: #e5e7eb;

  --sd-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* ===============================
   BASE (aplicar DM Sans a todo)
================================= */
html, body{
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}

/* asegúrate de pisar tipografías del tema/plugins */
body, button, input, select, textarea{
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.site-title, .main-title,
.entry-title, .page-title{
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700;
}

.sd-wrap{
  max-width: var(--sd-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Quitar el “hueco” típico entre header y contenido en GeneratePress */
#content,
.site-content{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===============================
   HEADER (modelo cliente)
================================= */
.sd-header{
  background:#fff;
}

.sd-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1.5rem;
  padding: 1.05rem 0;
}

/* Logo */
.sd-header__logo .custom-logo{
  max-height: 54px;
  width:auto;
  height:auto;
  display:block;
}

/* Menú centrado */
.sd-header__nav{
  flex: 1;
  display:flex;
  justify-content:center;
}

.sd-nav{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap: 3.1rem;
}

.sd-nav > li > a{
  text-decoration:none;
  color: var(--sd-color-text);
  font-weight:700;
  font-size: 1rem;
  letter-spacing:.2px;
  padding:.25rem 0;
  position:relative;
}

/* Subrayado azul hover */
.sd-nav > li > a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:3px;
  background: var(--sd-color-accent);
  border-radius:999px;
  opacity:0;
  transform:scaleX(.6);
  transition: opacity .18s ease, transform .18s ease;
}

.sd-nav > li:hover > a{
  color: var(--sd-color-text-2);
}
.sd-nav > li:hover > a::after{
  opacity:1;
  transform:scaleX(1);
}

/* Activo (current) siempre subrayado */
.sd-nav > li.current-menu-item > a,
.sd-nav > li.current_page_item > a,
.sd-nav > li.current-menu-ancestor > a{
  color: var(--sd-color-text-2);
}
.sd-nav > li.current-menu-item > a::after,
.sd-nav > li.current_page_item > a::after,
.sd-nav > li.current-menu-ancestor > a::after{
  opacity:1;
  transform:scaleX(1);
}

/* Botón "..." + dropdown */
.sd-header__more{
  display:flex;
  justify-content:flex-end;
}
.sd-more{ position:relative; }

.sd-more__btn{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 46px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
  color:#374151;
  user-select:none;
  font-weight: 700;
}
.sd-more__btn::-webkit-details-marker{ display:none; }

.sd-more[open] .sd-more__btn{
  background: rgba(0,0,0,0.10);
}

.sd-more__panel{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 260px;
  background:#fff;
  border:1px solid var(--sd-color-border);
  border-radius: 10px;
  box-shadow: var(--sd-shadow);
  padding: .5rem;
  z-index: 9999;
}

.sd-more__menu{
  list-style:none;
  margin:0;
  padding:0;
}
.sd-more__menu a{
  display:block;
  padding: .72rem .8rem;
  border-radius: 8px;
  text-decoration:none;
  color:#374151;
  font-weight:600;
}
.sd-more__menu a:hover{
  background: #f5f7fa;
}

/* Línea inferior del header */
.sd-header__rule{
  height:3px;
  background: rgba(0,0,0,0.06);
}

/* ===============================
   HERO (bloque reutilizable)
================================= */
.sd-hero{
  background: var(--sd-color-hero);
  border-bottom: 3px solid rgba(0,0,0,0.06);
  padding: 2.6rem 0 2.1rem;
}

/* centrado + ancho controlado */
.sd-hero__inner{
  max-width: var(--sd-max-width);
  margin: 0 auto;
  text-align:center;
}

.sd-hero__title{
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0 0 .85rem;
  color: var(--sd-color-text);
}

.sd-hero__subtitle{
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 1.55rem;
  color: var(--sd-color-text);
}

/* todo gris excepto el “3.000” azul */
.sd-hero__subtitle strong{
  color: var(--sd-color-text);
  font-weight: 800;
}
.sd-hero__subtitle .sd-accent{
  color: var(--sd-color-accent);
  font-weight: 800;
}

/* a ancho completo aunque el tema use contenedor */
.sd-hero{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ===============================
   BUSCADOR (la caja del buscador)
   Nota: el fondo gris "encajonado" suele venir del tema sobre inputs.
   Aquí dejamos el input transparente para integrarlo visualmente.
================================= */
.sd-search{
  display:flex;
  max-width: 860px;
  margin: 0 auto;
  background:#fff;
  border-radius: 12px;
  overflow:hidden;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: var(--sd-shadow);
}

.sd-search__field{
  display:flex;
  align-items:center;
  flex: 1;
  gap: .7rem;
  padding: 0 .9rem;
}

.sd-search__icon{
  width: 18px;
  height: 18px;
  opacity: .55;
  flex: 0 0 auto;
}

.sd-search__input{
  flex: 1;
  border: none !important;
  outline: none;
  background: transparent !important; /* clave para que no se vea "encajonado" */
  box-shadow: none !important;
  padding: 1.05rem .4rem;
  font-size: 1.12rem;
  color: var(--sd-color-text);
}

.sd-search__input::placeholder{
  color:#b0b7c3;
}

.sd-search__btn{
  min-width: 210px;
  background:#0b84c6;
  color:#fff;
  border:none;
  font-size: 1.2rem;
  font-weight: 800;
  cursor:pointer;
  transition: filter .15s ease;
}
.sd-search__btn:hover{
  filter: brightness(1.05);
}

/* ===============================
   TAG PILLS
================================= */
.sd-pills{
  margin-top: 1.25rem;
  display:flex;
  flex-wrap:wrap;
  gap: .85rem;
  justify-content:center;
}

.sd-pill{
  background:#fff;
  color: var(--sd-color-text);
  padding: .72rem 1.15rem;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration:none;
  border: 2px solid rgba(0,0,0,0.10);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: transform .12s ease, border-color .12s ease;
}
.sd-pill:hover{
  transform: translateY(-2px);
  border-color: var(--sd-color-accent);
  color: var(--sd-color-text-2);
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 980px){
  .sd-header__inner{ flex-wrap:wrap; }
  .sd-header__nav{
    order: 3;
    flex-basis: 100%;
    justify-content:flex-start;
  }
  .sd-nav{
    gap: 1.25rem;
    flex-wrap:wrap;
  }
}

@media (max-width: 900px){
  .sd-hero{ padding: 2.1rem 0 1.7rem; }
  .sd-hero__title{ font-size: 1.95rem; }
  .sd-hero__subtitle{ font-size: 1.2rem; }

  .sd-search{
    flex-direction: column;
    border-radius: 12px;
  }
  .sd-search__btn{
    width: 100%;
    min-width: auto;
    padding: .95rem 0;
    font-size: 1.12rem;
  }

  .sd-pill{
    font-size: .98rem;
    padding: .6rem .95rem;
  }
}

/* ===============================
   FOOTER
================================= */

.sd-footer{
  background:#fff;
  color: var(--sd-color-text);
}

/* Top (buscador + pills) */
.sd-footer-top{
  padding: 2.4rem 0 2.1rem;
  text-align:center;
}

.sd-footer-top__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: .65rem;
}

.sd-footer-top__title{
  margin:0;
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing:.2px;
  color: var(--sd-color-text);
}

.sd-footer-top__subtitle{
  margin:0 0 1.05rem;
  font-size: 1.15rem;
  color: var(--sd-color-text-2);
}

/* Reutilizamos .sd-search, pero más compacto */
.sd-search--footer{
  max-width: 860px;
  width: 100%;
  margin: 0 auto .9rem;
}

.sd-footer__rule{
  height: 1px;
  background: rgba(0,0,0,.10);
}

/* Grid 4 columnas + separadores verticales */
.sd-footer__main{
  padding: 2.2rem 0 1.4rem;
}

.sd-footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1.25fr 1.25fr 1fr;
  gap: 0;
}

.sd-footer__col{
  padding: 0 1.6rem;
  min-width: 0;
}

.sd-footer__col + .sd-footer__col{
  border-left: 1px solid rgba(0,0,0,.08);
}

.sd-footer__title{
  margin: 0 0 .8rem;
  color: var(--sd-color-text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2px;
}

.sd-footer__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: .5rem;
}

.sd-footer__menu a{
  text-decoration:none;
  color: var(--sd-color-text-2);
  font-size: .88rem;
  line-height: 1.35;
}

.sd-footer__menu a:hover{
  color: var(--sd-color-text);
}

/* Marca + texto */
.sd-footer__brand{
  margin: 0 0 1.15rem;
  font-size: 1.12rem; /* mismo tamaño que las otras cabeceras */
  font-weight: 700;   /* mismo peso que header/nav */
  letter-spacing:.2px;
}

.sd-footer__brand--muted{
  color: rgba(0,0,0,.35);
  font-weight: 700;
}

.sd-footer__brandtext{
  margin: 0 0 1.35rem;
  color: var(--sd-color-text-2);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 28ch;
}

/* Social circles */
.sd-footer__social{
  display:flex;
  gap: 1rem;
  align-items:center;
  justify-content:center; /* centrado horizontal */
}

.sd-social{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition: transform .12s ease, background .12s ease;
}

.sd-social:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.55);
}

/* Footer bar */
.sd-footerbar{
  border-top: 1px solid rgba(0,0,0,.08);
  background: #f6f5f7;
  padding: 1.05rem 0;
}

/* Separador | en footer inferior */
.sd-footerbar__menu li{
  position: relative;
}

.sd-footerbar__menu li:not(:last-child)::after{
  content: "|";
  margin-left: 1.2rem;
  color: rgba(0,0,0,.35);
}

.sd-footerbar__menu{
  display:flex;
  gap: 1.2rem;
  justify-content:center;
  list-style:none;
  padding:0;
  margin:0;
}

.sd-footerbar__menu a{
  text-decoration:none;
  color: var(--sd-color-text-2);
  font-size: 1.02rem;
}

.sd-footerbar__menu a:hover{
  color: var(--sd-color-text);
}

/* Copyright + disclaimer */
.sd-copyright{
  padding: 1.7rem 0;
  text-align:center;
}

.sd-copyright p{
  margin:0;
  color: var(--sd-color-text-2);
  font-size: 1.02rem;
}

.sd-disclaimer{
  padding: 1.55rem 0 2.3rem;
  text-align:center;
}

.sd-disclaimer p{
  margin:0;
  color: rgba(0,0,0,.42);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 980px;
  margin-left:auto;
  margin-right:auto;
}

/* Pills en footer: gris suave */
.sd-pills--footer .sd-pill{
  background: #e6e6ea;
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 10px 20px rgba(0,0,0,.06) inset, 0 6px 16px rgba(0,0,0,.04);
}

.sd-pills--footer .sd-pill:hover{
  border-color: rgba(0,0,0,.10);
  color: var(--sd-color-text);
}

/* Responsive */
@media (max-width: 1100px){
  .sd-footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px){
  .sd-footer__grid{ grid-template-columns: 1fr; gap: 1.6rem; }
  .sd-footer-top__title{ font-size: 1.6rem; }
  .sd-footer-top__subtitle{ font-size: 1.05rem; }
}





/* ============================================================
   HOME (front-page.php)
   ============================================================ */

.sd-home .sd-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid categorías */
.sd-home-cats{ padding: 28px 0 10px; }
.sd-home-cats__grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px){
  .sd-home-cats__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px){
  .sd-home-cats__grid{ grid-template-columns: repeat(2, 1fr); }
}

.sd-termcard{
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.sd-termcard:hover{
  box-shadow: 0 4px 14px rgba(11, 118, 196, 0.20), inset 0 0 0 1px rgba(11, 118, 196, 0.45);
  transform: translateY(-1px);
}
.sd-termcard__media{
  padding: 10px 10px 0 10px;
}
.sd-termcard__img{
  width: 100%;
  height: 92px;
  object-fit: contain;
  display: block;
}
.sd-termcard__img--ph{
  height: 92px;
  background: #f4f4f4;
  border-radius: 4px;
}
.sd-termcard__body{
  padding: 10px 12px 12px;
  text-align: center;
}
.sd-termcard__title{
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}
.sd-termcard__meta{
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

/* Listados */
.sd-home-lists{ padding: 16px 0 10px; }
.sd-home-lists__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1000px){
  .sd-home-lists__grid{ grid-template-columns: 1fr; }
}

.sd-home-panel__title{
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111;
}
.sd-home-panel__empty{
  border: 1px dashed #d7d7d7;
  border-radius: 6px;
  padding: 16px;
  color: #777;
  background: #fafafa;
}

/* Grid posts */
.sd-postgrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1000px){
  .sd-postgrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .sd-postgrid{ grid-template-columns: 1fr; }
}


.sd-postcard{
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  height: 100%;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: box-shadow 0.18s ease, transform 0.18s ease, outline-color 0.18s ease;
}
.sd-postcard:hover{
  box-shadow: 0 4px 14px rgba(11, 118, 196, 0.20);
  outline-color: rgba(11, 118, 196, 0.45);
  transform: translateY(-1px);
}

.sd-postcard__link{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sd-postcard__media{
  position: relative;
  padding: 10px;
}

.sd-postcard__img{
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.sd-postcard__img--ph{
  width: 100%;
  height: 110px;
  background: #f4f4f4;
  border-radius: 4px;
}

.sd-postcard__badge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0b79b7;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.sd-postcard__body{
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sd-postcard__title{
  font-weight: 700;
  color: #111;
  font-size: 13px;
  line-height: 1.2;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: calc(1.2em * 3);
}

.sd-postcard__meta{
  margin-top: auto;
  font-size: 12px;
  color: #7a7a7a;
  min-height: 16px;
  line-height: 16px;
}

.sd-postcard__meta:empty{
  visibility: hidden;
}

/* Pills (home debajo listados) */
.sd-home-pills{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 18px 0 6px;
}
.sd-home-pills__next{
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d8d8d8;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  font-size: 22px;
  line-height: 1;
}

/* Banners */
.sd-banners{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 860px){
  .sd-banners{
    grid-template-columns: 1fr;
  }
}

.sd-banner{
  position: relative;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  padding: 22px 22px 24px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.sd-banner:hover{
  box-shadow: 0 4px 14px rgba(11, 118, 196, 0.18);
  transform: translateY(-1px);
}

.sd-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.35);
}

.sd-banner__title,
.sd-banner__subtitle,
.sd-banner__btn{
  position: relative;
  z-index: 2;
}

/* Imagen DWG */
.sd-banner--dwg{
  background-image: url('/wp-content/themes/generatepress-child/images/bg-autocad.png');
}

/* Imagen BIM */
.sd-banner--bim{
  background-image: url('/wp-content/themes/generatepress-child/images/bg-revit.png');
}

.sd-banner--dwg,
.sd-banner--bim{
  background-size: 95%;
  background-position: right center;
}

/* Títulos */
.sd-banner__title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.sd-banner__title span{
  color: #8b8b8b;
  font-weight: 700;
}

.sd-banner__subtitle{
  margin-top: 6px;
  color: #7a7a7a;
  font-size: 14px;
}

/* Botón */
.sd-banner__btn{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0b79b7;
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  width: fit-content;
}

/* FAQ */
.sd-home-faq{ padding: 10px 0 24px; }
.sd-faq{
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sd-faq__item{
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 0;
  border-top: 1px solid #efefef;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  text-align: left;
}
.sd-faq__item:first-child{ border-top: 0; }
.sd-faq__item span{
  color: #999;
  font-size: 18px;
}

/* Front-page: centrar contenido */
.sd-front .sd-wrap{
	max-width: 1180px; /* ajusta si tu header usa otro ancho */
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Grid categorías (10 fijas) */
.sd-homecats{
	padding: 28px 0 10px;
}

.sd-homecats__grid{
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

/* Cards */
.sd-catcard{
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 6px;
	overflow: hidden;
	outline: 1px solid transparent;
	outline-offset: -1px;
	transition: box-shadow 0.18s ease, transform 0.18s ease, outline-color 0.18s ease;
}
.sd-catcard:hover{
	box-shadow: 0 4px 14px rgba(11, 118, 196, 0.20);
	outline-color: rgba(11, 118, 196, 0.45);
	transform: translateY(-1px);
}

.sd-catcard__thumb{
	background: #fff;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
}

.sd-catcard__thumb img{
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	display: block;
}

.sd-catcard__body{
	padding: 10px 14px 14px;
	text-align: center;
}

.sd-catcard__title{
	font-weight: 700;
	color: #111;
	line-height: 1.2;
}

.sd-catcard__meta{
	margin-top: 6px;
	font-size: 12px;
	color: #777;
}

/* Responsive */
@media (max-width: 1100px){
	.sd-homecats__grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px){
	.sd-homecats__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === FORZAR HOME A ANCHO COMPLETO (centrado real) === */
body.home .content-area{
  float: none !important;
  width: 100% !important;
  margin: 0 auto !important;
}

body.home .widget-area{
  display: none !important;
}

body.home .site-main{
  width: 100% !important;
}

/* Wrapper centrado para tus secciones */
body.home .sd-wrap{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Línea horizontal en títulos de sección */
.sd-home-panel__title{
  display: flex;
  align-items: center;
  gap: 14px;
}

.sd-home-panel__title::after{
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e3e3;
}

/* =========================
   FAQ / Acordeón (boxed)
   ========================= */

.faq-container{
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item{
  margin: 0;
  border-bottom: 1px solid #ededed;
}

.faq-item:last-child{
  border-bottom: 0;
}

.faq-header{
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}

/* Quita el marcador por defecto de <summary> */
.faq-header::-webkit-details-marker{ display: none; }
.faq-header::marker{ content: ""; }

.faq-header h3{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2f2f2f;
  line-height: 1.25;
}

/* Flecha a la derecha (tipo “>”) */
.faq-header::after{
  content: "›";
  font-size: 22px;
  line-height: 1;
  color: #8c8c8c;
  transform: rotate(0deg);
  transition: transform .18s ease, color .18s ease;
}

/* Hover como el diseño (ligero) */
.faq-item:hover .faq-header{
  background: #fafafa;
}

.faq-item[open] .faq-header::after{
  transform: rotate(90deg);
  color: #4a4a4a;
}

.faq-content{
  padding: 0 22px 18px 22px;
  color: #5a5a5a;
  font-size: 16px;
  line-height: 1.6;
}

.faq-content p{
  margin: 10px 0 0 0;
}

.faq-content a{
  color: #0b79b8; /* ajusta si quieres al azul corporativo */
  text-decoration: none;
}

.faq-content a:hover{
  text-decoration: underline;
}


/* =========================
   Ajuste jerarquía títulos
   ========================= */

/* H2 de secciones */
.sd-section__title{
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

/* H3 dentro de tarjetas de categoría */
.sd-termcard__title{
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.sd-catcard__title{
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* H3 dentro de tarjetas de posts */
.sd-postcard__title{
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* H3 dentro de FAQ */
.faq-header h3{
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* =====================================================
   BREADCRUMBS GLOBAL
   ===================================================== */



.sd-breadcrumbs-wrap {
  margin: 16px 0 22px;
  font-size: 16px;
  line-height: 1.4;
}

.sd-breadcrumbs {
  color: #666;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
}

.sd-breadcrumbs__label {
  color: #0073aa;
  font-weight: 400;
  margin-right: 6px;
}

.sd-breadcrumbs a {
  color: #666;
  text-decoration: none;
  font-weight: 400;
}

.sd-breadcrumbs a:hover {
  text-decoration: underline;
}

.sd-breadcrumbs > span:last-child {
  color: #4a4a4a;
  font-weight: 700;
}

/* ===============================
   PÁGINAS ESTÁTICAS (page.php)
================================= */

/* Full-width: quitar sidebar y ocupar todo el ancho */
body.page .site-content,
body.error404 .site-content,
body.search-no-results .site-content {
  display: block !important;
}

body.page .content-area,
body.error404 .content-area,
body.search-no-results .content-area {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}

body.page .widget-area,
body.error404 .widget-area,
body.search-no-results .widget-area {
  display: none !important;
}

body.page .site-main,
body.error404 .site-main,
body.search-no-results .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page .inside-article,
body.page article {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Contenedor del artículo */
.sd-page {
  padding-bottom: 48px;
}

.sd-page__article {
  padding: 32px 0 0;
}

/* Ocultar título en todas las páginas estáticas */
body.page header.sd-page__header {
  display: none;
}

body.page .sd-page__content {
  padding-top: 32px;
}

.sd-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sd-color-text-2, #4b5563);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--sd-color-border, #e5e7eb);
}

.sd-page__content {
  font-size: .95rem;
  color: var(--sd-color-text, #6b7280);
  line-height: 1.75;
}

.sd-page__content p { margin-bottom: 1.2em; }

.sd-page__content h2,
.sd-page__content h3,
.sd-page__content h4 {
  color: var(--sd-color-text-2, #4b5563);
  margin-top: 1.6em;
  margin-bottom: .5em;
}

.sd-page__content a {
  color: var(--sd-color-accent, #0ea5e9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sd-page__content a:hover {
  opacity: .8;
}

.sd-page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .sd-page__title {
    font-size: 1.35rem;
  }
}



/* ===============================
   FOOTER — Subtítulo secundario
================================= */
.sd-footer__title--sub {
  margin-top: 1.4rem;
}

/* ===============================
   FOOTER — Iconos de categorías
================================= */
.sd-footer__menu--cats a {
  display: flex;
  align-items: center;
  gap: .45em;
}
.sd-cat-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: .65;
  color: inherit;
}
.sd-cat-icon svg {
  display: block;
}


/* ===============================
   PÁGINA 404
================================= */
.sd-404 {
  padding-bottom: 80px;
}

.sd-404-extra:last-child {
  padding-bottom: 48px;
}

/* No-results: mitad de aire al final */
.sd-no-results.sd-404 {
  padding-bottom: 40px;
}

.sd-no-results .sd-404-extra:last-child {
  padding-bottom: 24px;
}

.sd-404-intro {
  padding: 0;
}

.sd-404__inner {
  padding: 48px 0 32px;
}

/* Título: "404 Página no encontrada" en una línea */
.sd-404__title {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--sd-color-text-2, #4b5563);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

/* Número 404 en azul, mayor que el texto del título */
.sd-404__code {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sd-color-accent, #0ea5e9);
}

.sd-404__desc {
  font-size: 1rem;
  color: var(--sd-color-text, #6b7280);
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Subtítulo de sección (debajo del h2) */
.sd-home-panel__sub {
  font-size: 0.875rem;
  color: var(--sd-color-accent, #0ea5e9);
  margin: -6px 0 16px;
  font-weight: 500;
}

/* Secciones extra de la 404 (etiquetas, últimos, más descargados) */
.sd-404-extra {
  padding: 28px 0 10px;
}

@media (max-width: 640px) {
  .sd-404__inner {
    padding: 32px 0 24px;
  }

  .sd-404__title {
    flex-wrap: wrap;
  }
}

/* ===============================
   SIN RESULTADOS DE BÚSQUEDA
================================= */
.sd-no-results__header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 40px 0 24px;
}

.sd-no-results__icon {
  flex-shrink: 0;
  width: 80px;
  opacity: 0.85;
}

.sd-no-results__icon img {
  width: 80px;
  height: auto;
  display: block;
}

.sd-no-results__body {
  flex: 1;
  min-width: 0;
}

.sd-no-results__title {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--sd-color-text-2, #4b5563);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.sd-no-results__query {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--sd-color-accent, #0ea5e9);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .sd-no-results__header {
    flex-direction: column;
    gap: 16px;
  }
}
