/* =============================================
   FULL-WIDTH BREAKOUT — rompe el contenedor de WP
   ============================================= */

.home .wp-block-post-title,
.front-page .wp-block-post-title,
.page .entry-title {
    display: none;
}

main.wp-block-group {
    margin-top: 0 !important;
}

div.wp-block-group.alignfull {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home .wp-block-post-content,
.home .entry-content {
    padding: 0;
    max-width: none;
}

.corpeduff-hero,
.corpeduff-content {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

/* =============================================
   HERO — grid 6 cols × 3 rows
   ============================================= */

.corpeduff-hero {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, calc(42vw / 3));
    height: 42vw;
    background-color: #ffffff;
    overflow: hidden;
    padding-top: 1.5vw;
    padding-bottom: 0;
    box-sizing: border-box;
}

/* Logo Block: rows 1–2, cols 1–2 */
.corpeduff-hero__logo-block {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vw 1.5vw 2vw 3.5vw;
}

.corpeduff-hero__logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25vw;
    text-decoration: none;
}

.corpeduff-hero__logo-icon {
    width: 25vw;
    max-width: 100%;
    height: auto;
}

/* Info Block: rows 1–2, cols 3–6 */
.corpeduff-hero__info {
    grid-column: 3 / 7;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0;
    height: 100%;
    box-sizing: border-box;
    margin-right: 3.5vw;
}

.corpeduff-hero__info > * {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Row 1, Col 1: Tagline */
.corpeduff-hero__tagline {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5vw;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.4rem, 1.8vw, 2.5rem);
    font-weight: 100;
    color: #666;
    line-height: 1.5;
    text-align: right;
}

.corpeduff-hero__tagline p {
    margin: 0;
}

/* Row 1, Col 2: Egresados */
.corpeduff-hero__stat--egresados {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: block;
    align-content: end;
    padding: 1.5vw;
}

.corpeduff-hero__stat--egresados img {
    width: 45%;
    height: auto;
    float: right;
}

/* Row 1, Col 3: Foto colegio */
.corpeduff-hero__photo-cell {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    background-image: url("https://webcorp.corpeduff.cl/wp-content/uploads/2026/06/DS-STGO-1-1-1024x682-1.jpg") !important;
    background-size: cover;
    background-position: center;
    border-radius: 50% 50% 0 50%;
    padding-bottom: 0px !important;
    border-style: solid !important;
    border-width: 1px !important;
    margin: 1.5vw !important;
    border-color: var(--corpeduff-blue);
    position: relative;
    overflow: hidden;
}

.corpeduff-hero__photo-cell::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border-radius: 50% 50% 0 50%;
}

/* Row 1, Col 4: Filiales */
.corpeduff-hero__stat--filiales {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1vw;
    padding-bottom: 1.5vw;
}

.corpeduff-hero__stat--filiales img {
    width: 45%;
    height: auto;
}

/* Row 2, Col 1: Alumnos */
.corpeduff-hero__stat--alumnos {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1vw;
    padding-bottom: 1.5vw;
}

.corpeduff-hero__stat--alumnos img {
    width: 45%;
    height: auto;
}

