:root {
    --fondo-oscuro: #111111;
    --fondo-tarjetas: #1a1a1a;
    --verde-fosforito: #82ff1f;
    --blanco-texto: #ffffff;
    --borde-gris: #4f4f4f;
}

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

body {
    background-color: var(--fondo-oscuro);
    color: var(--blanco-texto);
    font-family: 'Figtree', sans-serif;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================================
   ESTILO ESCRITORIO NAV
   ======================================================== */
header {
    width: 100%;
    height: 70px;
    background-color: var(--fondo-oscuro);
    display: flex;
    align-items: center;
}

header nav {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    gap: 32px;
    padding: 0;
    margin: 0;
}

header nav ul.nav-links li a {
    text-decoration: none;
    color: var(--blanco-texto);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

header nav ul.nav-links li a:hover {
    color: var(--verde-fosforito);
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--verde-fosforito);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================================
                    HERO
   ======================================================== */
.hero-section {
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.hero-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero-profile-pic {
    width: 100%;
    max-width: 450px;
    border-radius: 40px;
    box-shadow: 0 0 30px rgba(130, 255, 31, 0.25);
}

.hero-content {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.badge-disponible {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--blanco-texto);
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(130, 255, 31, 0.35);
}

.hero-subtitle {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--verde-fosforito); /* O blanco con transparencia si preferís */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    font-weight: 400;
}

.dot-verde {
    width: 10px;
    height: 10px;
    background-color: var(--verde-fosforito);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--verde-fosforito);
}

/* ========================================================
   🖤 SECCIÓN PROYECTOS DESTACADOS
   ======================================================== */
.projects-section {
    width: 100%;
    background-color: #0b0b0b;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.projects-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.projects-header {
    margin-bottom: 60px;
    text-align: left;
}

.badge-proyectos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    background-color: rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blanco-texto);
    letter-spacing: -1px;
}

