/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-muted: #888;
    --accent-color: #f42373;
    --border-color: #333;
    --max-width: 800px;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-weight: 300;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.titulo {
    font-size: 4rem;
    font-weight: 400;
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out, neonPulse 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 
        0 0 5px rgba(244, 35, 115, 0.8),
        0 0 10px rgba(244, 35, 115, 0.6),
        0 0 20px rgba(244, 35, 115, 0.4);
}

.titulo a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.titulo a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(244, 35, 115, 0.8), 0 0 60px rgba(244, 35, 115, 0.4);
    animation: projectorFlicker 0.5s ease-in-out;
}

.titulo a:active {
    animation: claquetaFlash 0.3s ease-out, shake 0.3s ease-in-out;
    transform: scale(0.95);
}

/* Animación de proyector cinematográfico */
@keyframes projectorFlicker {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.8; }
    20% { opacity: 1; }
    30% { opacity: 0.6; }
    40% { opacity: 1; }
    50% { opacity: 0.9; }
    60% { opacity: 1; }
    70% { opacity: 0.7; }
    80% { opacity: 1; }
    90% { opacity: 0.85; }
}

/* Flash de claqueta al hacer clic */
@keyframes claquetaFlash {
    0% { 
        filter: brightness(1);
        text-shadow: 0 0 30px rgba(244, 35, 115, 0.8);
    }
    20% { 
        filter: brightness(3);
        text-shadow: 0 0 100px rgba(255, 255, 255, 1), 0 0 150px rgba(244, 35, 115, 1);
        color: #fff;
    }
    40% { 
        filter: brightness(1);
        text-shadow: 0 0 30px rgba(244, 35, 115, 0.8);
    }
    60% { 
        filter: brightness(2);
        text-shadow: 0 0 80px rgba(255, 255, 255, 0.8);
    }
    100% { 
        filter: brightness(1);
        text-shadow: 0 0 30px rgba(244, 35, 115, 0.8);
    }
}

/* Efecto de vibración tipo cámara */
@keyframes shake {
    0%, 100% { transform: scale(0.95) translateX(0); }
    10% { transform: scale(0.95) translateX(-2px); }
    20% { transform: scale(0.95) translateX(2px); }
    30% { transform: scale(0.95) translateX(-2px); }
    40% { transform: scale(0.95) translateX(2px); }
    50% { transform: scale(0.95) translateX(-1px); }
    60% { transform: scale(0.95) translateX(1px); }
    70% { transform: scale(0.95) translateX(-1px); }
    80% { transform: scale(0.95) translateX(1px); }
    90% { transform: scale(0.95) translateX(0); }
}

/* Navegación */
nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav a:hover,
nav a.activo {
    color: var(--accent-color);
    font-weight: 600;
}

/* Main */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

/* Contenido general */
.contenido h2 {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: 'Anton', sans-serif;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contenido h3 {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Anton', sans-serif;
    margin: 2rem 0 1rem;
    color: var(--accent-color);
}

.contenido p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contenido a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contenido a:hover {
    border-bottom-color: var(--accent-color);
}

.contenido em {
    color: var(--text-color);
    font-style: italic;
}

/* Entradas de blog */
.entradas {
    max-width: 700px;
    margin: 0 auto;
}

.entrada {
    margin-bottom: 4rem;
}

.titulo-entrada {
    font-size: 2rem;
    font-weight: 400;
    font-family: 'Anton', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.fecha {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.imagen-entrada {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.contenido-entrada p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

/* Proyectos */
.proyectos-grid {
    display: grid;
    gap: 1.5rem;
}

.proyecto {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.proyecto:last-child {
    border-bottom: none;
}

.proyecto h3 {
    font-size: 1.3rem;
    font-weight: 400;
    font-family: 'Anton', sans-serif;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.proyecto .año {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.proyecto p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contacto */
.info-contacto {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.info-contacto p {
    margin-bottom: 0.8rem;
}

.info-contacto p:last-child {
    margin-bottom: 0;
}

.apoyo {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.apoyo h3 {
    margin-top: 0;
}

/* Videos */
.video-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.video-container iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(244, 35, 115, 0.2);
}

.video-link-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(244, 35, 115, 0.5);
    transform: translateY(-2px);
}

.play-icon {
    width: 20px;
    height: 20px;
}

/* Redes sociales */
.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(244, 35, 115, 0.5);
    transform: translateY(-3px);
}

.social-icon {
    width: 22px;
    height: 22px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(244, 35, 115, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(244, 35, 115, 0.6), 0 0 40px rgba(244, 35, 115, 0.3);
    }
}

/* Pulso de luz de neón continuo */
@keyframes neonPulse {
    0% {
        text-shadow: 
            0 0 5px rgba(244, 35, 115, 0.6),
            0 0 10px rgba(244, 35, 115, 0.4),
            0 0 20px rgba(244, 35, 115, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(244, 35, 115, 1),
            0 0 25px rgba(244, 35, 115, 0.9),
            0 0 50px rgba(244, 35, 115, 0.7),
            0 0 80px rgba(244, 35, 115, 0.4);
    }
    100% {
        text-shadow: 
            0 0 5px rgba(244, 35, 115, 0.6),
            0 0 10px rgba(244, 35, 115, 0.4),
            0 0 20px rgba(244, 35, 115, 0.2);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .titulo {
        font-size: 3.2rem;
        letter-spacing: 0.03em;
    }

    nav {
        gap: 0.6rem;
    }

    nav a {
        font-size: 0.85rem;
        letter-spacing: 0.03em;
        padding: 0.4rem 0;
    }

    main {
        padding: 2rem 1rem;
    }

    .titulo-entrada {
        font-size: 1.4rem;
    }

    .contenido-entrada p {
        text-align: left;
    }
}
