/* DAP - CSS del HOME (front-page). Portado de "DAP Home" + cambios Guille 15/06:
   miniaturas del hero compactas/centradas/juntas + fila nueva "más noticias" (pos 6-11). */
.dh-wrap{font-family:'DM Sans',sans-serif;background:#F4F7FB}
.dh-wrap *{box-sizing:border-box}
.dh-con{max-width:1280px;margin:0 auto;padding:0 24px}
.dh-sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;padding-bottom:16px;border-bottom:1px solid #E2E8F0;gap:16px}
.dh-sh .left{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.dh-sh h2{font-family:'Bricolage Grotesque',sans-serif;font-size:32px;font-weight:700;letter-spacing:-.8px;color:#0F172A}
.dh-kicker{font-size:12px;font-weight:600;color:#0A5BA8;text-transform:uppercase;letter-spacing:1.2px}
.dh-more{font-size:13px;font-weight:500;color:#64748b;display:flex;align-items:center;gap:6px;white-space:nowrap;text-decoration:none;transition:color .2s}
.dh-more:hover{color:#0A5BA8}
.dh-dot{width:3px;height:3px;background:#94A3B8;border-radius:50%;flex-shrink:0}
.dh-carousel{padding:10px 0 0}
.dh-car-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #E2E8F0}
.dh-car-hd .left{display:flex;align-items:baseline;gap:14px}
.dh-car-hd h2{font-family:'Bricolage Grotesque',sans-serif;font-size:30px;font-weight:700;letter-spacing:-.7px;color:#0F172A}
.dh-gold{display:inline-flex;align-items:center;gap:5px;background:#FF9F1C;color:#0F172A;padding:4px 12px;border-radius:4px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px}
.dh-car-wrap{display:grid;grid-template-columns:1.65fr 1fr;border-radius:16px;overflow:hidden;box-shadow:0 6px 36px rgba(0,0,0,.13);min-height:460px}
.dh-c-main{position:relative;overflow:hidden;background:#0A1426;cursor:pointer}
.dh-c-bg{position:absolute;inset:0}
.dh-c-bg img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .6s,opacity .35s}
.dh-c-noimg{width:100%;height:100%;background:linear-gradient(135deg,#0A1426,#1A3A6B);display:flex;align-items:center;justify-content:center}
.dh-c-noimg i{font-size:80px;color:rgba(255,255,255,.08)}
.dh-c-grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,13,26,.34) 0%,rgba(7,13,26,.60) 46%,rgba(7,13,26,.98) 100%)}
.dh-c-cnt{position:absolute;bottom:0;left:0;right:0;padding:36px 36px 48px;color:#fff;transition:opacity .3s}
.dh-c-meta{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.dh-c-pill-hoy{display:inline-flex;align-items:center;gap:5px;background:#FF9F1C;color:#0F172A;padding:5px 12px;border-radius:4px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px}
.dh-c-pill{display:inline-flex;align-items:center;background:#2693F0;color:#0A1530;padding:5px 12px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;text-decoration:none}
.dh-c-pill:hover{background:#fff;color:#0A1530}
.dh-c-title{font-family:'Bricolage Grotesque',sans-serif;font-size:34px;font-weight:700;line-height:1.1;letter-spacing:-1px;margin-bottom:14px;color:#fff;text-transform:uppercase}
.dh-c-excerpt{font-size:14.5px;color:#cbd5e1;line-height:1.65;margin-bottom:18px;max-width:78%}
.dh-c-author{display:flex;align-items:center;gap:10px;font-size:13px;color:#94a3b8}
.dh-c-author .av{width:26px;height:26px;border-radius:50%;background:#2693F0;color:#0A1530;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:10px}
.dh-c-read{display:inline-flex;align-items:center;gap:7px;background:#2693F0;color:#0A1530;padding:10px 22px;border-radius:50px;font-size:13px;font-weight:700;transition:all .2s;margin-top:20px;text-decoration:none}
.dh-c-read:hover{background:#fff}
.dh-c-prog{position:absolute;bottom:0;left:0;height:3px;background:#2693F0;width:0}
.dh-c-prog.run{animation:dhProg 7s linear forwards}
@keyframes dhProg{from{width:0}to{width:100%}}
.dh-c-dots{position:absolute;bottom:16px;right:20px;display:flex;gap:6px;align-items:center}
.dh-c-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35);border:none;cursor:pointer;padding:0;transition:all .25s}
.dh-c-dot.active{background:#2693F0;width:22px;border-radius:4px}
.dh-c-side{background:#fff;display:flex;flex-direction:column;border-left:1px solid #E2E8F0}
/* Miniaturas COMPACTAS + foto centrada verticalmente + pill/título/autor juntos (Guille 15/06) */
.dh-thumb{display:flex;align-items:center;gap:13px;padding:13px 16px;background:transparent;border:none;border-bottom:1px solid #F1F5F9;cursor:pointer;text-align:left;font-family:inherit;transition:background .2s;flex:1;position:relative;width:100%}
.dh-thumb:last-child{border-bottom:none}
.dh-thumb::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:transparent;transition:background .2s}
.dh-thumb.active{background:#EBF4FF}
.dh-thumb.active::before{background:#2693F0}
.dh-thumb:hover:not(.active){background:#F6F8FC}
.dh-th-img{width:72px;flex-shrink:0;border-radius:8px;overflow:hidden;aspect-ratio:4/3;background:#EEF2F8}
.dh-th-img img{width:100%;height:100%;object-fit:cover;object-position:center}
.dh-th-img .dh-noi{width:100%;height:100%;background:linear-gradient(135deg,#1A3A6B,#2693F0)}
.dh-th-body{flex:1;min-width:0}
.dh-th-pill{display:inline-block;background:#EBF4FF;color:#0A5BA8;padding:2px 8px;border-radius:3px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;margin-bottom:2px}
.dh-thumb.active .dh-th-pill{background:#2693F0;color:#0A1530}
.dh-th-title{font-family:'Bricolage Grotesque',sans-serif;font-size:13px;font-weight:600;line-height:1.28;color:#0F172A;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dh-th-meta{font-size:11px;color:#64748b}
/* FILA NUEVA "Más noticias" (posiciones 6-11, desplazadas del hero) */
.dh-secondrow{padding:30px 0 6px;background:#F4F7FB}
/* "Más noticias" = 4 cards en 1 SOLA FILA dentro del main (las 2 columnas de contenido); sidebar en la 3ª */
.dh-mr-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.dh-mr{display:flex;flex-direction:column;text-decoration:none;transition:transform .25s}
.dh-mr:hover{transform:translateY(-3px)}
.dh-mr-img{aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:#EEF2F8;margin-bottom:10px}
.dh-mr-img img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .5s}
.dh-mr:hover .dh-mr-img img{transform:scale(1.04)}
.dh-mr-img .dh-noi{width:100%;height:100%;background:linear-gradient(135deg,#1A3A6B,#2693F0)}
.dh-mr-pill{font-size:9px;font-weight:700;color:#0A5BA8;text-transform:uppercase;letter-spacing:.6px;margin-bottom:5px}
.dh-mr h4{font-family:'Bricolage Grotesque',sans-serif;font-size:13.5px;font-weight:600;line-height:1.3;color:#0F172A;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-transform:uppercase}
.dh-mr-meta{font-size:11px;color:#64748b;margin-top:auto}
.dh-wsect{padding:26px 0;background:#F6F8FC}
.dh-wgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px}
.dh-wgrid>div{min-width:0}
.dh-tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid #E2E8F0;overflow-x:auto}
.dh-tab{padding:12px 20px;font-size:13px;font-weight:600;color:#64748b;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;transition:all .2s;font-family:'DM Sans',sans-serif}
.dh-tab.active{color:#0F172A;border-bottom-color:#2693F0}
.dh-tab:hover:not(.active){color:#0F172A}
.dh-panel{display:none}
.dh-panel.active{display:block}
.dh-tlist{display:flex;flex-direction:column;gap:10px}
.dh-ti{display:grid;grid-template-columns:128px 1fr;gap:16px;padding:12px;background:#fff;border:1px solid #E2E8F0;border-radius:10px;transition:all .25s;text-decoration:none}
.dh-ti:hover{border-color:#2693F0}
.dh-ti-img{aspect-ratio:4/3;overflow:hidden;background:#EEF2F8;border-radius:8px}
.dh-ti-img img{width:100%;height:100%;object-fit:cover}
.dh-ti-img .dh-noi{width:100%;height:100%;background:linear-gradient(135deg,#1A3A6B,#2693F0)}
.dh-ti-body{display:flex;flex-direction:column;justify-content:center}
.dh-pill-sm{display:inline-flex;background:#EBF4FF;color:#0A5BA8;padding:3px 9px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;margin-bottom:5px;align-self:flex-start}
.dh-ti h4{font-family:'Bricolage Grotesque',sans-serif;font-size:17px;font-weight:600;line-height:1.3;color:#0F172A;margin-bottom:8px;letter-spacing:-.2px;text-transform:uppercase}
.dh-ti-meta{font-size:12px;color:#64748b}
.dh-no-posts{padding:32px;text-align:center;color:#94A3B8;font-size:14px}
.dh-no-posts i{font-size:36px;display:block;margin-bottom:10px}
.dh-sidebar{display:flex;flex-direction:column;gap:24px;min-width:0}
.dh-sf{display:flex;align-items:center;background:#fff;border:2px solid #E2E8F0;border-radius:50px;padding:6px 6px 6px 18px;transition:all .25s}
.dh-sf:focus-within{border-color:#2693F0;box-shadow:0 0 0 4px #EBF4FF}
.dh-sf>i{font-size:18px;color:#64748b;margin-right:10px}
.dh-sf input{flex:1;background:transparent;border:0;outline:none;padding:10px 0;font-size:14px;color:#0F172A;font-family:inherit}
.dh-sf input::placeholder{color:#94A3B8}
.dh-sf button{background:#2693F0;color:#0A1530;border:0;width:38px;height:38px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dh-sf button:hover{background:#0A5BA8;color:#fff}
.dh-caf{background:linear-gradient(135deg,#1A3A6B 0%,#0F2545 100%);color:#fff;border-radius:12px;padding:28px;text-align:center;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center}
.dh-caf::before{content:"";position:absolute;top:-40px;right:-40px;width:140px;height:140px;background:#2693F0;opacity:.15;border-radius:50%}
.dh-caf .ico{font-size:36px;margin-bottom:12px;color:#2693F0;position:relative}
.dh-caf h4{font-family:'Bricolage Grotesque',sans-serif;font-size:20px;font-weight:600;margin-bottom:12px;line-height:1.25;position:relative;color:#fff}
.dh-caf p{font-size:13.5px;color:#dbeaff;margin-bottom:22px;line-height:1.7;position:relative;max-width:240px;text-align:center}
.dh-caf a{display:inline-flex;align-items:center;gap:8px;background:#2693F0;color:#0A1530;padding:11px 22px;border-radius:50px;font-size:13px;font-weight:700;letter-spacing:.3px;transition:all .2s;position:relative;text-decoration:none}
.dh-caf a:hover{background:#fff;transform:translateY(-1px)}
.dh-wid{background:#fff;border:1px solid #E2E8F0;border-radius:12px;overflow:hidden}
.dh-wid-hd{padding:16px 20px;border-bottom:1px solid #E2E8F0;display:flex;align-items:center;justify-content:space-between}
.dh-wid-hd h3{font-family:'Bricolage Grotesque',sans-serif;font-size:14px;font-weight:600;color:#0F172A;text-transform:uppercase;letter-spacing:1.2px}
.dh-wid-hd i{color:#0A5BA8;font-size:18px}
.dh-wid-bd{padding:20px}
.dh-wid .sbi_header_img,.dh-wid .sbi_header_img img,.dh-wid .sbi_header_img_hover{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;border-radius:50%!important;object-fit:cover!important;background-size:cover!important;background-position:center!important;flex:0 0 54px!important}
.dh-multi{padding:48px 0;background:#F4F7FB}
.dh-mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.dh-yc{background:#fff;border:1px solid #E2E8F0;border-radius:12px;overflow:hidden;cursor:pointer;transition:all .3s;display:flex;flex-direction:column;text-decoration:none}
.dh-yc:hover{transform:translateY(-4px);border-color:#2693F0;box-shadow:0 8px 30px rgba(0,0,0,.08)}
.dh-ythumb{aspect-ratio:16/9;position:relative;overflow:hidden;background:#000}
.dh-ythumb img{width:100%;height:100%;object-fit:cover;opacity:.9;transition:opacity .2s,transform .5s}
.dh-yc:hover .dh-ythumb img{opacity:1;transform:scale(1.03)}
.dh-ythumb .dh-noi{width:100%;height:100%;background:linear-gradient(135deg,#0A1426,#1A3A6B)}
.dh-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:52px;height:52px;background:rgba(255,255,255,.95);border-radius:50%;display:flex;align-items:center;justify-content:center}
.dh-play::after{content:'';display:block;width:0;height:0;border-left:14px solid #FF0000;border-top:9px solid transparent;border-bottom:9px solid transparent;margin-left:3px}
.dh-ybody{padding:18px 20px;flex:1;display:flex;flex-direction:column}
.dh-ych{font-size:11px;font-weight:700;color:#0A5BA8;text-transform:uppercase;letter-spacing:.8px;margin-bottom:7px}
.dh-yc h4{font-family:'Bricolage Grotesque',sans-serif;font-size:16px;font-weight:600;line-height:1.3;color:#0F172A;margin-bottom:10px;letter-spacing:-.2px;flex:1;text-transform:uppercase}
.dh-ymeta{font-size:12px;color:#64748b;display:flex;align-items:center;gap:8px}
.dh-mcta{text-align:center;margin-top:36px}
.dh-mcta a{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border:2px solid #E2E8F0;border-radius:50px;font-size:14px;font-weight:600;color:#64748b;transition:all .25s;text-decoration:none}
.dh-mcta a:hover{border-color:#2693F0;color:#0A5BA8;background:#EBF4FF}
.dh-spon{padding:30px 0;background:#F4F7FB;border-top:1px solid #E2E8F0;border-bottom:1px solid #E2E8F0}
.dh-spon-lbl{font-size:11px;font-weight:600;color:#94A3B8;text-transform:uppercase;letter-spacing:1.5px;margin-bottom:20px;text-align:center}
.dh-srow{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}
.dh-stile-sp{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 24px;background:#fff;border:1px solid #E2E8F0;border-radius:10px;min-width:150px;transition:all .2s;text-decoration:none}
.dh-stile-sp:hover{border-color:#2693F0;transform:translateY(-2px)}
.dh-sp-ico{width:44px;height:44px;border-radius:8px;background:#EEF2F8;display:flex;align-items:center;justify-content:center;font-size:20px;color:#0A5BA8}
.dh-sp-logo{height:44px;width:auto;max-width:140px;object-fit:contain;display:block}
.dh-sp-nm{font-size:12px;font-weight:600;color:#64748b;text-align:center}
@media(max-width:1024px){.dh-car-wrap{grid-template-columns:1fr}.dh-c-side{display:none}.dh-c-title{font-size:27px}.dh-wgrid{grid-template-columns:minmax(0,1fr);gap:40px}.dh-mgrid{grid-template-columns:repeat(2,1fr)}.dh-mr-grid{grid-template-columns:repeat(2,1fr)}
  /* IG 2x2 cuando el sidebar pasa a ancho completo (igual que HAP) */
  #sb_instagram #sbi_images{display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;padding-bottom:0 !important}
  #sb_instagram #sbi_images .sbi_item{width:auto !important;margin:0 !important;float:none !important}
  #sb_instagram #sbi_images .sbi_item:nth-child(n+5){display:none !important}
  #sb_instagram .sbi_photo{height:auto !important;aspect-ratio:1/1 !important;display:block;background-size:cover}
  #sb_instagram .sbi_photo_wrap{height:auto !important}
  #sb_instagram .sbi_load_btn,#sb_instagram #sbi_load,#sb_instagram .sbi_load_more{display:none !important}}
@media(max-width:640px){.dh-con{padding:0 18px}.dh-c-title{font-size:20px}.dh-c-cnt{padding:24px 24px 40px}.dh-c-excerpt{font-size:14px;max-width:100%}.dh-mgrid{grid-template-columns:1fr}.dh-ti{grid-template-columns:1fr;gap:14px}.dh-mr-grid{grid-template-columns:repeat(2,1fr)}}

/* ===== HOME en modo oscuro ===== */
[data-theme="dark"] .dh-wrap,[data-theme="dark"] .dh-multi{background:#0A1426}
[data-theme="dark"] .dh-wsect{background:#0A1426}
[data-theme="dark"] .dh-spon{background:#0A1426;border-top-color:#1F3050;border-bottom-color:#1F3050}
[data-theme="dark"] .dh-sh,[data-theme="dark"] .dh-car-hd{border-bottom-color:#1F3050}
[data-theme="dark"] .dh-sh h2,[data-theme="dark"] .dh-car-hd h2{color:#F1F5FB}
[data-theme="dark"] .dh-kicker{color:#6BB5F8}
[data-theme="dark"] .dh-more{color:#9AA8C0}
[data-theme="dark"] .dh-more:hover{color:#6BB5F8}
[data-theme="dark"] .dh-c-side{background:#0F1B33;border-left-color:#1F3050}
[data-theme="dark"] .dh-thumb{border-bottom-color:#172846}
[data-theme="dark"] .dh-thumb.active{background:rgba(38,147,240,.14)}
[data-theme="dark"] .dh-thumb:hover:not(.active){background:#16243F}
[data-theme="dark"] .dh-th-title{color:#F1F5FB}
[data-theme="dark"] .dh-th-meta{color:#9AA8C0}
[data-theme="dark"] .dh-th-pill{background:rgba(38,147,240,.14);color:#6BB5F8}
[data-theme="dark"] .dh-mr h4{color:#F1F5FB}
[data-theme="dark"] .dh-mr-pill{color:#6BB5F8}
[data-theme="dark"] .dh-mr-meta{color:#9AA8C0}
[data-theme="dark"] .dh-mr-img{background:#16243F}
[data-theme="dark"] .dh-tabs{border-bottom-color:#1F3050}
[data-theme="dark"] .dh-tab{color:#9AA8C0}
[data-theme="dark"] .dh-tab.active,[data-theme="dark"] .dh-tab:hover:not(.active){color:#F1F5FB}
[data-theme="dark"] .dh-ti{background:#0F1B33;border-color:#1F3050}
[data-theme="dark"] .dh-ti-img{background:#16243F}
[data-theme="dark"] .dh-pill-sm{background:rgba(38,147,240,.14);color:#6BB5F8}
[data-theme="dark"] .dh-ti h4{color:#F1F5FB}
[data-theme="dark"] .dh-ti-meta{color:#9AA8C0}
[data-theme="dark"] .dh-sf{background:#0F1B33;border-color:#1F3050}
[data-theme="dark"] .dh-sf input{color:#F1F5FB}
[data-theme="dark"] .dh-wid{background:#0F1B33;border-color:#1F3050}
[data-theme="dark"] .dh-wid-hd{border-bottom-color:#1F3050}
[data-theme="dark"] .dh-wid-hd h3{color:#F1F5FB}
[data-theme="dark"] .dh-yc{background:#0F1B33;border-color:#1F3050}
[data-theme="dark"] .dh-yc h4{color:#F1F5FB}
[data-theme="dark"] .dh-ych{color:#6BB5F8}
[data-theme="dark"] .dh-ymeta{color:#9AA8C0}
[data-theme="dark"] .dh-mcta a{border-color:#1F3050;color:#9AA8C0}
[data-theme="dark"] .dh-mcta a:hover{background:rgba(38,147,240,.14);color:#6BB5F8}
[data-theme="dark"] .dh-stile-sp{background:#0F1B33;border-color:#1F3050}
[data-theme="dark"] .dh-sp-ico{background:#16243F;color:#6BB5F8}
[data-theme="dark"] .dh-sp-nm{color:#9AA8C0}
