/* Fondo blanco forzado - Actualizado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #ffffff;
    background: #ffffff;
    animation: backgroundColorShift 20s ease-in-out infinite;
}

body {
    font-family: 'VT323', monospace;
    background-color: #ffffff;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    animation: backgroundColorShift 20s ease-in-out infinite;
}

@keyframes backgroundColorShift {
    0%, 100% {
        background-color: #ffffff;
    }
    50% {
        background-color: #f0f4ff;
    }
}

/* Fondo pixel art estilo Minecraft - Cuadrados blancos/grises */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: none;
    pointer-events: none;
    z-index: 0;
}

@keyframes pixelArtPulse {
    0%, 100% {
        filter: brightness(1) contrast(1);
        opacity: 1;
    }
    25% {
        filter: brightness(0.98) contrast(1.02);
        opacity: 0.95;
    }
    50% {
        filter: brightness(0.96) contrast(1.04);
        opacity: 0.9;
    }
    75% {
        filter: brightness(0.98) contrast(1.02);
        opacity: 0.95;
    }
}

/* Capa adicional con variación de tonos - Efecto Minecraft */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.1s ease;
    pointer-events: none;
}

@keyframes pixelArtColorShift {
    0%, 100% {
        opacity: 0.6;
        filter: brightness(1);
    }
    25% {
        opacity: 0.7;
        filter: brightness(0.98);
    }
    50% {
        opacity: 0.8;
        filter: brightness(0.96);
    }
    75% {
        opacity: 0.7;
        filter: brightness(0.98);
    }
}

/* Patrón adicional de cuadrados con variación sutil */
.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    pointer-events: none;
    z-index: 0;
}

@keyframes pixelArtSubtle {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes backgroundLinesMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

section {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenedor principal */
.main-container {
    width: 100%;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Sección superior: Perfil y Redes (dos columnas) */
.top-section {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: transparent;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Columna de perfil (izquierda) */
.profile-column {
    flex: 0 0 45%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 60px 60px 60px;
    position: relative;
    overflow: visible;
}

/* Columna de redes sociales (derecha) */
.social-column {
    flex: 0 0 55%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 60px 60px 60px;
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    overflow: visible;
}

/* Sección de proyectos (ancho completo, debajo) */
.projects-section {
    width: 100%;
    padding: 80px 0;
    background: transparent;
    position: relative;
}

/* Contenido de perfil */
.hero-content {
    text-align: center;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
    padding-bottom: 0;
}

/* Contenido de redes sociales */
.social-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    padding-bottom: 0;
}

/* Líneas decorativas sutiles en columnas */
.profile-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    pointer-events: none;
    z-index: 0;
}

.social-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    pointer-events: none;
    z-index: 0;
}

@keyframes subtlePatternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

@keyframes lineFloat1 {
    0%, 100% {
        transform: rotate(25deg) translateY(0) translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: rotate(25deg) translateY(-30px) translateX(20px);
        opacity: 0.8;
    }
}

@keyframes lineFloat2 {
    0%, 100% {
        transform: rotate(-35deg) translateY(0) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: rotate(-35deg) translateY(25px) translateX(-15px);
        opacity: 0.7;
    }
}

@keyframes lineFloat3 {
    0%, 100% {
        transform: rotate(45deg) translateY(0) translateX(0);
        opacity: 0.45;
    }
    50% {
        transform: rotate(45deg) translateY(-20px) translateX(10px);
        opacity: 0.75;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hero content ya está definido arriba */

.profile-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 1s ease-out, subtlePulse 4s ease-in-out infinite;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(102, 126, 234, 0.2);
    }
}

.hero-info {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Animaciones de entrada */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Nube de diálogo estilo pixel art */
.speech-bubble {
    position: relative;
    background: #fff;
    border: 4px solid #000;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.8);
    width: 400px;
    max-width: 100%;
    min-width: 0;
    height: 100px;
    min-height: 100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bubbleFloat 3s ease-in-out infinite, bubblePulse 2s ease-in-out infinite;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-sizing: border-box;
}

/* Cola de la nube apuntando hacia arriba (hacia la foto) */
.speech-bubble::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid #000;
    filter: drop-shadow(2px -2px 0px rgba(0, 0, 0, 0.2));
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-bottom: 16px solid #fff;
    z-index: 1;
}

.speech-text {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 1rem;
    color: #000;
    margin: 0;
    text-align: center;
    line-height: 1.6;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.1);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    animation: textBlink 0.1s step-end infinite;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes bubblePulse {
    0%, 100% {
        box-shadow: 
            4px 4px 0px rgba(0, 0, 0, 0.2),
            inset 2px 2px 0px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            6px 6px 0px rgba(0, 0, 0, 0.25),
            inset 2px 2px 0px rgba(255, 255, 255, 0.9);
    }
}

@keyframes textBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.95;
    }
}

