/* ─── Variables ─── */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #a78bfa;
    --accent-hover: #8b5cf6;
    --accent-soft: rgba(167, 139, 250, 0.1);
    --accent-glow: rgba(167, 139, 250, 0.25);
    --gradient: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(34, 211, 238, 0.08) 100%);
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.35), 0 2px 4px -2px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 20px 40px -12px rgb(0 0 0 / 0.55);
    --shadow-accent: 0 12px 30px -8px rgba(167, 139, 250, 0.4);
    --radius: 16px;
    --radius-lg: 24px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section {
    padding: 110px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    display: block;
    max-width: 100%;
}

/* ─── Utilities ─── */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    max-width: 520px;
}

/* ─── Navbar ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.75rem 2.5rem;
    box-shadow: var(--shadow);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cv-btn {
    background: var(--accent);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-btn i {
    width: 15px;
    height: 15px;
}

.cv-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* ─── Hamburger ─── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
    line-height: 0;
}

.menu-toggle i {
    width: 24px;
    height: 24px;
}

/* ─── Mobile Menu ─── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu ul a {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    transition: color 0.2s;
}

.mobile-menu ul a:hover {
    color: var(--accent);
}

.mobile-cv-btn {
    font-size: 1rem;
    padding: 12px 28px;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Blobs de fondo */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-blob--1 {
    width: 500px;
    height: 500px;
    background: rgba(167, 139, 250, 0.15);
    top: -100px;
    right: -150px;
    animation: blob-float 8s ease-in-out infinite;
}

.hero-blob--2 {
    width: 360px;
    height: 360px;
    background: rgba(34, 211, 238, 0.1);
    bottom: 50px;
    right: 100px;
    animation: blob-float 10s ease-in-out infinite reverse;
}

.hero-blob--3 {
    width: 280px;
    height: 280px;
    background: rgba(167, 139, 250, 0.07);
    top: 40%;
    left: -80px;
    animation: blob-float 12s ease-in-out infinite 2s;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.97);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
    background: var(--accent-soft);
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.hero-top i {
    width: 14px;
    height: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
}

.hero h2 {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.8;
    letter-spacing: 0;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px -4px rgba(167, 139, 250, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-strong);
    transition: var(--transition);
}

.cta-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    background: var(--accent-soft);
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-badge i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.hero-badge:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    z-index: 1;
    opacity: 0.5;
}

.hero-scroll-indicator i {
    width: 22px;
    height: 22px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ─── Sobre Mí ─── */
.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.25;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* About card decorativa */
.about-card-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-soft);
    border: 1px solid rgba(167, 139, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.info-card-icon i {
    width: 22px;
    height: 22px;
}

.about-info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-list li i {
    width: 15px;
    height: 15px;
    color: var(--accent);
    flex-shrink: 0;
}

.about-deco-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 2px dashed rgba(167, 139, 250, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin-slow 20s linear infinite;
    z-index: 0;
}

.about-deco-dots {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(167, 139, 250, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

@keyframes spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ─── Skills ─── */
.section-header {
    margin-bottom: 56px;
}

.section-header h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 28px 22px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.skill-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: var(--shadow-accent);
    cursor: pointer;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover .skill-icon-wrap,
.skill-card:hover span,
.skill-card:hover .skill-desc {
    color: white;
    position: relative;
    z-index: 1;
}

.skill-card:hover .skill-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--accent);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.skill-icon-wrap i {
    width: 22px;
    height: 22px;
}

.skill-card span {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.skill-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.skill-card--cta {
    border: 1.5px dashed rgba(167, 139, 250, 0.3);
    background: transparent;
}

.skill-card--cta:hover {
    border-color: transparent;
}

.skill-card--learning {
    border-color: rgba(251, 191, 36, 0.25);
    position: relative;
}

.skill-card--learning:hover {
    box-shadow: 0 12px 30px -8px rgba(251, 191, 36, 0.3);
}

.skill-card--learning:hover::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(234, 88, 12, 0.08) 100%);
}

.skill-card--learning .skill-icon-wrap {
    margin-top: 34px;
}

.skill-learning-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 2px 8px;
    z-index: 1;
}

/* ─── Projects ─── */
.projects-header {
    margin-bottom: 56px;
}

.projects-header h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.project-card--featured {
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.1), var(--shadow);
}

