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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #48bb78;
    --accent: #ed8936;
    --background: #fafbfc;
    --card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #e8eaf6 0%, #f5f7fa 50%, #e3f2fd 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Diseño Minimalista y Limpio */
.hero-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eaf6 0%, #f5f7fa 50%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-title-main {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-title-accent {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #3b4ba0 0%, #667eea 50%, #5a72d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-name {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #3b4ba0, #667eea);
    color: white;
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #2d3d8c, #5568d3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(26, 32, 44, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.05);
}

.hero-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    background: rgba(102, 126, 234, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px;
    opacity: 0.5;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* Header Animation */
.hero-header {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-title-main {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.hero-name {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-title-accent {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out 0.5s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-social {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

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

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

/* Main Content */
.main {
    padding: 4rem 0;
    background: transparent;
}

/* Modern Card Styles */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
}

.card-body {
    padding: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: -0.02em;
}

.section-title i {
    color: var(--primary);
    font-size: 1.5rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

/* Objective Section */
.objective-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-left-color: var(--secondary);
    transform: translateX(5px);
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary), #764ba2);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.language-skills {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language {
    font-size: 1rem;
    color: var(--text-secondary);
}

.language strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-left-color: var(--primary);
    transform: translateX(5px);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
    transition: all 0.3s ease;
}

.experience-item:hover::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.experience-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-right: 1rem;
}

.duration {
    font-size: 0.875rem;
    background: var(--border);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.job-responsibilities li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.job-responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Education & Certifications */
.degree,
.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.institution,
.cert-issuer {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.year,
.cert-year {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.certification-item.highlight {
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.3), rgba(250, 177, 160, 0.3));
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.certification-item.highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

/* References Section */
.reference-item {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.reference-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reference-position {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.reference-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reference-contact i {
    color: var(--accent);
    width: 18px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* ========================================
   ANIMACIONES DE ENTRADA Y SCROLL
   ======================================== */

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left Animation */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right Animation */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animación escalonada para elementos internos */
.visible .skill-category {
    animation: slideInLeft 0.5s ease-out backwards;
}

.visible .skill-category:nth-child(1) { animation-delay: 0.1s; }
.visible .skill-category:nth-child(2) { animation-delay: 0.2s; }
.visible .skill-category:nth-child(3) { animation-delay: 0.3s; }
.visible .skill-category:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación para tags de habilidades */
.visible .skill-tag {
    animation: popIn 0.4s ease-out backwards;
}

.visible .skill-tag:nth-child(1) { animation-delay: 0.1s; }
.visible .skill-tag:nth-child(2) { animation-delay: 0.15s; }
.visible .skill-tag:nth-child(3) { animation-delay: 0.2s; }
.visible .skill-tag:nth-child(4) { animation-delay: 0.25s; }
.visible .skill-tag:nth-child(5) { animation-delay: 0.3s; }
.visible .skill-tag:nth-child(6) { animation-delay: 0.35s; }
.visible .skill-tag:nth-child(7) { animation-delay: 0.4s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación para items de experiencia */
.visible .experience-item {
    animation: slideInTimeline 0.6s ease-out backwards;
}

.visible .experience-item:nth-child(1) { animation-delay: 0.1s; }
.visible .experience-item:nth-child(2) { animation-delay: 0.3s; }
.visible .experience-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación para items de educación y certificaciones */
.visible .education-item,
.visible .certification-item {
    animation: fadeInItem 0.5s ease-out backwards;
}

.visible .education-item:nth-child(1),
.visible .certification-item:nth-child(1) { animation-delay: 0.1s; }
.visible .education-item:nth-child(2),
.visible .certification-item:nth-child(2) { animation-delay: 0.2s; }
.visible .certification-item:nth-child(3) { animation-delay: 0.3s; }
.visible .certification-item:nth-child(4) { animation-delay: 0.4s; }

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

/* Animación del texto de objetivo */
.visible .objective-text {
    animation: fadeInText 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Reduce motion para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-main,
    .hero-title-accent {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }

    .hero-social {
        margin-bottom: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    .card-body {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .main {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title-main,
    .hero-title-accent {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-social a {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
