/* Portfolio Mariano Domingo - 2026 */

:root {
    --primary-color: #6C63FF;
    --primary-light: #8B7FFF;
    --primary-dark: #5449D9;
    --secondary-color: #FF6B6B;
    --dark-bg: #1a1a2e;
    --dark-alt: #16213e;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--white);
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-alt) 100%);
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

/* Estilos para el carrusel de fondo */
#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    color: white;
}

.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-alt {
    background-color: var(--dark-alt);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 300px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.about-text p,
.about-text li {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-text strong {
    color: var(--white);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.skill-expert {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.skill-advanced {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
}

.skill-intermediate {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-light);
}

.skill-basic {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-light);
}

.skill-item small,
.skill-item .text-muted {
    color: var(--white) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.skills-grid .text-muted {
    color: var(--white) !important;
}

.work-card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.work-card .card-body {
    background: rgba(26, 26, 46, 0.6);
    padding: 1.5rem;
}

.work-card .card-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.work-card .card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tool-tag {
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.work-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.work-tabs .nav-link {
    background: transparent;
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--text-light);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.work-tabs .nav-link.active {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.work-tabs .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contact-form,
.contact-info {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 8px;
    padding: 0.75rem;
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.download-btn {
    background: linear-gradient(45deg, var(--success), #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.footer {
    background-color: var(--dark-alt);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.5);
}

.scroll-top.show {
    display: flex;
}

video {
    border-radius: 8px;
}

video:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 1rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .work-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .work-card .card-body {
        padding: 1rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}