/* =====================================================
   stonegal-home.css - VERSIÓN DEFINITIVA (SIN DESBORDES)
   ===================================================== */

:root{
  --nse-navy:#190061;
  --nse-gold:#FFBB00;
  --nse-ink-weak:#cbd5e1;

  --nse-expositor:#9E0011;
  --nse-visitante:#000B3D;
  --nse-invitado:#450030;
  --nse-autoridad:#363636;
  --nse-vip:#012C3B;
  --nse-prensa:#00360E;

  --nse-navy-gradient: linear-gradient(180deg,#0a0030 0%,#190061 50%,#4a00ff 100%);
  --nse-expositor-gradient: linear-gradient(180deg,#5c0008 0%,#9E0011 50%,#ff1a3a 100%);
  --nse-visitante-gradient: linear-gradient(180deg,#00020e 0%,#000B3D 50%,#0033cc 100%);
  --nse-invitado-gradient: linear-gradient(180deg,#2a001e 0%,#450030 50%,#a80079 100%);
  --nse-autoridad-gradient: linear-gradient(180deg,#0d0d0d 0%,#363636 50%,#737373 100%);
  --nse-vip-gradient: linear-gradient(180deg,#000f14 0%,#012C3B 50%,#0184b3 100%);
  --nse-prensa-gradient: linear-gradient(180deg,#001904 0%,#00360E 50%,#00a32e 100%);

  --nse-info-lineheight:1.1;
  --nse-label-size:11px;
  --nse-value-size:14px;
}

/* ================= CONTENEDOR PRINCIPAL ================= */

.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 12px;
    width: 100%;
    box-sizing: border-box;
}

/* ================= TARJETA DE ACREDITACIÓN ================= */

.nse-wrap-outer {
    background: transparent;
    min-height: auto;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans', system-ui, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.nse-card {
    width: 100%;
    max-width: 100%;
    background: var(--nse-navy-gradient);
    color: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 24px 16px;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
    border: none;
}

/* Variantes */
.nse-card--expositor{background:var(--nse-expositor-gradient);}
.nse-card--visitante{background:var(--nse-visitante-gradient);}
.nse-card--invitado{background:var(--nse-invitado-gradient);}
.nse-card--autoridad{background:var(--nse-autoridad-gradient);}
.nse-card--vip{background:var(--nse-vip-gradient);}
.nse-card--prensa{background:var(--nse-prensa-gradient);}

/* ================= HEADER ================= */

.nse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 16px 16px 0 16px;
    padding: 0;
    border-bottom: none !important;
}

.nse-card-logo {
    height: 52px;
    width: auto;
    display: block;
}

.nse-card-link {
    font-family: 'Noto Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

.nse-card-link:hover {
    text-decoration: underline;
}

/* ================= INFO ================= */

.nse-info-section {
    margin: 0 8px;
    padding: 16px 0 8px 0;
    display: flex;
    flex-direction: column;
}

.nse-info-row {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 9px;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.nse-info-label {
    font-size: var(--nse-label-size);
    color: var(--nse-ink-weak);
    flex: 1;
    line-height: var(--nse-info-lineheight);
    letter-spacing: 1px;
}

.nse-info-value {
    font-size: var(--nse-value-size);
    font-weight: 800;
    flex: 1;
    text-align: right;
    line-height: var(--nse-info-lineheight);
    word-break: break-word;
}

/* ====== 2 IDIOMAS ====== */

.nse-label-es {
    display: block;
    font-weight: 400;
    text-transform: uppercase;
}

.nse-label-en {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ================= QR - TAMAÑO MAXIMIZADO ================= */

.nse-qr-section {
    display: flex;
    justify-content: center;
    padding: 20px 0 12px 0;
    width: 100%;
}

.nse-qr-container {
    background: var(--nse-gold);
    border-radius: 14px;
    padding: 20px;
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
}

.nse-qr-inner {
    background: white;
    border-radius: 6px;
    padding: 12px;
    display: inline-block;
    box-sizing: border-box;
}

.nse-qr {
    width: 200px;
    height: 200px;
    position: relative;
    display: block;
    margin: 0 auto;
}

.nse-qr canvas,
.nse-qr img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ajustes responsive */
@media (max-width: 600px) {
    .nse-qr-section {
        padding: 18px 0 10px 0;
    }
    .nse-qr-container {
        padding: 18px;
    }
    .nse-qr-inner {
        padding: 10px;
    }
    .nse-qr {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .nse-qr-section {
        padding: 16px 0 8px 0;
    }
    .nse-qr-container {
        padding: 16px;
    }
    .nse-qr-inner {
        padding: 8px;
    }
    .nse-qr {
        width: 160px;
        height: 160px;
    }
}

/* ================= FOOTER ================= */

.nse-card-footer {
    margin-top: 8px;
    padding: 8px 8px 0 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.nse-scan-text {
    font-size: 15px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: white;
}

.nse-scan-text .nse-label-es,
.nse-scan-text .nse-label-en {
    display: block;
}

.nse-footer-link {
    display: inline-block;
    font-size: 16px;
    text-decoration: underline;
    color: var(--nse-gold);
    line-height: 1.1;
    padding: 4px 0;
}

.nse-footer-link .nse-label-es,
.nse-footer-link .nse-label-en {
    display: block;
}

.nse-footer-link .nse-label-en {
    font-weight: 800;
    margin-top: 2px;
}

.nse-conditions {
    margin-top: 14px;
}

.nse-conditions a {
    font-size: 14px;
    color: white;
    text-decoration: none;
    line-height: 1.2;
    word-break: break-all;
}

.nse-copyright {
    font-size: 14px;
    margin-top: 8px;
    color: white;
}

/* ================== MÓVIL ================== */

@media (max-width: 680px) {
    .app-container {
        padding: 12px 10px;
    }
    
    .nse-card {
        padding: 20px 14px;
    }
    
    .nse-card-header {
        margin: 0 6px 0 6px;
    }
    
    .nse-card-logo {
        height: 44px;
    }
    
    .nse-info-section {
        margin: 0 6px;
    }
    
    .nse-info-row {
        margin-bottom: 10px;
        padding-bottom: 8px;
        gap: 8px;
    }
    
    .nse-qr-section {
        padding: 12px 0 4px 0;
    }
    
    .nse-qr-container {
        padding: 12px;
    }
    
    .nse-qr-inner {
        padding: 5px;
    }
    
    .nse-qr {
        width: 160px;
        height: 160px;
    }
    
    .nse-scan-text {
        margin-top: 6px;
        margin-bottom: 6px;
        font-size: 12px;
    }
    
    .nse-footer-link {
        font-size: 12px;
    }
    
    .nse-conditions {
        margin-top: 12px;
    }
    
    .nse-conditions a,
    .nse-copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 8px 8px;
    }
    
    .nse-card {
        padding: 18px 12px;
    }
    
    .nse-card-header {
        margin: 0 4px 0 4px;
    }
    
    .nse-card-logo {
        height: 42px;
    }
    
    .nse-info-section {
        margin: 0 4px;
    }
    
    .nse-info-row {
        gap: 6px;
    }
    
    .nse-qr-container {
        padding: 10px;
    }
    
    .nse-qr {
        width: 150px;
        height: 150px;
    }
    
    .nse-scan-text {
        font-size: 11px;
    }
    
    .nse-footer-link {
        font-size: 11px;
    }
}

/* ================= ERROR MESSAGES ================= */

.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 20px auto;
}

/* =====================================================
   ESTILOS PARA ANUNCIOS DINÁMICOS - VERSIÓN PREMIUM
   ===================================================== */

.announcements-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 20px 0 30px 0;
}

.announcement-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    width: 100%;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
}

.announcement-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Tipos de anuncio con fondo de color */
.announcement-summit {
    background: linear-gradient(145deg, #f0f4ff, #e6ecff);
    border-bottom: 4px solid #190061;
}

.announcement-alert {
    background: linear-gradient(145deg, #fff5f5, #ffeaea);
    border-bottom: 4px solid #e74c3c;
}

.announcement-info {
    background: linear-gradient(145deg, #f0f9ff, #e6f3ff);
    border-bottom: 4px solid #3498db;
}

.announcement-success {
    background: linear-gradient(145deg, #f0fff4, #e6ffe6);
    border-bottom: 4px solid #27ae60;
}

/* Cabecera del anuncio con icono y título */
.announcement-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.announcement-icon {
    font-size: 2.8rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.announcement-title-group {
    flex: 1;
}

.announcement-title-group h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e2b2c;
    line-height: 1.2;
}

.announcement-title-group h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    color: #5b6e6f;
    line-height: 1.3;
}

/* Contenido del anuncio */
.announcement-content {
    padding: 16px 20px;
}

.announcement-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 16px;
}

/* Imagen destacada */
.announcement-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 0 16px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.02);
}

/* Botón de acción */
.announcement-footer {
    padding: 16px 20px 20px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: right;
}

.announcement-button {
    display: inline-block;
    background: #190061;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(25,0,97,0.2);
}

.announcement-button:hover {
    background: #2a0a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(25,0,97,0.3);
}

.announcement-button i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Badge de nuevo/importante */
.announcement-badge {
    display: inline-block;
    background: #FFBB00;
    color: #190061;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 600px) {
    .announcement-header {
        padding: 16px 16px 8px 16px;
        gap: 12px;
    }
    
    .announcement-icon {
        font-size: 2.2rem;
        min-width: 50px;
        height: 50px;
    }
    
    .announcement-title-group h1 {
        font-size: 1.3rem;
    }
    
    .announcement-title-group h3 {
        font-size: 1rem;
    }
    
    .announcement-content {
        padding: 12px 16px;
    }
    
    .announcement-content p {
        font-size: 0.95rem;
    }
    
    .announcement-footer {
        padding: 12px 16px 16px 16px;
    }
    
    .announcement-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .announcement-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px 12px 16px;
    }
    
    .announcement-icon {
        margin-bottom: 5px;
    }
    
    .announcement-title-group h1 {
        font-size: 1.2rem;
    }
    
    .announcement-title-group h3 {
        font-size: 0.95rem;
    }
    
    .announcement-footer {
        text-align: center;
    }
    
    .announcement-button {
        width: 100%;
        text-align: center;
    }
}

/* Destacados automáticos desde miniwebs */
.auto-featured-header { margin-top: 26px; }
.auto-featured-exhibitors { margin-top: 14px; }
.auto-featured-card .announcement-header { align-items: center; }
.auto-featured-logo { padding: 0; overflow: hidden; background: #fff; }
.auto-featured-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auto-featured-card .announcement-content p { margin-bottom: 0; }
.auto-featured-card .announcement-footer { padding-top: 0; }


/* v3.6.7 - Featured exhibitor card image fix */
.stonegal-auto-featured-card .stonegal-auto-featured-image,
.stonegal-featured-exhibitor-card .stonegal-featured-exhibitor-image,
.stonegal-featured-card .stonegal-featured-image,
.stonegal-featured-card .stonegal-announcement-image,
.stonegal-home-featured-card .stonegal-home-featured-image {
    width: 100% !important;
    height: 210px !important;
    max-height: 210px !important;
    overflow: hidden !important;
    border-radius: 22px 22px 0 0 !important;
    background: #ffffff !important;
}

.stonegal-auto-featured-card .stonegal-auto-featured-image img,
.stonegal-featured-exhibitor-card .stonegal-featured-exhibitor-image img,
.stonegal-featured-card .stonegal-featured-image img,
.stonegal-featured-card .stonegal-announcement-image img,
.stonegal-home-featured-card .stonegal-home-featured-image img,
.stonegal-auto-featured img,
.stonegal-featured-exhibitors img {
    width: 100% !important;
    height: 210px !important;
    max-height: 210px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

@media (max-width: 680px) {
    .stonegal-auto-featured-card .stonegal-auto-featured-image,
    .stonegal-featured-exhibitor-card .stonegal-featured-exhibitor-image,
    .stonegal-featured-card .stonegal-featured-image,
    .stonegal-featured-card .stonegal-announcement-image,
    .stonegal-home-featured-card .stonegal-home-featured-image {
        height: 190px !important;
        max-height: 190px !important;
    }

    .stonegal-auto-featured-card .stonegal-auto-featured-image img,
    .stonegal-featured-exhibitor-card .stonegal-featured-exhibitor-image img,
    .stonegal-featured-card .stonegal-featured-image img,
    .stonegal-featured-card .stonegal-announcement-image img,
    .stonegal-home-featured-card .stonegal-home-featured-image img,
    .stonegal-auto-featured img,
    .stonegal-featured-exhibitors img {
        height: 190px !important;
        max-height: 190px !important;
    }
}


/* v3.6.8 - Auto featured real image layout */
.auto-featured-card .announcement-link-wrapper{
    display:block !important;
    overflow:hidden !important;
}

.auto-featured-card .auto-featured-media{
    width:100% !important;
    height:220px !important;
    overflow:hidden !important;
    background:#fff !important;
    border-radius:22px 22px 0 0 !important;
    margin:0 !important;
}

.auto-featured-card .auto-featured-media img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    display:block !important;
}

.auto-featured-card .auto-featured-title-header{
    display:block !important;
    text-align:center !important;
    padding:22px 22px 16px !important;
}

.auto-featured-card .auto-featured-title-header .announcement-title-group{
    width:100% !important;
}

.auto-featured-card .auto-featured-title-header h1{
    margin:0 !important;
}

.auto-featured-card .auto-featured-logo{
    display:none !important;
}

@media (max-width:680px){
    .auto-featured-card .auto-featured-media{
        height:210px !important;
    }
}



/* =====================================================
   v3.6.9.2 - Visual polish SIN tocar menús
   ===================================================== */

:root{
  --sg-black:#0f0f10;
  --sg-ink:#202124;
  --sg-muted:#6b6b6b;
  --sg-soft:#f7f7f5;
  --sg-border:rgba(15,15,16,.10);
  --sg-yellow:#fec904;
  --sg-white:#ffffff;
  --sg-radius:22px;
  --sg-shadow:0 12px 32px rgba(15,15,16,.08);
}

/* NO tocar menús: nada de .main-navigation, .menu-toggle, nav global, GeneratePress, etc. */

/* Sistema tipográfico general */
.stonegal-home,
.stonegal-app-home,
.home-app-content,
.app-home{
  font-family:"Noto Sans", Arial, sans-serif;
  color:var(--sg-ink);
}

/* Headers de sección */
.section-header,
.auto-featured-header,
.stonegal-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:40px 0 18px !important;
  padding:0 2px;
  border:0 !important;
}

.section-header h4,
.auto-featured-header h4,
.stonegal-section-head h2{
  margin:0 !important;
  font-size:22px !important;
  line-height:1.12 !important;
  font-weight:800 !important;
  letter-spacing:-.02em;
  color:var(--sg-black) !important;
}

.section-header .english,
.auto-featured-header .english,
.stonegal-section-head p{
  color:var(--sg-muted) !important;
  font-weight:500 !important;
  font-size:13px !important;
}

.section-header a,
.auto-featured-header a{
  color:var(--sg-black) !important;
  font-size:13px !important;
  font-weight:800 !important;
  text-decoration:none !important;
  border-bottom:2px solid var(--sg-yellow);
  padding-bottom:3px;
}

/* Grids */
.announcements-container,
.auto-featured-exhibitors,
.stonegal-announcements-grid,
.stonegal-featured-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
  gap:18px !important;
  margin:0 0 42px !important;
}

/* Card base sin verdes/morados heredados */
.announcement-card,
.auto-featured-card,
.stonegal-announcement-card,
.stonegal-featured-card{
  background:var(--sg-white) !important;
  color:var(--sg-ink) !important;
  border:1px solid var(--sg-border) !important;
  border-left:1px solid var(--sg-border) !important;
  border-radius:var(--sg-radius) !important;
  box-shadow:var(--sg-shadow) !important;
  overflow:hidden !important;
  padding:0 !important;
  margin:0 !important;
  transform:none !important;
}

.announcement-card::before,
.auto-featured-card::before,
.stonegal-announcement-card::before,
.stonegal-featured-card::before{
  display:none !important;
}

.announcement-success,
.announcement-info,
.announcement-warning,
.announcement-urgent{
  background:var(--sg-white) !important;
  border-color:var(--sg-border) !important;
  border-left-color:var(--sg-border) !important;
}

.announcement-link-wrapper,
.auto-featured-card .announcement-link-wrapper,
.stonegal-announcement-card,
.stonegal-featured-card{
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
}

/* Destacados: composición editorial pedida:
   1. Nombre
   2. Foto
   3. Texto
*/
.auto-featured-editorial .auto-featured-title-header{
  background:transparent !important;
  padding:24px 22px 18px !important;
  margin:0 !important;
  border:0 !important;
  text-align:left !important;
  display:block !important;
}

.auto-featured-editorial .announcement-title-group{
  width:100% !important;
}

.auto-featured-editorial .announcement-title-group h1{
  margin:0 !important;
  color:var(--sg-black) !important;
  font-size:22px !important;
  line-height:1.14 !important;
  font-weight:850 !important;
  letter-spacing:-.025em !important;
  text-transform:none !important;
}

.auto-featured-editorial .announcement-title-group h3{
  margin:7px 0 0 !important;
  color:var(--sg-muted) !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:650 !important;
}

.auto-featured-editorial .auto-featured-media{
  width:calc(100% - 44px) !important;
  height:210px !important;
  overflow:hidden !important;
  background:var(--sg-soft) !important;
  border-radius:16px !important;
  margin:0 22px 0 !important;
}

.auto-featured-editorial .auto-featured-media img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
}

/* Imágenes de otros anuncios */
.announcement-card .announcement-image,
.stonegal-announcement-image,
.stonegal-featured-image{
  width:100% !important;
  height:210px !important;
  overflow:hidden !important;
  background:var(--sg-soft) !important;
  border-radius:0 !important;
  margin:0 !important;
}

.announcement-card .announcement-image img,
.stonegal-announcement-image img,
.stonegal-featured-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
}

/* Cabecera general de cards */
.announcement-header:not(.auto-featured-title-header){
  background:transparent !important;
  padding:22px 22px 8px !important;
  margin:0 !important;
  border:0 !important;
  text-align:left !important;
  display:block !important;
}

.announcement-title-group h1,
.announcement-card h1,
.stonegal-announcement-card h3,
.stonegal-featured-card h3{
  margin:0 !important;
  color:var(--sg-black) !important;
  font-size:20px !important;
  line-height:1.16 !important;
  font-weight:850 !important;
  letter-spacing:-.02em !important;
  text-transform:none !important;
}

.announcement-title-group h3{
  margin:6px 0 0 !important;
  color:var(--sg-muted) !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:600 !important;
}

/* Contenido */
.announcement-content,
.auto-featured-card .announcement-content,
.stonegal-announcement-content{
  padding:18px 22px 20px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
}

.announcement-content p,
.auto-featured-card .announcement-content p,
.stonegal-announcement-content p{
  margin:0 !important;
  color:var(--sg-muted) !important;
  font-size:15px !important;
  line-height:1.58 !important;
  font-weight:400 !important;
}

/* Badges sobrios */
.announcement-icon,
.auto-featured-logo{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

.announcement-badge,
.stonegal-announcement-badge{
  background:var(--sg-yellow) !important;
  color:var(--sg-black) !important;
  border-radius:999px !important;
  padding:4px 9px !important;
  font-size:11px !important;
  font-weight:850 !important;
  letter-spacing:.02em !important;
}

/* Botón único */
.announcement-footer{
  padding:0 22px 22px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
}

.announcement-card .announcement-button,
.auto-featured-card .announcement-button,
.token-form button,
.whatsapp-direct-box button,
.stonegal-whatsapp-direct button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-height:44px !important;
  padding:0 18px !important;
  border-radius:999px !important;
  background:var(--sg-black) !important;
  color:var(--sg-white) !important;
  font-size:14px !important;
  font-weight:850 !important;
  text-decoration:none !important;
  border:1px solid var(--sg-black) !important;
  box-shadow:none !important;
}

.announcement-card:hover .announcement-button,
.auto-featured-card:hover .announcement-button,
.announcement-card .announcement-button:hover,
.token-form button:hover,
.whatsapp-direct-box button:hover,
.stonegal-whatsapp-direct button:hover{
  background:var(--sg-yellow) !important;
  border-color:var(--sg-yellow) !important;
  color:var(--sg-black) !important;
}

/* WhatsApp/input sin tocar menús */
.token-form,
.whatsapp-direct-box,
.stonegal-whatsapp-direct,
#stonegal-whatsapp-direct{
  background:var(--sg-white) !important;
  border:1px solid var(--sg-border) !important;
  box-shadow:var(--sg-shadow) !important;
  border-radius:var(--sg-radius) !important;
  padding:20px !important;
}

.token-form input,
.whatsapp-direct-box input,
.stonegal-whatsapp-direct input,
#wa_phone{
  width:100% !important;
  min-height:46px !important;
  border:1px solid var(--sg-border) !important;
  border-radius:14px !important;
  padding:0 14px !important;
  font-size:15px !important;
  color:var(--sg-black) !important;
  background:var(--sg-white) !important;
  box-shadow:none !important;
  outline:none !important;
}

