/* Opinologia Theme — Estilos principales */

:root {
  /* Tipografía */
  --font-primary: 'Syne', sans-serif;

  /* Colores */
  --color-magenta: #e9337b;
  --color-negro: #000000;
  --color-verde: #438a55;
  --color-azul: #4da1c3;
  --color-blanco: #ffffff;
  --color-gris-claro: #f5f5f5;
  --color-gris-texto: #666666;
}

/* ===================
   RESET & BASE
=================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Syne', sans-serif; background: #F8F8F8; color: #111; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ===================
   HEADER / NAV
=================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav .container {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links a {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    transition: color .15s;
}

.nav-links a:hover { color: var(--color-magenta); }

.nav-cta {
    background: var(--color-magenta);
    color: #fff;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    transition: opacity .15s;
}

.nav-cta:hover { opacity: 0.88; }

/* ===================
   FOOTER
=================== */
.site-footer {
    background: #050505;
    padding: 72px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.ft-brand {}

.ft-logo {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    margin-bottom: 12px;
}

.ft-logo span { color: var(--color-magenta); }

.ft-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    line-height: 1.65;
}

.ft-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    transition: color .15s;
}

.ft-col ul a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ft-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}

.ft-legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    transition: color .15s;
}

.ft-legal a:hover { color: rgba(255,255,255,0.5); }

/* ===================
   HERO
=================== */
.hero {
    background: #050505;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -120px; right: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(233,51,123,0.14) 0%, transparent 65%);
    pointer-events: none;
}

.hero-glow2 {
    position: absolute;
    bottom: -100px; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(233,51,123,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(233,51,123,0.12);
    border: 1px solid rgba(233,51,123,0.22);
    color: var(--color-magenta);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.tag-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-magenta);
}

.hero-h1 {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    line-height: 1.04;
    letter-spacing: -1.8px;
    margin-bottom: 22px;
    max-width: 640px;
}

.hero-h1 em {
    color: var(--color-magenta);
    font-style: normal;
}

.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    background: var(--color-magenta);
    color: #fff;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity .15s;
}

.btn-primary:hover { opacity: 0.88; color: #fff; }

.btn-arrow {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.btn-secondary {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 14px 28px;
    font-size: 13px;
    border-radius: 12px;
    transition: background .15s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===================
   SERVICIOS
=================== */
.servicios {
    background: #fff;
    padding: 80px 0;
}

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.sec-title-bar {
    width: 28px;
    height: 3px;
    background: var(--color-magenta);
    border-radius: 2px;
    margin-bottom: 10px;
}

.sec-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.sec-link {
    font-size: 12px;
    color: var(--color-magenta);
    font-weight: 700;
    transition: opacity .15s;
}

.sec-link:hover { opacity: 0.75; }

.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #ebebeb;
}

.srv-card {
    background: #fff;
    padding: 40px 32px;
    border-bottom: 3px solid transparent;
    transition: border-color .2s, background .2s;
    position: relative;
    cursor: pointer;
}

.srv-card:hover {
    border-bottom-color: rgba(233,51,123,0.35);
}

.srv-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-magenta);
    margin-bottom: 14px;
}

.srv-name {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 12px;
}

.srv-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
}

/* Servicios section wrapper (portada) */
.srv-section {
    background: #fff;
    padding-top: 80px;
}

.srv-section .sec-head {
    margin-bottom: 40px;
}

/* Card overlay link */
.srv-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ===================
   ENCUESTAS
=================== */
.encuestas {
    background: #F8F8F8;
    padding: 80px 0;
}

.enc-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
}

.enc-left {
    background: #0A0A0A;
    padding: 44px 40px;
}

.enc-right {
    background: #0d0d0d;
    padding: 44px 40px;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.enc-badge {
    display: inline-flex;
    background: rgba(233,51,123,0.15);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.enc-badge span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-magenta);
}

.enc-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.enc-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 28px;
    line-height: 1.7;
}

.enc-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-magenta);
    transition: opacity .15s;
}

.enc-cta:hover { opacity: 0.75; }

.viz-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}

.enc-dato-texto {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
}

.estudios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

.est-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    border: 1px solid rgba(0,0,0,0.07);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    display: block;
    color: inherit;
}

.est-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    border-color: rgba(233,51,123,0.3);
}

.est-pip {
    width: 26px;
    height: 3px;
    background: var(--color-magenta);
    border-radius: 100px;
    margin-bottom: 12px;
}

.est-tag {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-magenta);
    margin-bottom: 7px;
}

.est-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 10px;
}

