@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --bg-deep: #000e1e;
    --bg-card: #061d3a;
    --bg-dark: #081a33;
    --text-main: #e8f4ff;
    --text-dim: rgba(232, 244, 255, 0.72);

    --digi-cyan: #00e5ff;
    --digi-orange: #ff7c00;
    --digi-yellow: #f5c400;
    --digi-glow: rgba(0, 229, 255, 0.25);
    --dark: #000000;
    --vpet-lcd: #8fb820;

    --pixel: 'Press Start 2P', monospace;
    --vt: 'VT323', monospace;
}

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

html {
    scroll-behavior: smooth;
}

/* ─── BODY — fondo digital con cuadrícula suave ─── */
body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--vt);
    font-size: 24px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--digi-orange);
    border-radius: 4px;
}

.cursor {
    display: none;
}

/* ════════════════════════════════════════
   NAVEGACIÓN
════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 2rem;
    background: rgba(6, 29, 58, 0.96);
    border-bottom: 2px solid var(--digi-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--pixel);
    font-size: 0.85rem;
    color: var(--text-main);
    text-shadow: 2px 2px 0 var(--dark);
    margin-right: auto;
    letter-spacing: 0.05em;
}

.nav-logo .dot {
    color: var(--digi-orange);
}

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

.nav-links a {
    font-family: var(--pixel);
    font-size: 0.65rem;
    color: rgba(232, 244, 255, 0.75);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--digi-cyan);
    text-shadow: 0 0 8px var(--digi-cyan);
}

.nav-cta {
    font-family: var(--pixel);
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--dark);
    background: var(--digi-cyan);
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--dark);
    box-shadow: 3px 3px 0 var(--dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.1s;
}

.nav-cta:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--dark);
}

/* ════════════════════════════════════════════════════════════════
   HERO — Portal al Digimundo
════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 3rem 3rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, #0a3060 0%, var(--bg-deep) 70%);
    border-bottom: 4px solid var(--digi-orange);
}

.hero::before {
    content: '';
    position: absolute;
    left: calc(72% - 35px);
    top: calc(45% - 45px);
    width: 70px;
    height: 90px;
    background-image: url('../img/digivice.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 4;
    pointer-events: none;
    animation: float-digivice 5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.7));
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 3%;
    right: 4%;
    width: 140px;
    height: 180px;
    background-image: url('../img/dorumon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 2;
    pointer-events: none;
    animation: dorumon-action 3.8s ease-in-out infinite;
}

@keyframes float-digivice {
    from {
        transform: translateY(0) rotate(-4deg);
        opacity: 0.8;
    }

    to {
        transform: translateY(-14px) rotate(4deg);
        opacity: 1;
    }
}

/* Dorumon: Salto con menor altura (Y en -30px) y movimiento lateral (X) */
@keyframes dorumon-action {
    0% {
        transform: translate(0, 0) scaleX(1) scaleY(1);
        opacity: 0.88;
    }

    8% {
        transform: translate(0, 0) scaleX(1.15) scaleY(0.85);
        opacity: 0.9;
    }

    20% {
        transform: translate(-40px, -30px) scaleX(0.9) scaleY(1.1) rotate(-8deg);
        opacity: 1;
    }

    35% {
        transform: translate(-15px, -10px) scaleX(0.95) scaleY(1.05) rotate(5deg);
        opacity: 1;
    }

    44% {
        transform: translate(15px, 0) scaleX(1.15) scaleY(0.85);
        opacity: 0.95;
    }

    52% {
        transform: translate(5px, -8px) scaleX(1) scaleY(1) rotate(-3deg);
        opacity: 1;
    }

    60% {
        transform: translate(0, 0) scaleX(1) scaleY(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(0, 0) scaleX(1) scaleY(1);
        opacity: 0.88;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   ANILLO CIRCULAR DE CRESTAS
════════════════════════════════════════════════════════════════ */

.grid-lines {
    display: block;
    position: absolute;
    left: calc(72% - 220px);
    top: calc(45% - 220px);
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 65%);
    z-index: 1;
    animation: ring-breathe 5s ease-in-out infinite;
}

@keyframes ring-breathe {

    0%,
    100% {
        opacity: 0.35;
        box-shadow: 0 0 0 rgba(0, 229, 255, 0) inset;
    }

    50% {
        opacity: 0.85;
        box-shadow: 0 0 40px rgba(0, 229, 255, 0.15) inset;
    }
}

@keyframes crest-pulse {

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

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.hero-bg::before,
.hero-bg::after,
.orb,
.orb1::before,
.orb1::after,
.orb2::before,
.orb2::after {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 2;
    animation: crest-pulse 6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
    overflow: visible;
}

.orb {
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.hero-bg::before {
    background-image: url('../img/courage.webp');
    left: calc(72% - 32px);
    top: calc(45% - 252px);
    animation-delay: 0s;
}

.hero-bg::after {
    background-image: url('../img/friendship.webp');
    left: calc(72% + 123px);
    top: calc(45% - 187px);
    animation-delay: -0.75s;
}

.orb1 {
    background-image: url('../img/hope.webp');
    left: calc(72% + 188px);
    top: calc(45% - 32px);
    animation-delay: -1.5s;
}

.orb1::before {
    background-image: url('../img/knowledge.webp');
    left: -65px;
    top: 155px;
    animation-delay: -2.25s;
}

.orb1::after {
    background-image: url('../img/light.webp');
    left: -220px;
    top: 220px;
    animation-delay: -3s;
}

.orb2 {
    background-image: url('../img/love.webp');
    left: calc(72% - 187px);
    top: calc(45% + 123px);
    animation-delay: -3.75s;
}

.orb2::before {
    background-image: url('../img/reliability.webp');
    left: -65px;
    top: -155px;
    animation-delay: -4.5s;
}

.orb2::after {
    background-image: url('../img/sincerity.webp');
    left: 0px;
    top: -310px;
    animation-delay: -5.25s;
}

/* ════════════════════════════════════════
   HERO CONTENT
════════════════════════════════════════ */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--pixel);
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--dark);
    background: var(--digi-cyan);
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-name {
    font-family: var(--pixel);
    font-size: clamp(1.5rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-main);
    text-shadow: 3px 3px 0 var(--dark), 6px 6px 0 rgba(255, 124, 0, 0.5);
    margin-bottom: 1.2rem;
}

.outline {
    color: var(--digi-orange);
    text-shadow: 3px 3px 0 var(--dark);
}

.dot {
    color: var(--digi-cyan);
    text-shadow: 0 0 12px var(--digi-cyan);
}

.hero-roles {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.role-tag {
    font-family: var(--pixel);
    font-size: 0.6rem;
    color: var(--digi-cyan);
    border: 1px solid rgba(0, 229, 255, 0.5);
    padding: 0.4rem 0.85rem;
    background: rgba(0, 229, 255, 0.08);
    letter-spacing: 0.03em;
}

.sep {
    color: var(--digi-orange);
    font-size: 1.2rem;
}

.hero-summary {
    font-family: var(--vt);
    font-size: 1.5rem;
    color: var(--text-dim);
    max-width: 630px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: var(--pixel);
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--dark);
    background: var(--digi-orange);
    padding: 0.9rem 1.8rem;
    border: 2px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.1s;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.04em;
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark);
    background: var(--digi-yellow);
    color: var(--dark);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--pixel);
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--dark);
    background: var(--digi-cyan);
    border: 2px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.1s;
}

