* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    height: 100vh;
    padding: 8px;
}

.grid-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
}

.grid-item:hover {
    transform: scale(1.02);
}

.grid-item h2 {
    font-size: 32px;
    font-weight: 500;
    z-index: 1;
    line-height: 1.2;
}

/* Colores de las cajas */
.black-box {
    background-color: #1a1a1a;
    color: #ffffff;
}

.red-box {
    background-color: #ff0000;
    color: #1a1a1a;
}

.gray-box {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

/* Tamaños específicos de las secciones */
.project-university {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.pisos {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    z-index: 6;
}

.whatsapp {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.noticias {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    justify-content: center;
    align-items: center;
}

.puc {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    justify-content: center;
    align-items: center;
}

.descuentos {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.viajes {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    z-index: 6;
}

.not-found {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
    justify-content: center;
    align-items: center;
}

/* Iconos y elementos específicos */
.icon-pisos {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icon-pisos .line {
    width: 80px;
    height: 12px;
    background-color: #1a1a1a;
}

.icon-whatsapp {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    color: #1a1a1a;
}

.noticias {
    position: relative;
}

.noticias-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.quote-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.quote-left {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 200px;
    color: #ff0000;
    font-weight: bold;
    line-height: 0.8;
    font-family: Georgia, serif;
    opacity: 0.9;
}

.quote-right {
    position: absolute;
    bottom: 0px;
    right: 30px;
    font-size: 200px;
    color: #ff0000;
    font-weight: bold;
    line-height: 0.8;
    font-family: Georgia, serif;
    opacity: 0.9;
}

.noticias h2 {
    font-size: 56px;
    font-weight: 600;
    z-index: 2;
    margin-bottom: 20px;
}

.news-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0.6;
}

.news-line {
    height: 3px;
    background-color: #1a1a1a;
    width: 180px;
}

.news-line.short {
    width: 120px;
}

.puc-text {
    font-size: 120px;
    font-weight: 600;
}

.percent-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 140px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1;
}

.icon-plane {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    transform: rotate(-45deg);
}

.not-found-text {
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.not-found-text span {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .logo-line-h,
    .logo-line-v,
    .logo-badge {
        display: none;
    }

    body {
        padding: 0;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: 100vh;
        gap: 4px;
        padding: 4px;
    }
    
    .grid-item {
        padding: 20px;
        min-height: 0;
    }
    
    .grid-item h2 {
        font-size: 20px;
    }
    
    /* Layout móvil con tamaños diferentes */
    .project-university {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        min-height: 18vh;
    }
    
    .pisos {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        min-height: 15vh;
    }
    
    .noticias {
        grid-column: 2 / 3;
        grid-row: 2 / 4;
        min-height: 30vh;
    }
    
    .whatsapp {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        min-height: 15vh;
    }
    
    .puc {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        min-height: 18vh;
    }
    
    .descuentos {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
        min-height: 18vh;
    }
    
    .viajes {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
        min-height: 12vh;
    }
    
    .not-found {
        grid-column: 2 / 3;
        grid-row: 5 / 6;
        min-height: 12vh;
    }
    
    /* Ajustes de iconos en móvil */
    .icon-pisos {
        bottom: 15px;
        right: 15px;
    }
    
    .icon-pisos .line {
        width: 50px;
        height: 8px;
    }
    
    .icon-whatsapp {
        width: 60px;
        height: 60px;
        bottom: 15px;
    }
    
    .quote-left {
        font-size: 120px;
        top: 10px;
        left: 15px;
    }
    
    .quote-right {
        font-size: 120px;
        bottom: -10px;
        right: 15px;
    }
    
    .noticias h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .news-lines {
        gap: 6px;
    }
    
    .news-line {
        height: 2px;
        width: 100px;
    }
    
    .news-line.short {
        width: 60px;
    }
    
    .puc-text {
        font-size: 60px;
    }
    
    .percent-icon {
        font-size: 80px;
        bottom: 10px;
        right: 10px;
    }
    
    .icon-plane {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
    
    .not-found-text {
        font-size: 50px;
    }
    
    .not-found-text span {
        font-size: 12px;
    }
}

/* Logo badge central */
.logo-badge {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: #ff0000;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

/* Líneas blancas que simulan los gaps del grid cruzando el logo */
.logo-line-h,
.logo-line-v {
    position: fixed;
    background-color: #ffffff;
    z-index: 5;
    pointer-events: none;
}

.logo-line-h {
    width: 100vw;
    height: 8px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.logo-line-v {
    width: 8px;
    height: 100vh;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.logo-badge img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.grid-item {
    animation: fadeIn 0.4s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation-delay: 0.1s; }
.grid-item:nth-child(3) { animation-delay: 0.15s; }
.grid-item:nth-child(4) { animation-delay: 0.2s; }
.grid-item:nth-child(5) { animation-delay: 0.25s; }
.grid-item:nth-child(6) { animation-delay: 0.3s; }
.grid-item:nth-child(7) { animation-delay: 0.35s; }
.grid-item:nth-child(8) { animation-delay: 0.4s; }
