:root,
[data-theme="dark"] {
    --primary: #1cb698;
    --primary-bright: #00d4aa;
    --primary-glow: rgba(28, 182, 152, 0.35);
    --green-accent: #0dda40;

    --bg-deep: #0d1117;
    --bg-dark: #111820;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-banner: rgba(13, 17, 23, 0.75);

    --border: rgba(28, 182, 152, 0.18);
    --border-bright: rgba(28, 182, 152, 0.5);

    --text: #c9d1d9;
    --text-muted: #8b98ac;
    --text-hover: #e6edf3;
    --text-white: #ffffff;

    --header-bg: rgba(13, 17, 23, 0.92);
    --nav-bg: rgba(13, 17, 23, 0.98);
    --input-bg: rgba(255, 255, 255, 0.03);

    --particle-opacity: 0.5;
    --scan-opacity: 0.35;

    --bg-section: rgba(13, 17, 23, 0.85);
    --bg-section-alt: rgba(17, 24, 32, 0.85);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;

}

#inicio,
#sobremi,
#skills,
#curriculum,
#portfolio,
#contacto {
    scroll-margin-top: 80px;
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: var(--particle-opacity);
    transition: opacity 0.4s ease;
}

.contenedor-header {
    background: var(--header-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.contenedor-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--green-accent), var(--primary), transparent);
    background-size: 200% 100%;
    animation: headerGlow 4s linear infinite;
}

@keyframes headerGlow {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 15px 20px;
    max-width: 100%;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.logo-bracket {
    color: var(--green-accent);
    font-weight: 400;
}

.logo a:hover {
    text-shadow: 0 0 15px var(--primary-glow);
    color: var(--primary-bright);
}

nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
    margin-right: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 25px var(--primary-glow);
}

nav.mostrar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 12px 0;
}

nav ul li {
    border-bottom: 1px solid var(--border);
}

nav ul li:last-child {
    border-bottom: none;
}

nav ul li a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 13px 25px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.nav-num {
    color: var(--primary);
    margin-right: 8px;
    font-size: 10px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-white);
    background: rgba(28, 182, 152, 0.08);
    padding-left: 30px;
}

nav ul li a:hover .nav-num,
nav ul li a.active .nav-num {
    color: var(--green-accent)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-responsive {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-responsive:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(28, 182, 152, 0.08);
}

.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    opacity: 0.65;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 18px;
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.section-title span {
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--green-accent), transparent);
}

.section-title.centered,
.sobremi .section-title,
.skills .section-title,
.cv .section-title,
.portfolio .section-title,
.contactar .section-title {
    text-align: center;
}

.sobremi .section-title::after,
.skills .section-title::after,
.cv .section-title::after,
.portfolio .section-title::after,
.contactar .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.sobremi::before,
.skills::before,
.cv::before,
.portfolio::before,
.contactar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.inicio {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
    position: relative;
    background: radial-gradient(ellipse at 50% 40%, rgba(28, 182, 152, 0.05) 0%, transparent 65%);
    overflow: hidden;
    z-index: 2;
    transition: background 0.4s ease;
}

.scan-line {
    position: absolute;
    top: -5%;
    left: 0;
    right: 0;
    height: 8px;
    filter: blur(2px);
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: var(--scan-opacity);
    animation: scanDown 8s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes scanDown {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

.contenedor-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 38px 24px;
    background: var(--bg-banner);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.banner-grid-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--primary);
    border-style: solid;
    border-width: 0;
}

