/* ========================================
   VARIABLES CSS
======================================== */
:root {
    --bg-dark: #0a0e17;
    --bg-card: #111625;
    --primary: #00d9ff;
    --primary-dim: rgba(0, 242, 255, 0.1);
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --gradient: linear-gradient(135deg, #00f2ff 0%, #0061ff 100%);
}

/* ========================================
   RESET & GLOBAL
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: justify;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* ========================================
   HEADER
======================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.logo img:hover {
    transform: rotate(5deg) scale(1.05);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

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

.nav-links li {
    position: relative; 
}

.nav-links a {
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-toggle {
    display: none; /* Oculto en desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   ANIMACIÓN AL ABRIR (CLASE .ACTIVE)
======================================== */
.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(5px, -5px);
}

/* ========================================
   HERO SECTION (Updated Design)
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Espacio para el header fijo */
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo sutil (opcional) */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* --- Perfil Superior --- */
.hero-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.profile-img-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #27c93f; /* Verde online */
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

.profile-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.profile-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Badge Superior --- */
.hero-badge-container {
    margin-bottom: 20px;
}

.badge-pill {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 255, 0.3);
    display: inline-block;
}

/* --- Títulos --- */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* --- Leyenda Sin_R0str0 --- */
.hero-alias {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border-left: 3px solid var(--primary);
}

.highlight-alias {
    color: var(--primary);
    font-weight: 700;
}

/* --- Descripción --- */
.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 90%;
}

