/*
Theme Name: Premios FED
Theme URI: https://premiosfed.com.ar
Description: Theme a medida de los Premios FED. El contenido se administra con los plugins FED (Core, Galardones, Sponsors, Pop-up) de La Fábrica de Plugins.
Author: Mino Creative Studio
Author URI: https://minocreativestudio.com
Version: 1.0.8
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: premios-fed
*/

/* ═══ Tokens ════════════════════════════════════════════════════════════ */

:root {
    --fed-tinta:       #14171c;
    --fed-azul:        #2c7cb4;
    --fed-azul-claro:  #6caadc;
    --fed-amarillo:    #fcbf48;
    --fed-ocre:        #8a6410;
    --fed-hueso:       #f4f6f8;
    --fed-linea:       rgba(20, 23, 28, 0.10);

    --fed-font-serif: 'Playfair Display', Georgia, serif;
    --fed-font-sans:  Archivo, system-ui, -apple-system, sans-serif;

    --fed-ancho: 1320px;
    --fed-gutter: clamp(20px, 5vw, 48px);
}

/* ═══ Base ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    color: var(--fed-tinta);
    font-family: var(--fed-font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.fed-no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fed-azul); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

/*
 * El `display: none` que el navegador aplica a [hidden] viene de su hoja de
 * estilos, así que cualquier `display` de autor se lo come. Sin esto, filtrar
 * marcando `el.hidden = true` no oculta nada (las tarjetas son display:flex).
 */
[hidden] { display: none !important; }

::selection { background: var(--fed-amarillo); color: var(--fed-tinta); }

@keyframes fedUp   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fedFade { from { opacity: 0; } to { opacity: 1; } }

.fed-container {
    max-width: var(--fed-ancho);
    margin: 0 auto;
    padding-left: var(--fed-gutter);
    padding-right: var(--fed-gutter);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ═══ Tipografía compartida ═════════════════════════════════════════════ */

.fed-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fed-azul);
    margin-bottom: 18px;
}

.fed-h2 {
    font-family: var(--fed-font-serif);
    font-weight: 500;
    font-size: clamp(34px, 3.8vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    max-width: 24ch;
}

.fed-lead {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(20, 23, 28, 0.68);
    margin: 0 0 40px;
    max-width: 52ch;
}

/* ═══ Botones ═══════════════════════════════════════════════════════════ */

.fed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.fed-btn--solid { background: var(--fed-amarillo); color: var(--fed-tinta); }
.fed-btn--solid:hover { background: var(--fed-tinta); color: #fff; }

.fed-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.fed-btn--ghost:hover { background: #fff; color: var(--fed-tinta); }

/* ═══ Header ════════════════════════════════════════════════════════════ */

.fed-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 14px clamp(20px, 3vw, 40px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--fed-linea);
}

.fed-header__logo {
    display: flex;
    align-items: center;
    height: 52px;
}

.fed-header__logo img {
    /* Como en el diseño: el logo desborda el header hacia abajo y se
       superpone a la portada, en vez de quedar recortado arriba. */
    position: relative;
    top: 16px;
    height: clamp(64px, 8vw, 104px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(20, 23, 28, 0.1));
}

.fed-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(20, 23, 28, 0.68);
}

.fed-nav a {
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

/*
 * Ojo: el menú son todas anclas del home, así que WordPress marca TODOS los
 * ítems como current-menu-item. Por eso el estado activo es solo :hover.
 */
.fed-nav a:hover {
    color: var(--fed-azul);
    border-bottom-color: var(--fed-amarillo);
}

.fed-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 52px;
    height: 52px;
    padding: 0 12px;
    border: 1px solid rgba(20, 23, 28, 0.16);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.fed-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--fed-tinta);
    border-radius: 2px;
}

.fed-burger span:last-child { width: 70%; background: var(--fed-amarillo); }

/* Menú móvil a pantalla completa */
.fed-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px clamp(20px, 6vw, 40px) 32px;
    animation: fedFade 180ms ease both;
}

.fed-menu[hidden] { display: none; }

.fed-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.fed-menu__top img { height: clamp(56px, 9vh, 84px); width: auto; object-fit: contain; }

.fed-menu__close {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(20, 23, 28, 0.18);
    background: #fff;
    color: var(--fed-tinta);
    font-size: 18px;
    cursor: pointer;
}