.token-form input:focus,
.whatsapp-direct-box input:focus,
.stonegal-whatsapp-direct input:focus,
#wa_phone:focus{
  border-color:var(--sg-yellow) !important;
  box-shadow:0 0 0 3px rgba(254,201,4,.18) !important;
}

.auto-featured-exhibitors{
  margin-bottom:52px !important;
}

.auto-featured-header{
  margin-top:52px !important;
}

/* Responsive */
@media (max-width:680px){
  .section-header,
  .auto-featured-header,
  .stonegal-section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
    margin:32px 0 16px !important;
  }

  .section-header h4,
  .auto-featured-header h4,
  .stonegal-section-head h2{
    font-size:21px !important;
  }

  .announcements-container,
  .auto-featured-exhibitors,
  .stonegal-announcements-grid,
  .stonegal-featured-grid{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .auto-featured-editorial .auto-featured-title-header{
    padding:22px 20px 16px !important;
  }

  .auto-featured-editorial .auto-featured-media{
    width:calc(100% - 40px) !important;
    height:200px !important;
    margin:0 20px 0 !important;
  }

  .announcement-card .announcement-image,
  .stonegal-announcement-image,
  .stonegal-featured-image{
    height:200px !important;
  }

  .announcement-header:not(.auto-featured-title-header){
    padding:20px 20px 8px !important;
  }

  .announcement-content,
  .auto-featured-card .announcement-content,
  .stonegal-announcement-content{
    padding:16px 20px 18px !important;
  }

  .announcement-footer{
    padding:0 20px 20px !important;
  }
}

