/* ========================================
   CV Jeison Amell - Estilos Mejorados
   Diseño limpio y profesional
   ======================================== */

/* --- Variables y Reset --- */
:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --accent: #00d4ff;
    --dark: #0f2027;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    padding-top: 70px;
}

/* --- Navegación --- */
.navbar {
    background: rgba(15, 32, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* --- Header Hero --- */
.hero-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    padding: 100px 0 120px;
    margin-top: -70px;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.5;
}

.hero-header::after {
    content: '</>';
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 180px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    font-family: monospace;
    transform: rotate(-10deg);
}

.profile-img i {
    font-size: 130px;
    color: var(--white);
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    animation: float 4s ease-in-out infinite;
}

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

.hero-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero-header .lead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* --- Botones --- */
.btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.btn-light:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-dark {
    background: var(--dark);
}

.btn-dark:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* --- Contenedor Principal --- */
.container-main {
    max-width: 1100px;
    margin: -40px auto 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* --- Secciones --- */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #7e22ce);
    border-radius: 2px;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

/* --- Iconos --- */
.icon-box {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.icon-box.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.icon-box.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.icon-box.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-box.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* --- Progress Bars --- */
.progress {
    height: 10px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease;
}

/* --- Badges --- */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 600;
    font-size: 0.8rem;
}

/* --- Info Boxes --- */
.info-box {
    text-align: center;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-box:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.info-box i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.info-box:hover i {
    color: var(--white);
}

.info-box strong {
    font-weight: 600;
}

/* --- Habilidades --- */
.skill-item {
    margin-bottom: 1.2rem;
}

.skill-item .fw-bold {
    font-size: 0.95rem;
}

/* --- Proyectos --- */
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* --- Footer --- */
.footer {
    background: var(--dark);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin: 0 12px;
    transition: var(--transition);
    display: inline-block;
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
    .container-main {
        margin: 0;
        border-radius: 0;
    }
    
    .hero-header {
        padding: 80px 0 100px;
    }
    
    .hero-header h1 {
        font-size: 2.2rem;
    }
    
    .hero-header .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 1.8rem;
    }
    
    .profile-img i {
        font-size: 100px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-header h1 {
        font-size: 1.5rem;
    }
    
    .hero-header .lead {
        font-size: 1rem;
    }
    
    .section {
        padding: 35px 0;
    }
}

/* --- Animaciones Suaves --- */
.fade-in {
    animation: fadeIn 0.6s ease;
}

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

.card {
    animation: fadeIn 0.6s ease;
    animation-fill-mode: both;
}

.section:nth-child(1) .card { animation-delay: 0.1s; }
.section:nth-child(2) .card { animation-delay: 0.2s; }
.section:nth-child(3) .card { animation-delay: 0.3s; }
