/* style.css - Estilos principales */

:root {
    --primary-color: #0a2647;
    --secondary-color: #2c74b3;
    --accent-color: #205295;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --cyber-green: #00ff9d;
    --ai-purple: #9d4edd;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navegación */
.navbar {
    background-color: rgba(10, 38, 71, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: var(--primary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand .text-primary {
    color: var(--secondary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 38, 71, 0.85), rgba(10, 38, 71, 0.9)), 
                url('../images/salvador.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(32, 82, 149, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 78, 221, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 157, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.tech-tag {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-ti {
    background-color: var(--secondary-color);
    color: white;
}

.tag-cyber {
    background-color: var(--cyber-green);
    color: var(--primary-color);
}

.tag-ai {
    background-color: var(--ai-purple);
    color: white;
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--ai-purple));
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

.bg-light-alt {
    background-color: #f0f4f8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: -10px;
    background-color: white;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--secondary-color);
    border: 5px solid white;
    border-radius: 50%;
    top: 15px;
    z-index: 2;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

/* Skill Cards */
.skill-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.skill-level .progress {
    height: 8px;
    border-radius: 4px;
}

.skill-level .progress-bar {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Chatbot */
.chatbot-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 100%;
}

.chatbot-header {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 20px;
}

.chatbot-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.bot-message {
    background-color: #f1f3f4;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    align-self: flex-start;
}

.user-message {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
    margin-left: auto;
}

.chatbot-input {
    border-top: 1px solid #eee;
    padding: 15px;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.whatsapp {
    background-color: #25D366;
}

.linkedin {
    background-color: #0A66C2;
}

.twitter {
    background-color: #1DA1F2;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-content {
    padding: 20px;
}

.blog-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  .container {
    padding: 10px;
  }
}


@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

    @keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
