:root {
    --bg-main: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1f293d;
    --border-color: #1e293b;
    --border-highlight: #334155;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
    
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

/* 1. Cambiar el modelo de caja para todos los elementos */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Forzar las medidas en html y body */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    background-image: 
        linear-gradient(115deg, rgba(6, 182, 212, 0.1), transparent 35%),
        linear-gradient(295deg, rgba(168, 85, 247, 0.12), transparent 42%),
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    background-size: auto, auto, auto, auto;
}

/* Scrollbar con gradient */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 6px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-green), var(--accent-cyan));
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Header Decor Bar */
.top-decor-bar {
    background: rgba(17, 24, 39, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-height: 50px;
}

.top-decor-bar.hide {
    max-height: 0;
    padding: 0 24px;
    border-bottom: none;
    overflow: hidden;
}

.terminal-dots { display: flex; align-items: center; gap: 8px; }
.terminal-title { margin-left: 10px; color: var(--text-dark); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.status-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hero Section */
.hero {
    width: 100vw;
    margin: 0 0 30px calc(50% - 50vw);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    min-height: calc(100svh - 50px);
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
}

.profile-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-photo {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    animation: photoFadeIn 0.8s ease-out;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-content {
    flex: 1;
}

.hero-header-line {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.syntax-keyword { color: var(--accent-amber); }

.hero-name-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    flex: 1;
}

.profile-photo {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    animation: photoFadeIn 0.8s ease-out;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 1.2rem;
    color: var(--accent-purple);
    font-family: var(--font-mono);
    margin: 10px 0 20px;
    display: flex;
    gap: 10px;
}
.highlight-green { color: var(--accent-green); }
.divider { color: var(--text-dark); }

.hero-desc { color: var(--text-muted); max-width: 850px; margin-bottom: 24px; }

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.contact-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-block;
}

.contact-chip:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.email-chip {
    cursor: pointer !important;
}

.email-chip:active::after {
    content: '  ✓ Copiado!';
    color: var(--accent-green);
    font-size: 0.75rem;
}

.cv-download {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border: 1.5px solid var(--accent-green);
    font-weight: 600;
}

.cv-download:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 850px) { 
    .main-grid { grid-template-columns: 1fr; }
    
    .hero-name-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.section-title .prefix { color: var(--accent-purple); }

/* Filter Bar */
.search-bar { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 16px; 
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.search-input::placeholder {
    color: var(--text-dark);
}

.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    font-weight: 600;
}

/* Projects */
.projects-grid { display: grid; gap: 16px; }
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 120px;
    grid-template-rows: auto auto auto;
    gap: 12px;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.project-card .project-top {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.project-card .project-thumbnail {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.project-card .project-desc {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 8px;
}

.project-card .tech-tags {
    grid-column: 1;
    grid-row: 3;
}

.project-thumbnail:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.project-top { display: flex; justify-content: space-between; margin-bottom: 8px; align-items: center; flex-wrap: wrap; gap: 8px; }
.project-name { font-weight: 600; color: #fff; display: flex; gap: 8px; }
.project-link { color: var(--accent-cyan); text-decoration: none; font-family: var(--font-mono); font-size: 0.8rem; padding: 6px 10px; border-radius: 4px; border: 1.5px solid var(--accent-cyan); transition: all 0.2s; background: rgba(6, 182, 212, 0.1); }
.project-link:hover { background: rgba(6, 182, 212, 0.2); box-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }
.project-link:has(img) { width: 34px; height: 34px; padding: 5px; display: inline-flex; align-items: center; justify-content: center; }
.project-link img { width: 22px; height: 22px; object-fit: contain; display: block; }
.project-web-link { display: inline-flex; align-items: center; justify-content: center; }

.project-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Timeline */
.timeline { position: relative; padding-left: 20px; border-left: 2px solid var(--border-color); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot {
    position: absolute; left: -27px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg-main); border: 2px solid var(--accent-cyan);
}
.timeline-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.timeline-role { font-weight: 600; }
.timeline-date {
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1); padding: 2px 8px; border-radius: 4px;
}
.timeline-org { color: var(--accent-purple); font-size: 0.9rem; font-family: var(--font-mono); }

.timeline-list { list-style: none; padding: 8px 0 0 20px; margin: 0; }
.timeline-list li { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 6px; line-height: 1.4; position: relative; padding-left: 12px; }
.timeline-list li:before { content: "▸"; position: absolute; left: 0; color: var(--accent-cyan); }

/* Sidebar Skills & Extras */
.skill-group { margin-bottom: 16px; }
.skill-group-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dark); margin-bottom: 8px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip {
    font-family: var(--font-mono); font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
    padding: 4px 8px; border-radius: 6px; color: var(--text-main);
    display: inline-block;
}
.skill-chip:hover { border-color: var(--accent-green); color: var(--accent-green); }

.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chips[style*="flex-direction: column"] { flex-direction: column; align-items: flex-start; }
.skill-chips[style*="flex-direction: column"] .skill-chip { display: block; width: 100%; }

.simple-list { list-style: none; font-size: 0.88rem; color: var(--text-muted); }
.simple-list li { margin-bottom: 8px; }

/* Interactive Terminal Widget */
.interactive-console {
    background: #000; border: 1px solid var(--border-color);
    border-radius: 8px; padding: 14px; font-family: var(--font-mono);
    font-size: 0.8rem; color: var(--accent-green);
}
.console-prompt { color: var(--accent-purple); }
.console-output { color: var(--text-muted); padding-left: 10px; margin-bottom: 6px; }
.typing-cursor {
    display: inline-block; width: 8px; height: 14px;
    background: var(--accent-green); animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Footer & Hints */
footer {
    text-align: center; font-family: var(--font-mono);
    font-size: 0.8rem; color: var(--text-dark); margin-top: 30px;
}

.cmd-hint {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 8px 14px; border-radius: 20px; font-family: var(--font-mono);
    font-size: 0.8rem; color: var(--text-muted); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(-50%); opacity: 1; }
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-cyan);
}

.modal-body {
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Layout para imágenes landscape (ancha) - imagen encima */
.modal-body.landscape {
    flex-direction: column;
    align-items: center;
}

.modal-body.landscape .modal-image {
    width: 100%;
    max-width: 600px;
    height: 350px;
}

.modal-body.landscape .modal-info {
    width: 100%;
}

/* Layout para imágenes portrait (alta) - imagen al lado derecho */
.modal-body.portrait {
    flex-direction: row-reverse;
}

.modal-body.portrait .modal-image {
    width: 300px;
    height: 450px;
    flex-shrink: 0;
}

.modal-image {
    width: 400px;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.modal-info h3 {
    color: var(--accent-cyan);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    font-size: 0.95rem;
}

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

.modal-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
    font-weight: 500;
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 10px 18px;
    border: 2px solid var(--accent-purple);
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.12);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.modal-link:hover {
    background: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.modal-link:has(img) {
    width: 44px;
    height: 44px;
    padding: 8px;
    justify-content: center;
}

.modal-link img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.modal-footer {
    margin-top: auto;
    width: 100%;
    padding: 18px 0 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    /* Container y spacing */
    .container {
        padding: 0 16px 40px;
    }
    
    /* Header */
    .top-decor-bar {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .terminal-title {
        display: none;
    }
    
    /* Hero section */
    .hero {
        width: 100vw;
        margin: 0 0 20px calc(50% - 50vw);
        padding: 24px;
        min-height: calc(100svh - 50px);
        position: relative;
    }
    
    .hero-header-line {
        font-size: 0.75rem;
        margin-bottom: 8px;
        color: var(--text-muted);
        opacity: 0.7;
    }
    
    .hero-name-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 8px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        flex: 1;
    }
    
    .profile-photo {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        position: static;
        margin-top: 2px;
    }
    
    .hero-title {
        flex-direction: column;
        gap: 6px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .divider {
        display: none;
    }
    
    .hero-desc {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .hero-contacts {
        flex-wrap: wrap;
        gap: 8px;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        margin-top: 8px;
    }
    
    .contact-chip {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .section-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    /* Search and filters */
    .search-input {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .filter-bar {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Project cards */
    .projects-grid {
        gap: 12px;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }
    
    .project-card .project-thumbnail {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 150px;
    }
    
    .project-card .project-top {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        gap: 6px;
    }
    
    .project-name {
        font-size: 0.9rem;
    }
    
    .project-link {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .project-card .project-desc {
        grid-row: 3;
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .project-card .tech-tags {
        grid-row: 4;
        gap: 4px;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* Modal */
    .modal-body {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    
    .modal-body.landscape,
    .modal-body.portrait {
        flex-direction: column;
    }
    
    .modal-body.portrait .modal-image {
        width: 100%;
        height: 200px;
    }
    
    .modal-image {
        width: 100%;
        height: 200px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-info h3 {
        font-size: 1.1rem;
    }
    
    .modal-info p {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .modal-footer {
        padding: 0 16px 16px 16px;
        padding-top: 12px;
    }
    
    .modal-tag {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .modal-link {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 12px;
        border-left-width: 1px;
    }
    
    .timeline-dot {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
    
    .timeline-role {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
    }
    
    .timeline-date {
        font-size: 0.7rem;
        flex-shrink: 0;
        margin-left: auto;
        text-align: right;
    }
    
    .timeline-org {
        font-size: 0.85rem;
    }
    
    .timeline-list li {
        font-size: 0.8rem;
    }
    
    /* Skills */
    .skill-row {
        flex-direction: column;
    }
    
    .skill-name {
        width: 100%;
    }
    
    .skill-bar {
        width: 100%;
    }
    
    .skill-chips {
        gap: 4px;
    }
    
    .skill-chip {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Breakpoint más pequeño para teléfonos */
@media (max-width: 480px) {
    .container {
        padding: 0 12px 30px;
    }
    
    .top-decor-bar {
        padding: 6px 12px;
    }
    
    .status-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .hero {
        padding: 16px;
        margin: 12px 0;
    }
    
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .hero-header-line {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 0.8rem;
    }
    
    .hero-desc {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .contact-chip {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .section-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .section-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .filter-bar {
        gap: 4px;
    }
    
    .filter-btn {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .project-card {
        padding: 10px;
        gap: 6px;
    }
    
    .project-card .project-thumbnail {
        height: 120px;
    }
    
    .project-name {
        font-size: 0.85rem;
    }
    
    .project-link {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .project-card .project-desc {
        font-size: 0.75rem;
    }
    
    .tag {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}

/* Navegacion de portada */
.hero-location {
    grid-column: 2;
    grid-row: 7;
    justify-self: end;
    text-align: right;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.hero-desc {
    grid-row: 6;
}

.hero-contacts {
    grid-row: 8;
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-chip.icon-link {
    position: relative;
    width: 50px;
    height: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    padding: 0;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.contact-chip.icon-link span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    font-size: 1.45rem;
    text-align: center;
    line-height: 1;
}

.contact-chip.icon-link img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.contact-chip.icon-link span:where(:not([aria-hidden])) {
    transform: translate(-50%, -50%);
}

.contact-chip.icon-link:hover {
    transform: translateY(-4px) scale(1.05);
}

.cv-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--accent-green);
    border-radius: 22px;
    background: rgba(16, 185, 129, 0.92);
    color: #06251a;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.cv-float.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cv-float:hover {
    background: #34d399;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-location {
        grid-column: 1 / -1;
        grid-row: 6;
        justify-self: end;
        text-align: right;
    }
    .hero-desc { grid-row: 5; }
    .hero-contacts { grid-row: 7; }

    .contact-chip.icon-link {
        width: 44px;
        height: 44px;
        min-height: 44px;
        flex-basis: 44px;
    }

    .hero-contacts { gap: 12px; }

    .cv-float {
        right: 16px;
        bottom: 18px;
    }
}

@media (max-width: 480px) {
    .hero-location { font-size: 0.7rem; }
    .contact-chip.icon-link {
        width: 40px;
        height: 40px;
        min-height: 40px;
        flex-basis: 40px;
    }

    .hero-contacts {
        gap: 10px;
    }

    .contact-chip.icon-link span {
        font-size: 1.25rem;
    }

    .contact-chip.icon-link img {
        width: 29px;
        height: 29px;
    }
}

@media (min-width: 851px) {
    .main-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
        grid-template-rows: auto auto auto auto auto;
        column-gap: 30px;
        row-gap: 0;
        align-items: start;
    }

    .content-col {
        display: contents;
    }

    .content-col #projects {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .content-col #experience {
        grid-column: 2;
        grid-row: 1;
    }

    .content-col #education {
        grid-column: 2;
        grid-row: 2;
        margin-top: -330px;
    }

    .sidebar-col {
        display: contents;
        min-width: 0;
    }

    .sidebar-col #skills {
        grid-column: 2;
        grid-row: 3;
        margin-top: -330px;
    }

    .sidebar-col #honors {
        grid-column: 1;
        grid-row: 3;
        margin-top: 32px;
        margin-bottom: 0;
    }

    .sidebar-col #console {
        grid-column: 1;
        grid-row: 4;
        margin-top: -225px;
    }
}

@media (min-width: 769px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-rows: auto auto auto 1fr auto;
        align-content: stretch;
        gap: 18px 72px;
        min-height: min(680px, calc(100svh - 150px));
    }

    .hero-header-line {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .hero h1 {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        justify-self: start;
        font-size: clamp(2.4rem, 4.5vw, 4.5rem);
        text-align: left;
    }

    .hero-title {
        grid-column: 1;
        grid-row: 3;
        justify-content: flex-start;
        text-align: left;
    }

    .hero-desc {
        grid-column: 1;
        grid-row: 4;
        align-self: center;
        max-width: 760px;
        text-align: left;
    }

    .profile-photo {
        grid-column: 2;
        grid-row: 1 / 5;
        align-self: center;
        justify-self: center;
        width: 230px;
        height: 230px;
    }

    .hero-contacts {
        grid-column: 1;
        grid-row: 5;
        justify-content: flex-start;
        align-self: end;
        margin-top: 18px;
    }

    .hero-location {
        grid-column: 2;
        grid-row: 5;
        align-self: end;
        justify-self: end;
        text-align: right;
    }
}

kbd { background: var(--border-color); color: var(--text-main); padding: 2px 6px; border-radius: 4px; }

/* Estilos para las barras de progreso Neo-Cyberpunk */
.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-name {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-main);
    width: 40%; /* Ajusta el espacio del texto */
}

.skill-bar-container {
    width: 55%;
    height: 6px; /* Barra muy delgada y elegante */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skill-fill {
    height: 100%;
    border-radius: 1px;
    box-shadow: 0 0 8px currentColor; /* Le da un brillo de neón basado en su color */
    transition: width 1s ease-in-out;
}

/* Figuras geometricas decorativas */
.hero {
    isolation: isolate;
    z-index: 20;
}

.hero::before {
    background: linear-gradient(90deg, var(--accent-cyan), rgba(168, 85, 247, 0.65), transparent 78%);
}

.main-grid {
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 31%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(6, 182, 212, 0.16);
    transform: rotate(45deg);
    pointer-events: none;
}

.main-grid {
    position: relative;
    isolation: isolate;
    z-index: 1;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, transparent 0 14%, rgba(6, 182, 212, 0.13) 14% 14.08%, transparent 14.08% 100%),
        linear-gradient(0deg, transparent 0 32%, rgba(168, 85, 247, 0.12) 32% 32.08%, transparent 32.08% 100%),
        radial-gradient(circle at 14% 32%, var(--accent-cyan) 0 3px, transparent 4px),
        radial-gradient(circle at 86% 68%, var(--accent-purple) 0 3px, transparent 4px);
    background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.main-grid::before,
.main-grid::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.main-grid::before {
    top: 110px;
    left: -92px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(6, 182, 212, 0.14);
    transform: rotate(45deg);
}

.main-grid::after {
    right: -58px;
    bottom: 80px;
    width: 135px;
    height: 135px;
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 50%;
}

.content-col,
.sidebar-col {
    position: relative;
}

.content-col::before,
.sidebar-col::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.content-col::before {
    top: 360px;
    right: -150px;
    width: 230px;
    height: 120px;
    border-top: 1px solid rgba(6, 182, 212, 0.18);
    border-right: 1px solid rgba(6, 182, 212, 0.18);
    transform: skewY(24deg);
    box-shadow: 34px 34px 0 -33px rgba(6, 182, 212, 0.5);
}

.sidebar-col::after {
    top: 180px;
    right: -110px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transform: rotate(45deg);
    box-shadow: 0 0 0 12px rgba(168, 85, 247, 0.025);
}

@media (min-width: 769px) {
    .hero-inner {
        display: block;
        height: calc(100svh - 150px);
        min-height: 620px;
        max-width: 1180px;
    }

    .hero-header-line {
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero h1 {
        position: absolute;
        top: 19%;
        left: 0;
        max-width: 70%;
        font-size: clamp(2.4rem, 4.5vw, 4.5rem);
        text-align: left;
    }

    .hero-title {
        position: absolute;
        top: 36%;
        left: 0;
        max-width: 58%;
        margin: 0;
    }

    .hero-desc {
        position: absolute;
        top: 47%;
        left: 0;
        width: 56%;
        max-width: 720px;
        margin: 0;
        text-align: left;
    }

    .profile-photo {
        position: absolute;
        top: 50%;
        right: 12%;
        width: 230px;
        height: 230px;
        transform: translateY(-50%) rotate(3deg);
    }

    .hero-contacts {
        position: absolute;
        left: 0;
        bottom: 0;
        margin: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(6, 182, 212, 0.25);
    }

    .hero-location {
        position: absolute;
        right: 0;
        bottom: 8px;
        margin: 0;
    }
}

/* Portada fullscreen */
.top-decor-bar {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom-color: transparent;
}

.top-decor-bar.scrolled {
    position: fixed;
    background: var(--bg-card);
    border-bottom-color: var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    margin: 0 0 0 calc(50% - 50vw);
    padding: 80px 7vw 72px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

.hero-inner {
    position: relative;
    width: min(1180px, 100%);
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-rows: auto auto auto auto auto;
    align-content: center;
    gap: 18px 48px;
}

.hero-inner::before,
.hero-inner::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero-inner::before {
    width: 260px;
    height: 260px;
    right: -90px;
    top: 40px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transform: rotate(45deg);
}

.hero-inner::after {
    width: 420px;
    height: 1px;
    right: -80px;
    bottom: 92px;
    background: linear-gradient(90deg, transparent, var(--accent-purple));
}

.hero-header-line {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.hero-name-section {
    display: contents;
}

.hero h1 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0;
    max-width: 780px;
    white-space: nowrap;
}

.profile-photo {
    grid-column: 2;
    grid-row: 2 / 5;
    align-self: center;
    justify-self: center;
    width: 190px;
    height: 190px;
    border-radius: 24px;
    border-width: 3px;
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0.04), 0 0 45px rgba(6, 182, 212, 0.3);
    transform: rotate(3deg);
}

.hero-title {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 1.05rem;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.hero-desc {
    grid-column: 1;
    grid-row: 4;
    max-width: 760px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-contacts {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 12px;
    padding-top: 18px;
    border-top-color: rgba(6, 182, 212, 0.25);
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(8px); opacity: 1; }
}

@media (max-width: 768px) {
    .hero {
        height: 100svh;
        min-height: 100svh;
        margin-bottom: 0;
        padding: 76px 24px 64px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 12px;
    }

    .hero-header-line {
        grid-column: 1 / -1;
    }

    .hero h1 {
        grid-column: 1;
        grid-row: 2;
        font-size: 2.1rem;
        line-height: 1.05;
    }

    .profile-photo {
        grid-column: 2;
        grid-row: 2;
        width: 68px;
        height: 68px;
        border-radius: 12px;
        transform: rotate(3deg);
    }

    .hero-title,
    .hero-desc,
    .hero-contacts {
        grid-column: 1 / -1;
    }

    .hero-title { grid-row: 3; }
    .hero-desc { grid-row: 4; font-size: 0.9rem; line-height: 1.65; }
    .hero-contacts { grid-row: 5; }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 16px 56px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 62px;
    }

    .hero h1 {
        font-size: 1.35rem;
        white-space: nowrap;
    }
    .profile-photo { width: 58px; height: 58px; }
    .hero-header-line { font-size: 0.7rem; }
    .hero-title { font-size: 0.78rem; }
    .hero-desc { font-size: 0.78rem; }
}

@media (min-width: 769px) {
    .hero {
        height: 100vh !important;
        height: 100svh !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
        margin: 0 0 0 calc(50% - 50vw) !important;
        padding: 80px 7vw 72px !important;
    }

    .hero-inner {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .hero-header-line {
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero h1 {
        position: absolute !important;
        top: 18% !important;
        left: 0 !important;
        max-width: 70% !important;
        text-align: left;
    }

    .hero-title {
        position: absolute;
        top: 36%;
        left: 0;
        max-width: 58%;
        margin: 0;
    }

    .hero-desc {
        position: absolute !important;
        top: 52% !important;
        left: 0 !important;
        width: 56% !important;
        max-width: 720px !important;
        margin: 0 !important;
        text-align: left;
    }

    .profile-photo {
        position: absolute !important;
        top: 50% !important;
        right: 4% !important;
        width: clamp(300px, 22vw, 430px) !important;
        height: clamp(300px, 22vw, 430px) !important;
        transform: translateY(-50%) rotate(3deg) !important;
    }

    .hero-contacts {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding-top: 16px !important;
        transform: translateY(18px);
    }

    .hero-location {
        position: absolute !important;
        right: 0 !important;
        bottom: 8px !important;
        margin: 0 !important;
        width: 50%;
    }

    .hero-inner::after {
        right: 0;
        width: 50%;
    }
}

.profile-photo {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.profile-photo img {
    display: block;
    filter: brightness(0.78) contrast(1.04) saturate(0.92);
    -webkit-mask-image: radial-gradient(ellipse 68% 68% at center, #000 34%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.28) 76%, transparent 94%);
    mask-image: radial-gradient(ellipse 68% 68% at center, #000 34%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.28) 76%, transparent 94%);
}

@media (min-width: 769px) {
    .profile-photo img {
        -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 24%, rgba(0, 0, 0, 0.7) 44%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
        mask-image: radial-gradient(ellipse 72% 72% at center, #000 24%, rgba(0, 0, 0, 0.7) 44%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    }
}

.profile-photo::after {
    display: none;
}

.section-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-mono);
}

.section-nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-menu-toggle {
    display: none;
}

.section-menu-contact {
    display: none;
}

.section-nav a {
    min-height: 40px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 7px;
    background: rgba(6, 182, 212, 0.06);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.section-nav a::before {
    content: './';
    color: var(--accent-cyan);
    opacity: 0.7;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.14);
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.55);
}

.section-card {
    scroll-margin-top: 28px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.section-card.nav-highlight {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.18), 0 0 28px rgba(6, 182, 212, 0.22);
}

@media (min-width: 769px) {
    .section-nav {
        position: absolute;
        right: 0;
        bottom: 8px;
    }
}

@media (max-width: 768px) {
    .section-nav {
        position: relative;
        z-index: 1001;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .section-menu-toggle {
        display: none;
        width: 40px;
        height: 40px;
        padding: 9px 8px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        border: 1px solid rgba(6, 182, 212, 0.45);
        border-radius: 50%;
        background: rgba(6, 182, 212, 0.08);
        cursor: pointer;
    }

    .section-menu-contact {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }

    .contact-chip.icon-link.section-menu-contact span {
        position: static !important;
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 0 auto !important;
        background: var(--accent-cyan) !important;
        transform: none !important;
        font-size: 0 !important;
    }

    .section-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 0 auto;
        background: var(--accent-cyan);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .section-menu-toggle:hover,
    .section-menu-toggle:focus-visible {
        border-color: var(--accent-cyan);
        background: rgba(6, 182, 212, 0.16);
    }

    .section-nav-links {
        position: fixed;
        top: 50%;
        left: 16px;
        right: auto;
        z-index: 1000;
        display: none;
        min-width: 150px;
        padding: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        transform: translateY(-50%);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: rgba(10, 14, 23, 0.96);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    .section-nav.open .section-nav-links {
        display: flex;
    }

    .section-nav a {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.68rem;
    }
}

/* Enlaces persistentes al salir de la portada */
.hero-contacts.header-links-active {
    position: fixed !important;
    top: 5px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 102 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    gap: 6px;
}

.hero-contacts.header-links-active .contact-chip.icon-link {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
}

.hero-contacts.header-links-active .contact-chip.icon-link img {
    width: 24px;
    height: 24px;
}

.section-nav.header-links-active {
    position: fixed !important;
    top: 5px !important;
    left: 18px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 103 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .hero-contacts.header-links-active {
        left: auto !important;
        right: 8px !important;
        top: 54px !important;
        transform: none !important;
        gap: 5px;
    }

    .section-nav.header-links-active {
        top: 54px !important;
        left: 8px !important;
        right: auto !important;
    }

    .hero-contacts.header-links-active .contact-chip.icon-link {
        width: 30px;
        height: 30px;
        min-height: 30px;
        flex-basis: 30px;
    }

    .hero-contacts.header-links-active .contact-chip.icon-link img {
        width: 19px;
        height: 19px;
    }
}

/* Encabezado transparente en la portada */
.top-decor-bar {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

/* Encabezado opaco al salir de la portada */
.top-decor-bar.scrolled {
    background: #111827 !important;
    border-bottom-color: var(--border-color) !important;
    background-color: #111827 !important;
    background-image: none !important;
    opacity: 1 !important;
}

.section-nav.header-links-active {
    left: auto !important;
    right: 18px !important;
    background: #111827 !important;
}

.hero-contacts.header-links-active {
    left: 18px !important;
    right: auto !important;
    background: #111827 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px;
    padding: 4px 8px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

@media (max-width: 768px) {
    .section-nav.header-links-active {
        left: auto !important;
        right: 8px !important;
    }

    .hero-contacts.header-links-active {
        left: 8px !important;
        right: auto !important;
        padding: 3px 6px !important;
    }

    .section-nav.header-links-active .section-menu-toggle {
        display: inline-flex;
    }

    .hero-contacts.header-links-active .section-menu-contact {
        display: none;
    }
}