.grid-corner.tl {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.grid-corner.tr {
    top: -1px;
    right: -1px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.grid-corner.bl {
    bottom: -1px;
    left: -1px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.grid-corner.br {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.contenedor-img {
    position: relative;
    text-align: center;
}

.img-hexagon-wrapper {
    position: relative;
    display: inline-block;
}

.hex-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    animation: ringPulse 3s ease-in-out infinite;
}

.hex-ring-1 {
    width: 168px;
    height: 168px;
    animation-delay: 0s;
}

.hex-ring-2 {
    width: 198px;
    height: 198px;
    border-color: var(--green-accent);
    border-style: dashed;
    animation-delay: 1.5s;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

.contenedor-img img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 22px var(--primary-glow), 0 0 55px rgba(28, 182, 152, 0.08);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.contenedor-img img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 38px var(--primary-glow), 0 0 80px rgba(28, 182, 152, 0.15);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(13, 218, 64, 0.07);
    border: 1px solid rgba(13, 218, 64, 0.28);
    color: var(--green-accent);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 14px;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-accent);
    animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.15;
    }
}

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

.banner-pretitle {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.banner-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.name-highlight {
    background: linear-gradient(135deg, var(--primary), var(--green-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-text h2 {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    transition: color 0.4s ease;
}

.typed-container {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 22px;
    min-height: 20px;
    letter-spacing: 0.5px;
}

.cursor-blink {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.redes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inicio .redes a {
    color: var(--text-muted);
    text-decoration: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.inicio .redes a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--green-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.inicio .redes a:hover::before {
    opacity: 1;
}

.inicio .redes a i {
    position: relative;
    z-index: 1;
}

.inicio .redes a:hover {
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 18px var(--primary-glow);
    transform: translateY(-3px);
}


.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    z-index: 2;
}

.scroll-indicator span {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% {
        height: 0;
        opacity: 0;
    }

    50% {
        height: 40px;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: 0;
    }
}

.sobremi {
    background: var(--bg-section-alt);
    color: var(--text);
    padding: 80px 20px;
    position: relative;
    transition: background 0.4s ease;
}

.sobremi .section-tag {
    text-align: center;
}

.sobremi-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
}

.sobremi-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.sobremi-text p:hover {
    border-left-color: var(--green-accent);
    background: rgba(28, 182, 152, 0.05);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contacto-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px;
    margin-bottom: 18px;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.contacto-info h3 {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.tag-open,
.tag-close {
    color: var(--text-muted);
    font-size: 13px;
}

.contacto-info ul {
    list-style: none;
    padding: 0;
}

.contacto-info ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.contacto-info ul li:last-child {
    border-bottom: none;
}

.contacto-info ul li i {
    color: var(--primary);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contacto-info ul li strong {
    color: var(--primary);
    min-width: 75px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-info ul li:hover {
    padding-left: 4px;
}

.contacto-info ul li span,
.contacto-info ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.contacto-info ul li:hover span,
.contacto-info ul li a:hover {
    color: var(--text-white);
}

.contacto-info ul li a:hover {
    color: var(--primary);
}

.btn-container {
    text-align: center;
}

.btn-cv {
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--primary);
    padding: 12px 28px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--green-accent));
    transition: 0.4s ease;
    z-index: 0;
}

.btn-cv:hover::before {
    left: 0;
}

.btn-cv:hover {
    color: #fff;
    box-shadow: 0 0 22px var(--primary-glow);
}

.btn-cv span,
.btn-cv i {
    position: relative;
    z-index: 1;
}


.skills {
    background: var(--bg-section);
    color: var(--text);
    padding: 80px 20px;
    position: relative;
    transition: background 0.4s ease;
}


.skills .section-tag {
    text-align: center;
}

.skills-container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.skills-category h3 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 3px;
    text-transform: uppercase;

}

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

.skill {
    cursor: default;
}

.skill-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill:hover .skill-inner {
    border-color: var(--border-bright);
    background: rgba(28, 182, 152, 0.05);
    box-shadow: 0 0 22px rgba(28, 182, 152, 0.08);
    transform: translateY(-6px);
}

.skill-inner img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-bottom: 11px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.skill:hover .skill-inner img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 10px var(--primary-glow));
}

.skill-inner span {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.skill:hover .skill-inner span {
    color: var(--text-white);
}

.skill-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: var(--primary);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill:hover .skill-glow {
    opacity: 0.12;
}


.cv {
    background: var(--bg-section-alt);
    color: var(--text);
    padding: 80px 20px;
    position: relative;
    transition: background 0.4s ease;
}

.cv .section-tag {
    text-align: center;
}

.cv-contenido {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.experience h3 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.time-line {
    position: relative;
    padding-left: 22px;
}

.time-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), var(--green-accent), transparent);
}

.item {
    position: relative;
    margin-bottom: 22px;
    padding-left: 22px;
}

.item-dot {
    position: absolute;
    left: -4px;
    top: 17px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: all 0.3s ease;
}

.item:hover .item-dot {
    background: var(--green-accent);
    box-shadow: 0 0 14px rgba(13, 218, 64, 0.5);
    transform: scale(1.3);
}

.item-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    transition: all 0.3s ease;
}

.item-body:hover {
    border-color: var(--border-bright);
    background: rgba(28, 182, 152, 0.03);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.item-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.item-body:hover .item h4 {
    color: var(--primary-bright);
}

.coder {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.date {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 3px 11px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    align-self: flex-start;
    white-space: nowrap;
}

.exp {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    transition: color 0.3s ease
}

.portfolio {
    background: var(--bg-section);
    color: var(--text);
    padding: 80px 20px;
    position: relative;
    transition: background 0.4s ease;
}


.portfolio .section-tag {
    text-align: center;
}

.portfolio-contents {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.project {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 28px rgba(28, 182, 152, 0.07);
}

.project-inner {
    display: flex;
    flex-direction: column;
}

.project-preview {
    position: relative;
    height: 185px;
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.6) saturate(0.8);
}

.project-overlay-img {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-deep));
}

.project:hover .project-preview img {
    transform: scale(1.06);
    filter: brightness(0.78) saturate(1.2);
}

.project-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.project-num {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--primary);
    opacity: 0.45;
    letter-spacing: 2px;
}

.project-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    transition: color 0.3s;
}

.project:hover .project-info h3 {
    color: var(--primary-bright);
}

.project-category {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    border-left: 2px solid var(--border);
    padding-left: 11px;
    transition: border-color 0.3s, color 0.3s;
}