.fed-menu ul {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.fed-menu li { border-bottom: 1px solid var(--fed-linea); }
.fed-menu li:last-child { border-bottom: 0; }

.fed-menu a {
    display: block;
    padding: clamp(12px, 2.4vh, 18px) 0;
    font-family: var(--fed-font-serif);
    font-size: clamp(22px, 3.4vh, 30px);
    color: var(--fed-tinta);
}

.fed-menu__contacto {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: rgba(20, 23, 28, 0.62);
}

.fed-menu__contacto a:first-child { color: var(--fed-azul); }

@media (max-width: 900px) {
    .fed-nav { display: none; }
    .fed-burger { display: flex; }
}

/* ═══ Hero ══════════════════════════════════════════════════════════════ */

.fed-hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--fed-linea);
}

.fed-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.02);
}

.fed-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.6) 0%, rgba(10, 14, 20, 0.35) 32%, rgba(10, 14, 20, 0.88) 100%);
}

.fed-hero__inner {
    position: relative;
    width: 100%;
    padding-bottom: clamp(52px, 7vw, 76px);
    animation: fedUp 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.fed-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 8px 16px;
    border: 1px solid rgba(252, 191, 72, 0.55);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f0f3f6;
}

.fed-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--fed-amarillo);
}

.fed-hero__title {
    font-family: var(--fed-font-serif);
    font-weight: 500;
    font-size: clamp(38px, 6.6vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 15ch;
    color: #fff;
}

.fed-hero__lead {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 56ch;
    margin: 0 0 40px;
    text-shadow: 0 1px 24px rgba(10, 14, 20, 0.45);
}

.fed-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ═══ Contadores ════════════════════════════════════════════════════════ */

.fed-stats { border-bottom: 1px solid var(--fed-linea); }

.fed-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(50%, 200px), 1fr));
}

.fed-stats__item {
    padding: 44px 32px;
    border-right: 1px solid var(--fed-linea);
}

.fed-stats__item:last-child { border-right: 0; }

.fed-stats__num {
    font-family: var(--fed-font-serif);
    font-size: 52px;
    line-height: 1;
    color: var(--fed-azul);
}

.fed-stats__label {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(20, 23, 28, 0.58);
}

/* ═══ Los premios ═══════════════════════════════════════════════════════ */

.fed-premios {
    margin-top: 80px;
    border-top: 1px solid var(--fed-linea);
    border-bottom: 1px solid var(--fed-linea);
    background: var(--fed-hueso);
}

.fed-premios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: stretch;
}

.fed-premios__texto { padding: clamp(56px, 8vw, 104px) clamp(0px, 5vw, 72px) clamp(56px, 8vw, 104px) 0; }

.fed-premios__media { position: relative; min-height: min(520px, 60vw); }

.fed-premios__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fed-premios__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(244, 246, 248, 0.95) 0%, rgba(244, 246, 248, 0.1) 55%, rgba(244, 246, 248, 0) 100%);
}

.fed-objetivos {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--fed-linea);
}

.fed-objetivos__item {
    display: flex;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--fed-linea);
}

.fed-objetivos__num {
    font-family: var(--fed-font-serif);
    font-size: 20px;
    color: var(--fed-azul);
    min-width: 36px;
}

.fed-objetivos__texto {
    font-size: 16.5px;
    line-height: 1.6;
    color: rgba(20, 23, 28, 0.8);
}

/* ═══ Proceso / jurado ══════════════════════════════════════════════════ */

.fed-proceso { padding: clamp(60px, 9vw, 110px) 0; }

.fed-proceso__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.fed-proceso__intro {
    margin: 0;
    max-width: 40ch;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(20, 23, 28, 0.65);
}

.fed-proceso__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 28px;
}

.fed-etapa {
    padding: 38px 34px;
    border: 1px solid var(--fed-linea);
    border-top: 2px solid var(--fed-azul-claro);
    background: rgba(20, 23, 28, 0.02);
}

.fed-etapa__num {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20, 23, 28, 0.5);
    margin-bottom: 22px;
}

.fed-etapa__titulo {
    font-family: var(--fed-font-serif);
    font-weight: 500;
    font-size: 26px;
    margin: 0 0 14px;
}

.fed-etapa__texto {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(20, 23, 28, 0.68);
}