.name {
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    text-align: center;
    color: #000;
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.1),
        1px 1px 0px rgba(0, 0, 0, 0.1);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    font-weight: 400;
    font-family: 'Press Start 2P', 'VT323', monospace;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1);
}

.title:hover {
    color: #667eea;
}

.location {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'VT323', monospace;
    letter-spacing: 0.5px;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.05);
}

.info-list {
    list-style: none;
    padding: 0;
    margin-top: 6px;
    margin-bottom: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 0;
    color: #333;
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    text-align: left;
    font-family: 'Press Start 2P', 'VT323', monospace;
    letter-spacing: 0.5px;
    line-height: 1.6;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.05);
}

.info-list li:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.info-list li:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.info-list li:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.info-list li:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.info-list li:hover {
    transform: translateX(3px);
    color: #000;
    animation-play-state: paused;
}

.info-list .emoji {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes emojiBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

.info-list li:nth-child(1) .emoji {
    --emoji-index: 0;
}

.info-list li:nth-child(2) .emoji {
    --emoji-index: 1;
}

.info-list li:nth-child(3) .emoji {
    --emoji-index: 2;
}

.info-list li:nth-child(4) .emoji {
    --emoji-index: 3;
}

/* Botón de WhatsApp en la primera sección */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    border: 3px solid #000;
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 0.7rem;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.3);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.whatsapp-button i {
    font-size: 1.2rem;
    color: #fff;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.25),
        inset 2px 2px 0px rgba(255, 255, 255, 0.4);
}

.whatsapp-button:active {
    transform: translateY(0);
    box-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.3);
}

/* Estilos de redes sociales ya están en .social-column */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: 'VT323', monospace;
    letter-spacing: 3px;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.1),
        1px 1px 0px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: expandLine 1s ease-out, pulseLine 2s ease-in-out infinite 1s;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes pulseLine {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1.2);
    }
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 650px;
    padding: 20px 0 20px 0;
}

/* Ajustar para que la última tarjeta ocupe más espacio si hay número impar */
.social-icons .social-icon:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
}


.social-icon {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
    padding: 30px 20px;
    min-height: 180px;
    text-align: center;
    aspect-ratio: 1;
}

/* Efecto pixel art en las tarjetas de redes sociales */
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    pointer-events: none;
    border-radius: 12px;
}


.social-icon:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes floatInfoCard {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-5px) translateX(2px);
    }
    50% {
        transform: translateY(-8px) translateX(0px);
    }
    75% {
        transform: translateY(-5px) translateX(-2px);
    }
}


.social-icon i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

.social-icon .social-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin-top: 10px;
}

.social-icon .social-handle {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.social-icon:hover {
    transform: translateY(-20px) rotate(calc(var(--initial-rotate, 0deg) + 10deg)) scale(1.2);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation-play-state: paused;
    filter: brightness(1.15);
}

@keyframes floatContinuous {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(var(--initial-rotate, 0deg));
    }
    25% {
        transform: translateY(-20px) translateX(5px) rotate(calc(var(--initial-rotate, 0deg) + 4deg));
    }
    50% {
        transform: translateY(-35px) translateX(-3px) rotate(calc(var(--initial-rotate, 0deg) + 8deg));
    }
    75% {
        transform: translateY(-20px) translateX(-5px) rotate(calc(var(--initial-rotate, 0deg) + 4deg));
    }
}

/* Tamaños variados para cada icono */
.social-icon.whatsapp {
    --initial-rotate: -8deg;
}

.social-icon.linkedin {
    --initial-rotate: 12deg;
}

.social-icon.instagram {
    --initial-rotate: -15deg;
}