/* Row 2, Col 2: Logo DS */
.corpeduff-hero__inst-logo--ds {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background-color: var(--corpeduff-blue, #0d76a7);
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1.5vw;
    padding: 1.5vw;
}

.corpeduff-hero__inst-logo--ds img {
    width: 40%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Row 2, Col 3: Logo mundo */
.corpeduff-hero__inst-logo--world {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background-color: var(--corpeduff-blue, #0d76a7);
    border-radius: 50% 0 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1.5vw;
    padding: 1.5vw;
}

.corpeduff-hero__inst-logo--world img {
    width: 40%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Row 2, Col 4: Logo A */
.corpeduff-hero__inst-logo--a {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    background-color: var(--corpeduff-blue, #0d76a7);
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1.5vw;
    padding: 1.5vw;
}

.corpeduff-hero__inst-logo--a img {
    width: 40%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Bottom Row: row 3, cols 1–6 */
.corpeduff-hero__bottom {
    grid-column: 1 / 7;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 0;
    height: 100%;
    box-sizing: border-box;
    margin-left: 3.5vw;
    margin-right: 3.5vw;
}

.corpeduff-hero__bottom > * {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Col 1: Blue div "Quiero Ser Socio" */
.corpeduff-hero__bottom-col--1 {
    grid-column: 1 / 2;
    background-color: var(--corpeduff-blue, #0d76a7);
    border-radius: 50% 0 50% 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.7vw;
    padding-right: 0.7vw;
    padding-bottom: 1.5vw;
    padding-left: 1.5vw;
    margin: 1.5vw;
}

.corpeduff-hero__bottom-col-text {
    color: #ffffff;
    font-size: clamp(1.4rem, 1.8vw, 2.5rem);
    font-family: var(--corpeduff-font-family) !important;
    font-weight: 200;
    text-align: right;
    line-height: 1.3;
}

.corpeduff-hero__bottom-col-text p {
    margin: 0;
}

/* Col 2: Ser socio text */
.corpeduff-hero__bottom-col--2 {
    grid-column: 2 / 3;
    padding: 1.5vw;
    font-size: clamp(0.9rem, 1vw, 1.4rem);
    font-weight: 200;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

.corpeduff-hero__bottom-col--2 p { margin: 0; }

.corpeduff-hero__bottom-col--2 strong {
    color: var(--corpeduff-blue, #0d76a7);
}

/* Col 3: Background image */
.corpeduff-hero__bottom-col--3 {
    grid-column: 3 / 4;
    background-size: cover;
    background-position: center;
    border-radius: 50% 50% 50% 0;
    position: relative;
    margin: 1.5vw;
}

.corpeduff-hero__bottom-col--3::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border-radius: 50% 50% 50% 0;
}

/* Col 4: Background image */
.corpeduff-hero__bottom-col--4 {
    grid-column: 4 / 5;
    background-size: cover;
    background-position: center;
    border-radius: 50% 0 50% 50%;
    position: relative;
    margin: 1.5vw;
}

.corpeduff-hero__bottom-col--4::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border-radius: 50% 0 50% 50%;
}

/* Col 5: 3 Filiales text */
.corpeduff-hero__bottom-col--5 {
    grid-column: 5 / 6;
    padding: 1.5vw;
    font-size: clamp(0.9rem, 1vw, 1.4rem);
    font-weight: 200;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

.corpeduff-hero__bottom-col--5 p { margin: 0; }

.corpeduff-hero__bottom-col--5 strong {
    color: var(--corpeduff-blue, #0d76a7);
}

/* Col 6: Eagle logo */
.corpeduff-hero__bottom-col--6 {
    grid-column: 6 / 7;
    background-color: var(--corpeduff-blue, #0d76a7);
    border-radius: 50% 50% 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5vw;
    margin: 1.5vw;
}

.corpeduff-hero__bottom-col--6 img {
    width: 40%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* =============================================
   AGENDA + NOTICIAS
   ============================================= */

.corpeduff-content {
    width: 100%;
    padding: 1.5vw 0 !important;
    background-color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.corpeduff-agenda-noticias {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto 35vh 35vh;
    gap: 0;
    margin-left: 3.5vw;
    margin-right: 3.5vw;
}

.corpeduff-section-title {
    font-size: clamp(2.5rem, 3.5vw, 5rem);
    font-weight: 500;
    color: var(--corpeduff-blue, #0d76a7);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.corpeduff-section-title--agenda {
    grid-column: 1 / 4;
    grid-row: 1;
    align-self: end;
    padding-bottom: 0.75vw;
    padding-left: 1.5vw;
}

.corpeduff-section-title--noticias {
    grid-column: 4 / 9;
    grid-row: 1;
    align-self: end;
    padding-bottom: 0.75vw;
}

/* Agenda: borde contenedor */
.corpeduff-agenda-items {
    grid-column: 1 / 3;
    grid-row: 2 / 4;
    border: 1px solid #d0d8de;
    border-radius: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.corpeduff-agenda-items .corpeduff-news-item {
    flex: 1;
    min-height: 0;
    padding: 1.5vw;
    box-sizing: border-box;
}

/* News item — compartido */
.corpeduff-news-item {
    display: flex;
    flex-direction: row;
    gap: 1.5vw;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.corpeduff-news-item__photo {
    width: 50%;
    aspect-ratio: 1;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.corpeduff-news-item__text {
    font-size: clamp(0.9rem, 1vw, 1.4rem);
    color: #555;
    line-height: 1.55;
    flex: 1;
    font-weight: 200;
    word-spacing: 0.7vw;
}

.corpeduff-news-item__text p { margin: 0; }

.corpeduff-news-item__text strong {
    color: var(--corpeduff-blue, #0d76a7);
    font-weight: 400;
}

/* Noticias: wrapper sub-grid 2×2 */
.corpeduff-noticias-items {
    grid-column: 3 / 9;
    grid-row: 2 / 4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    background-color: #e6f2f8;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}

.corpeduff-news-item--noticias {
    padding: 1.5vw;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* Row 2 photos: sin esquina top-right */
.corpeduff-news-item--row2 .corpeduff-news-item__photo {
    border-radius: 50% 0 50% 50%;
}

/* Row 3 photos: sin esquina bottom-left */
.corpeduff-news-item--row3 .corpeduff-news-item__photo {
    border-radius: 50% 50% 50% 0;
}