.project-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-card:hover .project-img-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(10px);
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:nth-child(2) {
    transition-delay: 0.05s;
}

.overlay-btn:hover {
    background: var(--accent);
    color: white;
}

.overlay-btn i {
    width: 18px;
    height: 18px;
}

.project-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-number {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover .tech-badge {
    border-color: rgba(167, 139, 250, 0.2);
    background: var(--accent-soft);
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.87rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.project-link i {
    width: 14px;
    height: 14px;
}

.project-link:hover {
    color: var(--accent);
    transform: translateX(2px);
}

/* ─── Contacto ─── */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    background: var(--bg-secondary);
    padding: 70px;
    border-radius: 28px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-info h3 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.contact-info>p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.contact-links {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.social-item:hover {
    color: var(--accent);
    transform: translateX(4px);
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.social-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--text-secondary);
}

.social-item:hover .social-icon {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-accent);
}

.social-icon i {
    width: 18px;
    height: 18px;
}

.social-item>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.social-item span:last-child {
    font-weight: 500;
}

/* ─── Form ─── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #4a5568;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.submit-btn i {
    width: 18px;
    height: 18px;
}

/* ─── Footer ─── */
footer {
    padding: 32px 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a i {
    width: 16px;
    height: 16px;
}

.footer-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ─── Animaciones de entrada ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger para hijos de grids */
.skills-grid .skill-card,
.projects-grid .project-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease,
        border-color 0.3s ease, background 0.3s ease;
}

.skills-grid.animated .skill-card,
.projects-grid.animated .project-card {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid .skill-card:nth-child(1) {
    transition-delay: 0.05s;
}

.skills-grid .skill-card:nth-child(2) {
    transition-delay: 0.1s;
}

.skills-grid .skill-card:nth-child(3) {
    transition-delay: 0.15s;
}

.skills-grid .skill-card:nth-child(4) {
    transition-delay: 0.2s;
}

.skills-grid .skill-card:nth-child(5) {
    transition-delay: 0.25s;
}

.skills-grid .skill-card:nth-child(6) {
    transition-delay: 0.3s;
}

.skills-grid .skill-card:nth-child(7) {
    transition-delay: 0.35s;
}

.skills-grid .skill-card:nth-child(8) {
    transition-delay: 0.4s;
}

.skills-grid .skill-card:nth-child(9) {
    transition-delay: 0.45s;
}

.skills-grid .skill-card:nth-child(10) {
    transition-delay: 0.5s;
}

.projects-grid .project-card:nth-child(1) {
    transition-delay: 0.05s;
}

.projects-grid .project-card:nth-child(2) {
    transition-delay: 0.15s;
}

.projects-grid .project-card:nth-child(3) {
    transition-delay: 0.25s;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-card-wrap {
        max-width: 340px;
    }

    .contact-container {
        gap: 50px;
        padding: 50px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 24px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .cv-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .about-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .about-card-wrap {
        margin: 0 auto;
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 36px 28px;
    }

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

    /* En móvil la overlay de proyectos siempre visible */
    .project-img-overlay {
        opacity: 0.85;
    }

    footer {
        padding: 32px 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        letter-spacing: -2px;
    }

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

    .cta-btn,
    .cta-btn-outline {
        justify-content: center;
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-badges {
        display: none;
    }

    .contact-container {
        padding: 28px 20px;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .social-item {
        padding: 8px 10px;
    }
}

@media (max-width: 360px) {
    section {
        padding: 70px 16px;
    }

    .hero {
        padding: 110px 16px 70px;
    }

    nav {
        padding: 0.9rem 1rem;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 1.2rem;
    }

    .contact-container {
        padding: 24px 16px;
    }

    .mobile-menu ul a {
        font-size: 1.6rem;
    }
}

/* ─── Certificaciones ─── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 2.5rem;
}

.cert-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow-lg);
    transform: translateY(-4px);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-badge-img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cert-badge-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.cert-issuer {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.cert-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.cert-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 2px;
}

.cert-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
    transition: var(--transition);
}

.cert-verify svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: var(--transition);
}

.cert-card:hover .cert-verify {
    color: #c4b5fd;
}

.cert-card:hover .cert-verify svg {
    transform: translate(2px, -2px);
}

@media (max-width: 500px) {
    .cert-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cert-verify {
        justify-content: center;
    }
}