@media (max-width:420px){
  .auto-featured-editorial .auto-featured-media,
  .announcement-card .announcement-image,
  .stonegal-announcement-image,
  .stonegal-featured-image{
    height:190px !important;
  }

  .auto-featured-editorial .announcement-title-group h1,
  .announcement-title-group h1,
  .announcement-card h1{
    font-size:20px !important;
  }
}



/* =====================================================
   v3.6.9.3 - Final stable: QR / Access / Logout protection
   El polish no debe afectar a la tarjeta de acreditación, QR,
   acceso ni cierre de sesión.
   ===================================================== */

/* Logout visible */
a[href*="logout"],
a[href*="wp-login.php?action=logout"],
.logout,
.log-out,
.sign-out,
.signout,
.stonegal-logout,
.nse-logout {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Botón circular de acceso/QR visible */
.access-button,
.qr-button,
.qr-access-button,
.nse-access-button,
.stonegal-access-button,
a[href*="qr"],
a[href*="access"],
a[href*="acceso"] {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Tarjeta QR/acreditación: no hereda cards de anuncios */
.qr-card,
.access-card,
.nse-access-card,
.stonegal-access-card,
.accreditation-card,
.accreditation-qr,
.visitor-card,
.visitor-credential,
.nse-credential,
.credential-card {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Evita que el sistema de cards de anuncios toque la credencial */
.qr-card *,
.access-card *,
.nse-access-card *,
.stonegal-access-card *,
.accreditation-card *,
.accreditation-qr *,
.visitor-card *,
.visitor-credential *,
.nse-credential *,
.credential-card * {
  visibility: visible !important;
}

/* No aplicar look de botón negro a enlaces internos de la tarjeta QR */
.qr-card a,
.access-card a,
.nse-access-card a,
.stonegal-access-card a,
.accreditation-card a,
.accreditation-qr a,
.visitor-card a,
.visitor-credential a,
.nse-credential a,
.credential-card a {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Refuerzo para la imagen QR */
.qr-card img,
.access-card img,
.nse-access-card img,
.stonegal-access-card img,
.accreditation-card img,
.accreditation-qr img,
.visitor-card img,
.visitor-credential img,
.nse-credential img,
.credential-card img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 100% !important;
}

/* Evita esconder acciones superiores del home cuando hay usuario logueado */
.user-actions,
.home-user-actions,
.stonegal-user-actions,
.app-user-actions,
.access-actions,
.qr-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