.btn-ghost:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark);
    background: var(--text-main);
    color: var(--dark);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.stat {
    background: var(--vpet-lcd);
    border: 4px solid var(--dark);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.25), 4px 4px 0 var(--digi-cyan);
    padding: 1.1rem 1.3rem;
    text-align: center;
    min-width: 125px;
}

.stat-num {
    font-family: var(--pixel);
    font-size: 1.5rem;
    color: #1a2414;
    display: block;
}

.stat-label {
    font-family: var(--pixel);
    font-size: 0.45rem;
    color: #1a2414;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
}

/* ════════════════════════════════════════
   SECCIONES GENERALES
════════════════════════════════════════ */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-dark);
    border-top: 2px dashed rgba(0, 229, 255, 0.18);
    border-bottom: 2px dashed rgba(0, 229, 255, 0.18);
}

.contact-section {
    background: var(--bg-deep);
    border-top: 3px solid var(--digi-cyan);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

/* Nuevo estilo CSS puro para el número de sección (Sin necesidad de imagen tag.webp) */
.section-number {
    font-family: var(--pixel);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--dark);
    background-color: var(--digi-orange);
    border: 3px solid var(--digi-cyan);
    box-shadow: 4px 4px 0 var(--dark);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    border-radius: 8px;
    /* Pequeño borde redondeado digital */
}

.section-header h2 {
    font-family: var(--pixel);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--text-main);
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--dark);
    line-height: 1.5;
}

