/* Contienda — pulido de interfaz (Claude, 2026-10-22). Se carga al final; cada bloque es independiente y reversible. */

/* 1. Estandartes de comunidades: mismo marco para todos los logos (antes cada uno traía su propio fondo y tamaño). */
html body .ce-landing #comunidades .ce-communities { gap: 1.25rem; }
html body .ce-landing #comunidades .ce-communities li { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html body .ce-landing #comunidades .ce-community-identity { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.4rem 1rem 1.2rem; border: 1px solid rgba(198,164,97,.22); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, background-color .2s ease; }
html body .ce-landing #comunidades a.ce-community-identity:hover { transform: translateY(-3px); border-color: rgba(198,164,97,.55); }
html body .ce-landing #comunidades .ce-community-mark { display: grid !important; place-items: center; width: 7.5rem !important; height: 8.6rem !important; padding: .9rem .9rem 1.6rem !important; background: linear-gradient(180deg, #f3e9d6, #dccbaa) !important; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); border-radius: 0 !important; box-shadow: none !important; }
html body .ce-landing #comunidades .ce-community-mark .ce-logo { width: 100% !important; height: 100% !important; max-height: 5.4rem; padding: 0 !important; object-fit: contain !important; background: transparent !important; border: 0 !important; mix-blend-mode: multiply !important; }
html body .ce-landing #comunidades .ce-community-mark:has([data-community-mark="guardia-dragon"]) { background: linear-gradient(180deg, #111b28, #04080e) !important; } /* su logo trae fondo negro propio */
html body .ce-landing #comunidades .ce-community-mark:has([data-community-mark="guardia-dragon"]) .ce-logo { mix-blend-mode: normal !important; }
html body .ce-landing #comunidades .ce-community-name { font-family: var(--ce-title); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ce-parch); text-align: center; }