.est-meta {
    font-size: 10px;
    color: #bbb;
}

.est-arrow {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 11px;
    color: #ddd;
    transition: color .2s;
}

.est-card:hover .est-arrow { color: var(--color-magenta); }

.archivo-wrap { text-align: center; }

.archivo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 38px;
    border: 1.5px solid var(--color-magenta);
    color: var(--color-magenta);
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    transition: background .15s, color .15s;
}

.archivo-btn:hover {
    background: var(--color-magenta);
    color: #fff;
}

/* ===================
   CTA FINAL
=================== */
.cta-final {
    background: var(--color-magenta);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -80px; right: -60px;
    width: 360px; height: 360px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta-glow2 {
    position: absolute;
    bottom: -60px; left: 40%;
    width: 280px; height: 280px;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.cta-final .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.cta-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
}

.cta-h2 {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
}

.cta-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    max-width: 440px;
}

.cta-btn {
    background: #fff;
    color: var(--color-magenta);
    padding: 18px 36px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: opacity .15s;
}

.cta-btn:hover { opacity: 0.9; color: var(--color-magenta); }

/* ===================
   PAGE HEADER (Archivo)
=================== */

/*
 * GeneratePress inyecta CSS inline (css-output.php línea 383) con:
 *   .separate-containers .page-header { background-color: [content_bg]; }
 *   .page-header h1 { color: [title_color]; }
 * Esos selectores tienen mayor especificidad o aparecen después en el DOM.
 * Usamos !important en background y color para garantizar el override.
 */
.page-header {
    background-color: #050505 !important;
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
}

/* Títulos y subtextos del hero — override del color que GP inyecta en h1 */
.page-header .ph-title,
.page-header .page-header__title {
    color: #ffffff !important;
}

.page-header .ph-sub,
.page-header .page-header__subtitle,
.page-header .page-header__sub {
    color: rgba(255,255,255,0.55) !important;
}
.ph-glow {
    position: absolute;
    top: -80px; right: 0;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(233,51,123,0.13) 0%, transparent 65%);
    pointer-events: none;
}
.ph-glow2 {
    position: absolute;
    bottom: -60px; left: -40px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(233,51,123,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}
.ph-left { flex: 1; }
.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(233,51,123,0.12);
    border: 1px solid rgba(233,51,123,0.2);
    color: var(--color-magenta);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.ph-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-magenta);
}
.ph-title {
    font-size: 58px;
    font-weight: 800;
    color: #fff;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 18px;
}
.ph-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.42);
    line-height: 1.7;
    max-width: 480px;
}
.ph-right {
    flex-shrink: 0;
    text-align: right;
}
.ph-counter-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 6px;
}
.ph-counter-num {
    font-size: 52px;
    font-weight: 800;
    color: var(--color-magenta);
    line-height: 1;
    letter-spacing: -2px;
}
.ph-counter-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.22);
    margin-top: 4px;
}

/* ===================
   FILTER BAR
=================== */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid #E8E8E8;
    position: sticky;
    top: 68px;
    z-index: 100;
}
.filter-bar .container {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #F4F4F4;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    padding: 8px 34px 8px 14px;
    font-size: 12px;
    font-family: 'Syne', sans-serif;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 11px) center;
    transition: border-color .15s;
}
.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-magenta);
    outline: none;
}
.filter-divider {
    width: 1px;
    height: 24px;
    background: #E8E8E8;
    flex-shrink: 0;
}
.filter-search { position: relative; }
.filter-search input {
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    padding: 8px 14px 8px 34px;
    font-size: 12px;
    font-family: 'Syne', sans-serif;
    color: #444;
    width: 210px;
    background: #F4F4F4;
    transition: border-color .15s, width .2s;
}
.filter-search input:focus {
    outline: none;
    border-color: var(--color-magenta);
    background: #fff;
    width: 250px;
}
.filter-search input::placeholder { color: #bbb; }
.search-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.filter-submit {
    background: var(--color-magenta);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    transition: opacity .15s;
}
.filter-submit:hover { opacity: 0.85; }
.filter-reset {
    font-size: 11px;
    color: #ccc;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}
.filter-reset:hover { color: var(--color-magenta); }

/* ===================
   RESULTS BAR
=================== */
.results-bar { padding: 28px 0 18px; }
.results-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.results-count { font-size: 13px; color: #666; }
.results-count strong { color: #111; font-weight: 700; }

/* ===================
   ENCUESTAS GRID
=================== */
.encuestas-section { padding: 0 0 80px; }
.enc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.enc-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #E8E8E8;
    padding: 26px 24px 20px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: inherit;
}
.enc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-magenta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
    border-radius: 18px 18px 0 0;
}
.enc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.08);
    border-color: rgba(233,51,123,0.2);
}
.enc-card:hover::before { transform: scaleX(1); }
.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.card-tag.tema { background: rgba(233,51,123,0.09); color: var(--color-magenta); }
.card-tag.geo  { background: #F0F0F0; color: #888; }
.card-title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    margin-bottom: 18px;
    flex: 1;
}
.card-dato {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #F8F8F8;
    border-radius: 12px;
}
.card-dato-label {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    font-weight: 500;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-magenta);
    flex-shrink: 0;
}
.meta-text { font-size: 10px; color: #aaa; font-weight: 500; }
.card-footer {
    border-top: 1px solid #F0F0F0;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.card-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-magenta);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .15s;
}
.enc-card:hover .card-cta { gap: 10px; }
.cta-circle {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(233,51,123,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-magenta);
    transition: background .15s, border-color .15s;
}
.enc-card:hover .cta-circle {
    background: var(--color-magenta);
    color: #fff;
    border-color: var(--color-magenta);
}

/* ===================
   EMPTY STATE
=================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-icon { font-size: 36px; margin-bottom: 14px; opacity: 0.3; }

/* ===================
   SINGLE ENCUESTA
=================== */
.breadcrumb-bar {
    padding: 20px 0 0;
    background: #F4F4F4;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #999;
}
.breadcrumb a {
    font-size: 0.875rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--color-magenta); }