/* --- Botones --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

/* --- Badges Inferiores (Math, Algo, Systems) --- */
.hero-badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.badge-item {
    background: rgba(26, 31, 46, 1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.badge-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.badge-item i {
    font-size: 0.8rem;
}

/* --- Ventana de Código (Derecha) --- */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.code-window {
    background: rgba(17, 22, 37, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 1.2rem;
    padding: clamp(16px, 3vw, 25px);
    font-family: var(--font-code);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.15);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    width: clamp(280px, 45vw, 420px);
    max-width: 100%;
    flex-shrink: 0;
}

.window-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.yellow { background: #eab308; box-shadow: 0 0 8px #eab308; }
.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.code-content {
    color: #a9b7c6;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-keyword { color: #00d9ff; }
.code-func { color: #00fff0; }
.code-string { color: #9ca3af; }

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 400px;
    background: #1a202c;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.5s;
}

.about-img:hover img {
    filter: grayscale(0%);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.quote {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-top: 30px;
    font-style: italic;
    color: var(--primary);
}

/* ========================================
   SKILLS SECTION
======================================== */
.skills {
    padding: 100px 0;
    background: #0d111c;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-code);
}

/* ========================================
   EDUCATION SECTION
======================================== */
.education {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d111c 100%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.education-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.1);
}

.education-card.featured:hover::before {
    opacity: 1;
}

.edu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.edu-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0; 
}

.edu-logo {
    width: 100%; 
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0.9) saturate(1.1);
}

.education-card:hover .edu-logo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.edu-badge {
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.edu-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-school {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.edu-accreditation {
    display: inline-block;
    background: var(--gradient);
    color: var(--bg-dark);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
}

.edu-degree {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.edu-degree i {
    color: var(--primary);
    font-size: 0.9rem;
}

.edu-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.edu-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.edu-detail i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.edu-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 12px 0;
}

.edu-description p {
    margin: 0;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.edu-tag {
    background: rgba(0, 217, 255, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.2s ease;
}

.edu-tag:hover {
    background: rgba(0, 217, 255, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   CERTIFICADOS
======================================== */
.certificates {
    padding: 80px 0;
    background: var(--bg-dark);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.certificate-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #0061ff 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.15);
}

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

.cert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.cert-year {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.cert-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.cert-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.cert-provider {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-provider i {
    color: var(--primary);
    font-size: 0.85rem;
}

.cert-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 8px 0;
    flex-grow: 1;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.cert-tag {
    background: rgba(0, 217, 255, 0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.15);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.cert-link:hover {
    color: var(--text-main);
    gap: 12px;
}

.cert-link i {
    font-size: 0.8rem;
}

/* ========================================
   PROJECTS PAGE
======================================== */
.projects-page {
    padding: 150px 0 100px;
    min-height: 100vh;
}

.projects-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #1a202c;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--primary);
    font-size: 0.9rem;
}

.project-links a:hover {
    text-decoration: underline;
}

.print-only {
    display: none;
}

/* ========================================
   FOOTER
======================================== */
footer {
    position: relative;
    padding: 60px 0 30px;
    background: linear-gradient(to top, rgba(10,14,23,0.95), rgba(10,14,23,0.8));
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    z-index: 10;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

/* Título y subtítulo */
footer h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

footer > .container > p {
    color: var(--text-muted);
    max-width: 500px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin: 10px 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.social-btn:hover::before {
    opacity: 1;
}

footer .copyright {
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

footer .copyright i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (min-width: 600px) and (max-width: 980px) {
    html {
        font-size: 16px; 
    }
    
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 16px; 
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem); 
        margin-bottom: 2rem;
    }

    .nav-toggle {
        display: flex !important;
    }

    /* --- Hero Section --- */
    .hero {
        padding-top: 100px; 
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        display: flex; 
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2.5rem;
    }

    /* Perfil en hero */
    .hero-profile {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 10px;
    }

    .profile-img-container {
        flex-shrink: 0;
        width: 72px;
        height: 72px;
    }

    .profile-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0; 
    }

    .profile-info h2 {
        font-size: 1.3rem;
    }

    /* Títulos y texto */
    .hero-title {
        display: inline-flex;
        flex-wrap: nowrap;
        font-size: clamp(2rem, 7vw, 2.8rem);
        line-height: 1.2;
        align-items: baseline;
        gap: 12px;
        white-space: nowrap;
    }
    
    .hero-title .text-gradient {
        display: inline;
    }

    .hero-title br {
        display: none;
    }

    .hero-alias {
        width: auto;
        justify-content: center;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }


    .hero-buttons {
        flex-direction: row;
        width: 100%;
        gap: 12px;
        margin-bottom: 2.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Badges inferiores */
    .hero-badges-group {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .badge-item {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    /* Ventana de código: adaptar en lugar de ocultar */
    .code-window {
        display: block; 
        width: 100%;
        max-width: 100%;
        padding: 20px;
        border-radius: 1rem;
        transform: none !important; 
    }

    .code-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .code-content p {
        white-space: nowrap;
        overflow-x: auto; 
        padding-bottom: 4px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        background: var(--bg-card);
        border-bottom: 1px solid rgba(0, 217, 255, 0.15);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: 1.1rem;
        min-height: 48px; 
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mostrar hamburger menu */
    .nav-toggle {
        display: flex;
        z-index: 1001; 
    }

    /* --- About Section --- */
    .about {
        padding: 4rem 0;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .about-img {
        width: 100%;
        height: 280px; 
        order: -1;
    }

    .about-text h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .quote {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        font-size: 0.95rem;
    }

    /* --- Skills Section --- */
    .skills {
        padding: 4rem 0;
    }

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

    .skill-card {
        padding: 28px 24px;
        border-radius: 12px;
    }

    .skill-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
        text-align: center;
    }

    .skill-header .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .skill-header span {
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    /* Descripción */
    .skill-card > p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* Tags de tecnologías */
    .tech-tags {
        gap: 8px;
        justify-content: center;
    }
    
    .tech-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Soft Skills - Lista más compacta */
    .skill-card ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px 16px;
        font-size: 0.9rem;
        text-align: left;
    }
    
    .skill-card ul li {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .skill-card ul li i {
        font-size: 0.85rem;
        min-width: 16px;
    }

    /* --- Education Section --- */
    .education,
    .certificates {
        padding: 60px 0;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .education-card,
    .certificate-card {
        padding: 28px 24px;
    }
    
    .edu-school,
    .cert-title {
        font-size: 1.15rem;
    }

    /* --- Footer --- */
    footer {
        padding: 40px 0 24px;
    }

    footer .container {
        gap: 24px;
    }

    .contact-info {
        flex-direction: column;
        gap: 14px;
    }

    .social-links {
        gap: 14px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    /* --- Utilidades Mobile --- */
    input, textarea, select {
        font-size: 16px !important;
    }

    /* Mejorar scroll en elementos con overflow */
    .code-content,
    .tech-tags {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
    }
}

@media (max-width: 600px) {
    
    /* ========================================
       GLOBAL & UTILITIES
    ======================================== */
    html {
        font-size: 17px; 
        scroll-behavior: smooth;
    }
    
    body {
        overflow-x: hidden;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 10px;
    }
    
    /* ========================================
       HEADER & NAVBAR
    ======================================== */
    header {
        padding: 12px 0;
        background: rgba(10, 14, 23, 0.98);
    }
    
    nav {
        padding: 0 16px;
    }
    
    .nav-toggle {
        display: flex !important;
    }

    .logo {
        gap: 8px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    /* Hamburger menu */
    nav-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 5px;
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-main);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .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(5px, -5px);
    }
    
    /* Mobile menu */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        background: var(--bg-card);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links a {
        display: block;
        padding: 16px 20px;
        font-size: 1.1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* ========================================
       HERO SECTION
    ======================================== */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
        width: 100%;
    }
    
    /* Perfil */
    .hero-profile {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }
    
    .profile-img-container {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        margin: 0;
    }
    
    .profile-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--primary);
    }
    
    .status-dot {
        width: 12px;
        height: 12px;
        bottom: 2px;
        right: 2px;
    }
    
    .profile-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }
    
    .profile-info h2 {
        font-size: 1.15rem;
        margin: 0;
        line-height: 1.3;
    }
    
    .profile-info p {
        font-size: 0.85rem;
        margin: 2px 0 0 0;
        color: var(--text-muted);
    }
    
    /* Badge "Disponible" */
    .hero-badge-container {
        margin-bottom: 12px;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .badge-pill {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    /* Título principal */
    .hero-title {
        display: block !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        font-size: 2rem !important;
        line-height: 1.2;
        white-space: normal !important;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .hero-title br {
        display: block !important;
    }
    
    .hero-title .text-gradient {
        display: block;
        margin-top: 4px;
    }
    
    /* Alias */
    .hero-alias {
        text-align: left;
        justify-content: flex-start;
        width: auto;
        max-width: 100%;
        margin-bottom: 16px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Descripción */
    .hero-description {
        text-align: left;
        margin-bottom: 1.5rem;
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Botones */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .btn {
         width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    /* Badges inferiores */
    .hero-badges-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .badge-item {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    /* Ventana de código */
    .hero-visual {
        display: none !important;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
    }
    
    .code-window {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 16px;
        border-radius: 1rem;
    }
    
    .code-content {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .code-content p {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    
    .window-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* ========================================
       ABOUT SECTION
    ======================================== */
    .about {
        padding: 50px 0;
    }
    
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-img {
        width: 100%;
        height: 250px;
        order: -1; /* 👈 Imagen primero */
        border-radius: 12px;
    }
    
    .about-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .about-text {
        text-align: left;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    
    .quote {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        font-size: 0.9rem;
        padding-left: 16px;
    }
    
    /* ========================================
       SKILLS SECTION
    ======================================== */
    .skills {
        padding: 50px 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .skill-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .skill-header .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .skill-header span {
        font-size: 1.15rem;
    }
    
    .skill-card > p {
        text-align: left;
        font-size: 0.88rem;
        margin-bottom: 16px;
    }
    
    .tech-tags {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .tech-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .skill-card ul {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 0.88rem;
    }
    
    .skill-card ul li {
        font-size: 0.85rem;
    }
    
    .skill-card ul li i {
        font-size: 0.8rem;
        min-width: 16px;
    }
    
    .skill-card:nth-child(3) ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
    }

    .skill-card:nth-child(3) ul li {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .skill-card:nth-child(3) ul li i {
        font-size: 0.85rem;
        min-width: 16px;
    }
    /* ========================================
       EDUCATION SECTION
    ======================================== */
    .education {
        padding: 50px 0;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .education-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .edu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    
    .edu-icon {
        flex-shrink: 0;
    }
    
    .edu-logo {
        width: 75%;
        height: 75%;
    }
    
    .edu-badge {
        margin-left: auto;
    }
    
    .edu-school {
        font-size: 1.1rem;
    }
    
    .edu-accreditation {
        display: block;
        margin: 8px 0 0 0;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .edu-degree {
        font-size: 0.9rem;
    }
    
    .edu-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .edu-detail {
        font-size: 0.85rem;
    }
    
    .edu-description {
        font-size: 0.88rem;
        padding: 12px 0;
    }
    
    .edu-tags {
        gap: 6px;
    }
    
    .edu-tag {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    /* ========================================
       CERTIFICATES SECTION
    ======================================== */
    .certificates {
        padding: 50px 0;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .certificate-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .cert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
    
    .cert-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .cert-year {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .cert-title {
        font-size: 1.1rem;
    }
    
    .cert-provider {
        font-size: 0.88rem;
    }
    
    .cert-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .cert-tags {
        gap: 6px;
    }
    
    .cert-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .cert-link {
        font-size: 0.85rem;
        padding: 8px 0;
    }
    
    /* ========================================
       FOOTER / CONTACT
    ======================================== */
    footer {
        padding: 40px 0 24px;
    }
    
    footer .container {
        gap: 24px;
    }
    
    footer h2 {
        font-size: 1.5rem;
    }
    
    footer > .container > p {
        font-size: 0.9rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 14px;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-info i {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 14px;
    }
    
    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .copyright {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .copyright i{
        font-size: 0.9em;
        display: inline;
    }
    
    /* ========================================
       UTILITIES & FIXES
    ======================================== */
    /* Prevenir zoom en inputs (iOS) */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Scroll suave en elementos con overflow */
    .code-content,
    .tech-tags,
    .edu-tags,
    .cert-tags {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
    }
    
    /* Focus visible para accesibilidad */
    a:focus-visible,
    button:focus-visible,
    .social-btn:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 4px;
        border-radius: 6px;
    }
    
    /* Eliminar márgenes que puedan centrar contenido */
    .hero-text,
    .hero-text > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Forzar alineación izquierda en elementos clave */
    .hero-title,
    .hero-description,
    .hero-alias,
    .profile-info,
    .about-text,
    .skill-card,
    .education-card,
    .certificate-card {
        text-align: left !important;
    }
}

@media print {
        /* ========================================
       CONFIGURACIÓN DE PÁGINA
    ======================================== */
    @page {
        margin: 1.5cm;
        size: A4;
    }
    
    /* ========================================
       BORDE DE LA HOJA
    ======================================== */
    * {
        color: #000 !important;
        background: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 30px;
    }
    
    /* ========================================
       ELEMENTOS A OCULTAR
    ======================================== */
    header,
    nav,
    .nav-links,
    .nav-toggle,
    .hero-buttons,
    .btn,
    .social-links,
    .social-btn,
    .code-window,
    .hero-visual,
    .badge-pill,
    .hero-badges-group,
    footer,
    #contact,
    .status-dot,
    .hero,
    .about {
        display: none !important;
    }
    
    #skills,
    #education,
    .skills,
    .education,
    .skills-grid,
    .education-grid,
    .skill-card,
    .education-card,
    .edu-body,
    .skill-header,
    .edu-header,
    .tech-tags,
    .edu-details,
    .edu-description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* ========================================
       CONTENEDOR Y SECCIONES
    ======================================== */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    section {
        margin-bottom: 20px !important;
        margin-top: 30px !important;
        padding: 0 !important;
    }
    
    /* ========================================
       TÍTULOS DE SECCIÓN
    ======================================== */
    .section-title {
        font-size: 16pt !important;
        color: #0061ff !important;
        border-bottom: 2px solid #0061ff;
        padding-bottom: 6px;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
        text-align: left;
        -webkit-text-fill-color: #0061ff;
        page-break-after: avoid;
    }
    
    /* ========================================
       HERO SECTION
    ======================================== */
    .hero {
        min-height: auto !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        display: block !important;
        page-break-after: avoid;
    }
    
    .hero-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .hero-profile {
        display: flex !important;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px !important;
    }
    
    .profile-img-container {
        width: 60px;
        height: 60px;
        border: 2px solid #00d9ff;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .profile-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .profile-info h2 {
        font-size: 14pt !important;
        margin: 0 !important;
        color: #000 !important;
    }
    
    .profile-info p {
        font-size: 10pt !important;
        color: #333 !important;
        margin: 3px 0 0 0 !important;
    }
    
    .hero-title {
        font-size: 18pt !important;
        margin: 10px 0 !important;
        color: #000 !important;
        -webkit-text-fill-color: #000;
    }
    
    .hero-title .text-gradient {
        color: #0061ff !important;
        -webkit-text-fill-color: #0061ff;
        font-weight: 700;
    }
    
    .hero-alias,
    .hero-badge-container,
    .hero-buttons,
    .hero-badges-group {
        display: none !important;
    }
    
    .hero-description {
        color: #333 !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* ========================================
       ABOUT SECTION
    ======================================== */
    .about {
        page-break-inside: avoid;
        margin-bottom: 20px !important;
        display: block !important;
    }
    
    .about-grid {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .about-img {
        display: none !important;
    }
    
    .about-text {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .about-text h3 {
        margin-bottom: 10px !important;
        color: #000 !important;
    }
    
    .about-text p {
        color: #333 !important;
        margin-bottom: 8px !important;
        line-height: 1.4;
    }
    
    .about-text strong {
        color: #0061ff !important;
    }
    
    .quote {
        border-left: 3px solid #0061ff;
        padding-left: 12px;
        font-style: italic;
        color: #0061ff !important;
        margin-top: 10px !important;
        font-size: 10pt !important;
    }
    
    
    .skills-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* ========================================
       SKILL CARD - LAYOUT TIPO TABLA
    ======================================== */
    .skill-card {
        border-radius: 10px !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        overflow: hidden !important;
        min-height: 100px !important;
        border-bottom: 2px solid #0061ff;
        border-top: 2px solid #0061ff;
    }
    
    /* ========================================
       COLUMNA IZQUIERDA - ICONO + TÍTULO
    ======================================== */
    .skill-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        flex-shrink: 0 !important;
    }
    
    .skill-header .icon-box {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .skill-header .icon-box i {
        color: #0061ff !important;
    }
    
    .skill-header span {
        font-weight: 700 !important;
        color: #000 !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    
    /* ========================================
       COLUMNA DERECHA - CONTENIDO
    ======================================== */
    .skill-card > p {
        display: block !important;
        color: #333 !important;
        margin: 0 !important;
        padding: 10px 12px 6px 12px !important;
        line-height: 1.4 !important;
        max-width: 200px;
    }
    
    /* Contenedor de tags */
    .tech-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        align-content: flex-start !important;
    }

    
    /* ========================================
       SOFT SKILLS - LISTA EN LUGAR DE TAGS
    ======================================== */
    .skill-card:nth-child(3) {
        display: flex !important;
        flex-direction: row !important;
        page-break-inside: avoid;
    }
    
    .skill-card:nth-child(3) .skill-header {
        min-width: 120px !important;
        max-width: 120px !important;
    }
    
    .skill-card:nth-child(3) > p {
        display: block !important;
        color: #333 !important;
        margin: 0 !important;
        padding: 10px 12px 6px 12px !important;
        width: 100% !important;
    }
    
    .skill-card:nth-child(3) ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px 10px !important;
        font-size: 9pt !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        list-style: none !important;
        width: 100% !important;
    }
    
    .skill-card:nth-child(3) ul li {
        color: #333 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        line-height: 1.3 !important;
    }
    
    .skill-card:nth-child(3) ul li i {
        color: #0061ff !important;
        font-size: 8px !important;
        min-width: 10px !important;
    }
    
    /* ========================================
       EDUCATION - TARJETAS
    ======================================== */
    .education {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .education .section-title {
        margin-bottom: 8px !important; 
        padding-bottom: 4px !important;
    }
    
    .education-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important; 
        margin-top: 0 !important;
    }
    
    .education-card {
        border-radius: 6px;
        background: #fff !important;
        display: block !important;
        padding: 8px !important;
        margin-bottom: 0 !important;
        page-break-inside: avoid;
    }
    
    .edu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 6px !important; 
        border-bottom: 1px solid #0061ff;
        padding-bottom: 6px !important; 
    }
    
    .edu-icon {
        width: 50px !important;
        height: 50px !important;
        border-radius: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: hidden;
        background: #fff !important; 
        border: 2px solid #fff;
    }
    
    .edu-logo {
        width: 90% !important;
        height: 90% !important;
        object-fit: contain;
        background: #fff !important;
        filter: none !important;
    }
    
    .edu-badge {
        border: 1px solid #0061ff !important;
        background: rgba(0, 217, 255, 0.05) !important; 
        padding: 3px 10px;
        border-radius: 12px;
        font-weight: 600;
        color: #0061ff !important;
        white-space: nowrap;
    }
    
    .edu-school {
        font-weight: 700;
        margin: 0 0 4px 0 !important;
        color: #000 !important;
        line-height: 1.3;
    }
    
    .edu-accreditation {
        background: rgba(0, 217, 255, 0.05) !important;
        padding: 1px 5px;
        border-radius: 3px;
        margin-left: 5px;
        color: #0061ff !important;
        display: inline-block;
    }
    
    .edu-degree {
        color: #333 !important;
        margin: 0 0 5px 0 !important;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .edu-degree i {
        color: #0061ff !important;
    }
    
    .edu-details {
        display: flex;
        flex-direction: column;
        gap: 3px;
        color: #333 !important;
    }
    
    .edu-detail {
        display: flex !important;
        align-items: center;
        gap: 5px;
    }
    
    .edu-detail i {
        color: #0061ff !important;
        width: 12px;
    }
    
    .edu-description {
        color: #333 !important;
        line-height: 1.3;
        display: block !important;
    }
    
    .edu-description p {
        margin: 0 !important;
        color: #333 !important;
    }
    
    .edu-body {
        display: block !important;
    }

    /* ========================================
       CONTACTO (Versión Print)
    ======================================== */
    .print-contact {
        display: block !important;
        padding-top: 15px;
        margin-top: 20px !important;
    }
    
    .print-contact h2 {
        border-bottom: 2px solid #0061ff;
        margin-bottom: 12px !important;
        color: #0061ff !important;
    }
    
    .print-contact-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .print-contact-info p {
        color: #000 !important;
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
    }
    
    .print-contact-info i {
        color: #0061ff !important;
        width: 18px;
        text-align: center;
    }
    
    /* ========================================
       UTILIDADES
    ======================================== */
    a {
        text-decoration: none;
        color: #000;
    }
    
    p, h1, h2, h3, h4, h5, h6 {
        orphans: 2;
        widows: 2;
    }
     
}