/* 2. Aliados: franja de marcas sobria, en color al pasar el cursor. */
html body .ce-landing .ce-allies .ce-communities { grid-template-columns: repeat(auto-fit, minmax(10rem, 13rem)); justify-content: start; }
html body .ce-landing .ce-allies .ce-communities li { background: rgba(255,255,255,.02) !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 14px !important; box-shadow: none !important; padding: 1.2rem 1rem !important; color: #a8b1bd !important; }
html body .ce-landing .ce-allies .ce-logo { background: transparent !important; border: 0 !important; filter: grayscale(1) brightness(1.15); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
html body .ce-landing .ce-allies li:hover .ce-logo { filter: none; opacity: 1; }

/* 3. Enlace al directorio dentro de su sección (antes era un botón suelto entre dos secciones). */
.ce-landing .ce-section-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--ce-gold-2); font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(198,164,97,.4); padding-bottom: 2px; }
.ce-landing .ce-section-link:hover { color: #ffffff; border-color: #ffffff; }

/* 4. Portada en móvil: que se vea Excalibur, no solo la empuñadura. */
@media (max-width: 600px) {
  html body .ce-landing .ce-hero { background-position: 77% center !important; }
  /* 5. Índice 01/02/03 en una sola fila deslizable en vez de partirse en dos líneas. */
  html body .ce-landing .ce-quicklinks .ce-wrap { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 1.25rem !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  html body .ce-landing .ce-quicklinks .ce-wrap::-webkit-scrollbar { display: none; }
  html body .ce-landing .ce-quicklinks a { flex: 0 0 auto; white-space: nowrap; }
}


@media (prefers-reduced-motion: reduce) {
  html body .ce-landing #comunidades .ce-community-identity, html body .ce-landing .ce-allies .ce-logo { transition: none; }
}

/* Bloque 1 · la barra de la portada (mu-plugin ce-system-guide) con rótulos legibles, sin tocar ese plugin. */
html body .ce-guide .guide-dock a{font-size:11px}

/* ===== Noche de lanzamiento (2026-11-05): capa final, misma paleta que el correo ===== */
/* Contienda Épica — capa «Noche de lanzamiento» (propuesta 2026-11-05).
   Misma paleta que el correo (class-mail-template.php): fondo #0a1018, panel #111a24, línea #2a3340,
   oro #c8aa6e, oro claro #f0e6d2, texto #c9cdd3. Se carga al final; el remapeo de colores fijos va aparte. */
@font-face{font-family:"Cinzel";src:url("/wp-content/plugins/contienda-core/assets/fonts/Cinzel.woff2") format("woff2");font-weight:400 900;font-display:swap}
:root{
  --ce-night:#0a1018;--ce-forest:#0a1018;--ce-moss:#111a24;--ce-panel:#111a24;--ce-raised:#151f2b;
  --ce-line:#2a3340;--ce-edge:#2a3340;--ce-gold:#c8aa6e;--ce-gold-2:#f0e6d2;--ce-parch:#eef0f3;
  --ce-text:#c9cdd3;--ce-muted:#8b929c;--ce-mist:#8b929c;
  --ce-title:"Cinzel","Trajan Pro",Georgia,serif;
  --ce-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --ce-glow:0 0 0 1px #0a1018,0 0 18px rgba(200,170,110,.25);
}
html body,html body.ce-live{background:#0a1018 radial-gradient(120% 70% at 50% -10%,#18263a 0%,#0a1018 60%) no-repeat fixed!important;color:#c9cdd3}
body,body .ce-app,body.ce-live{font-family:var(--ce-body)}

/* Titulares en Cinzel, como el correo */
h1,h2,h3,.wp-block-post-title,.wp-block-site-title,.brand,.brand span{font-family:var(--ce-title)!important;letter-spacing:.02em}
h1,h2{color:#f0e6d2}
h3{color:#e7dcc3}
h2{font-weight:700}
/* Cinzel es más ancha que Garamond: se reduce la escala para conservar los saltos de línea */
h1{font-size:clamp(1.9rem,3.6vw,3.1rem)!important;line-height:1.1!important;text-wrap:balance}
body.ce-live h2{font-size:clamp(1.1rem,1.6vw,1.5rem)!important;letter-spacing:.01em;text-wrap:balance}
body.ce-live h3{letter-spacing:0}
.wp-site-blocks h2{font-size:clamp(1.5rem,3vw,2.6rem)!important;line-height:1.15!important;text-wrap:balance}
.ce-hero h1{font-weight:700;letter-spacing:.015em;font-size:clamp(2.3rem,5.2vw,4.4rem)!important;line-height:1.05!important;text-shadow:0 2px 24px rgba(0,0,0,.6)}
.ce-hero h1 em{font-style:normal;color:#c8aa6e;background:linear-gradient(180deg,#f6ecd4 10%,#d8bb7e 80%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.edition-label,.eyebrow,.kicker{font-family:var(--ce-title);letter-spacing:.18em;color:#c8aa6e}

/* Paneles redondeados con borde de línea y filo dorado superior opcional */
.card,.panel,article,.simulator,details.ce-fold,.registered-identity a,.ce-app section>.box,
.live-card,.profile-detail>section,.profile-side>section,.directory-card,.community-card{border-radius:12px}

/* Botones: marco dorado y brillo suave (botón del correo) */
.ce-btn:not(.ce-btn-ghost),.btn.primary,a.button,.button.primary,.wp-block-button__link,.ce-app button.primary,button[type=submit]{
  background:#1a2430 linear-gradient(180deg,#22303e,#141c26)!important;color:#f0e6d2!important;
  border:2px solid #c8aa6e!important;border-radius:12px!important;box-shadow:var(--ce-glow)!important;
  font-family:var(--ce-title)!important;font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:.82rem}
.ce-btn:not(.ce-btn-ghost):hover,.btn.primary:hover,a.button:hover,.wp-block-button__link:hover,.ce-app button.primary:hover,button[type=submit]:hover{
  box-shadow:0 0 0 1px #0a1018,0 0 26px rgba(200,170,110,.42)!important;color:#fff!important}
.ce-btn-ghost,.btn:not(.primary),.button:not(.primary):not(a.button){border-radius:12px;border-color:#2a3340;background:#111a24}
.ce-btn-ghost,.btn:not(.primary){color:#f0e6d2;border:1px solid #3a4350}
.ce-btn-ghost{font-family:var(--ce-title);font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem}
.ce-btn-ghost:hover,.btn:not(.primary):hover{border-color:#c8aa6e;box-shadow:0 0 14px rgba(200,170,110,.18)}

/* Cabecera y barra lateral */
.wp-site-blocks>header,.live-public-header,.sidebar{background:rgba(10,16,24,.92);border-color:#2a3340}
.navitem.active{background:rgba(200,170,110,.1);box-shadow:inset 2px 0 #c8aa6e;color:#f0e6d2}
input,select,textarea{border-radius:10px}
@media(max-width:480px){.ce-btn,.btn.primary,.ce-app button.primary{letter-spacing:.07em!important;font-size:.76rem!important}}