/* 🚀 SISTEMA DE REJILLA GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 32px;
    width: 100%;
}

/* Estilo Base de las Tarjetas */
.project-card {
    background-color: var(--fondo-tarjetas);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(130, 255, 31, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-branch {
    color: var(--verde-fosforito);
    font-weight: 500;
    font-size: 15px;
}

.project-year {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* 🏆 TARJETA HERO DESTACADA (NUMZIO) - ALTO LIBRE */
.project-card-hero {
    grid-column: 1 / -1 !important;
}

.hero-image-box {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: contain !important;
}

/* 🖼️ TARJETAS ESTÁNDAR (GRILLA DE A PARES) - ALTO FIJO */
.project-image-box {
    width: 100%;
    height: 240px; 
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-btn {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background-color: rgba(130, 255, 31, 0.2);
}

.github-icon {
    width: 20px;
    height: 20px;
    fill: var(--blanco-texto);
    transition: fill 0.2s ease, transform 0.2s ease;
}

.action-btn:hover .github-icon {
    fill: var(--verde-fosforito);
    transform: scale(1.1);
}

.tech-stack-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
    font-weight: 500;
}

.project-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ========================================================
   ⚪ SECCIÓN STACK TECNOLÓGICO 
   ======================================================== */
.skills-section {
    width: 100%;
    background-color: #ffffff; 
    color: #111111;           
    padding: 100px 0;
}

.skills-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap; 
    gap: 60px;
}

.skills-sidebar {
    flex: 1 1 350px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-skills {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #555555;
}

.skills-main-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #111111;
    letter-spacing: -1px;
    margin-bottom: 50px;
}

.soft-skills-box {
    width: 100%;
    max-width: 280px;
}

.soft-skills-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.asterisk-icon {
    color: var(--verde-fosforito); 
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.soft-skills-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.soft-skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.soft-skills-list li {
    font-size: 15px;
    font-weight: 500;
    padding: 14px 0;
    color: #333333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.skills-content {
    flex: 2 1 600px; 
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.skill-block {
    width: 100%;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.skill-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.skill-block-title {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.skill-block-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 12px;
}

.skill-stack-line {
    font-size: 14px;
    line-height: 1.5;
    color: #0e0d0d;
    margin: 0;
}

/* ========================================================
   SECCIÓN ÁREAS DE EXPERTISE
   ======================================================== */
.expertise-section {
    width: 100%;
    background-color: #0b0b0b; 
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.expertise-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.expertise-header {
    margin-bottom: 60px;
    text-align: left;
}

.badge-expertise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    background-color: rgba(255, 255, 255, 0.02);
}

.expertise-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--blanco-texto);
    letter-spacing: -1px;
}

.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; 
    width: 100%;
}

.expertise-card {
    flex: 1 1 300px; 
    padding: 40px 30px;
    border-radius: 28px; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-6px); 
}

.card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.expertise-list li {
    font-size: 14px;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.expertise-list li:last-child {
    border-bottom: none; 
}

.card-green {
    background-color: var(--verde-fosforito);
    color: #0b0b0b; 
}
.card-green .card-desc {
    color: rgba(11, 11, 11, 0.85);
}

.card-dark {
    background-color: var(--fondo-tarjetas);
    color: var(--blanco-texto);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.card-dark .card-desc {
    color: rgba(255, 255, 255, 0.7);
}
.card-dark .expertise-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}

.card-white {
    background-color: #ffffff;
    color: #0b0b0b; 
}
.card-white .card-desc {
    color: rgba(11, 11, 11, 0.75);
}

/* ========================================================
   ⚪ SECCIÓN SOBRE MÍ
   ======================================================== */
.about-section {
    width: 100%;
    background-color: #ffffff; 
    color: #111111;
    padding-top: 100px;
}

.about-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.about-profile-pic {
    width: 100%;
    max-width: 420px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(130, 255, 31, 0.2);
}

.about-info {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-about {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #555555;
}

.about-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: #111111;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.about-text {
    font-size: 15px;
    line-height: 1.65;
    color: #333333;
    margin-bottom: 35px;
}

.about-socials {
    display: flex;
    gap: 16px;
}

.social-circle {
    width: 46px;
    height: 46px;
    background-color: #111111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-circle svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.social-circle:hover {
    background-color: var(--verde-fosforito);
    transform: scale(1.08);
}

.social-circle:hover svg {
    fill: #111111; 
}

/* ========================================================
   🟢 BANNER DE MÉTRICAS 
   ======================================================== */
.about-metrics-banner {
    width: 100%;
    background-color: var(--verde-fosforito); 
    color: #0b0b0b;
    padding: 80px 0;
}

.metrics-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.metric-item {
    flex: 1 1 300px; 
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 54px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(11, 11, 11, 0.2); 
    margin-bottom: 16px;
}

.metric-text-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.metric-text-box p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.85;
}

/* ========================================================
   SECCIÓN DE CONTACTO & FOOTER
   ======================================================== */
.contact-section {
    width: 100%;
    background-color: #0b0b0b; 
    padding: 100px 0 80px 0;
}

.contact-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center; 
}

.contact-card {
    background-color: var(--fondo-tarjetas);
    width: 100%;
    max-width: 800px; 
    padding: 60px 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.badge-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--blanco-texto);
}

.contact-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem); 
    font-weight: 700;
    line-height: 1.15;
    color: var(--blanco-texto);
    letter-spacing: -1px;
    margin-bottom: 35px;
}

.contact-email {
    font-size: clamp(14px, 2.5vw, 20px);
    color: var(--blanco-texto);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4); 
    padding-bottom: 4px;
    margin-bottom: 45px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
    color: var(--verde-fosforito);
    border-color: var(--verde-fosforito);
}

.download-cv-btn {
    display: inline-block;
    background-color: var(--verde-fosforito);
    color: #0b0b0b;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 30px; 
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 255, 31, 0.3);
}

