/* ===============================
   VARIABLES Y CONFIGURACIÓN
================================= */
:root {
    --primary: #64ffda;
    --primary-dark: #4ecdc4;
    --primary-light: #9efff0;
    --secondary: #ff6482;
    --secondary-light: #ff8aa5;
    --bg-dark: #0a192f;
    --bg-medium: #112240;
    --bg-light: #1a2c4e;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-accent: #e6f1ff;
    --white: #ffffff;
    --card-bg: rgba(17, 34, 64, 0.8);
    --card-border: rgba(100, 255, 218, 0.1);
    --highlight: rgba(100, 255, 218, 0.1);
    --gradient-1: linear-gradient(135deg, #64ffda, #4ecdc4);
    --gradient-2: linear-gradient(135deg, #ff6482, #ff8aa5);
    --gradient-3: linear-gradient(135deg, #667eea, #764ba2);
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-lg: 0 20px 40px -15px rgba(2, 12, 27, 0.9);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===============================
   CANVAS DE PARTÍCULAS (FONDO)
================================= */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* ===============================
   NAVBAR
================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ===============================
   HEADER
================================= */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-wrapper {
    position: relative;
}

.profile-img-container {
    position: relative;
    width: fit-content;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid transparent;
    background: var(--gradient-1);
    padding: 4px;
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.profile-img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px rgba(100, 255, 218, 0.4);
}

.profile-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.header-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.greeting {
    font-size: 1.5rem;
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    opacity: 0.7;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Fira Code', monospace;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: 300;
}

.location {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location i {
    color: var(--primary);
}

/* ===============================
   BOTONES CTA
================================= */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.4);
}

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

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* ===============================
   SOCIAL LINKS
================================= */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: var(--transition);
    z-index: -1;
}

.social-link:hover {
    color: var(--bg-dark);
    transform: translateY(-3px);
    border-color: transparent;
}

.social-link:hover::before {
    left: 0;
}

/* ===============================
   CONTENEDOR PRINCIPAL
================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===============================
   SECCIONES
================================= */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 3rem 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: var(--shadow-lg);
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--white);
    position: relative;
    display: block;
    /* CAMBIAR ESTO */
    word-break: break-word;
    /* NUEVO */
}

h2::before {
    content: '//';
    color: var(--primary);
    margin-right: 0.8rem;
    font-family: 'Fira Code', monospace;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 10px;
    background: var(--gradient-1);
    border-radius: 4px;
}

/* ===============================
   ABOUT SECTION MEJORADA
================================= */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.code-line {
    color: #ff79c6;
}

.code-property {
    color: var(--primary);
}