.project:hover .project-desc {
    border-left-color: var(--primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 3px 8px;
    letter-spacing: 1px;
    background: rgba(28, 182, 152, 0.04);
    transition: all 0.3s ease;
}

.project:hover .project-tags span {
    border-color: var(--primary);
    background: rgba(28, 182, 152, 0.1);
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 14px;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.project-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--green-accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 18px var(--primary-glow);
}

.contactar {
    background: var(--bg-section-alt);
    color: var(--text);
    padding: 80px 20px;
    position: relative;
    transition: background 0.4s ease;
}


.contactar .section-tag {
    text-align: center;
}

.contactame-informacion {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.contactos-containers {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    transition: border-color 0.4s ease, background 0.4s ease;
}

form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.input-group {
    position: relative;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--primary);
    background: rgba(28, 182, 152, 0.04);
    box-shadow: 0 0 12px rgba(28, 182, 152, 0.1);
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

.form textarea {
    resize: vertical;
    min-height: 115px;
}

.btn-enviar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 14px 22px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-enviar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--green-accent));
    transition: 0.4s ease;
    z-index: 0;
}

.btn-enviar:hover::before {
    left: 0;
}

.btn-enviar:hover {
    color: #fff;
    box-shadow: 0 0 22px var(--primary-glow);
}

.btn-enviar span,
.btn-enviar i {
    position: relative;
    z-index: 1;
}

.contacto-datos {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.contacto-datos-inner h3 {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 22px;
    letter-spacing: 1px;
}

.contacto-datos ul {
    list-style: none;
    padding: 0;
    margin-bottom: 22px;
}

.contacto-datos li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    color: var(--text);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.3s ease;
}

.contacto-datos li:last-child {
    border-bottom: none;
}

.contacto-datos li:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.contacto-datos li i {
    color: var(--primary);
    font-size: 13px;
    width: 16px;
    flex-shrink: 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--green-accent);
    border: 1px solid rgba(13, 218, 64, 0.35);
    padding: 12px 18px;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    transition: 0.4s ease;
    z-index: 0;
}

.whatsapp-btn:hover::before {
    left: 0;
}

.whatsapp-btn:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i,
.whatsapp-btn span {
    position: relative;
    z-index: 1;
}

.whatsapp-btn i {
    font-size: 17px;
}


footer {
    background: var(--bg-section);
    color: var(--text);
    padding: 55px 20px 28px;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border);
    transition: background 0.4s ease;
}


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

.footer-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.footer-info p {
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

footer .redes {
    justify-content: center;
    margin: 28px 0;

}

footer .redes a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 42px;
    height: 42px;
    margin: 0 5px;
    font-size: 17px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

footer .redes a:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 18px var(--primary-glow);
    transform: translateY(-3px);
}

.arriba {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    position: absolute;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.arriba:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 22px var(--primary-glow);
    transform: translateX(-50%) translateY(-4px);
}

.copyright p {
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 14px;
}

@media screen and (min-width: 768px) {
    .nav-responsive {
        display: none;
    }

    nav {
        position: static;
        background: none;
        width: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin: 0;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    nav ul {
        flex-direction: row;
        gap: 4px;
        padding: 0;
    }

    nav ul li {
        border-bottom: none;
    }

    nav ul li a {
        font-size: 10px;
        padding: 7px 13px;
        border: 1px solid transparent;
        display: inline-block;
        border-radius: 0;
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: var(--text-white);
        border-color: var(--border);
        background: rgba(28, 182, 152, 0.05);
        padding-left: 13px;
    }

    header {
        padding: 15px 30px;
    }

    .logo a {
        font-size: 18px;
    }

    .contenedor-banner {
        flex-direction: row;
        max-width: 680px;
        padding: 45px 38px;
        gap: 38px;
        align-items: center;
    }

    .contenedor-img {
        flex-shrink: 0;
    }

    .banner-text {
        text-align: left;
    }

    .redes {
        justify-content: flex-start;
    }

    .banner-text h1 {
        font-size: 36px;
    }

    .sobremi-grid {
        flex-direction: row;
        gap: 36px;
        align-items: flex-start;
    }

    .sobremi-text {
        flex: 1.5;
    }

    .sobremi-aside {
        flex: 1;
    }

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

    .item-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

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

    .contactos-containers {
        flex-direction: row;
        gap: 28px;
    }

    .form,
    .contacto-datos {
        flex: 1;
    }
}


@media screen and (min-width:1024px) {

    header {
        max-width: 1200px;
        margin: 0 auto;
        padding: 15px 0;
    }

    .logo a {
        font-size: 20px;
        letter-spacing: 4px;
    }

    nav ul {
        gap: 6px;
    }

    nav ul li a {
        font-size: 11px;
        padding: 8px 15px;
    }

    .contenedor-banner {
        max-width: 760px;
        padding: 55px 48px;
        gap: 55px;
    }

    .contenedor-img img {
        width: 155px;
        height: 155px;
    }

    .hex-ring-1 {
        width: 185px;
        height: 185px;
    }

    .hex-ring-2 {
        width: 215px;
        height: 215px;
    }

    .banner-text h1 {
        font-size: 46px;
    }

    .banner-text h2 {
        font-size: 14px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .sobremi,
    .skills,
    .cv,
    .portfolio,
    .contactar {
        padding: 110px 60px;
    }

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

    .contactame-informacion {
        max-width: 1100px;
        padding: 0 20px;
    }
}