.main-footer {
    width: 100%;
    background-color: #0b0b0b;
    padding: 30px 0 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px; 
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5); 
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: var(--verde-fosforito);
}

/* ========================================================
    BOTONES FLOTANTES SIMÉTRICOS 
   ======================================================== */
.floating-btn {
    position: fixed;
    bottom: 30px; 
    width: 45px;  
    height: 45px; 
    z-index: 99999;
    background-color: transparent; 
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-btn {
    left: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn-whatsapp-stencil {
    right: 30px;
}
.btn-whatsapp-stencil a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.scroll-btn svg,
.btn-whatsapp-stencil svg {
    width: 100%;
    height: 100%;
    display: block;
    color: var(--verde-fosforito);
    fill: currentColor;
    filter: drop-shadow(0 2px 6px rgba(130, 255, 31, 0.55));
    transition: filter 0.3s ease;
}

.scroll-btn svg circle,
.scroll-btn svg path {
    stroke: var(--verde-fosforito) !important;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.08);
}

.scroll-btn:hover svg,
.btn-whatsapp-stencil:hover svg {
    filter: drop-shadow(0 4px 14px rgba(130, 255, 31, 0.9));
}

/* ========================================================
    RESPONSIVE GENERAL DE MEDIA QUERIES
   ======================================================== */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card-hero {
        grid-column: span 1 !important;
    }

    .tech-stack-text {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .floating-btn { bottom: 20px; }
    .scroll-btn { left: 20px; }
    .btn-whatsapp-stencil { right: 20px; }

    .projects-section { padding: 60px 0; }
    .projects-container { padding: 0 24px; }

    .contact-section { padding: 60px 0 40px 0; }
    .contact-container, .footer-container { padding: 0 24px; }
    .contact-card { padding: 45px 24px; }
    .footer-links { gap: 20px; }
    .footer-links li a { font-size: 12px; }

    .about-section { padding-top: 60px; }
    .about-main-content { flex-direction: column; gap: 40px; margin-bottom: 50px; }
    .about-image-wrapper { flex: 1 1 100%; }
    .about-info { flex: 1 1 100%; align-items: center; text-align: center; }
    .about-container, .metrics-container { padding: 0 24px; }
    .metrics-container { flex-direction: column; gap: 45px; }
    .metric-item { flex: 1 1 100%; }

    .expertise-section { padding: 60px 0; }
    .expertise-container { padding: 0 24px; }
    .expertise-grid { flex-direction: column; gap: 20px; }
    .expertise-card { flex: 1 1 100%; padding: 35px 24px; }

    .skills-section { padding: 60px 0; }
    .skills-container { padding: 0 24px; gap: 40px; }
    .skills-sidebar { flex: 1 1 100%; align-items: center; text-align: center; }
    .skills-main-title { margin-bottom: 30px; }
    .soft-skills-box { max-width: 100%; margin-bottom: 20px; }
    .soft-skills-header { justify-content: center; }
    .soft-skills-list li { text-align: center; }
    .skills-content { flex: 1 1 100%; gap: 35px; }
    .skill-block { padding-bottom: 30px; }
    .skill-block-title { font-size: 21px; }

    .desktop-menu { display: none !important; }
    .hamburger-btn { display: flex !important; z-index: 100000; }
    header nav { padding: 0px; }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.75);
        backdrop-filter: blur(5px);
        z-index: 999999;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .floating-menu {
        background-color: var(--fondo-tarjetas);
        width: 85%;
        max-width: 320px;
        padding: 40px 30px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        position: relative;
        transform: translateY(-40px);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mobile-overlay.active { opacity: 1; }
    .mobile-overlay.active .floating-menu { transform: translateY(0); }
    .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        background: transparent;
        border: none;
        color: var(--verde-fosforito);
        font-size: 35px;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .mobile-nav-links li { width: 100%; text-align: center; }
    .mobile-nav-links li a {
        text-decoration: none;
        color: var(--blanco-texto);
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.2s ease;
    }
    .mobile-nav-links li a:hover { color: var(--verde-fosforito); }
}

/* ========================================================
    MODAL PANTALLA COMPLETA EN MOBILE
   ======================================================== */
.image-modal {
    display: none; 
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--verde-fosforito);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 900px) {
   
    .project-image-box {
        height: 280px; 
    }
}