.code-string {
    color: #f1fa8c;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===============================
   EDUCACIÓN TIMELINE
================================= */
.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.1rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 3px solid var(--bg-medium);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.degree-description {
    color: var(--text-secondary);
    margin: 1rem 0;
}

/* ===============================
   PROGRESS BAR PREMIUM
================================= */
.premium-progress {
    margin-top: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.progress-badge {
    background: rgba(100, 255, 218, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.badge-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.progress-bar.premium {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    width: 0%;
    position: relative;
    transition: width 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

.progress-details {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-details i {
    color: var(--primary);
    margin-right: 0.3rem;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===============================
   PROJECT FILTERS
================================= */
.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(100, 255, 218, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

/* ===============================
   PROJECT GRID
================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: var(--shadow-md);
}

.project-media {
    height: 180px;
    background: var(--bg-medium);
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(100, 255, 218, 0.3);
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-medium));
}

.project-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.project-badge {
    background: rgba(100, 255, 218, 0.9);
    color: var(--bg-dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.8rem;
    color: var(--white);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.project-tech span {
    background: rgba(100, 255, 218, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    font-family: 'Fira Code', monospace;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-project {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-project:hover {
    color: var(--primary);
}

.demo-link {
    color: var(--primary);
}

/* ===============================
   CERTIFICACIONES
================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.cert-card:hover {
    transform: translateY(-3px);
    border-color: rgba(100, 255, 218, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.cert-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.cert-org {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.cert-date {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Fira Code', monospace;
}

.cert-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.8;
    transition: var(--transition);
}

.cert-link:hover {
    opacity: 1;
    gap: 0.5rem;
}

/* ===============================
   SKILLS AVANZADAS
================================= */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

.skills-cloud {
    margin-top: 2rem;
}

.skills-cloud h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.cloud-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.cloud-tag {
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: default;
}

.cloud-tag[data-weight="5"] {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    background: rgba(100, 255, 218, 0.2);
}

.cloud-tag[data-weight="4"] {
    font-size: 1.2rem;
    padding: 0.7rem 1.4rem;
}

.cloud-tag[data-weight="3"] {
    font-size: 1rem;
}

.cloud-tag[data-weight="2"] {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cloud-tag:hover {
    transform: scale(1.1);
    background: rgba(100, 255, 218, 0.2);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* ===============================
   CONTACTO
================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(136, 146, 176, 0.6);
}

/* ===============================
   FOOTER PREMIUM
================================= */
footer {
    background: var(--bg-medium);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===============================
   RESPONSIVE DESIGN
================================= */
@media (max-width: 992px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-wrapper {
        display: flex;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-wrapper {
        display: flex;
        justify-content: center;
    }

    .header-text {
        padding: 0 1rem;
    }

} 

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    h1 {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

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

    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

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

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

    .btn {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tech-card h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.badge {
    background: rgba(100, 255, 218, 0.1);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* ==========================================
   MOBILE FIXES PROFESIONALES
========================================== */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    header {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .header-text h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .glass-card {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .project-card {
        width: 100%;
    }

    .project-media {
        height: 150px;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}


/* ==========================================
   EXTRA SMALL DEVICES (iPhone SE etc)
========================================== */

@media (max-width: 480px) {

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

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .project-tech span {
        font-size: 0.75rem;
    }

    .cert-card {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* =====================================
   FIX GLOBAL PARA OVERFLOW EN MÓVIL
===================================== */

html,
body {
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .glass-card {
        padding: 1.5rem !important;
        margin: 1.5rem 0;
    }

    .container {
        padding: 0 1rem !important;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr !important;
    }

    .about-stats {
        grid-template-columns: 1fr !important;
    }

    .progress-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr !important;
    }

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

}

@media (max-width: 768px) {
    .education-timeline {
        padding-left: 0;
        /* antes 2rem */
    }

    .timeline-item {
        padding-left: 1.2rem;
        /* espacio para el punto */
    }

    .timeline-dot {
        left: 0;
        /* elimina el -2.1rem */
    }
}

@media (max-width: 768px) {
    .location {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .header-text {
        min-width: 0;
    }
}

/* FIX PARA CODE BLOCK EN MÓVIL */

.code-block {
    overflow-x: auto;
}

.code-block pre {
    white-space: pre-wrap;
    /* permite saltos de línea */
    word-wrap: break-word;
    /* rompe palabras largas */
    overflow-wrap: break-word;
}

/* FIX FINAL RESPONSIVE REAL */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .glass-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    section {
        width: 100%;
    }

}

.contact-item a {
    word-break: break-word;
}

/* =========================
   MOBILE FULL WIDTH FIX
========================= */

@media (max-width: 768px) {

    .container {
        max-width: 100%;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0;
    }

    main.container {
        padding-left: 0;
        padding-right: 0;
    }

    .glass-card {
        border-radius: 0;
        margin: 2rem 0;
    }

}

@media (max-width: 768px) {
    .glass-card {
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.2;
    }
}
h1 {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
}

/* Glow especial destacadas */
.featured-cert {
    border: 1px solid rgba(100, 255, 218, 0.5);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.featured-cert:hover {
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.6);
    transform: translateY(-5px);
}

/* Ocultar sección */
.hidden-certs {
    display: none;
}

.show-more-container {
    text-align: center;
    margin-top: 20px;
}

.featured-cert {
    border: 1px solid rgba(100, 255, 218, 0.6);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.featured-cert:hover {
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.7);
    transform: translateY(-6px);
}

.cert-section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0.9;
}