/* ═══════════════════════════════════════════════════════════════════════
   Ofertas Tecnológicas – Public Styles  v1.1.0
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Filtros ─────────────────────────────────────────────────────────── */
.ot-wrap { font-family: inherit; }

.ot-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    background: #f4f6f8;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 32px;
}

.ot-filtro-grupo { display: flex; flex-direction: column; gap: 4px; }
.ot-filtro-grupo label { font-size: 13px; font-weight: 600; color: #444; }

.ot-filtro-grupo input[type="text"],
.ot-filtro-grupo select {
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    border: 1px solid #c3c9d2;
    border-radius: 5px;
    background-color: #fff;
    color: inherit;
    min-width: 200px;
    transition: border-color .2s, box-shadow .2s;
}

.ot-filtro-grupo select {
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.ot-filtro-grupo input[type="text"]:focus,
.ot-filtro-grupo select:focus {
    border-color: #1a6bb5;
    box-shadow: 0 0 0 3px rgba(26, 107, 181, .15);
    outline: none;
}

.ot-btn-filtrar,
.ot-btn-limpiar {
    box-sizing: border-box;
    height: 40px;
    padding: 0 20px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
}
.ot-btn-filtrar { background: #1a6bb5; color: #fff; border-color: #1a6bb5; }
.ot-btn-filtrar:hover { background: #135089; border-color: #135089; color: #fff; }
.ot-btn-limpiar { background: #fff; color: #555; border-color: #c3c9d2; }
.ot-btn-limpiar:hover { border-color: #888; color: #222; background: #f4f6f8; }

/* ── Sin resultados ──────────────────────────────────────────────────── */
.ot-sin-resultados {
    text-align: center; color: #666; padding: 40px;
    background: #f9f9f9; border: 1px dashed #ccc; border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   LISTADO — tarjetas compactas (título + extracto)
   ═══════════════════════════════════════════════════════════════════════ */

.ot-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Tarjeta compacta */
.ot-tarjeta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #dde2e8;
    padding: 20px 24px;
    transition: box-shadow .2s, background .2s;
    position: relative;
}

.ot-lista .ot-tarjeta:first-child { border-radius: 10px 10px 0 0; }
.ot-lista .ot-tarjeta:last-child  { border-radius: 0 0 10px 10px; }
.ot-lista .ot-tarjeta:only-child  { border-radius: 10px; }
.ot-lista .ot-tarjeta + .ot-tarjeta { border-top: none; }

.ot-tarjeta:hover {
    background: #f7fbff;
    box-shadow: 0 3px 14px rgba(26,107,181,.1);
    z-index: 1;
}

.ot-tarjeta-body {
    flex: 1;
    min-width: 0;
}

.ot-tarjeta-titulo {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.ot-tarjeta-link {
    color: #1a6bb5;
    text-decoration: none;
    transition: color .15s;
}
.ot-tarjeta-link:hover { color: #0d4f8c; text-decoration: underline; }

/* Make the entire card clickable via the ::after pseudo-element */
.ot-tarjeta-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.ot-tarjeta-extracto {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* CTA "Ver más →" */
.ot-tarjeta-cta {
    flex-shrink: 0;
    position: relative; /* above ::after */
    z-index: 1;
    font-size: 13px;
    font-weight: 700;
    color: #1a6bb5;
    text-decoration: none;
    white-space: nowrap;
    padding: 7px 14px;
    border: 1.5px solid #1a6bb5;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ot-tarjeta-cta:hover { background: #1a6bb5; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   FICHA COMPLETA — página individual /ofertas-tecnologicas/{slug}
   ═══════════════════════════════════════════════════════════════════════ */

.ot-ficha-wrap {
    font-family: inherit;
    max-width: 1000px;
    margin: 10px auto;
    padding: 0 20px 60px;
}

/* Encabezado con degradado */
.ot-ficha-header {
    background: linear-gradient(135deg, #1a6bb5 0%, #0d4f8c 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 36px;
    overflow: hidden;
}

.ot-ficha-header-inner {
    padding: 36px 40px;
}

/* Breadcrumb */
.ot-ficha-breadcrumb {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.ot-ficha-breadcrumb a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}
.ot-ficha-breadcrumb a:hover { text-decoration: underline; }
.ot-breadcrumb-sep { color: rgba(255,255,255,.45); }

/* Título principal */
.ot-ficha-titulo-principal {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

/* Badges de área (reutiliza la clase existente) */
.ot-ficha-areas { display: flex; flex-wrap: wrap; gap: 7px; }
.ot-badge-area {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

/* Layout principal + sidebar */
.ot-ficha-contenedor {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}

/* Secciones del cuerpo */
.ot-ficha-seccion {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eef1f5;
}
.ot-ficha-seccion:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ot-ficha-seccion-titulo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #1a6bb5;
    margin: 0 0 12px;
}

.ot-ficha-texto {
    font-size: 15px;
    color: #333;
    line-height: 1.75;
}
.ot-ficha-texto p  { margin: 0 0 12px; }
.ot-ficha-texto p:last-child { margin-bottom: 0; }
.ot-ficha-texto ul,
.ot-ficha-texto ol { padding-left: 22px; margin: 0 0 12px; }

/* Sidebar */
.ot-ficha-sidebar-box {
    background: #f4f6f8;
    border: 1px solid #dde2e8;
    border-radius: 10px;
    padding: 22px 20px;
    position: sticky;
    top: 24px;
}

.ot-ficha-sidebar-titulo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #1a6bb5;
    margin: 0 0 14px;
}

/* Responsables (reutiliza las clases existentes, override de color) */
.ot-responsables-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ot-responsable { font-size: 14px; color: #333; }
.ot-responsable-link {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #1a6bb5;
    font-weight: 600;
    transition: color .15s;
}
.ot-responsable-link:hover { color: #0d4f8c; text-decoration: underline; }
.ot-responsable-icono { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    /* Filtros */
    .ot-filtros { flex-direction: column; }
    .ot-filtro-grupo input,
    .ot-filtro-grupo select { min-width: 100%; width: 100%; }

    /* Tarjeta listado */
    .ot-tarjeta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ot-tarjeta-cta { align-self: flex-end; }

    /* Ficha completa */
    .ot-ficha-header-inner { padding: 24px 20px; }
    .ot-ficha-titulo-principal { font-size: 22px; }
    .ot-ficha-contenedor { grid-template-columns: 1fr; }
    .ot-ficha-sidebar-box { position: static; }
}