/* ========================================================
     BADGES COMPACTOS CON SVG Y TOOLTIP
   ======================================================== */

/* 1. Contenedor del Badge (Sello pequeño) */
.badge-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 3px 8px;
    background-color: rgba(130, 255, 31, 0.08);
    border: 1px solid rgba(130, 255, 31, 0.25);
    color: var(--verde-fosforito);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.badge-status:hover,
.badge-status:focus {
    background-color: rgba(130, 255, 31, 0.18);
    border-color: var(--verde-fosforito);
}

.badge-status.badge-updated {
    background: rgba(255, 255, 255, 0.05);
    color: #cccccc;
    border: 1px solid rgba(130, 255, 31, 0.25);
}

.badge-status.badge-updated:hover {
    background: rgba(130, 255, 31, 0.18);
    color: #ffffff;
    border-color: var(--verde-fosforito);
}

/* 2. Estilo del SVG circular */
.info-svg {
    width: 14px;
    height: 14px;
    display: block;
    color: var(--verde-fosforito);
    flex-shrink: 0;
}

/* 3. El Globito Flotante (Tooltip) - Oculto por defecto */
.badge-status::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid rgba(130, 255, 31, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.2s ease;
    z-index: 1000;
}

/* 4. Flechita inferior del globito */
.badge-status::before {
    content: '';
    position: absolute;
    bottom: 118%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

/* 🚀 5. Mostrar al hacer Hover o Tap (Mobile) */
.badge-status:hover::after,
.badge-status:hover::before,
.badge-status:focus::after,
.badge-status:focus::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Posicionamiento por defecto: ARRIBA */
.badge-status::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px); 
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    
    background-color: #141414;
    color: #ffffff;
    border: 1px solid var(--verde-fosforito);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

/* Hover base */
.badge-status:hover::after,
.badge-status:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 🔄 Excepción dinámica: ABAJO (solo cuando choca el techo) */
.badge-status.tooltip-bottom::after {
    bottom: auto;
    top: calc(100% + 8px);
}


@media (max-width: 900px) {
    .badge-status::after {
        white-space: normal;
        width: 190px;
        text-align: center;
    }
}

/* ========================================================
   🧠 SECCIÓN: CASOS DE ESTUDIO (Espaciado y Estructura)
   ======================================================== */

.cases-section {
    padding-top: 4rem;    /* 👈 Le da aire arriba respecto al banner verde */
    padding-bottom: 3rem; /* 👈 Controla el espacio inferior para que no quede el hueco gigante */
}

/* Ajuste del subtítulo para que la flechita y el texto alineen perfecto */
.cases-section .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--verde-fosforito);
    margin-bottom: 0.5rem;
}

.cases-section .section-title {
    margin-bottom: 2rem; /* Separación justa entre el título y la tarjeta */
}

/* Grilla y Tarjeta */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem; /* Reducido para no generar doble margen */
}

.case-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.case-card:hover {
    border-color: rgba(130, 255, 31, 0.4);
    transform: translateY(-3px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-badge {
    background-color: rgba(130, 255, 31, 0.1);
    color: var(--verde-fosforito);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(130, 255, 31, 0.3);
}

.case-stack {
    font-size: 0.85rem;
    color: #888888;
    font-family: monospace;
}

.case-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.case-project-ref {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
}

.case-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.case-block h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.case-block p {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
}

.case-block.highlight-block {
    background: rgba(130, 255, 31, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--verde-fosforito);
}