/* ═══ Ediciones ═════════════════════════════════════════════════════════ */

.fed-ediciones {
    border-top: 1px solid var(--fed-linea);
    border-bottom: 1px solid var(--fed-linea);
    background: var(--fed-hueso);
    padding: clamp(56px, 8vw, 96px) 0;
}

.fed-ediciones__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
    margin-top: 44px;
}

.fed-edicion {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 32px;
    border: 1px solid var(--fed-linea);
    transition: background 180ms ease, border-color 180ms ease;
}

.fed-edicion:hover {
    border-color: rgba(252, 191, 72, 0.55);
    background: rgba(20, 23, 28, 0.03);
}

.fed-edicion--actual {
    border-color: rgba(252, 191, 72, 0.45);
    background: rgba(252, 191, 72, 0.07);
}

.fed-edicion--actual:hover { background: rgba(252, 191, 72, 0.14); }

.fed-edicion__tag {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20, 23, 28, 0.5);
}

.fed-edicion--actual .fed-edicion__tag { color: var(--fed-ocre); }

/* Son <span> dentro de un <a> flex: hay que forzarlos a bloque para que
   el año y el titular queden uno debajo del otro. */
.fed-edicion > span { display: block; }

.fed-edicion__anio {
    display: block;
    font-family: var(--fed-font-serif);
    font-size: 56px;
    line-height: 1;
    margin-bottom: 10px;
}

.fed-edicion__titular {
    display: block;
    font-size: 15px;
    color: rgba(20, 23, 28, 0.68);
}

/* ═══ Contacto ══════════════════════════════════════════════════════════ */

.fed-contacto {
    border-top: 1px solid var(--fed-linea);
    background: var(--fed-hueso);
    padding: clamp(56px, 8vw, 96px) 0;
}

.fed-contacto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.fed-contacto__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 38px 34px;
    border: 1px solid var(--fed-linea);
    background: rgba(20, 23, 28, 0.02);
}

.fed-contacto__card .fed-eyebrow {
    margin: 0;
    color: rgba(20, 23, 28, 0.5);
    letter-spacing: 0.18em;
}

.fed-contacto__mail {
    font-family: var(--fed-font-serif);
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--fed-tinta);
    word-break: break-word;
}

.fed-contacto__tel { font-size: 17px; color: rgba(20, 23, 28, 0.72); }

.fed-contacto .fed-lead { margin-bottom: 0; }

/* ═══ Footer ════════════════════════════════════════════════════════════ */

.fed-footer { border-top: 1px solid var(--fed-linea); }

.fed-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 44px;
    padding-bottom: 44px;
}

.fed-footer img { height: 40px; width: auto; object-fit: contain; opacity: 0.85; }

.fed-footer__nav ul {
    display: flex;
    flex-wrap: wrap;          /* en pantallas angostas, si no, desborda */
    justify-content: center;
    gap: 14px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(20, 23, 28, 0.55);
}

.fed-footer__legal { font-size: 13px; color: rgba(20, 23, 28, 0.45); }

.fed-footer__credito {
    color: inherit;
    border-bottom: 1px solid rgba(20, 23, 28, 0.2);
    transition: color 180ms ease, border-color 180ms ease;
}

.fed-footer__credito:hover {
    color: var(--fed-azul);
    border-bottom-color: var(--fed-amarillo);
}

/* ═══ Páginas internas ══════════════════════════════════════════════════ */

.fed-page { padding: clamp(48px, 7vw, 90px) 0; }

.fed-page__title {
    font-family: var(--fed-font-serif);
    font-weight: 500;
    font-size: clamp(34px, 4.4vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
}

.fed-page__content {
    max-width: 72ch;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(20, 23, 28, 0.78);
}

.fed-page__content h2,
.fed-page__content h3 {
    font-family: var(--fed-font-serif);
    font-weight: 500;
    line-height: 1.2;
    margin: 40px 0 14px;
}

.fed-page__content a { color: var(--fed-azul); text-decoration: underline; }
.fed-page__content img { margin: 24px 0; }

@media (max-width: 600px) {
    .fed-stats__item { border-right: 0; border-bottom: 1px solid var(--fed-linea); padding: 32px 0; }
    .fed-premios__texto { padding-right: 0; }
    .fed-footer__inner { justify-content: center; text-align: center; }
}
