/* ==================== 
   VARIABLES Y RESET 
   ==================== */

:root {
    --primary-color: #3498db;      /* Azul más saturado */
    --secondary-color: #aed6f1;    /* Azul claro más saturado */
    --accent-color: #2ecc71;       /* Verde más saturado */
    --light-bg: #f4f6f7;           /* Gris muy claro ligeramente más saturado */
    --white: #ffffff;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #d0d3d4;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==================== 
   CONTENEDOR
   ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 
   HEADER Y NAVEGACIÓN
   ==================== */

.header {
    background-color: var(--white);
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 1.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==================== 
   HERO SECTION
   ==================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='data-pattern' x='0' y='0' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Crect x='0' y='0' width='20' height='20' fill='none'/%3E%3Cpath d='M0 10 L10 10 L10 20 L0 20 Z' fill='rgba(255,255,255,0.1)'/%3E%3Cpath d='M10 0 L20 0 L20 10 L10 10 Z' fill='rgba(255,255,255,0.05)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23data-pattern)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 
   BOTONES
   ==================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin: 0 0.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-secondary i {
    font-size: 1rem;
}

.btn-cv {
    background-color: #A82E2E;
    color: var(--white);
    border: 2px solid #A82E2E;
}

.btn-cv:hover {
    background-color: #8B2020;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(168, 46, 46, 0.3);
}

.btn-connect {
    background-color: #1565C0;
    color: var(--white);
    border: 2px solid #1565C0;
}

.btn-connect:hover {
    background-color: #0D47A1;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(21, 101, 192, 0.3);
}

/* ==================== 
   SECCIONES
   ==================== */

.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.section h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* ==================== 
   SECTION: ABOUT
   ==================== */

.about {
    background-color: var(--white);
}

.about p {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight-box {
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--dark-text);
}

/* ==================== 
   SECTION: SKILLS
   ==================== */

.skills {
    background-color: var(--light-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.skill-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.skill-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.skill-card-projects {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    border-top: 4px solid var(--primary-color);
}

.skill-card-projects:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.projects-list {
    list-style: none;
    padding: 0;
}

.projects-list li {
    color: var(--light-text);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.projects-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==================== 
   SECTION: EXPERIENCE
   ==================== */

.experience {
    background-color: var(--white);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
}

.timeline-item {
    margin-left: 2.5rem;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.timeline-item .period {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item p:not(.period) {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* ==================== 
   SECTION: CONTACT
   ==================== */

.contact {
    background-image: url('image/End-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    text-align: center;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.23);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact h3::after {
    background-color: var(--accent-color);
}

.contact > .container > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 30px rgba(46, 204, 113, 0.6),
                 0 0 40px rgba(46, 204, 113, 0.4),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(46, 204, 113, 0.6),
                     0 0 40px rgba(46, 204, 113, 0.4),
                     2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 1),
                     0 0 40px rgba(46, 204, 113, 0.8),
                     0 0 50px rgba(46, 204, 113, 0.6),
                     2px 2px 6px rgba(0, 0, 0, 0.8);
    }
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==================== 
   FOOTER
   ==================== */

.footer {
    background-color: #1f5a7a;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ==================== 
   RESPONSIVE DESIGN
   ==================== */

@media (max-width: 768px) {
    .nav-links {
           gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .section h3 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        width: 100%;
    }

    .timeline::before {
        left: -20px;
    }

    .timeline-item {
        margin-left: 0;
        padding-left: 3rem;
    }

    .timeline-item::before {
        left: -30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .nav-links {
         gap: 0.6rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .section h3 {
        font-size: 1.5rem;
    }

}


