/* =========================================
   organismos.css — Estilos exclusivos de la
   página de organismos investigados
   ========================================= */

/* ---- Nav activo ---- */
.nav-active {
    text-decoration: underline !important;
    opacity: 1 !important;
}

/* ---- Hero de página ---- */
.page-hero {
    background: var(--gov-blue-dark);
    color: white;
    padding: 50px 0 40px;
    border-bottom: 4px solid var(--gov-blue);
}

.breadcrumb {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
}

.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 750px;
    line-height: 1.6;
}

/* ---- Stats ---- */
.stats-section {
    padding: 40px 0;
    background: #f0f4ff;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-highlight {
    background: white;
    border: 1px solid var(--border);
    border-top: 4px solid var(--gov-blue);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-highlight.stat-orange {
    border-top-color: #d97706;
}

.stat-highlight.stat-green {
    border-top-color: var(--success);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gov-blue-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-orange .stat-number { color: #d97706; }
.stat-green .stat-number  { color: var(--success); }

.stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stats-source {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---- Tabla ---- */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid var(--border);
}

.table-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.dot-active { background: #d1fae5; border: 2px solid #059669; }
.dot-early  { background: #fef3c7; border: 2px solid #d97706; }

.organismos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: white;
}

.organismos-table thead tr {
    background: var(--gov-blue-dark);
    color: white;
}

.organismos-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.organismos-table th:first-child { width: 50px; text-align: center; }
.organismos-table th:last-child  { text-align: center; }

.organismos-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: middle;
}

.organismos-table td:first-child { text-align: center; font-weight: 600; color: var(--text-secondary); }
.organismos-table td:last-child  { text-align: center; font-size: 0.82rem; color: var(--text-secondary); }

.organismos-table tbody tr:hover { background: #f8fafc; }

/* Filas por tipo de período */
.row-active {
    background: #f0fdf4;
}
.row-active:hover { background: #dcfce7 !important; }
.row-active td:first-child { color: #059669; }

.row-early {
    background: #fffbeb;
}
.row-early:hover { background: #fef3c7 !important; }

.row-mid {
    background: #f8f8f8;
}

/* ---- Steps grid ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 24px;
    position: relative;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--gov-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.step-card h3 {
    color: var(--gov-blue-dark);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ---- CTA final ---- */
.cta-section {
    padding: 60px 0;
    background: var(--gov-blue-dark);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--gov-blue-dark);
    padding: 16px 40px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ---- Info icon como emoji ---- */
.info-card .info-icon {
    font-size: 1.5rem;
    background: none;
    color: inherit;
    width: auto;
    height: auto;
    margin-bottom: 15px;
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.6rem; }
    .stats-grid    { grid-template-columns: 1fr 1fr; }
    .stat-number   { font-size: 1.7rem; }

    .organismos-table { font-size: 0.82rem; }
    .organismos-table th,
    .organismos-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
