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

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --accent: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --success: #059669;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 50%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION - COMPACTO
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px 40px 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.profile-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-titles {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 8px;
    opacity: 0.95;
}

.divider {
    opacity: 0.5;
}

.hero-info {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

.quick-contact {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quick-contact h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 1;
    transition: all 0.2s;
    font-weight: 500;
}

.contact-link:hover {
    opacity: 0.7;
    transform: translateX(5px);
    text-decoration: underline;
}

.contact-link .icon {
    font-size: 1.2rem;
}

/* ============================================
   MAIN CONTENT - LAYOUT COMPACTO
   ============================================ */

.main-content {
    padding: 40px 40px 60px;
}

.section-compact {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
    position: relative;
}

.section-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px 0 0 8px;
}

.section-header-inline {
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-title-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle-inline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   SKILLS MATRIX - ULTRA COMPACTO
   ============================================ */

.skills-matrix {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.02) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.04);
}

.skill-row:hover {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.06) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.skill-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.skill-name-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-lang {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-type {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skill-visual {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-bar-thin {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-percent {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 45px;
    text-align: right;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-column-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

/* ============================================
   EXPERTISE LIST
   ============================================ */

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expertise-item {
    background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    box-shadow: 0 1px 4px rgba(30, 64, 175, 0.05);
    transition: all 0.2s;
}

.expertise-item:hover {
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.expertise-icon {
    font-size: 1.5rem;
}

.expertise-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.expertise-details {
    list-style: none;
    padding-left: 35px;
}

.expertise-details li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    position: relative;
}

.expertise-details li::before {
    content: "▸";
    position: absolute;
    left: -15px;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   PROFILE SUMMARY (RIGHT COLUMN)
   ============================================ */

.profile-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.summary-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.highlights h4,
.education-box h4,
.certifications-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.education-box,
.certifications-box {
    background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(30, 64, 175, 0.04);
}

.education-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.education-item:last-child {
    border-bottom: none;
}

.education-item strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.education-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cert-item {
    background: var(--bg-tertiary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid var(--border);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cert-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cert-grid span {
    background: var(--bg-tertiary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-compact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 30px 40px;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(30, 64, 175, 0.15);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-small {
    opacity: 0.7;
    font-size: 0.85rem !important;
    margin-top: 4px !important;
}

.footer-right {
    display: flex;
    gap: 25px;
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right a:hover {
    opacity: 1;
}

.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .skill-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .main-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-titles {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .divider {
        display: none;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .section-compact {
        padding: 20px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 30px 20px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 80px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-age {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--white);
}

.profile-initials {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Main Content */
.main-content {
    padding: 60px 40px;
}

.section {
    margin-bottom: 80px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--extra-light-blue);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 35px;
    background: var(--off-white);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px var(--shadow);
}

.about-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    background: var(--off-white);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.skill-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.skill-icon {
    font-size: 1.8rem;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.experience-card {
    background: var(--off-white);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.experience-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-blue);
    box-shadow: 0 15px 40px var(--shadow);
}

.experience-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.experience-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.experience-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px var(--shadow);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-text {
    color: var(--text-gray);
    font-size: 1rem;
    word-break: break-word;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }

    .profile-initials {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .section {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

    .section-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-content,
    .experience-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-circle {
        width: 150px;
        height: 150px;
    }

    .profile-initials {
        font-size: 3rem;
    }
}
