/* ============================================================
   PORTADA [cuadros_inicio] — inicio
   Sacado de: cuadros_inicio.php
   (Fase 1 del plan de optimización, 20/11/2026)
   ============================================================ */

.ci-cuadros { max-width: 1060px; margin: 0 auto; padding: 10px 0 40px; }
.ci-cab { text-align: center; margin-bottom: 30px; }
.ci-cab h2 { font-family: inherit;
    font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: #0b2b6b; margin: 0 auto;
    max-width: 20em; line-height: 1.18; text-wrap: balance; overflow-wrap: break-word; }
.ci-cab p { font-size: 17px; color: #475569; margin: 8px 0 0; }

.ci-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.ci-cuadro {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid #e3eef0; border-radius: 26px;
    padding: 22px 64px 22px 22px; text-decoration: none; display: flex; gap: 18px; align-items: center;
    box-shadow: 0 10px 26px rgba(8,42,99,.1); color: #0b2b6b;
    transition: transform .18s ease, box-shadow .18s ease;
    animation: ci-subir .55s cubic-bezier(.2,.7,.3,1) backwards;
}
.ci-cuadro:nth-child(1) { animation-delay: .02s; }
.ci-cuadro:nth-child(2) { animation-delay: .08s; }
.ci-cuadro:nth-child(3) { animation-delay: .14s; }
.ci-cuadro:nth-child(4) { animation-delay: .20s; }
.ci-cuadro:nth-child(5) { animation-delay: .26s; }
.ci-cuadro:nth-child(6) { animation-delay: .32s; }
@keyframes ci-subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.ci-cuadro:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(8,42,99,.16); color: #0b2b6b; }

.ci-ico { width: 58px; height: 58px; border-radius: 50%; background: #DFF7F5; display: flex;
    align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.7,.3,1.4); }
.ci-ico img { width: 58%; height: 58%; object-fit: contain; }
.ci-cuadro:hover .ci-ico { transform: scale(1.08); }
.ci-txt { flex: 1; min-width: 0; }
.ci-tit { font-family: inherit;
    font-size: 19px; font-weight: 700; color: #0b2b6b; margin: 0 0 6px; }
.ci-desc { font-size: 14px; color: #475569; line-height: 1.55; margin: 0; }
.ci-flecha { position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; background: #DFF7F5; color: #17a79e;
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
    transition: transform .25s; }
.ci-cuadro:hover .ci-flecha { transform: translateY(-50%) translateX(4px); }
.ci-badge { position: absolute; top: 16px; right: 16px; background: #17a79e; color: #fff;
    border-radius: 999px; min-width: 22px; height: 22px; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; padding: 0 7px; z-index: 2; }
.ci-cuadro .ci-flecha.ci-con-badge { display: none; }

.ci-grid > .ci-cuadro:first-child:not(.ci-hero) { background: #0b2b6b; border-color: #0b2b6b; color: #fff; }
.ci-grid > .ci-cuadro:first-child:not(.ci-hero) .ci-tit { color: #fff; }
.ci-grid > .ci-cuadro:first-child:not(.ci-hero) .ci-desc { color: rgba(255,255,255,.88); }
.ci-grid > .ci-cuadro:first-child:not(.ci-hero) .ci-ico { background: #17a79e; }
.ci-grid > .ci-cuadro:first-child:not(.ci-hero) .ci-ico img { filter: brightness(0) invert(1); }
.ci-grid > .ci-cuadro:first-child:not(.ci-hero) .ci-flecha { background: #17a79e; color: #fff; }
.ci-grid > .ci-cuadro:first-child:not(.ci-hero):hover { color: #fff; }

.ci-cuadro.ci-ancho { grid-column: span 2; }
.ci-cuadro.ci-hero { grid-column: span 2; border-radius: 32px; padding: 34px 70px 34px 34px;
    background: #0b2b6b; border-color: #0b2b6b; color: #fff; }
.ci-cuadro.ci-hero:hover { background: #0b2b6b; border-color: #0b2b6b; color: #fff; }
.ci-cuadro.ci-hero .ci-tit { color: #fff; font-size: 22px; }
.ci-cuadro.ci-hero .ci-desc { color: rgba(255,255,255,.88); font-size: 15px; }
.ci-cuadro.ci-hero .ci-ico { width: 64px; height: 64px; background: #17a79e; }
.ci-cuadro.ci-hero .ci-ico img { filter: brightness(0) invert(1); }
.ci-cuadro.ci-hero .ci-flecha { background: #17a79e; color: #fff; }

@media (max-width: 620px) {
    .ci-grid { grid-template-columns: 1fr; }
    .ci-cuadro { padding: 20px 56px 20px 20px; }
    .ci-cuadro.ci-ancho, .ci-cuadro.ci-hero { grid-column: span 1; }
    .ci-cuadro.ci-hero { padding: 24px 56px 24px 22px; border-radius: 26px; }
    .ci-tit { font-size: 17px; }
    .ci-desc { font-size: 13px; }
}
