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;
}


.seccion1 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 150px; /* espacio para la cabecera fija */
    background: linear-gradient(to bottom, #0e0d0c 0%, #e7ebf2 100%);
    scroll-margin-top: 100px; /* ajuste según la altura de su header */
}

.foto-perfil{
    border-radius: 100%;
    width: 350px;
}

.contenido {
    max-width: 800px;
    text-align: left;
    padding: 0 20px;
}

.seccion1 h1 {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.seccion1 h3 {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 32px;
}


.social {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    color: #ffffff;
}

.social h2 {
    font-size: 1.4rem;
    margin-bottom: 40px;
    margin-top: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-link {
    margin-top: 35px;
    font-size: 2.5rem;
    color: #ffffff;
    transition: transform 0.3s, color 0.3s;
}

.social-link:hover {
    color: #ff6600;
    transform: scale(1.2);
}

.scroll-hint {
    text-align: center;
    margin-top: 60px;
    font-size: 0.9rem;
    color: #ff6600;
    animation: parpadeo 2s infinite;
}

@keyframes parpadeo {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}


section {
    padding: 100px 15%;
    text-align: center;
}

.sobre {
    background-color: #f5f5f5;
    color: #111;
}

.experiencia {
    background-color: #fff;
    color: #111;
}

.skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill {
    background: #eee;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
}

.proyectos {
    background-color: #f5f5f5;
    color: #111;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}


.contacto {
    background-color: #fff;
    color: #111;
}

.btn-contacto {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #ff6600;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-contacto:hover {
    background: #111;
    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;
}


