/* =========================================================
   DAKEL — BLOG.CSS (LIMPIO / SIN DUPLICADOS)
   Incluye:
   - Blog index (/blog/): hero + RRSS + carrusel + grid + infinite scroll
   - Single post: layout 2 columnas + sidebar sticky + tags
   - Archives (tag/category/date/author): grid corporativo
   - FIX clicks RRSS hero (header sticky no roba clics)
========================================================= */

/* =========================================================
   0) BASE / CONTAINER
========================================================= */
.dakel-container{
  max-width: var(--dakel-boxed-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--dakel-boxed-gutter, 24px);
}

.dakel-blog{ padding-bottom: 40px; }


/* =========================================================
   1) HERO / NEWSBAR (Blog index + Blog archive header si aplica)
========================================================= */
.dakel-blog-hero{
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0;
}

.dakel-blog-title{
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.dakel-blog-desc{
  margin-top: 10px;
  max-width: 70ch;
}

/* Barra superior tipo newsroom: título izq + RRSS der */
.dakel-newsbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.dakel-newsbar-social{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Botones RRSS sobre hero (en blanco) */
.dakel-newsbar-social .dakel-social__btn{
  border:1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.06);
}
.dakel-newsbar-social .dakel-social__btn svg{
  width:20px;
  height:20px;
  fill:#fff;
}
.dakel-blog-hero--hasimg .dakel-newsbar-social .dakel-social__btn:hover{
  background: rgba(255,255,255,0.12);
}

/* Si NO hay imagen en el hero: fondo corporativo */
.dakel-blog-hero:not(.dakel-blog-hero--hasimg){
  background: #0f2f68;
  padding: 140px 0 56px;
}
.dakel-blog-hero:not(.dakel-blog-hero--hasimg) .dakel-blog-title,
.dakel-blog-hero:not(.dakel-blog-hero--hasimg) .dakel-blog-desc{
  color:#fff !important;
}

/* =========================================================
   2) CARRUSEL (3 últimas noticias)
========================================================= */
.dakel-featured{
  padding: 26px 0 6px;
}
.dakel-featured-shell{
  position: relative;
  display:flex;
  align-items:center;
  gap:14px;
}
.dakel-featured-viewport{
  overflow:hidden;
  width:100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  background:#fff;
}
.dakel-featured-track{
  display:flex;
  width:100%;
  transition: transform .28s ease;
}
.dakel-featured-slide{
  position: relative;
  min-width:100%;
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 420px;
  background:#fff;
}
.dakel-featured-link{
  position:absolute;
  inset:0;
  z-index:2;
}
.dakel-featured-media{
  height:100%;
  background:#f3f5f7;
}
.dakel-featured-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dakel-featured-body{
  padding: 34px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.dakel-featured-meta {
  font-size:18px;
  color: rgba(17,17,17,.60);
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 10px;
  font-weight: 300;
}
.dakel-featured-meta a {  color: #333 !important;
  text-decoration: none !important;
}
.dakel-featured-kicker{
  font-weight:800;
  color: var(--dakel-cta-blue, #143693);
}
.dakel-featured-title{
  margin: 0 0 12px 0;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.1;
  color:#111;
  font-weight:900;
}
.dakel-featured-excerpt{
  margin:0;
  color: rgba(17,17,17,.72);
  line-height:1.55;
  font-size: 16px;
  max-width: 44ch;
}
.dakel-featured-nav{
  width:44px;
  height:44px;
  border-radius: 999px;
  border:0;
  cursor:pointer;
  background: rgba(17,17,17,.10);
  color:#111;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dakel-featured-nav:hover{ background: rgba(17,17,17,.16); }
.dakel-featured-nav:disabled{ opacity:.35; cursor:not-allowed; }

/* Responsive carrusel */
@media (max-width: 1024px){
  .dakel-featured-slide{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dakel-featured-body{
    padding: 22px 18px;
  }
}

/* =========================================================
   3) GRID / CARDS (Blog index)
========================================================= */

/* Grid base (por si se usa fuera del /blog/ custom) */
.dakel-blog-grid{
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px){
  .dakel-blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  .dakel-blog-grid{ grid-template-columns: 1fr; }
}

/* Variante 2 columnas (la que usas en /blog/) */
.dakel-blog-grid--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1024px){
  .dakel-blog-grid--two{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Card */
.dakel-card{
  position: relative;
  /*border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;*/
}
.dakel-card-link{
  position:absolute;
  inset:0;
  z-index:1;
}
.dakel-card-media img{
  width:100%;
  height:auto;
  display:block;
}
.dakel-card-media--placeholder{
  height: 220px;
  background: rgba(0,0,0,.05);
}
.dakel-card-body{
  position: relative;
  z-index: 2;
  padding: 26px 26px 28px;
  background-color: #f7f7f7;
}
.dakel-card-meta{
  font-size: 13px;
  opacity: .75;
  margin-bottom: 8px;
}
.dakel-card-title{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
	color: inherit !important;
}
.dakel-card-title a{
  color: inherit !important;
  text-decoration: none;
  
}
.dakel-card-excerpt{
  margin: 0 0 14px;
  opacity: .86;
}
.dakel-readmore{
  font-weight: 700;
  color: var(--dakel-cta-blue, #143693);
  text-decoration: none;
}
.dakel-card:hover .dakel-readmore{
  color: var(--dakel-cta-blue-hover, #1a45a8);
}

/* Separación entre hero y grid (como pediste) */
.dakel-blog-wrap{
  padding-top: 26px;
  padding-bottom: 44px;
	margin-top: 50px;
}

/* =========================================================
   4) PAGINACIÓN (fallback si no hay infinite scroll)
========================================================= */
.dakel-pagination{
  margin: 26px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dakel-pagination .page-numbers{
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
}
.dakel-pagination .page-numbers.current{
  background: var(--dakel-cta-blue, #143693);
  border-color: var(--dakel-cta-blue, #143693);
  color: #fff;
}

/* =========================================================
   5) INFINITE SCROLL (loader + sentinel)
========================================================= */
.dakel-infinite-loader{
  display:none;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  align-items:center;
  gap:10px;
  justify-content:center;
  color: rgba(17,17,17,.70);
  font-weight:700;
}
.dakel-infinite-loader.is-visible{ display:flex; }
.dakel-infinite-spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.55);
  animation: dakelSpin .8s linear infinite;
}
@keyframes dakelSpin{ to { transform: rotate(360deg); } }
.dakel-infinite-sentinel{ height: 1px; }

/* =========================================================
   6) SINGLE POST (template custom)
========================================================= */
body.single-post main#content.dakel-blog-single{
  padding-top: 192px !important; /* anti-solape header */
}
@media (max-width: 1024px){
  body.single-post main#content.dakel-blog-single{ padding-top: 180px !important; }
}
@media (max-width: 767px){
  body.single-post main#content.dakel-blog-single{ padding-top: 170px !important; }
}

.dakel-single-hero{
  padding: 14px 0 10px;
}
.dakel-single-title{
  margin: 0 0 10px;
  line-height: 1.05;
  font-size: clamp(34px, 4.6vw, 56px);
}
.dakel-single-meta{
  color: rgba(17,17,17,.65);
  font-size: 14px;
}
.dakel-single-cat{
  color: var(--dakel-cta-blue, #143693);
  text-decoration: none;
  font-weight: 700;
}

.dakel-single-wrap{
  padding: 12px 0 46px;
}
.dakel-single-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px){
  .dakel-single-grid{ grid-template-columns: 1fr; }
}

.dakel-single-featured img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin-bottom: 18px;
}

.dakel-prose{
  max-width: 820px;
}
.dakel-prose a{
  color: var(--dakel-cta-blue, #143693);
}
.dakel-prose a:hover{
  color: var(--dakel-cta-blue-hover, #1a45a8);
}

/* Sidebar sticky */
.dakel-single-aside{
  position: sticky;
  top: 110px;
}
@media (max-width: 1024px){
  .dakel-single-aside{ position: static; top: auto; }
}

/* Boxes sidebar */
.dakel-aside-box{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  margin-bottom: 16px;
}
.dakel-aside-title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

/* Related */
.dakel-related{
  display: grid;
  gap: 10px;
}
.dakel-related-item{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #111;
}
.dakel-related-thumb img{
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display:block;
}
.dakel-related-title{
  font-weight: 700;
  line-height: 1.2;
}
.dakel-related-item:hover .dakel-related-title{
  color: var(--dakel-cta-blue, #143693);
}

/* Share */
.dakel-share{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dakel-share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--dakel-cta-blue, #143693);
}
.dakel-share-btn:hover{
  border-color: rgba(20,54,147,.35);
  background: rgba(20,54,147,.06);
}

/* Tags debajo de la fecha */
.dakel-single-meta-row{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.dakel-single-tags{
  margin-top: 10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.dakel-tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(20,54,147,.04);
  color: var(--dakel-cta-blue, #143693);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.dakel-tag:hover{
  border-color: rgba(20,54,147,.35);
  background: rgba(20,54,147,.08);
}

/* =========================================================
   7) ARCHIVES (tag/category/date/author…)
========================================================= */
body.archive main#content.site-main{
  max-width: var(--dakel-boxed-max, 1200px);
  margin: 0 auto;
  padding-left: var(--dakel-boxed-gutter, 24px);
  padding-right: var(--dakel-boxed-gutter, 24px);
  padding-top: 192px !important; /* anti-solape header */
  padding-bottom: 56px;
}
@media (max-width: 1024px){
  body.archive main#content.site-main{ padding-top: 180px !important; }
}
@media (max-width: 767px){
  body.archive main#content.site-main{ padding-top: 170px !important; }
}

/* Header archive */
body.archive .page-header{
  margin: 0 0 22px 0;
  padding: 0 0 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
body.archive .page-title{
  margin: 0;
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-weight: var(--e-global-typography-primary-font-weight, 800);
  letter-spacing: var(--e-global-typography-primary-letter-spacing, 0);
  text-transform: var(--e-global-typography-primary-text-transform, none);
  line-height: 1.05;
  color: #111;
  font-size: clamp(34px, 4.2vw, 56px);
}
body.archive .taxonomy-description,
body.archive .archive-description{
  margin-top: 10px;
  color: rgba(17,17,17,.70);
  max-width: 820px;
}

/* Grid de posts del archive (estructura clásica WP) */
body.archive .page-content{
  margin-top: 22px;
  margin-bottom: 40px !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1024px){
  body.archive .page-content{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  body.archive .page-content{ grid-template-columns: 1fr; }
}

body.archive .page-content > article.post{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  padding: 0;
}
body.archive .page-content > article.post > a > img,
body.archive .page-content > article.post img.wp-post-image{
  width: 100%;
  height: auto;
  display: block;
}
body.archive .page-content > article.post .entry-title{
  margin: 16px 16px 10px;
  line-height: 1.15;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--e-global-typography-primary-font-family, inherit);
}
body.archive .page-content > article.post .entry-title a{
  color: #111 !important;
  text-decoration: none !important;
}
body.archive .page-content > article.post .entry-title a:hover{
  color: var(--dakel-cta-blue, #143693) !important;
}
body.archive .page-content > article.post p{
  margin: 0 16px 16px;
  color: rgba(17,17,17,.75);
  line-height: 1.55;
}

/* Links archive */
body.archive .page-content a:not(.elementor-button):is(:link,:visited){
  color: var(--dakel-cta-blue, #143693) !important;
}
body.archive .page-content a:not(.elementor-button):hover,
body.archive .page-content a:not(.elementor-button):focus{
  color: var(--dakel-cta-blue-hover, #1a45a8) !important;
}

/* Paginación archive */
body.archive nav.navigation,
body.archive .nav-links{
  grid-column: 1 / -1;
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
body.archive .nav-links a,
body.archive .nav-links span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  text-decoration: none !important;
  color: #111;
  background: #fff;
}
body.archive .nav-links a:hover{
  border-color: rgba(20,54,147,.35);
  color: var(--dakel-cta-blue, #143693);
}
body.archive .nav-links .current{
  background: rgba(20,54,147,.08);
  border-color: rgba(20,54,147,.35);
  color: var(--dakel-cta-blue, #143693);
}

/* =========================================================
   8) FIX DEFINITIVO: RRSS HERO (/blog/) CLICABLES
   Causa: header sticky (transparente) se come el click.
   Solución: header deja pasar clicks excepto en elementos interactivos.
========================================================= */
body.blog .elementor-location-header{
  pointer-events: none !important;
}
body.blog .elementor-location-header a,
body.blog .elementor-location-header button,
body.blog .elementor-location-header input,
body.blog .elementor-location-header select,
body.blog .elementor-location-header textarea,
body.blog .elementor-location-header [role="button"],
body.blog .elementor-location-header .e-n-menu,
body.blog .elementor-location-header .e-n-menu *{
  pointer-events: auto !important;
}

/* Overlay del hero nunca debe capturar clicks */
body.blog .dakel-blog-hero::before,
body.blog .dakel-blog-hero__overlay{
  pointer-events: none !important;
}

/* La barra RRSS debe poder recibir click sí o sí */
body.blog .dakel-newsbar-social,
body.blog .dakel-newsbar-social a{
  pointer-events: auto !important;
}


/* =========================================================
   HPE-LIKE — FEATURED CAROUSEL (/blog/)
   - Flechas abajo-izquierda (sin romper boxed)
   - Sin border-radius (rectilíneo)
   - Flechas grises + disabled gris apagado
   - Panel de texto con fondo gris sutil
========================================================= */

.dakel-featured { padding: 22px 0 10px; }

/* Contenedor del carrusel */
.dakel-featured-shell{
  position: relative;
  display: block;          /* dejamos de “empujar” con flex */
}

/* Ventana (la “caja”) rectilínea y alineada */
.dakel-featured-viewport{
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0 !important;     /* recto */
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.10);
}

/* Slides rectilíneas */
.dakel-featured-slide{
  border-radius: 0 !important;
  background: #fff;
}

/* Imagen ok */
.dakel-featured-media{
  background: #f2f3f4;
}
.dakel-featured-media img{
  border-radius: 0 !important;
}

/* Panel de contenido (gris sutil tipo HPE) */
.dakel-featured-body{
  background: #f4f5f6; /* gris sutil */
  border-left: 1px solid rgba(0,0,0,.10);
  padding: 30px 34px 74px;  /* deja hueco abajo para flechas */
}

/* En móvil no hay borde lateral, y ajustamos padding */
@media (max-width: 1024px){
  .dakel-featured-body{
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,.10);
    padding: 18px 18px 72px;
  }
}

/* Meta y kicker más “newsroom” */
.dakel-featured-meta{
  color: rgba(17,17,17,.60);
}
.dakel-featured-kicker{
  color: rgba(17,17,17,.75);
  font-weight: 700;
  text-transform: none;
}

/* Flechas: dentro de la caja, abajo a la izquierda, grises y rectas */
.dakel-featured-nav{
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 0 !important;                 /* recto */
  border: 1px solid rgba(0,0,0,.18);
  background: #f2f3f4;
  color: rgba(17,17,17,.65);

  font-size: 22px;
  line-height: 1;
  cursor: pointer;

  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
  z-index: 5;
}

/* Separación: la “next” al lado */
.dakel-featured-next{ left: 64px; }
.dakel-featured-prev{ left: 16px; }

/* Hover sutil */
.dakel-featured-nav:hover{
  background: #e9ebed;
  border-color: rgba(0,0,0,.24);
  color: rgba(17,17,17,.80);
}

/* Disabled (cuando llegas al final) */
.dakel-featured-nav:disabled{
  opacity: 1;
  background: #ededed;
  border-color: rgba(0,0,0,.10);
  color: rgba(17,17,17,.35);
  cursor: not-allowed;
}

/* Quitar el “gap” que tenías por el flex antiguo (por si queda) */
.dakel-featured-shell > .dakel-featured-prev,
.dakel-featured-shell > .dakel-featured-next{
  margin: 0 !important;
}

/* =========================================================
   AJUSTES HPE-LIKE (pero manteniendo tus flechas redondas fuera)
   - Carrusel: altura fija, no varía al pasar
   - Grid de cards: cuadradas (sin radius)
========================================================= */

/* ---------- CARRUSEL: altura fija y estable ---------- */

/* Define una altura estable (desktop/tablet/móvil) */
:root{
  --dakel-featured-h-desktop: 420px;
  --dakel-featured-h-tablet: 520px;  /* al apilarse en 1 columna suele crecer: lo fijamos */
  --dakel-featured-h-mobile: 520px;
}

/* Asegura caja estable */
.dakel-featured-viewport{
  /* mantiene tu caja con radius si quieres (NO TOCO) */
  height: var(--dakel-featured-h-desktop);
}

/* El track ocupa el alto */
.dakel-featured-track{ height: 100%; }
.dakel-featured-slide{
  height: 100%;
  min-height: 0; /* importante */
}

/* Imagen: ocupa el alto de su columna */
.dakel-featured-media{
  height: 100%;
}
.dakel-featured-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panel de texto: también ocupa el alto */
.dakel-featured-body{
  height: 100%;
  overflow: hidden; /* evita saltos por textos largos */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Limita título/extracto para que no “empujen” la altura */
.dakel-featured-title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* ajusta a 2 si quieres aún más compacto */
  overflow: hidden;
}
.dakel-featured-excerpt{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* ajusta a 2 si quieres */
  overflow: hidden;
}

/* Responsive: cuando pasa a 1 columna (tablet/móvil), fijamos otra altura */
@media (max-width: 1024px){
  .dakel-featured-viewport{ height: var(--dakel-featured-h-tablet); }
  .dakel-featured-slide{ grid-template-columns: 1fr; }
  /* en 1 columna, repartimos: 55% imagen / 45% texto (sin saltos) */
  .dakel-featured-media{ height: 55%; }
  .dakel-featured-body{ height: 45%; justify-content: flex-start; padding-top: 18px; }
}
@media (max-width: 767px){
  .dakel-featured-viewport{ height: var(--dakel-featured-h-mobile); }
}

/* ---------- FLECHAS: garantizo que NO se vuelven cuadradas/“con borde” ----------
   (por si quedó algo anterior). Esto mantiene tu estilo redondo fuera.
*/
.dakel-featured-shell{
  display:flex;
  align-items:center;
  gap:14px;
}
.dakel-featured-nav{
  position: static !important;  /* fuera de la caja, en el flujo */
  width:44px;
  height:44px;
  border-radius:999px !important;  /* redondas */
  border:0 !important;             /* sin borde */
  background: rgba(17,17,17,.10);
  color:#111;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dakel-featured-nav:hover{ background: rgba(17,17,17,.16); }
.dakel-featured-nav:disabled{ opacity:.35; cursor:not-allowed; }

/* ---------- GRID DE NOTICIAS (cards): cuadradas como HPE ---------- */

/* Cards cuadradas */
.dakel-card{
  border-radius: 0 !important;
}

/* Imagen cuadrada (sin redondeo) */
.dakel-card-media img{
  border-radius: 0 !important;
	height: 250px;
}

/* Botón/CTA visual más recto */
.dakel-pagination .page-numbers{
  border-radius: 0 !important;
}



/* =========================================================
   FIX: Carrusel alineado + flechas fuera a la izquierda (HPE-like)
   - El viewport ocupa todo el ancho del boxed
   - Flechas absolutas (no rompen alineación)
========================================================= */

/* 1) El shell ya NO debe ser flex (eso rompía el ancho del viewport) */
.dakel-featured-shell{
  position: relative;
  display: block !important;
}

/* 2) El viewport ocupa todo el ancho del contenedor */
.dakel-featured-viewport{
  width: 100% !important;
  margin: 0 !important;
}

/* 3) Track/slide 100% (por si algo lo tocó antes) */
.dakel-featured-track{ width: 100% !important; }
.dakel-featured-slide{ min-width: 100% !important; }

/* 4) Flechas: fuera, juntas a la izquierda, SIN borde, redondas */
.dakel-featured-nav{
  position: absolute !important;
  left: -56px;               /* fuera del boxed, pero alineado */
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(17,17,17,.10);
  color: #111;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* Juntas en vertical centradas (si las quieres centradas) */
.dakel-featured-prev{ top: calc(50% - 52px); }
.dakel-featured-next{ top: calc(50% + 8px); }

/* Si las quieres juntas ABAJO a la izquierda (tipo HPE), activa este bloque y comenta el de arriba
.dakel-featured-prev{ top: auto; bottom: 18px; }
.dakel-featured-next{ top: auto; bottom: 18px; left: -6px; }
*/

.dakel-featured-nav:hover{ background: rgba(17,17,17,.16); }
.dakel-featured-nav:disabled{
  opacity: .35;
  cursor: not-allowed;
  background: rgba(17,17,17,.08);
}

/* 5) En tablet/móvil: evita que queden demasiado fuera (reduce el “salido”) */
@media (max-width: 1024px){
  .dakel-featured-nav{ left: -38px; }
}
@media (max-width: 767px){
  .dakel-featured-nav{ left: -18px; }
}



/* =========================================================
   Carrusel: flechas DEBAJO, a la izquierda (tipo HPE)
   - No rompen el boxed
   - Redondas, sin borde
   - Reservamos espacio bajo el carrusel para que no tapen nada
========================================================= */

/* El shell manda y crea contexto */
.dakel-featured-shell{
  position: relative;
  display: block !important;
}

/* Reservar espacio inferior para colocar flechas debajo del carrusel */
.dakel-featured{
  padding-bottom: 56px; /* espacio para botones */
}

/* Asegura que el viewport ocupa todo el ancho del boxed */
.dakel-featured-viewport{
  width: 100% !important;
  margin: 0 !important;
}

/* Flechas: debajo del carrusel, izquierda, juntas */
.dakel-featured-nav{
  position: absolute !important;
  left: 0 !important;
  top: auto !important;
  bottom: -68px !important;     /* las baja “debajo” del carrusel */
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(17,17,17,.10);
  color: #111;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* “Juntas” horizontalmente */
.dakel-featured-prev{ left: 0 !important; }
.dakel-featured-next{ left: 54px !important; } /* separación entre botones */

/* Hover + estado disabled como HPE */
.dakel-featured-nav:hover{ background: rgba(17,17,17,.16); }
.dakel-featured-nav:disabled{
  opacity: .35;
  cursor: not-allowed;
  background: rgba(17,17,17,.08);
}

/* Responsive: que no se salgan ni tapen */
@media (max-width: 767px){
  .dakel-featured{ padding-bottom: 52px; }
  .dakel-featured-nav{ bottom: -44px !important; }
  .dakel-featured-next{ left: 50px !important; }
}

/* =========================================================
   SINGLE POST — “HPE-like” (rectilíneo, limpio, corporativo)
   (sin cambiar colores ni tipografías)
========================================================= */
:root{
  --dakel-single-radius: 0px;          /* 0 = totalmente recto */
  --dakel-single-radius-sm: 0px;       /* mini radios (si quieres 4px, pon 4px) */
  --dakel-single-border: rgba(0,0,0,.10);
  --dakel-single-bg-soft: #f6f7f8;     /* gris muy sutil tipo HPE */
}

/* Fondo suave detrás del bloque principal */
body.single-post .dakel-single-wrap{
  background: var(--dakel-single-bg-soft);
}

/* El grid principal que envuelve contenido + sidebar */
body.single-post .dakel-single-wrap .dakel-container{
  padding-top: 18px;
}

/* Imagen destacada: recta (sin redondeo) + consistente */
body.single-post .dakel-single-featured img{
  border-radius: var(--dakel-single-radius) !important;
}

/* Si tienes wrapper de imagen/figura, lo aseguramos */
body.single-post .dakel-single-featured,
body.single-post .dakel-single-featured figure,
body.single-post .dakel-single-featured .wp-block-image{
  border-radius: var(--dakel-single-radius) !important;
  overflow: hidden;
}

/* Caja lateral (noticias relacionadas / compartir): recta + borde sutil, sin “card shadow” */
body.single-post .dakel-aside-box,
body.single-post .dakel-sidebar-box{
  border-radius: var(--dakel-single-radius) !important;
  border: 1px solid var(--dakel-single-border) !important;
  box-shadow: none !important;
  background: #fff;
}

/* Títulos de caja: un poco más “bloque” */
body.single-post .dakel-aside-title,
body.single-post .dakel-sidebar-title{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 12px;
}

/* Related items: miniaturas rectas y alineación tipo lista */
body.single-post .dakel-related-thumb img{
  border-radius: var(--dakel-single-radius-sm) !important;
}

/* Links de related: menos “card”, más listado */
body.single-post .dakel-related-item,
body.single-post .dakel-related-link{
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
body.single-post .dakel-related-item:last-child,
body.single-post .dakel-related-link:last-child{
  border-bottom: 0;
}

/* Botones compartir: más rectos */
body.single-post .dakel-share-btn{
  border-radius: var(--dakel-single-radius-sm) !important;
  box-shadow: none !important;
}

/* Tags: de “píldora” a “label” más rectangular */
body.single-post .dakel-tag{
  border-radius: var(--dakel-single-radius-sm) !important;
  background: rgba(0,0,0,.02); /* mantiene look corporativo sin cambiar color principal */
}

/* Separadores del layout: un poco más editorial */
body.single-post .dakel-single-hero{
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

/* Ajuste fino: que el lateral parezca “módulo” fijo y no tarjeta flotante */
body.single-post .dakel-single-aside,
body.single-post .dakel-single-sidebar{
  top: 120px; /* si tu header real es alto, sube/baja aquí */
}

/* Responsive: en móvil, que el fondo suave no se vea raro */
@media (max-width: 1024px){
  body.single-post .dakel-single-wrap{
    background:#fff;
  }
}



/* SINGLE: quitar border-radius a la imagen destacada */
body.single-post .dakel-single-featured img{
  border-radius: 0 !important;
}

/* Por si la imagen está envuelta en figure / block-image */
body.single-post .dakel-single-featured,
body.single-post .dakel-single-featured figure,
body.single-post .dakel-single-featured .wp-block-image{
  border-radius: 0 !important;
}



/* SINGLE: quitar cualquier redondeo en la destacada (img + wrappers) */
body.single-post .dakel-single-featured,
body.single-post .dakel-single-featured *{
  border-radius: 0 !important;
}

/* Si algún wrapper recorta (muy típico) */
body.single-post .dakel-single-featured{
  overflow: visible !important;
}
body.single-post .dakel-single-featured figure,
body.single-post .dakel-single-featured .wp-block-image,
body.single-post .dakel-single-featured a{
  overflow: visible !important;
}

body.single-post .dakel-single-featured [style*="background-image"]{
  border-radius: 0 !important;
  overflow: visible !important;
}


/* === FIX FINAL: featured image SINGLE totalmente cuadrada === */
body.single-post main#content.dakel-blog-single .dakel-single-featured,
body.single-post main#content.dakel-blog-single .dakel-single-featured img{
  border-radius: 0 !important;
}

/* por si hay wrapper con recorte */
body.single-post main#content.dakel-blog-single .dakel-single-featured{
  overflow: visible !important;
}

/* elimina cualquier radio heredado de WP/Elementor en figuras */
body.single-post main#content.dakel-blog-single .dakel-single-featured figure,
body.single-post main#content.dakel-blog-single .dakel-single-featured .wp-block-image,
body.single-post main#content.dakel-blog-single .dakel-single-featured a{
  border-radius: 0 !important;
  overflow: visible !important;
}

body.archive .elementor-location-header #menu-principal .e-n-menu-content a { color: #333 !important;}

nav.e-n-menu .elementor-element p a {  color: #333 !important;}
