/* =============================================
   LTG Single Oferta
   ============================================= */

.so-page { font-family: var(--ltg-font); background: var(--ltg-bg); min-height: 100vh; overflow-x: hidden; }

/* ── Hero ── */
.so-hero { background: var(--ltg-dark); position: relative; padding: 32px 24px 64px; }
.so-hero__inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.so-hero__back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ltg-text-muted); font-size: 12px; font-weight: 600;
    text-decoration: none; margin-bottom: 18px;
    background: rgba(255,255,255,0.06); padding: 6px 12px;
    border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.so-hero__back:hover { color: var(--ltg-teal); border-color: rgba(0,221,194,0.3); }
.so-hero__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.so-tag { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.so-tag--id      { background: rgba(0,221,194,0.15); color: #00ddc2; border: 1px solid rgba(0,221,194,0.25); font-size: 11px; }
.so-tag--primary { background: var(--ltg-teal); color: var(--ltg-dark); }
.so-tag--source  { background: rgba(255,255,255,0.1); color: #e0e0e0; border: 1px solid rgba(255,255,255,0.15); }
.so-tag--promo   { background: #ff8c00; color: #fff; }
.so-hero__title { font-size: 30px; font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.25; letter-spacing: -0.5px; overflow-wrap: break-word; word-break: break-word; }
.so-hero__location { display: flex; align-items: center; gap: 6px; color: var(--ltg-text-muted); font-size: 13px; font-weight: 500; margin: 0; }
.so-hero__wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.so-hero__wave svg { width: 100%; height: 50px; }

/* ── Layout ── */
.so-layout { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }
.so-layout__inner { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 28px 0 0; align-items: start; }

/* ── Col izquierda (sticky — top se ajusta vía JS) ── */
.so-col-left { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.so-image { border-radius: var(--ltg-radius); overflow: hidden; border: 2px solid var(--ltg-border); background: var(--ltg-bg); box-shadow: var(--ltg-shadow-sm); }
.so-image img { width: 100%; height: 220px; object-fit: contain; display: block; padding: 16px; box-sizing: border-box; }
.so-image--ltg { background: var(--ltg-dark); border-color: var(--ltg-dark-alt); }
.so-image--ltg img { padding: 24px; }
/* Oferta doble: dos logos lado a lado */
.so-image--dual { display: flex; padding: 0; }
.so-image--dual img { height: 220px; }
.so-dual-logo { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.so-dual-logo--1 { border-right: 1px solid var(--ltg-border); }
.so-dual-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px 10px; box-sizing: border-box; display: block; }
.so-image--placeholder {
    width: 100%; height: 160px;
    background: linear-gradient(135deg, #11242b, #1a3a45);
    display: flex; align-items: center; justify-content: center; border-radius: 14px;
}
.so-web-empleador {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 14px; background: #fff; border: 1.5px solid #e8f0f2;
    border-radius: 10px; color: #555; font-size: 12px; font-weight: 600;
    text-decoration: none; transition: all 0.25s ease;
}
.so-web-empleador:hover { border-color: var(--ltg-teal); color: var(--ltg-teal-hover); background: #f0fffe; }
.so-cta-block__title { font-size: 13px; font-weight: 700; color: var(--ltg-dark); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.so-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 16px; background: var(--ltg-dark); color: var(--ltg-teal);
    font-size: 14px; font-weight: 800; border-radius: 10px; text-decoration: none;
    transition: all 0.25s ease; font-family: 'Montserrat', sans-serif; letter-spacing: 0.3px;
}
.so-cta-btn:hover { background: #0d1d22; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(17,36,43,0.3); }

/* ── Col derecha ── */
.so-col-right { display: flex; flex-direction: column; gap: 16px; }

/* Sueldo banner */
.so-salary-banner {
    background: linear-gradient(135deg, var(--ltg-dark) 0%, var(--ltg-dark-alt) 100%);
    border-radius: 14px; padding: 22px 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    box-shadow: 0 6px 24px rgba(17,36,43,0.18);
    border-left: 5px solid var(--ltg-teal);
    position: relative; overflow: hidden;
}
.so-salary-banner::after {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(0,221,194,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.so-salary-banner__left { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; min-width: 0; }
.so-salary-banner__label { display: block; font-size: 10px; font-weight: 700; color: #7a9ea3; text-transform: uppercase; letter-spacing: 1.2px; }
.so-salary-banner__amount { display: flex; align-items: baseline; gap: 7px; }
.so-salary-banner__value { font-size: 38px; font-weight: 800; color: var(--ltg-teal); line-height: 1; letter-spacing: -1.5px; overflow-wrap: break-word; word-break: break-word; }
.so-salary-banner__tipo  { font-size: 15px; font-weight: 500; color: var(--ltg-text-muted); }
.so-salary-banner__desc {
    display: flex; flex-direction: column; gap: 4px;
    border-left: 1px solid rgba(0,221,194,0.2); padding-left: 20px;
    flex: 1; min-width: 0; position: relative; z-index: 1;
}
.so-salary-banner__desc-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ltg-teal); }
.so-salary-banner__desc-text { font-size: 14px; font-weight: 500; color: #c8d8dc; line-height: 1.55; }
.so-salary-banner__posicion  { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.78); line-height: 1.5; border-top: 1px solid rgba(0,221,194,0.18); padding-top: 7px; margin-top: 3px; }

/* Promo banner */
.so-promo-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a; border-left: 5px solid #f59e0b;
    border-radius: 14px; padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(245,158,11,0.12);
}
.so-promo-banner__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.so-promo-banner__icon { font-size: 22px; }
.so-promo-banner__title { font-size: 14px; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: 0.5px; }
.so-promo-banner__text { font-size: 14px; color: #78350f; margin: 0; line-height: 1.7; }
.so-promo-banner__text p { margin: 0 0 8px; }
.so-promo-banner__text p:last-child { margin: 0; }

/* Info grid */
.so-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.so-info-card {
    background: var(--ltg-white); border: 1.5px solid var(--ltg-border); border-radius: 10px;
    padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px;
    transition: border-color 0.2s ease;
}
.so-info-card:hover { border-color: #c0ede8; }
.so-info-card--full { grid-column: 1 / -1; }
.so-info-card__icon {
    width: 38px; height: 38px; background: var(--ltg-bg);
    border-radius: 9px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; color: var(--ltg-dark);
}
.so-info-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.so-info-card__label { font-size: 9px; font-weight: 700; color: var(--ltg-text-faint); text-transform: uppercase; letter-spacing: 0.7px; }
.so-info-card__value { font-size: 13px; font-weight: 700; color: var(--ltg-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-info-card__value--wrap { white-space: normal; font-weight: 500; font-size: 12px; line-height: 1.5; }

/* Bloque vivienda */
.so-vivienda-block { border-radius: var(--ltg-radius); overflow: hidden; border: 1.5px solid var(--ltg-border); background: var(--ltg-white); }
.so-vivienda-block--si { border-color: #b2ece4; }
.so-vivienda-block__header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; background: var(--ltg-bg);
    border-bottom: 1px solid var(--ltg-border); flex-wrap: wrap;
}
.so-vivienda-block--si .so-vivienda-block__header { background: #f0fffe; border-bottom-color: #c0ede8; }
.so-vivienda-block__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #e8f0f2; display: flex; align-items: center;
    justify-content: center; color: #11242b; flex-shrink: 0;
}
.so-vivienda-block--si .so-vivienda-block__icon { background: var(--ltg-dark); color: var(--ltg-teal); }
.so-vivienda-block__title-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.so-vivienda-block__label { font-size: 9px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: 0.7px; }
.so-vivienda-block__badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; width: fit-content; }
.so-vivienda-block__badge--si { background: #e6fdf9; color: var(--ltg-teal-hover); }
.so-vivienda-block__badge--no { background: #f3f4f6; color: #6b7280; }
.so-vivienda-block__provisto {
    display: flex; flex-direction: column; gap: 2px;
    padding: 6px 12px; background: rgba(0,221,194,0.08);
    border-radius: 8px; margin-left: auto;
}
.so-vivienda-block__provisto-label { font-size: 9px; font-weight: 700; color: #7a9ea3; text-transform: uppercase; letter-spacing: 0.6px; }
.so-vivienda-block__provisto-value { font-size: 12px; font-weight: 700; color: #11242b; }
.so-vivienda-block__desc { padding: 16px 20px; font-size: 13px; color: #555; line-height: 1.7; }
.so-vivienda-block__desc p { margin: 0 0 8px; }
.so-vivienda-block__desc p:last-child { margin: 0; }

/* Requisitos */
.so-requisitos { background: #fffbea; border: 1px solid #f5e08a; border-left: 4px solid #f0b429; border-radius: 12px; padding: 18px 22px; }
.so-requisitos__header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.so-requisitos__header svg { color: #d97706; flex-shrink: 0; }
.so-requisitos__header h2 { font-size: 14px; font-weight: 700; color: #11242b; margin: 0; }
.so-requisitos__content { font-size: 14px; color: #555; line-height: 1.75; }
.so-requisitos__content p { margin: 0 0 8px; }
.so-requisitos__content p:last-child { margin: 0; }

/* Descripción */
.so-descripcion { background: var(--ltg-white); border-radius: var(--ltg-radius); padding: 24px 28px; }
.so-descripcion h2 {
    font-size: 16px; font-weight: 800; color: var(--ltg-dark);
    margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--ltg-border-light);
    display: flex; align-items: center; gap: 8px;
}
.so-descripcion__content { font-size: 14px; line-height: 1.85; color: #444; }
.so-descripcion__content p { margin: 0 0 12px; }
.so-descripcion__content p:last-child { margin: 0; }

/* Beneficios (dentro de so-descripcion) */
.so-beneficios { margin-top: 20px; padding-top: 18px; border-top: 1.5px solid var(--ltg-border-light); }
.so-beneficios__header {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 900; color: var(--ltg-dark);
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px;
}
.so-beneficios__header svg { color: var(--ltg-teal-hover); flex-shrink: 0; }
.so-beneficios__content { font-size: 14px; line-height: 1.75; color: #444; }
.so-beneficios__content p { margin: 0 0 8px; }
.so-beneficios__content p:last-child { margin: 0; }

/* Embed YouTube */
.so-embed-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin: 8px 0 12px; }
.so-embed-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* Link Google Drive */
.so-drive-link { display: inline-flex; align-items: center; gap: 6px; color: #00a898; font-weight: 700; text-decoration: none; padding: 6px 14px; background: #f0fffe; border: 1.5px solid #c0ede8; border-radius: 8px; font-size: 13px; transition: all 0.2s ease; }
.so-drive-link:hover { background: var(--ltg-teal); color: var(--ltg-dark); border-color: var(--ltg-teal); }

/* Footer */
.so-footer-nav { padding-top: 8px; }
.so-back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    color: #666; font-size: 13px; font-weight: 700; text-decoration: none;
    padding: 9px 18px; border: 1.5px solid #dde6e8; border-radius: 8px;
    transition: all 0.25s ease;
}
.so-back-btn:hover { background: var(--ltg-dark); color: var(--ltg-teal); border-color: var(--ltg-dark); }

/* ── Segundo empleador (oferta doble) ── */
.so-empleador-2 {
    border: 2px solid var(--ltg-border);
    border-radius: var(--ltg-radius);
    padding: 22px 24px;
    background: var(--ltg-surface);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.so-empleador-2__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.so-empleador-2__plus {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--ltg-dark);
    color: var(--ltg-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}
.so-empleador-2__nombre {
    font-size: 18px;
    font-weight: 700;
    color: var(--ltg-dark);
    margin: 0 0 6px;
}
.so-empleador-2__web {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ltg-teal-hover);
    text-decoration: none;
    font-weight: 500;
}
.so-empleador-2__web:hover { color: var(--ltg-dark); }
.so-empleador-2__sueldo {
    background: var(--ltg-white);
    border: 1.5px solid var(--ltg-border);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.so-empleador-2__sueldo-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ltg-text-muted);
}
.so-empleador-2__sueldo-valor {
    font-size: 24px;
    font-weight: 800;
    color: var(--ltg-dark);
    letter-spacing: -0.5px;
}
.so-empleador-2__sueldo-tipo { font-size: 14px; font-weight: 500; color: #7a9ea3; }
.so-empleador-2__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7a9ea3;
    margin-bottom: 10px;
}
.so-empleador-2__vivienda,
.so-empleador-2__descripcion { font-size: 14px; color: #334e58; line-height: 1.65; }

/* ── Responsive ── */
/* CTA block */
.so-cta-block { background: var(--ltg-teal); border-radius: var(--ltg-radius); padding: 20px; text-align: center; box-shadow: var(--ltg-shadow-md); }
.so-cta-block--mobile { display: none; } /* oculto en desktop */

@media (max-width: 900px) {
    .so-layout__inner { grid-template-columns: 1fr; }
    .so-col-left { position: static; }
    .so-hero__title { font-size: 24px; }
    .so-image img { height: 200px; }
    .so-info-grid { grid-template-columns: repeat(2, 1fr); }
    .so-salary-banner__value { font-size: 28px; }
    .so-cta-block--desktop { display: none; }
    .so-cta-block--mobile   { display: block; }
}
@media (max-width: 500px) {
    .so-hero { padding: 24px 16px 56px; }
    .so-layout { padding: 0 16px 40px; }
    .so-hero__title { font-size: 20px; }
    .so-salary-banner__value { font-size: 22px; letter-spacing: -0.5px; }
    .so-salary-banner__tipo  { font-size: 13px; }
    .so-info-grid { grid-template-columns: 1fr; }
    .so-salary-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .so-salary-banner__desc { border-left: none; border-top: 1px solid rgba(0,221,194,0.2); padding-left: 0; padding-top: 14px; width: 100%; }
    .so-vivienda-block__provisto { margin-left: 0; margin-top: 8px; width: 100%; }
}