:root {
    --bg-color: #ffffff;
    --bg-alt: #f4f6f9;
    --text-primary: #1e1e24;
    --text-secondary: #5a5a6a;
    --accent: #c41e1e; /* Crimson red */
    --accent-hover: #9e1818;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.navbar {
    width: 280px;
    height: 100vh;
    background-color: var(--bg-alt);
    position: fixed;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    z-index: 100;
}

.logo-img {
    width: 90px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--glass-bg);
    border-right: 3px solid var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    min-height: 100vh;
}

.section {
    padding: 100px 8%;
}

.dark-alt {
    background-color: var(--bg-alt);
}

/* Typography styles */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 3px;
    background: var(--accent);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 50px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(217, 37, 37, 0.1);
    color: var(--accent);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(217, 37, 37, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(217, 37, 37, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
}

/* Timeline and Trayectoria Layout */
.trayectoria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}
.timeline {
    position: relative;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent);
}

.timeline-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.timeline-item p {
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Trayectoria y Galería Images */
.side-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

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

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

/* Social Cards */
.social-cta-section {
    background: var(--bg-alt);
}

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-family: var(--font-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before { opacity: 1; }

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.social-card i {
    font-size: 2.8rem;
}

.social-platform {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-handle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Per-platform colors */
.social-card.twitter   { background: linear-gradient(135deg, #14171A, #2c2c2c); }
.social-card.facebook  { background: linear-gradient(135deg, #1877F2, #0d5fd8); }
.social-card.instagram { background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.social-card.linkedin  { background: linear-gradient(135deg, #0077B5, #005580); }
.social-card.tiktok    { background: linear-gradient(135deg, #010101, #2e2e2e); }

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

footer {
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links, .social-links {
        display: none; /* simple hidden for mobile mockup */
    }
    
    .logo {
        margin-bottom: 0;
        font-size: 1.8rem;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-section {
        flex-direction: column;
        padding-top: 100px;
        height: auto;
        text-align: center;
    }
    
    .trayectoria-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float 6s ease-in-out infinite alternate;
    animation-delay: 2s;
}

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

.slide-up {
    animation: slideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
