.fdpx-contest,.fdpx-winner{box-sizing:border-box;font-family:inherit;color:#242a35}.fdpx-contest *,.fdpx-winner *{box-sizing:border-box}.fdpx-contest{max-width:1180px;margin:25px auto;padding:0 14px}.fdpx-contest-header{padding:26px 26px 22px;background:linear-gradient(120deg,#111d31,#29466d);color:#fff;border-radius:14px;margin-bottom:20px}.fdpx-contest-header h2{font-size:clamp(24px,3vw,36px);margin:7px 0 12px;color:#fff}.fdpx-contest-header p{font-size:15px;margin:0;line-height:1.7;color:#e6effb}.fdpx-tag{color:#ffd98d;font-size:13px;font-weight:700;letter-spacing:.06em}.fdpx-info,.fdpx-notice{padding:14px 18px;border-radius:9px;background:#eef4ff;color:#1d3d69;margin:14px 0;border:1px solid #d3e2fa}.fdpx-success{background:#edfaf2;color:#245b3a;border-color:#bcdcc9}.fdpx-nominate{padding:18px 20px;border:1px solid #d9e0e8;border-radius:10px;margin:18px 0;background:#fff}.fdpx-nominate h3{margin:0 0 12px}.fdpx-nominate form{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.fdpx-nominate label{width:100%;font-weight:600;font-size:13px}.fdpx-nominate select{min-width:220px;flex:1;min-height:42px;border:1px solid #c2cfdf;border-radius:6px;padding:8px;background:#fff}.fdpx-nominate button,.fdpx-card button{border:0;border-radius:7px;background:#2565b4;color:#fff;padding:11px 14px;font-weight:600;cursor:pointer}.fdpx-nominate button:hover,.fdpx-card button:hover{background:#174c8b}.fdpx-votes-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:24px 0 14px}.fdpx-votes-heading h3{margin:0}.fdpx-votes-heading span{font-size:13px;color:#667}.fdpx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.fdpx-card{background:#fff;overflow:hidden;border-radius:12px;border:1px solid #e1e5eb;box-shadow:0 2px 12px #102c4610}.fdpx-card-image{display:block;aspect-ratio:4/3;background:#172133}.fdpx-card-image img{width:100%;height:100%;object-fit:cover;display:block}.fdpx-card-body{padding:14px}.fdpx-card-body h4{font-size:17px;margin:0 0 7px}.fdpx-card-body h4 a,.fdpx-winner-info a{color:#173f79;text-decoration:none}.fdpx-card-body p{margin:0 0 13px;color:#667;font-size:13px}.fdpx-card-footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;font-size:13px}.fdpx-card-footer form{margin:0}.fdpx-card-footer button{font-size:12px;padding:9px 12px}.fdpx-voted{color:#15733a;font-weight:700}.fdpx-muted{color:#7a8190}.fdpx-past-winners{margin-top:35px}.fdpx-winner{max-width:940px;margin:18px auto;padding:18px;background:#fff;border:1px solid #ead6a8;border-radius:14px;text-align:center;box-shadow:0 8px 25px #102c4612}.fdpx-winner-label{color:#8e5b07;font-weight:700;margin:0 0 14px}.fdpx-winner-photo{display:block;background:#111827;border-radius:8px;overflow:hidden}.fdpx-winner-image{width:100%;height:auto;max-height:480px;object-fit:contain;display:block}.fdpx-winner-info{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0;flex-wrap:wrap}.fdpx-winner-info span{color:#667;font-size:13px}.fdpx-winner-cta{display:inline-block;border-radius:6px;background:#e9f1fb;padding:9px 15px;color:#17558b;text-decoration:none;font-size:13px;font-weight:600}.fdpx-rules{font-size:12px;color:#667;margin-top:20px}.fdpx-history{margin:25px auto}@media(max-width:600px){.fdpx-contest-header{padding:20px}.fdpx-card-footer{align-items:center}.fdpx-nominate select,.fdpx-nominate button{width:100%}.fdpx-winner-info{justify-content:center}}

/* v1.1.10 · Una única portada con ganadora o foto fija, sin depender de otra imagen. */
.fdpx-portada-concurso { width:100%; max-width:100%; margin:0 auto; }
.fdpx-portada-concurso .fdpx-portada-imagen-base {
  display:block; width:100%; max-width:100%; height:auto; object-fit:contain; border-radius:0;
}
.fdpx-portada-concurso .fdpx-winner { margin:0 auto; padding:12px; max-width:100%; }
.fdpx-portada-concurso .fdpx-winner-image { max-height:520px; }
/* Compatibilidad con una imagen antigua todavía presente junto al shortcode. */
.wp-block-column:has(.fdpx-portada-concurso) > .wp-block-image { display:none !important; }
body:has(.fdpx-portada-concurso) .fdpx-portada-original { display:none !important; }

/* 1.0.3: participantes más compactas; no modifica la foto ganadora de portada. */
.fdpx-contest > .fdpx-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.fdpx-contest > .fdpx-grid .fdpx-card-image { aspect-ratio: 4 / 3; }
.fdpx-contest > .fdpx-grid .fdpx-card-body { padding:10px; }
.fdpx-contest > .fdpx-grid .fdpx-card-body h4 { font-size:14px; line-height:1.35; margin-bottom:4px; }
.fdpx-contest > .fdpx-grid .fdpx-card-body p { font-size:12px; margin-bottom:7px; }
.fdpx-contest > .fdpx-grid .fdpx-card-footer { font-size:12px; gap:6px; }
.fdpx-contest > .fdpx-grid .fdpx-card-footer button { padding:7px 9px; font-size:11px; }
.fdpx-my-entry { margin:16px 0; }
.fdpx-my-entry .fdpx-info { margin-bottom:8px; }
.fdpx-my-entry form { margin:0; }
.fdpx-withdraw-button { padding:9px 13px; border-radius:7px; border:1px solid #c65656; color:#9a2c2c; background:#fff5f5; font-weight:600; cursor:pointer; font-size:13px; }
.fdpx-withdraw-button:hover { background:#ffe6e6; }
.fdpx-withdraw-help { font-size:12px; color:#697483; margin:7px 0 0; }
@media(max-width:530px) { .fdpx-contest > .fdpx-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap:9px; } }
@media(max-width:350px) { .fdpx-contest > .fdpx-grid { grid-template-columns: 1fr; } }

/* 1.0.4: panel discreto de normas a la derecha de la cabecera. */
.fdpx-contest-header { position:relative; padding-right:110px; }
.fdpx-normas { position:absolute; z-index:20; top:15px; right:16px; width:max-content; max-width:calc(100% - 28px); }
.fdpx-normas summary { list-style:none; display:flex; align-items:center; gap:6px; padding:7px 11px; border:1px solid #91aacd; background:#ffffff1c; color:#fff; font-weight:700; font-size:13px; border-radius:9px; cursor:pointer; }
.fdpx-normas summary::-webkit-details-marker { display:none; }
.fdpx-normas[open] summary { background:#fff; color:#183352; }
.fdpx-normas-panel { position:absolute; top:calc(100% + 9px); right:0; width:min(370px,calc(100vw - 54px)); max-height:min(70vh,520px); overflow:auto; padding:17px 19px; border:1px solid #d6e2f3; border-radius:11px; background:#fff; color:#26364b; box-shadow:0 18px 45px #081c3155; font-size:14px; line-height:1.55; }
.fdpx-normas-panel h3 { margin:0 0 10px; font-size:18px; color:#1c3657; }
.fdpx-normas-panel ul { padding-left:20px; margin:0 0 12px; }
.fdpx-normas-panel li { margin:0 0 8px; }
.fdpx-normas-panel p { color:#315272; font-size:13px; margin:0; }
@media(max-width:600px) { .fdpx-contest-header { padding-right:20px; padding-top:63px; } .fdpx-normas { right:15px; top:13px; } }

/* v1.0.6 consentimiento de edición */
.fdpx-consent-label,.fdpx-consent-existing label{display:flex!important;align-items:flex-start;gap:9px;margin:12px 0;line-height:1.5;font-size:13px}.fdpx-consent-label input[type="checkbox"],.fdpx-consent-existing input[type="checkbox"]{width:auto!important;flex:none;margin-top:3px}.fdpx-consent-existing{margin:15px 0}

/* 1.0.8: autorización ya concedida, panel plegado y mínimo espacio. */
.fdpx-consent-compact {margin:7px 0 9px; font-size:12px;}
.fdpx-consent-compact > summary {display:inline-block; cursor:pointer; color:#2c6850; font-weight:600; padding:4px 2px; list-style:none;}
.fdpx-consent-compact > summary::-webkit-details-marker {display:none;}
.fdpx-consent-compact > summary:hover {text-decoration:underline;}
.fdpx-consent-compact .fdpx-consent-existing {margin:6px 0 10px;}


/* v1.1.0: el concurso ocupa la anchura completa, sin cabecera gris ni widgets laterales.
   Solo se activa cuando la página contiene [fotodronepx_concurso]. */
body.fdpx-contest-fullwidth .page-header,
body.fdpx-contest-fullwidth #right-sidebar,
body.fdpx-contest-fullwidth #left-sidebar,
body.fdpx-contest-fullwidth .widget-area#right-sidebar,
body.fdpx-contest-fullwidth .widget-area#left-sidebar {display:none!important;}
body.fdpx-contest-fullwidth #primary,
body.fdpx-contest-fullwidth .content-area,
body.fdpx-contest-fullwidth #primary.content-area {width:100%!important;max-width:100%!important;float:none!important;margin:0!important;padding:0!important;border:0!important;}
body.fdpx-contest-fullwidth #content-wrap,
body.fdpx-contest-fullwidth #main #content-wrap {width:calc(100% - 40px)!important;max-width:1480px!important;margin-left:auto!important;margin-right:auto!important;padding-top:22px!important;}
body.fdpx-contest-fullwidth .fdpx-contest {width:100%;max-width:100%;margin:6px auto 45px;padding:0;}
/* Cinco columnas en pantallas amplias y reducción progresiva en pantallas menores. */
body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;}
body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid .fdpx-card {min-width:0;}
body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid .fdpx-card-body {padding:11px;}
body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid .fdpx-card-body h4 {font-size:14px;overflow-wrap:anywhere;}
body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid .fdpx-card-footer {gap:7px;}
@media (max-width:1100px){body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:850px){body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:620px){body.fdpx-contest-fullwidth #content-wrap,body.fdpx-contest-fullwidth #main #content-wrap{width:calc(100% - 24px)!important;padding-top:12px!important;}body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}}
@media (max-width:350px){body.fdpx-contest-fullwidth .fdpx-contest > .fdpx-grid{grid-template-columns:1fr;}}

/* 1.1.8: botón Foro junto a Normas y consentimientos, mismo estilo y tamaño. */
.fdpx-contest-header .fdpx-header-actions{position:absolute;z-index:21;top:15px;right:16px;display:flex;align-items:flex-start;justify-content:flex-end;gap:9px;max-width:calc(100% - 28px)}
.fdpx-contest-header .fdpx-header-actions .fdpx-normas{position:relative;top:auto;right:auto;z-index:21;width:auto;max-width:none}
.fdpx-contest-header .fdpx-forum-link,
.fdpx-contest-header .fdpx-normas summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 14px;border:1px solid #91aacd;border-radius:11px;background:linear-gradient(180deg,#ffffff20,#ffffff12);color:#fff!important;font-size:13px;line-height:1.2;font-weight:700;text-decoration:none!important;white-space:nowrap;box-shadow:0 8px 18px rgba(6,23,44,.15);transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.fdpx-contest-header .fdpx-normas summary{cursor:pointer;list-style:none}
.fdpx-contest-header .fdpx-normas summary::-webkit-details-marker{display:none}
.fdpx-contest-header .fdpx-forum-link:hover,
.fdpx-contest-header .fdpx-forum-link:focus-visible,
.fdpx-contest-header .fdpx-normas summary:hover,
.fdpx-contest-header .fdpx-normas summary:focus-visible{background:linear-gradient(180deg,#ffffff34,#ffffff22);border-color:#c4d6ee;transform:translateY(-1px);box-shadow:0 10px 22px rgba(6,23,44,.22);outline:none}
.fdpx-contest-header .fdpx-normas[open] summary{background:#fff;color:#183352!important;border-color:#d6e2f3;box-shadow:0 10px 24px rgba(8,28,49,.18)}
.fdpx-contest-header .fdpx-forum-link span,
.fdpx-contest-header .fdpx-normas summary span{display:inline-block}
@media(max-width:600px){.fdpx-contest-header .fdpx-header-actions{top:13px;right:15px;gap:6px}.fdpx-contest-header .fdpx-forum-link,.fdpx-contest-header .fdpx-normas summary{min-height:38px;padding:7px 11px;font-size:12px;gap:6px}}

/* v1.1.2: se elimina el acceso directo al foro de la cabecera del concurso. */


/* v1.1.7: cupos 1/2 y fichas independientes por fotografía inscrita */
.fdpx-cupo-info{background:#f0f6ff;border-color:#c7dbf7}
.fdpx-my-entry-card{background:#fff;border:1px solid #dfe7f2;border-radius:12px;padding:12px 15px;margin:12px 0;box-shadow:0 3px 13px rgba(26,60,105,.05)}
.fdpx-my-entry-card .fdpx-info{margin:0 0 9px}
.fdpx-my-entry-card .fdpx-consent-compact{margin:5px 0 12px}
.fdpx-my-entry-card .fdpx-consent-existing form{display:flex;flex-direction:column;align-items:start;gap:9px}
.fdpx-my-entry-card .fdpx-consent-existing label{font-size:12px;font-weight:400}
.fdpx-my-entry-card .fdpx-consent-existing button{background:#2563a5;border-radius:7px;border:0;padding:9px 14px;color:#fff;cursor:pointer}
.fdpx-my-entry-card .fdpx-withdraw-button{background:#fff5f5!important;color:#8d3030!important;border:1px solid #c98787!important}

/* v1.1.9 · Felicitación al autor en la foto ganadora (portada y concurso). */
.fdpx-winner-congrats{
  margin:12px 0 15px;
  padding:14px 15px;
  text-align:center;
  background:linear-gradient(135deg,#fffaf0,#fffdf8);
  border:1px solid #f1dfb9;
  border-radius:10px;
  color:#5f4a2f;
}
.fdpx-winner-congrats-title{
  display:block;
  margin-bottom:7px;
  font-size:clamp(15px,1.5vw,19px);
  line-height:1.35;
  color:#95600e;
  font-weight:800;
}
.fdpx-winner-congrats p{font-size:13px;line-height:1.6;margin:0;color:#594d3c}
.fdpx-winner-congrats p + p{margin-top:7px}
.fdpx-winner-congrats .fdpx-winner-congrats-thanks{font-weight:650;color:#835a23}
.fdpx-winner.fdpx-compact .fdpx-winner-congrats{padding:11px 10px}
.fdpx-winner.fdpx-compact .fdpx-winner-congrats p{font-size:12px}
@media(max-width:600px){
  .fdpx-winner-congrats{padding:12px}
  .fdpx-winner-congrats-title{font-size:16px}
}

/* v1.2.0 · Fotógrafo del Año: premio visible, clasificación y archivo anual. */
.fdpx-yearly{margin:26px 0 20px;border:1px solid #d5dff0;border-radius:18px;background:linear-gradient(140deg,#f8fbff 0%,#fff 55%,#fff9ed 100%);box-shadow:0 14px 38px rgba(24,45,87,.075);padding:clamp(16px,2.2vw,28px);color:#23324c}
.fdpx-yearly-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}
.fdpx-yearly-intro h2{font-size:clamp(23px,2.5vw,34px);line-height:1.2;color:#1d304f;margin:7px 0 10px;font-weight:800}
.fdpx-yearly-intro p{font-size:14px;line-height:1.6;margin:0;max-width:640px;color:#4a5970}
.fdpx-yearly-kicker{color:#9a681b;font-size:11px;font-weight:800;letter-spacing:1.25px}
.fdpx-yearly-prize{display:flex;flex-direction:column;gap:5px;flex:0 0 250px;max-width:100%;padding:17px 20px;border-radius:14px;background:linear-gradient(140deg,#222e4a,#394d75);border:1px solid #ad8c54;box-shadow:0 8px 24px rgba(37,51,80,.19);color:#fff;text-align:center}
.fdpx-yearly-prize>span{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#f6db9c}
.fdpx-yearly-prize>strong{font-size:20px;line-height:1.25;color:#fff}
.fdpx-yearly-prize>small{font-size:11px;color:#e9f0ff}
.fdpx-yearly-terms{font-size:12px;line-height:1.65;color:#526079;margin:16px 0 12px}
.fdpx-yearly-pending,.fdpx-yearly-warning{background:#edf4ff;border:1px solid #d4e3fa;color:#334d77;border-radius:10px;padding:11px 14px;font-size:13px;line-height:1.5;margin:11px 0}
.fdpx-yearly-warning{background:#fff6e7;border-color:#e9cc99;color:#7d5621}
.fdpx-yearly-champion{margin:16px 0 10px;text-align:center;background:linear-gradient(130deg,#fff9e8,#fffef9);border:1px solid #e8c785;border-radius:14px;padding:18px}
.fdpx-yearly-champion>span{font-size:12px;color:#957128;display:block;font-weight:800}
.fdpx-yearly-champion>strong{font-size:clamp(19px,2.3vw,27px);color:#7b5518;display:block;margin:8px 0}
.fdpx-yearly-champion>p{font-size:13px;margin:6px 0 10px;color:#705c39}
.fdpx-yearly-champion>small{display:block;max-width:620px;margin:8px auto;color:#6d5c48}
.fdpx-yearly-featured img{display:block;max-width:350px;max-height:240px;width:auto;height:auto;object-fit:contain;margin:10px auto;border-radius:10px}
.fdpx-yearly-ranking h3{margin:20px 0 10px;font-size:16px;color:#213a5f}
.fdpx-yearly-ranking-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.fdpx-yearly-rank{padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px;border:1px solid #e0e7f1;border-radius:10px;background:#fff}
.fdpx-yearly-rank>strong{flex:1 1 65%;font-size:13px;overflow-wrap:anywhere}
.fdpx-yearly-rank>span:not(.fdpx-yearly-pos){font-size:12px;color:#426a9b;font-weight:700}
.fdpx-yearly-rank>small{flex:1 1 100%;color:#68788f;font-size:11px}
.fdpx-yearly-pos{display:flex;align-items:center;justify-content:center;width:25px;height:25px;background:#e9effa;color:#294871;border-radius:100%;font-weight:800;font-size:12px}
.fdpx-yearly-rank:first-child .fdpx-yearly-pos{background:#f8de91;color:#6e4a12}
.fdpx-archive-expand{margin:25px 0;border:1px solid #d8e2ef;border-radius:13px;padding:0 16px;background:#fff}
.fdpx-archive-expand>summary{cursor:pointer;padding:15px 0;color:#29476b;font-weight:800;font-size:15px}
.fdpx-archive-expand>summary:hover{color:#3469a8}
.fdpx-archive-expand .fdpx-history{margin:5px 0 16px}
.fdpx-archive-expand .fdpx-history .fdpx-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.fdpx-history-year{color:#29476b;margin:20px 0 10px;font-size:18px}
.fdpx-yearly-back{font-size:12px;color:#6a7690}
@media(max-width:650px){.fdpx-yearly-intro{flex-direction:column;align-items:stretch}.fdpx-yearly-prize{flex-basis:auto}.fdpx-yearly-ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fdpx-yearly-rank{padding:10px 8px}.fdpx-yearly-terms{font-size:12px}}
@media(max-width:370px){.fdpx-yearly-ranking-grid{grid-template-columns:1fr}}

/* Asegurar columnas responsivas del archivo dentro de la página de concurso, incluso con ancho completo. */
body.fdpx-contest-fullwidth .fdpx-archive-expand .fdpx-history > .fdpx-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}


/* v1.2.2 · Portada: única tarjeta compacta en la columna derecha del contenido.
   No afecta al concurso mensual, al archivo ni a la clasificación. */
body.home .fdpx-portada-concurso,
body.front-page .fdpx-portada-concurso,
body.page-id-42 .fdpx-portada-concurso {
  width: 100%;
  max-width: 370px;
  margin-left: auto;
  margin-right: 0;
}
body.home .fdpx-portada-concurso .fdpx-winner,
body.front-page .fdpx-portada-concurso .fdpx-winner,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  box-shadow: 0 3px 14px rgba(16,44,70,.09);
}
body.home .fdpx-portada-concurso .fdpx-winner-label,
body.front-page .fdpx-portada-concurso .fdpx-winner-label,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-label {
  font-size: 15px;
  margin-bottom: 10px;
}
body.home .fdpx-portada-concurso .fdpx-winner-photo,
body.front-page .fdpx-portada-concurso .fdpx-winner-photo,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-photo {
  background: #f7f8fa;
}
body.home .fdpx-portada-concurso .fdpx-winner-image,
body.front-page .fdpx-portada-concurso .fdpx-winner-image,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-image {
  display: block;
  width: 100%;
  max-height: 235px;
  height: auto;
  object-fit: contain;
}
body.home .fdpx-portada-concurso .fdpx-winner-info,
body.front-page .fdpx-portada-concurso .fdpx-winner-info,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-info {
  justify-content: center;
  gap: 5px 9px;
  font-size: 13px;
  margin: 10px 0;
}
body.home .fdpx-portada-concurso .fdpx-winner-info strong,
body.front-page .fdpx-portada-concurso .fdpx-winner-info strong,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-info strong {
  font-size: 14px;
}
body.home .fdpx-portada-concurso .fdpx-winner-congrats,
body.front-page .fdpx-portada-concurso .fdpx-winner-congrats,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-congrats {
  padding: 10px;
  margin: 9px 0 10px;
}
body.home .fdpx-portada-concurso .fdpx-winner-congrats-title,
body.front-page .fdpx-portada-concurso .fdpx-winner-congrats-title,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-congrats-title {
  font-size: 14px;
  line-height: 1.35;
}
body.home .fdpx-portada-concurso .fdpx-winner-congrats p,
body.front-page .fdpx-portada-concurso .fdpx-winner-congrats p,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-congrats p {
  font-size: 11.5px;
  line-height: 1.5;
}
body.home .fdpx-portada-concurso .fdpx-winner-cta,
body.front-page .fdpx-portada-concurso .fdpx-winner-cta,
body.page-id-42 .fdpx-portada-concurso .fdpx-winner-cta {
  font-size: 12px;
  padding: 7px 12px;
}
@media (max-width: 781px) {
  body.home .fdpx-portada-concurso,
  body.front-page .fdpx-portada-concurso,
  body.page-id-42 .fdpx-portada-concurso {
    max-width: 370px;
    margin: 20px auto 0;
  }
  /* El contenido en columnas de Gutenberg se apila en móvil, primero texto y después foto. */
  body.home .wp-block-columns:has(.fdpx-portada-concurso),
  body.page-id-42 .wp-block-columns:has(.fdpx-portada-concurso) {
    flex-direction: column;
  }
  body.home .wp-block-columns:has(.fdpx-portada-concurso) > .wp-block-column,
  body.page-id-42 .wp-block-columns:has(.fdpx-portada-concurso) > .wp-block-column {
    width: 100%;
    flex-basis: auto !important;
  }
}


/* v1.2.3 · Concurso: se elimina el bloque redundante “Ganadora del mes anterior”
   y el historial de ganadoras pasa a un formato más compacto. */
.fdpx-archive-expand{margin-top:28px}
.fdpx-archive-expand[open]{padding-bottom:14px}
.fdpx-archive-expand .fdpx-history{max-width:none;padding:0;margin:8px 0 0}
.fdpx-archive-expand .fdpx-history h2{font-size:15px;margin:6px 0 10px;color:#3b4c67}
.fdpx-archive-expand .fdpx-history-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;align-items:start}
.fdpx-history-card{border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(16,44,70,.08)}
.fdpx-history-image{position:relative;aspect-ratio:16/10;background:#172133}
.fdpx-history-image img{width:100%;height:100%;object-fit:cover;display:block}
.fdpx-history-badge{position:absolute;top:10px;left:10px;z-index:2;display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:rgba(26,33,47,.82);color:#fff;font-size:12px;font-weight:700;line-height:1;box-shadow:0 3px 12px rgba(0,0,0,.18)}
.fdpx-history-card .fdpx-card-body{padding:11px 12px 12px}
.fdpx-history-card .fdpx-card-body h4{font-size:15px;line-height:1.35;margin:0 0 6px}
.fdpx-history-card .fdpx-card-body p{margin:0 0 4px;font-size:13px;color:#56606f}
.fdpx-history-card .fdpx-history-votes{margin:0;color:#9b2450;font-weight:700}
.fdpx-past-winners{display:none!important}
@media (max-width: 781px){
  .fdpx-archive-expand .fdpx-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .fdpx-history-card .fdpx-card-body h4{font-size:14px}
}
@media (max-width: 480px){
  .fdpx-archive-expand{padding:0 12px}
  .fdpx-archive-expand .fdpx-history-grid{grid-template-columns:1fr}
}

/* v1.2.4 · especificidad reforzada para mostrar el historial en tarjetas
   pequeñas sin interferir con participantes ni otras galerías. */
.fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-grid.fdpx-history-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:14px;
  align-items:start;
}
.fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-history-card {
  min-width:0;
}
.fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-history-image {
  aspect-ratio: 16 / 10;
}
@media (min-width: 900px) {
  .fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-grid.fdpx-history-grid {
    grid-template-columns: repeat(auto-fill,minmax(175px,1fr));
  }
}
@media (max-width: 520px) {
  .fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-grid.fdpx-history-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-history-card .fdpx-card-body { padding:9px; }
  .fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-history-card .fdpx-card-body h4 {font-size:13px;}
  .fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-history-card .fdpx-card-body p {font-size:11.5px;}
}
@media (max-width: 340px) {
  .fdpx-contest .fdpx-archive-expand .fdpx-history .fdpx-grid.fdpx-history-grid {
    grid-template-columns: 1fr;
  }
}
