.ip-banner,
.ip-cuerpo {
    font-family: 'Open Sans', sans-serif;
}

.ip-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner */
.ip-banner {
    background-image: url(/img/home-v3/banner2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.ip-banner-contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 20%;
    color: #fff;
}

.ip-banner-contenido h1 {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 3em;
    color: #fff;
}

.ip-linea {
    width: 30%;
    padding: 2px 0;
    background-color: #1f83bf;
    margin-top: 12px;
}

.ip-cuerpo {
    background: #fff;
    padding: 55px 0 75px;
    color: #4a4a4a;
}

.ip-oculto {
    display: none;
}

/* Encabezado */
.ip-encabezado {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 30px;
}

.ip-encabezado h2 {
    margin: 0 0 18px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #009BDB;
}

.ip-encabezado p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
}

.ip-encabezado .ip-importante {
    margin-top: 22px;
    font-size: 14px;
    font-style: italic;
    color: #009BDB;
}

.ip-importante strong {
    font-weight: 700;
}

/* Sin interrupciones vigentes */
.ip-sin-interrupciones {
    padding: 30px 20px;
    border: 1px solid #e2e6e9;
    border-top: 3px solid #009BDB;
    border-radius: 8px;
    background: #f4f8f9;
    text-align: center;
}

.ip-sin-interrupciones p {
    margin: 0;
    font-size: 15px;
    color: #009BDB;
}

/* Acordeón de semanas */
.ip-semana {
    border: 1px solid #e2e6e9;
    border-top: 3px solid #009BDB;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 40, 60, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.ip-semana-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding: 18px 22px;
    background: #fff;
    border: none;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ip-semana-cabecera:hover {
    background: #f4f8f9;
}

.ip-semana-cabecera:focus-visible {
    outline: 2px solid #009BDB;
    outline-offset: -2px;
}

.ip-semana-titulos {
    display: flex;
    flex-direction: column;
}

.ip-semana-titulo {
    font-weight: 700;
    font-size: 21px;
    color: #009BDB;
}

.ip-semana-cantidad {
    margin-top: 3px;
    font-size: 13px;
    color: #8f8f8f;
}

.ip-semana-icono {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 2px solid #39791a;
    border-bottom: 2px solid #39791a;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.ip-semana-abierta .ip-semana-icono {
    transform: rotate(-135deg);
}

.ip-semana-abierta .ip-semana-cabecera {
    border-bottom: 1px solid #e2e6e9;
}

.ip-semana-cuerpo {
    padding: 22px;
}

.ip-semana-cuerpo[hidden] {
    display: none;
}

/* Tabla */
.ip-tabla-scroll {
    width: 100%;
    overflow-x: auto;
}

.ip-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ip-tabla thead th {
    background: #009BDB;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 11px 12px;
    white-space: nowrap;
}

.ip-tabla tbody td {
    padding: 14px 12px;
    vertical-align: top;
    line-height: 1.5;
    border-bottom: 1px solid #e2e6e9;
    color: #4a4a4a;
}

.ip-tabla tbody td[data-label="Motivo"] {
    min-width: 150px;
}

.ip-tabla tbody tr:last-child td {
    border-bottom: none;
}

.ip-tabla tbody tr:nth-child(even) td {
    background: #f4f8f9;
}

/* Estados */
.ip-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid;
}

.ip-estado::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ip-estado-programada {
    color: #0b6591;
    background: #e3f3fb;
    border-color: #b9e0f2;
}

.ip-estado-en-curso {
    color: #a5401e;
    background: #fdeeea;
    border-color: #f3c4b4;
}

.ip-estado-finalizada {
    color: #1e7e42;
    background: #e2f4ea;
    border-color: #b7e4c7;
}

.ip-estado-suspendida {
    color: #6b6b6b;
    background: #f2f2f2;
    border-color: #dcdcdc;
}

.ip-fecha-publicacion {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
    color: #009BDB;
}

/* Documento */
.ip-documento {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #009BDB;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #009BDB;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ip-documento::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.ip-documento:hover,
.ip-documento:focus {
    background: #009BDB;
    color: #fff;
    text-decoration: none;
}

.ip-sin-documento {
    color: #8f8f8f;
}

/* Información importante */
.ip-info {
    margin-top: 40px;
    border: 1px solid #e2e6e9;
    border-left: 4px solid #009BDB;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ip-info-cabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f4f8f9;
    border-bottom: 1px solid #e2e6e9;
}

.ip-info-cabecera h3 {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #009BDB;
}

.ip-info-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #009BDB;
    border-radius: 50%;
    color: #009BDB;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.ip-info-cuerpo {
    padding: 20px 22px 8px;
    font-size: 14px;
    line-height: 1.6;
}

.ip-info-cuerpo p {
    margin: 0 0 14px;
}

.ip-info-cuerpo ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.ip-info-cuerpo li {
    margin-bottom: 7px;
}

.ip-info-cuerpo li::marker {
    color: #009BDB;
}

/* Contenido del editor del admin (PAG_DESCRIPCION) */
.ip-info-cuerpo ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.ip-info-cuerpo strong,
.ip-info-cuerpo b {
    font-weight: 700;
}

.ip-info-cuerpo a {
    color: #009BDB;
    text-decoration: underline;
}

.ip-info-cuerpo img {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .ip-banner-contenido {
        padding: 60px 8%;
    }

    .ip-banner-contenido h1 {
        font-size: 1.8em;
    }

    .ip-encabezado h2 {
        font-size: 22px;
    }

    .ip-semana-cabecera {
        padding: 15px 16px;
    }

    .ip-semana-titulo {
        font-size: 17px;
    }

    .ip-semana-cuerpo {
        padding: 14px;
    }

    /* La tabla pasa a tarjetas apiladas */
    .ip-tabla thead {
        display: none;
    }

    .ip-tabla,
    .ip-tabla tbody,
    .ip-tabla tr,
    .ip-tabla td {
        display: block;
        width: 100%;
    }

    .ip-tabla tbody tr {
        border: 1px solid #e2e6e9;
        border-radius: 6px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .ip-tabla tbody tr:nth-child(even) td {
        background: #fff;
    }

    .ip-tabla tbody td,
    .ip-tabla tbody tr:last-child td {
        display: flex;
        gap: 10px;
        padding: 9px 12px;
        border-bottom: 1px solid #f0f2f4;
    }

    .ip-tabla tbody td:last-child {
        border-bottom: none;
    }

    .ip-tabla tbody td {
        flex-wrap: wrap;
    }

    .ip-fecha-publicacion {
        flex-basis: 100%;
        margin-top: 0;
        padding-left: 115px;
    }

    .ip-tabla tbody td::before {
        content: attr(data-label);
        flex: 0 0 105px;
        font-weight: 700;
        color: #009BDB;
    }

    .ip-info-cuerpo {
        padding: 16px 16px 4px;
    }
}