.breadcrumb-sep { font-size: 10px; color: #ccc; }
.breadcrumb-current { font-size: 12px; color: #555; font-weight: 500; }

.single-layout {
    background: #F4F4F4;
    padding: 24px 0 80px;
}

.single-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.single-main { min-width: 0; }

.single-sidebar {
    position: sticky;
    top: 88px;
}

/* Article Header */
.article-header {
    background: #fff;
    border-radius: 18px;
    padding: 40px 48px;
    margin-bottom: 20px;
}

.header-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tag-tema { background: rgba(233,51,123,0.1); color: var(--color-magenta); }
.tag-geo  { background: #F0F0F0; color: #777; }
.tag-year { background: #F0F0F0; color: #777; }

.article-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    max-width: 680px;
}

.article-deck {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    max-width: 660px;
    margin-bottom: 26px;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid #F0F0F0;
    flex-wrap: wrap;
}


.meta-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #bbb;
}

.meta-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Ficha Técnica */
.ficha-card {
    background: #0A0A0A;
    border-radius: 18px;
    padding: 36px 40px;
    margin-bottom: 20px;
}

.ficha-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 22px;
}

.ficha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ficha-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 5px;
}

.ficha-val {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    line-height: 1.4;
}

.ficha-val strong { color: var(--color-magenta); font-weight: 700; }

/* Single Content */
.single-content {
    background: #fff;
    border-radius: 18px;
    padding: 36px 40px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

/* Sidebar Cards */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.sb-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #bbb;
    margin-bottom: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    width: 100%;
    border: none;
    text-decoration: none;
    transition: opacity .15s;
    margin-bottom: 8px;
    cursor: pointer;
}

.action-btn:last-child { margin-bottom: 0; }

