.parent {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}

.div1 { grid-area: 1 / 1 / 2 / 6; }
.div2 { grid-area: 2 / 1 / 4 / 3; }
.div3 { grid-area: 2 / 4 / 4 / 6; }
.div4 { grid-area: 4 / 1 / 6 / 3; }
.div5 { grid-area: 4 / 4 / 6 / 6; }
.div6 { grid-area: 2 / 3 / 6 / 4; }

body {
    background: linear-gradient(to bottom, #111 0%, #2a2a2a 40%, #f0f0f0 100%);
    min-height: 100vh; 
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-light);
    line-height: 1.5;
}

.letras{
    color: aliceblue;
}

.rol {
    color: #ddd;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 10px;
}


:root {
    --bg-dark: #0d0c0a;
    --text-light: #fff;
    --accent: #ff6600;
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(to bottom, #1d1d1f 0%, #e6e6e6 100%);
    color: var(--text-light);
    line-height: 1.5;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav a:hover {
    color: #ff6600;
    transition: 0.3s;
}

/* === PÁGINA DE DETALLE DEL PROYECTO === */
.project-detail {
    max-width: 1000px;
    margin: 120px auto;
    padding: 40px;
    color: #fff;
}

/* Sección superior con imagen destacada */
.project-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.project-image {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    object-fit: cover;
}

.project-info h2 {
    color: #ff6600;
    font-size: 2rem;
    margin-top: 20px;
}

.project-role {
    font-size: 1rem;
    color: #ddd;
}

/* Descripción del proyecto */
.project-description {
    margin-top: 60px;
    line-height: 1.7;
}

.project-description h3 {
    color: #ff6600;
    margin-bottom: 20px;
}

/* Galería */
.project-gallery {
    margin-top: 60px;
}

.project-gallery h3 {
    color: #ff6600;
    margin-bottom: 20px;
}

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

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Botones de recursos */
.project-links {
    margin-top: 60px;
    text-align: center;
}

.project-links h3 {
    color: #ff6600;
    margin-bottom: 30px;
}

.project-btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    margin: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.project-btn:hover {
    background-color: #e05500;
    transform: scale(1.05);
}

.project-btn.secondary {
    background-color: transparent;
    border: 1px solid #ff6600;
    color: #ff6600;
}

.project-btn.secondary:hover {
    background-color: #ff6600;
    color: #fff;
}

footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 30px;
}

a{
    color: #ff6600;
    text-decoration: none;
}

.footer-socials a {
    color: #aaa;
    margin: 0 10px;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: orange;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

/* Dispositivos muy pequeños (móviles verticales) */
@media (max-width: 480px) {
    /* Ejemplos */
    header {
        padding: 10px 20px;
    }

    .nav a {
        margin-left: 10px;
        font-size: 0.8rem;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
    }

    iframe {
        width: 100%;
        height: auto;
    }
}

/* Móviles medianos / grandes */
@media (max-width: 768px) {
    .nav a {
        margin-left: 12px;
        font-size: 0.9rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    iframe {
        aspect-ratio: 16 / 9;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        padding: 15px 30px;
    }
}

/* Laptops / pantallas medianas */
@media (max-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

img, iframe, video {
    max-width: 100%;
    height: auto;
}

.video-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav a {
        margin-left: 0;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
}