.social-icon.github {
    --initial-rotate: 15deg;
}

.social-icon.youtube {
    --initial-rotate: -10deg;
}

/* Colores específicos para cada red social */
.social-icon.whatsapp i {
    color: #25D366;
}

.social-icon.linkedin i {
    color: #0077B5;
}

.social-icon.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-icon.github i {
    color: #333;
}

.social-icon.youtube i {
    color: #FF0000;
}

/* Flecha de scroll estilo pixel */
.scroll-arrow {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.arrow-pixel {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 2rem;
    color: #000;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.3),
        2px 2px 0px rgba(0, 0, 0, 0.2);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.2));
    animation: arrowBounce 1.5s ease-in-out infinite;
    display: block;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.8;
    }
}

/* Responsive: Móviles - Layout en columna */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        min-height: 100vh;
        max-width: 100%;
        overflow: hidden;
    }
    
    .profile-column {
        flex: 1 1 100%;
        padding: 10px 15px 50px 15px;
        min-height: 100vh;
        max-height: 100vh;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .hero-content {
        padding-bottom: 0;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .profile-photo {
        margin-bottom: 20px;
    }
    
    .hero-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .info-list {
        margin-top: 15px;
        margin-bottom: 10px;
        flex: 0 0 auto;
        width: 100%;
    }
    
    .whatsapp-button {
        font-size: 0.5rem;
        padding: 10px 15px;
        margin-top: 10px;
        gap: 8px;
        width: auto;
        max-width: 90%;
    }
    
    .whatsapp-button i {
        font-size: 1rem;
    }
    
    .whatsapp-button span {
        font-size: 0.5rem;
    }
    
    .scroll-arrow {
        display: block !important;
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        z-index: 10000;
        pointer-events: none;
    }
    
    .social-column {
        flex: 1 1 100%;
        padding: 40px 20px 60px 20px;
        min-height: auto;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: none;
        overflow: visible;
    }
    
    .social-column.visible {
        display: block;
    }
    
    /* En desktop, siempre visible */
    @media (min-width: 769px) {
        .social-column {
            display: flex !important;
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
    }
    
    .social-content {
        width: 100%;
        max-width: 100%;
    }
    
    .projects-section {
        padding: 60px 0;
    }
    
    .social-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        padding: 10px 0 20px 0;
    }
    
    .social-icon {
        min-height: 120px;
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1;
        border-radius: 4px;
    }
    
    .social-icon::before {
        border-radius: 4px;
    }
    
    .social-icon i {
        font-size: 2.5rem;
    }
    
    .social-icon:last-child:nth-child(odd) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .speech-bubble {
        width: 95%;
        min-width: 0;
        max-width: 95%;
        height: auto;
        min-height: 65px;
        padding: 10px 12px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .speech-text {
        font-size: 0.55rem;
        min-height: 1.6em;
        height: auto;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .title {
        font-size: 0.7rem;
        padding: 0 5px;
        margin-bottom: 6px;
        word-wrap: break-word;
    }
    
    .location {
        font-size: 0.65rem;
        padding: 0 5px;
        margin-bottom: 12px;
        word-wrap: break-word;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .info-list li {
        font-size: 0.55rem;
        padding: 6px 0;
        justify-content: flex-start;
        text-align: left;
        font-family: 'Press Start 2P', 'VT323', monospace;
        line-height: 1.9;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .info-list li span:last-child {
        flex: 1;
        min-width: 0;
    }
    
    .info-list .emoji {
        font-size: 0.9rem;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .scroll-arrow {
        bottom: 10px;
        z-index: 1000;
    }
    
    .arrow-pixel {
        font-size: 1.5rem;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .profile-column {
        padding: 40px 15px;
    }
    
    .social-column {
        padding: 40px 15px 70px 15px;
        overflow: visible;
        display: none;
    }
    
    .social-column.visible {
        display: block;
    }
    
    .social-icon {
        min-height: 110px;
        padding: 18px 12px;
        border-radius: 4px;
    }
    
    .social-icon::before {
        border-radius: 4px;
    }
    
    .social-icon i {
        font-size: 2.2rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .speech-bubble {
        width: 95%;
        min-width: 0;
        max-width: 95%;
        height: auto;
        min-height: 55px;
        padding: 7px 9px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .speech-text {
        font-size: 0.5rem;
        line-height: 1.4;
        min-height: 1.5em;
        height: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
        margin-bottom: 18px;
    }
}

/* Líneas decorativas en sección de proyectos */
.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    pointer-events: none;
    z-index: 0;
}

.projects-container {
    margin-bottom: 60px;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease-out backwards;
}

.project-card-link:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card-link:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card-link:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.project-card-link:hover .project-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: #f0f0f0;
}

/* Placeholder cuando la imagen no carga */
.project-image {
    background: #f5f5f5;
    position: relative;
}

/* Manejar imágenes que no cargan */
.project-image[src*="proyecto"] {
    background: #f5f5f5;
}

.project-image[src*="proyecto"]::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
    pointer-events: none;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1);
}

.project-title::before {
    content: '🚀';
    margin-right: 8px;
    display: inline-block;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.project-card:hover .project-title {
    color: #667eea;
    transform: translateX(5px);
}

.project-description {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    font-family: 'VT323', monospace;
    letter-spacing: 0.5px;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.05);
}

.project-actions {
    display: flex;
    gap: 10px;
}

.project-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
}

.btn-upload {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}


/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mejorar visibilidad de elementos al hacer scroll */
.fade-in {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Indicador de progreso de scroll (opcional, muy sutil) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 0.85rem;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .location {
        font-size: 0.8rem;
        margin-bottom: 20px;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
        margin-bottom: 25px;
    }
    
    .info-list li {
        font-size: 0.7rem;
        padding: 8px 0;
        font-family: 'Press Start 2P', 'VT323', monospace;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .info-list li span:last-child {
        flex: 1;
        min-width: 0;
    }
    
    .info-list .emoji {
        font-size: 1.2rem;
        margin-right: 10px;
        width: 25px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
        margin-bottom: 25px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-info {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .name {
        padding: 0 15px;
        font-size: 2.2rem;
    }
    
    .title {
        padding: 0 10px;
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .location {
        padding: 0 10px;
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    .info-list {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-list li {
        text-align: left;
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
        font-family: 'Press Start 2P', 'VT323', monospace;
    }
    
    .social-icons {
        gap: 20px;
        min-height: 300px;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        min-height: auto;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 10px;
        --initial-rotate: 0deg;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .projects-section-overlay {
        padding: 30px 0;
        padding-top: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
    }
    
    .projects-section-overlay.active {
        overflow-y: auto !important;
    }
    
    .projects-section-overlay .container {
        padding: 15px;
        min-height: auto;
    }
    
    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .project-card {
        margin-bottom: 0;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    
    /* Ajustar líneas decorativas en móvil */
    .profile-section::after {
        width: 250px;
        top: 15%;
        height: 2.5px;
    }
    
    .profile-section .hero-content::before {
        width: 200px;
        bottom: -20%;
        right: -10%;
        height: 2.5px;
    }
    
    .profile-section .hero-content::after {
        width: 150px;
        top: -15%;
        height: 2px;
    }
    
    /* Líneas de fondo sutiles en móvil */
    .profile-section::before {
        background-image: none;
    }
    
    .social-section-overlay::before {
        background-image: none;
    }
    
    .projects-section-overlay::before {
        background-image: none;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 0.7rem;
        padding: 0 5px;
        margin-bottom: 5px;
        word-wrap: break-word;
    }
    
    .location {
        font-size: 0.6rem;
        padding: 0 5px;
        margin-bottom: 8px;
        word-wrap: break-word;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
        margin-bottom: 18px;
    }
    
    .info-list li {
        font-size: 0.55rem;
        padding: 6px 0;
        font-family: 'Press Start 2P', 'VT323', monospace;
        line-height: 1.9;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .info-list li span:last-child {
        flex: 1;
        min-width: 0;
    }
    
    .info-list .emoji {
        font-size: 0.9rem;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .whatsapp-button {
        font-size: 0.45rem;
        padding: 8px 12px;
        margin-top: 8px;
        gap: 6px;
        width: auto;
        max-width: 90%;
    }
    
    .whatsapp-button i {
        font-size: 0.9rem;
    }
    
    .whatsapp-button span {
        font-size: 0.45rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
}