.action-btn.primary { background: var(--color-magenta); color: #fff; }
.action-btn.primary:hover { opacity: 0.9; color: #fff; }
.action-btn.dark { background: #0A0A0A; color: #fff; }
.action-btn.dark:hover { opacity: 0.85; color: #fff; }

.btn-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.btn-icon.pink { background: rgba(255,255,255,0.2); }
.btn-icon.dark-icon { background: rgba(255,255,255,0.1); }

.btn-text { font-size: 13px; font-weight: 600; line-height: 1.2; }
.btn-sub { font-size: 10px; opacity: 0.6; font-weight: 400; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.cloud-tag {
    padding: 5px 12px;
    background: #F4F4F4;
    border-radius: 100px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    border: 1px solid transparent;
    transition: border-color .15s, color .15s;
    text-decoration: none;
}

.cloud-tag:hover { border-color: var(--color-magenta); color: var(--color-magenta); }

/* Relacionadas */
.relacionadas { padding: 60px 0; background: #F4F4F4; }

.rel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.rel-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.rel-link {
    font-size: 12px;
    color: var(--color-magenta);
    font-weight: 700;
    transition: opacity .15s;
}

.rel-link:hover { opacity: 0.75; }

.rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rel-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    display: block;
    color: inherit;
}

.rel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.rel-pip {
    width: 24px; height: 3px;
    background: var(--color-magenta);
    border-radius: 100px;
    margin-bottom: 12px;
}

.rel-tag {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-magenta);
    margin-bottom: 7px;
}

.rel-title-card {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 10px;
}

.rel-meta { font-size: 10px; color: #bbb; }

.rel-arrow {
    position: absolute;
    bottom: 16px; right: 16px;
    font-size: 12px;
    color: #ddd;
    transition: color .2s;
}

.rel-card:hover .rel-arrow { color: var(--color-magenta); }
.empty-h { font-size: 20px; font-weight: 800; color: #333; margin-bottom: 8px; }
.empty-p { font-size: 13px; color: #999; }

/* ==============================================
   PAGE.PHP — Páginas estáticas
   ============================================== */


.page-header::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-header__inner {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #ffffff;
    margin: 12px 0 0;
    line-height: 1.1;
}

/* Mayor especificidad para ganar frente a h1 de GeneratePress */
.page-header .page-header__title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #ffffff;
}

.page-header__subtitle {
    margin-top: 16px;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.55);
    max-width: 600px;
    line-height: 1.6;
}


.breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.75);
}

/* Área de contenido */
.page-content {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.page-article {
    max-width: 780px;
    margin: 0 auto;
}

.page-article__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1a1a1a;
}

/* Tipografía del contenido Gutenberg */
.page-article__body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #050505;
    margin: 48px 0 16px;
    padding-left: 16px;
    border-left: 4px solid #FF006E;
}

.page-article__body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #050505;
    margin: 32px 0 12px;
}

.page-article__body p {
    margin-bottom: 20px;
}

.page-article__body a {
    color: #FF006E;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-article__body ul,
.page-article__body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.page-article__body li {
    margin-bottom: 8px;
}

.page-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 56px 0 48px;
    }

    .page-content {
        padding: 48px 0 72px;
    }

    .page-article__body h2 {
        font-size: 1.375rem;
    }
}
/* ==============================================
   MENÚ MÓVIL — Hamburger
   ============================================== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    cursor: pointer;
    order: 3;
    transition: border-color 0.2s ease;
}

.nav-toggle:hover {
    border-color: #FF006E;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #111;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animación X al abrir */
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Responsive ── */
@media (max-width: 768px) {

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    /* CTA FINAL: apilado vertical en mobile */
    .cta-final .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Menú desplegable */
    #nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background-color: #0a0a0a;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 16px 0;
        z-index: 99;
    }

    #nav-links.is-open {
        display: block;
    }

    #nav-links li {
        list-style: none;
    }

    #nav-links a {
        display: block;
        padding: 12px 24px;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    #nav-links a:hover {
        color: #FF006E;
        background-color: rgba(255, 0, 110, 0.05);
    }

    /* Bloquear scroll */
    body.menu-open {
        overflow: hidden;
    }

    /* Asegurar que el header sea el contexto de posicionamiento */
    .site-header {
        position: relative;
    }
}

/* ==============================================
   RESPONSIVE MOBILE — Fixes 375px
   ============================================== */
@media (max-width: 768px) {

  /* Contenedor base */
  .container { padding: 0 20px; }

  /* PROBLEMA 1 — HOME: Servicios */
  .srv-grid { grid-template-columns: 1fr; }

  /* PROBLEMA 2 — HOME: Encuestas recientes */
  .estudios-grid { grid-template-columns: 1fr; }

  /* PROBLEMA 3 — HOME: Encuesta destacada */
  .enc-featured {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .enc-left,
  .enc-right { width: 100%; }

  /* PROBLEMA 4 — ARCHIVE: Filtros */
  .filter-bar .container { height: auto; padding: 12px 20px; }
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-select { width: 100%; }
  .filter-search { width: 100%; }
  .filter-search input { width: 100%; }
  .filter-search input:focus { width: 100%; }
  .filter-submit { width: 100%; }
  .filter-divider { display: none; }

  /* PROBLEMA 5 — ARCHIVE: Grid de encuestas */
  .enc-grid { grid-template-columns: 1fr; }
  .enc-card { min-width: 0; width: 100%; }

  /* PROBLEMA 6 — ARCHIVE: Page header */
  .page-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .ph-right { margin-top: 24px; text-align: left; }
  .ph-counter-num { font-size: 3rem; }

  /* PROBLEMA 7 — SINGLE: Layout principal */
  .single-inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .single-main { order: 1; }
  .single-sidebar { order: 2; margin-top: 0; position: static; }

  /* PROBLEMA 8 — SINGLE: Ficha técnica (2 cols para mejor legibilidad) */
  .ficha-grid { grid-template-columns: 1fr 1fr; }

  /* PROBLEMA 9 — SINGLE: Encuestas relacionadas */
  .rel-grid { grid-template-columns: 1fr; }

  /* PROBLEMA 10 — SINGLE: Datos de publicación en 2 columnas */
  .header-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-direction: unset;
  }
}
/* Subtítulo del hero en page-servicios.php (clase page-header__sub) */
.page-header__sub {
    margin-top: 16px;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    font-family: 'Inter', sans-serif;
    max-width: 600px;
}

