/* Variables */
:root {
    --primary-color: #e83e8c;
    --secondary-color: #6f42c1;
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --transition: all 0.3s ease;
}

/* Reset y estilos generales */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Cursor personalizado */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(232, 62, 140, 0.2);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 3rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.5rem 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Secciones generales */
.section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: var(--text-light);
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/principal.png') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
    animation: fadeInBackground 2s ease-in-out forwards;
}

@keyframes fadeInBackground {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

/* Animación del logo */
.logo-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-logo {
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(232, 62, 140, 0.8);
    opacity: 0;
    transform: scale(0.5);
}

.title-reveal h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    overflow: hidden;
    opacity: 0;
}

.subtitle-reveal h2 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 5px;
    overflow: hidden;
    opacity: 0;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    opacity: 0;
    animation: bounce 2s infinite 3s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Timeline Section */
.timeline {
    background-color: var(--bg-darker);
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-bottom: 6rem;
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s ease;
}

.timeline-item:hover {
    transform: perspective(1000px) rotateX(5deg);
}

.timeline-img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-item:hover .timeline-img {
    transform: translateX(-50%) scale(1.1) translateZ(30px);
    box-shadow: 0 0 30px rgba(232, 62, 140, 0.5);
}

.timeline-content {
    position: relative;
    width: calc(50% - 80px);
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 1;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    border-width: 15px 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(30, 30, 30, 0.8);
}

.timeline-content.right {
    left: calc(50% + 80px);
}

.timeline-content.right::before {
    left: -15px;
    right: auto;
    border-width: 15px 15px 15px 0;
    border-color: transparent rgba(30, 30, 30, 0.8) transparent transparent;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.date {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    background-color: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(30, 30, 30, 0.8);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: perspective(1000px) rotateY(0deg);
}

.project-card:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-15px);
    box-shadow: 0 15px 40px rgba(232, 62, 140, 0.4);
}

.project-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    opacity: 0.8;
}

.btn-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-more:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Videos Section */
.videos {
    background-color: var(--bg-darker);
}

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

.video-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.video-item:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(232, 62, 140, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.play-button i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.video-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(232, 62, 140, 0.7);
}

/* Social Section */
.social {
    background-color: var(--bg-dark);
}

.social-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: translateY(0) scale(1);
}

.social-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.4);
}

.social-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease, background-color 0.5s ease;
}

.social-icon i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.social-card:hover .social-icon {
    transform: rotateY(180deg);
    background-color: var(--secondary-color);
}

.social-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.social-info p:first-of-type {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-info p:last-of-type {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.btn-social {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-social:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.latest-posts {
    margin-top: 2rem;
}

.latest-posts h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-light);
}

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

.post-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-username {
    font-weight: 600;
    color: var(--primary-color);
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.6;
}

.post-content {
    margin-bottom: 1rem;
}

.post-footer a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.post-footer a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-social i {
    font-size: 1rem;
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* Media Queries */
@media (max-width: 1024px) {
    .title-reveal h1 {
        font-size: 4rem;
    }
    
    .subtitle-reveal h2 {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-img {
        left: 30px;
        width: 80px;
        height: 80px;
    }
    
    .timeline-content {
        width: calc(100% - 150px);
        left: 150px;
    }
    
    .timeline-content.right {
        left: 150px;
    }
    
    .timeline-content::before,
    .timeline-content.right::before {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    
    header.scrolled {
        padding: 1rem 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 99;
    }
    
    .menu.active {
        right: 0;
    }
    
    .title-reveal h1 {
        font-size: 3rem;
    }
    
    .subtitle-reveal h2 {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 120px);
        left: 120px;
    }
    
    .timeline-content.right {
        left: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .title-reveal h1 {
        font-size: 2.5rem;
    }
    
    .subtitle-reveal h2 {
        font-size: 1rem;
    }
    
    .timeline-img {
        width: 60px;
        height: 60px;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        left: 90px;
        padding: 1.5rem;
    }
    
    .timeline-content.right {
        left: 90px;
    }
    
    .projects-grid,
    .video-grid,
    .social-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
} 