/* ════════════════════════════════════════
   SOBRE MÍ
════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-text p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    line-height: 1.75;
}

.about-text strong {
    color: var(--digi-orange);
    text-shadow: 1px 1px 0 var(--dark);
}

.skills-title {
    font-family: var(--pixel);
    font-size: 0.7rem;
    color: var(--digi-cyan);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-pill {
    font-family: var(--pixel);
    font-size: 0.6rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: var(--text-main);
    background: rgba(6, 29, 58, 0.6);
    text-transform: uppercase;
    transition: all 0.2s;
}

.skill-pill:hover {
    border-color: var(--digi-cyan);
    background: rgba(0, 229, 255, 0.1);
    color: var(--digi-cyan);
}

.skill-pill.primary {
    background: rgba(255, 124, 0, 0.12);
    color: var(--digi-orange);
    border-color: rgba(255, 124, 0, 0.5);
}

.skill-pill.primary:hover {
    background: rgba(255, 124, 0, 0.22);
    border-color: var(--digi-orange);
}

/* ════════════════════════════════════════
   EXPERIENCIA
════════════════════════════════════════ */
.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--digi-cyan), transparent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.timeline-item {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0 1.5rem 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: var(--dark);
    border: 2px solid var(--digi-cyan);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-marker.current {
    background: var(--digi-orange);
    border-color: var(--text-main);
    animation: interface-pulse 1.5s ease-in-out infinite;
}

@keyframes interface-pulse {

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

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.timeline-date {
    font-family: var(--pixel);
    font-size: 0.65rem;
    color: var(--digi-cyan);
    padding-top: 0.5rem;
    line-height: 1.6;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 229, 255, 0.12);
    padding: 1.8rem;
    transition: all 0.2s;
}

.timeline-card:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(6, 29, 58, 0.9);
    transform: translateX(5px);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.card-header h3 {
    font-family: var(--pixel);
    font-size: 0.75rem;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.6;
    text-shadow: 1px 1px 0 var(--dark);
}

.company-tag {
    font-family: var(--pixel);
    font-size: 0.55rem;
    font-weight: bold;
    color: var(--dark);
    background: var(--text-main);
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-card p {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    font-family: var(--pixel);
    font-size: 0.55rem;
    color: var(--digi-cyan);
    background: rgba(0, 229, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ════════════════════════════════════════
   PROYECTOS
════════════════════════════════════════ */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-bottom: 3rem;
}

.cert-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 124, 0, 0.6);
    padding: 1.8rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Configuración base para el emblema de fondo en las tarjetas */
.cert-card::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 75px;
    height: 75px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

/* Distribución automática de los 8 emblemas por cada tarjeta (Usando pseudo-selector nth-child) */
.cert-card:nth-child(8n+1)::after {
    background-image: url('../img/courage.webp');
}

.cert-card:nth-child(8n+2)::after {
    background-image: url('../img/friendship.webp');
}

.cert-card:nth-child(8n+3)::after {
    background-image: url('../img/love.webp');
}

.cert-card:nth-child(8n+4)::after {
    background-image: url('../img/knowledge.webp');
}

.cert-card:nth-child(8n+5)::after {
    background-image: url('../img/sincerity.webp');
}

.cert-card:nth-child(8n+6)::after {
    background-image: url('../img/reliability.webp');
}

.cert-card:nth-child(8n+7)::after {
    background-image: url('../img/hope.webp');
}

.cert-card:nth-child(8n+8)::after {
    background-image: url('../img/light.webp');
}

.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cert-card:hover {
    border-color: var(--digi-cyan);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.18);
}

.cert-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cert-card h4 {
    font-family: var(--pixel);
    font-size: 0.7rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.cert-card p {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.55;
}

.cert-date {
    font-family: var(--pixel);
    font-size: 0.55rem;
    color: var(--digi-orange);
    position: relative;
    z-index: 1;
}

.other-certs h3 {
    font-family: var(--pixel);
    font-size: 0.75rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 var(--dark);
}

.other-cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.other-cert-list span {
    font-family: var(--pixel);
    font-size: 0.6rem;
    color: var(--text-main);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.45rem 0.85rem;
    background: rgba(6, 29, 58, 0.5);
    text-transform: uppercase;
    transition: all 0.2s;
}

.other-cert-list span:hover {
    border-color: var(--digi-cyan);
    color: var(--digi-cyan);
    background: rgba(0, 229, 255, 0.08);
}

/* ════════════════════════════════════════
   FORMACIÓN
════════════════════════════════════════ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.edu-card {
    background: rgba(6, 29, 58, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-card:hover {
    border-color: rgba(255, 124, 0, 0.5);
    background: rgba(6, 29, 58, 0.9);
}

.edu-year {
    font-family: var(--pixel);
    font-size: 0.6rem;
    color: var(--digi-cyan);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.edu-card h3 {
    font-family: var(--pixel);
    font-size: 0.75rem;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    line-height: 1.55;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 var(--dark);
}

.edu-card p {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 1.4rem;
}

.edu-status {
    display: inline-block;
    font-family: var(--pixel);
    font-size: 0.55rem;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
}

.edu-status.active {
    color: var(--dark);
    background: var(--digi-cyan);
}

.edu-status.done {
    color: var(--dark);
    background: var(--text-main);
}

/* ════════════════════════════════════════
   CONTACTO
════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-intro p {
    font-size: 1.5rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.renta-info {
    display: inline-block;
    font-family: var(--pixel);
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--dark);
    background: var(--digi-yellow);
    padding: 0.65rem 1.2rem;
    text-transform: uppercase;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(10, 40, 80, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.15);
    text-decoration: none;
    transition: all 0.2s;
}

.contact-item:hover:not(.no-link) {
    border-color: rgba(0, 229, 255, 0.5);
    transform: translateX(5px);
    background: rgba(10, 40, 80, 0.95);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--digi-cyan);
    font-family: var(--pixel);
    flex-shrink: 0;
}

.contact-label {
    font-family: var(--pixel);
    font-size: 0.55rem;
    color: rgba(232, 244, 255, 0.65);
    text-transform: uppercase;
}

.contact-value {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-top: 0.3rem;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    background: var(--bg-deep);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--pixel);
    font-size: 0.6rem;
    color: rgba(232, 244, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
/* ════════════════════════════════════════
   AJUSTES PARA LAPTOPS (1366x768 / 1280x720)
════════════════════════════════════════ */
@media (max-width: 1400px) {

    /* Limitar el ancho del texto para que no choque con los emblemas */
    .hero-content {
        max-width: 55%;
    }

    /* Reducir y mover el anillo a la derecha (Centro en 82%, 50%) */
    .grid-lines {
        left: calc(82% - 160px);
        top: calc(50% - 160px);
        width: 320px;
        height: 320px;
    }

    /* Reducir y mover el Digivice */
    .hero::before {
        left: calc(82% - 25px);
        top: calc(50% - 35px);
        width: 50px;
        height: 70px;
    }

    /* Achicar todos los emblemas a 48px */
    .hero-bg::before,
    .hero-bg::after,
    .orb,
    .orb1::before,
    .orb1::after,
    .orb2::before,
    .orb2::after {
        width: 48px;
        height: 48px;
    }

    /* Nuevas posiciones matemáticas con Radio = 160px y Centro = 82% */
    /* Courage (0°) */
    .hero-bg::before {
        left: calc(82% - 24px);
        top: calc(50% - 184px);
    }

    /* Friendship (45°) */
    .hero-bg::after {
        left: calc(82% + 89px);
        top: calc(50% - 137px);
    }

    /* Hope (90°) */
    .orb1 {
        left: calc(82% + 136px);
        top: calc(50% - 24px);
    }

    /* Knowledge (135°) -> Relativo a Hope */
    .orb1::before {
        left: -47px;
        top: 113px;
    }

    /* Light (180°) -> Relativo a Hope */
    .orb1::after {
        left: -160px;
        top: 160px;
    }

    /* Love (225°) */
    .orb2 {
        left: calc(82% - 137px);
        top: calc(50% + 89px);
    }

    /* Reliability (270°) -> Relativo a Love */
    .orb2::before {
        left: -47px;
        top: -113px;
    }

    /* Sincerity (315°) -> Relativo a Love */
    .orb2::after {
        left: 0px;
        top: -226px;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero::before,
    .hero::after,
    .hero-bg::before,
    .hero-bg::after,
    .orb1,
    .orb1::before,
    .orb1::after,
    .orb2,
    .orb2::before,
    .orb2::after,
    .grid-lines {
        display: none !important;
    }

    .container {
        padding: 0 1.2rem;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

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

@media (max-width: 600px) {
    .hero-stats {
        flex-direction: column;
    }

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

    .hero-name {
        font-size: 1.4rem;
    }
}