/* ── PAGE-SERVICIOS.PHP ──────────────────────────────────────────── */

.servicios-page {
    padding: 72px 0 96px;
}

.srv-bloque {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px 64px;
    padding: 56px 0;
    border-bottom: 1px solid #ebebeb;
}

.srv-bloque:first-of-type {
    padding-top: 0;
}

.srv-bloque__meta {
    padding-top: 6px;
}

.srv-bloque__num {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FF0090;
    margin-bottom: 10px;
}

.srv-bloque__nombre {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin: 0;
}

/* Especificidad alta para ganar frente a h2 de GeneratePress */
.servicios-page .srv-bloque__nombre {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.srv-bloque__cuerpo p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 18px;
}

.srv-bloque__cuerpo p:last-child {
    margin-bottom: 0;
}

.srv-bloque__cuerpo em {
    font-style: italic;
    color: #333;
}

/* CTA al pie */
.srv-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 0 0;
    gap: 24px;
    flex-wrap: wrap;
}

.srv-cta p {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.srv-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #FF0090;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity .2s;
    white-space: nowrap;
}

.srv-cta__btn:hover {
    opacity: 0.88;
    color: #fff;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .srv-bloque {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 40px 0;
    }

    .srv-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ============================================
   PÁGINA DE CONTACTO
   ============================================ */

.contacto-page {
  background: #F4F4F4;
  min-height: 60vh;
}

/* Hero */
.contacto-hero {
  background-color: #050505 !important;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.contacto-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,0,144,0.13) 0%, transparent 65%);
  pointer-events: none;
}

.contacto-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #FF0090;
  margin-bottom: 16px;
}

.contacto-titulo {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

/* Especificidad alta para ganar frente a h1 de GeneratePress */
.contacto-hero .contacto-titulo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #fff;
}

.contacto-subtitulo {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 480px;
}

/* Layout */
.contacto-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.contacto-body {
  padding: 48px 0 80px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

/* Card del formulario */
.contacto-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 44px;
}

.contacto-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #bbb;
  margin-bottom: 28px;
}

/* Cards de info */
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
}

.contacto-info-card.dark {
  background: #0A0A0A;
}

.contacto-info-card.accent {
  background: #FF0090;
}

.contacto-info-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #bbb;
  margin-bottom: 6px;
}

.contacto-info-card.dark .contacto-info-label,
.contacto-info-card.accent .contacto-info-label {
  color: rgba(255,255,255,0.45);
}

.contacto-info-valor {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.contacto-info-card.dark .contacto-info-valor,
.contacto-info-card.accent .contacto-info-valor {
  color: #fff;
}

/* Estilos para el formulario WPForms */
.contacto-card .wpforms-container .wpforms-field-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: #555 !important;
  margin-bottom: 6px !important;
}

.contacto-card .wpforms-container input[type="text"],
.contacto-card .wpforms-container input[type="email"],
.contacto-card .wpforms-container input[type="tel"],
.contacto-card .wpforms-container textarea {
  border: 1.5px solid #E8E8E8 !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  color: #111 !important;
  background: #FAFAFA !important;
  transition: border-color 0.15s !important;
  width: 100% !important;
}

.contacto-card .wpforms-container input:focus,
.contacto-card .wpforms-container textarea:focus {
  border-color: #FF0090 !important;
  outline: none !important;
  background: #fff !important;
}

.contacto-card .wpforms-container textarea {
  min-height: 130px !important;
  resize: vertical !important;
}

.contacto-card .wpforms-container .wpforms-submit {
  background: #FF0090 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 28px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: opacity 0.15s !important;
}

.contacto-card .wpforms-container .wpforms-submit:hover {
  opacity: 0.88 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-container {
    padding: 0 24px;
  }
  .contacto-titulo {
    font-size: 34px;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .contacto-card {
    padding: 28px 24px;
  }
}