@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;700;800&display=swap');

/* ========== LANGUAGE SWITCHER CON BANDERAS ========== */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 40px;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #00FF41;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 255, 65, 0.3);
}

.lang-btn.active .flag-icon {
    opacity: 1;
    filter: none;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lang-btn:not(.active) .flag-icon {
    opacity: 0.7;
    filter: grayscale(30%);
}

.lang-btn span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .flag-icon {
        width: 18px;
        height: 13px;
    }

    .lang-btn span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .lang-btn {
        padding: 5px 10px;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
    }

    .lang-btn span {
        font-size: 10px;
    }
}

/* Animación sutil para los botones */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 255, 65, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
    }
}

.lang-btn.active {
    animation: pulseGlow 2s infinite;
}

/* Estilos para el botón de volver arriba */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: #ffd700;
    color: black;
    transform: scale(1.1);
}

#back-to-top:active {
    transform: scale(0.98);
}

/* Estilos generales */
::-webkit-scrollbar {
    display: none;
}

#particles-js {
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    text-align: center;
    background-color: #000;
    color: white;
    margin: 0;
    padding: 0;
}

/* Estilo para el logotipo */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 60%;
    width: 60px;
    height: auto;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.50s;
}

.logo:hover {
    transform: scale(1.1);
}

/* Canvas de fondo */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* ========== HERO SECTION - MEJORADO RESPONSIVE ========== */
/* ========== HERO SECTION - CON ANIMACIÓN WAVE ========== */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    min-height: 600px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image-rF1bY4r4gAsVhreIbgXdAbzZ95nAy5.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(60%) contrast(120%);
    z-index: 1;
}

.hero-text-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    max-width: 60%;
    width: 100%;
}

.hero-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: clamp(2.2rem, 8vw, 4rem);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1em;
}

/* Estilo para cada letra del título */
.wave-text {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.05em;
}

.wave-char {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: center;
}

/* Retrasos escalonados para las letras */
/* Amplía los delays hasta 30 para cubrir textos más largos */
.wave-char:nth-child(1) {
    animation-delay: 0s;
}

.wave-char:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-char:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-char:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-char:nth-child(5) {
    animation-delay: 0.4s;
}

.wave-char:nth-child(6) {
    animation-delay: 0.5s;
}

.wave-char:nth-child(7) {
    animation-delay: 0.6s;
}

.wave-char:nth-child(8) {
    animation-delay: 0.7s;
}

.wave-char:nth-child(9) {
    animation-delay: 0.8s;
}

.wave-char:nth-child(10) {
    animation-delay: 0.9s;
}

.wave-char:nth-child(11) {
    animation-delay: 1s;
}

.wave-char:nth-child(12) {
    animation-delay: 1.1s;
}

.wave-char:nth-child(13) {
    animation-delay: 1.2s;
}

.wave-char:nth-child(14) {
    animation-delay: 1.3s;
}

.wave-char:nth-child(15) {
    animation-delay: 1.4s;
}

.wave-char:nth-child(16) {
    animation-delay: 1.5s;
}

.wave-char:nth-child(17) {
    animation-delay: 1.6s;
}

.wave-char:nth-child(18) {
    animation-delay: 1.7s;
}

.wave-char:nth-child(19) {
    animation-delay: 1.8s;
}

.wave-char:nth-child(20) {
    animation-delay: 1.9s;
}

.wave-char:nth-child(21) {
    animation-delay: 2s;
}

.wave-char:nth-child(22) {
    animation-delay: 2.1s;
}

.wave-char:nth-child(23) {
    animation-delay: 2.2s;
}

.wave-char:nth-child(24) {
    animation-delay: 2.3s;
}

.wave-char:nth-child(25) {
    animation-delay: 2.4s;
}

.wave-char:nth-child(26) {
    animation-delay: 2.5s;
}

.wave-char:nth-child(27) {
    animation-delay: 2.6s;
}

.wave-char:nth-child(28) {
    animation-delay: 2.7s;
}

.wave-char:nth-child(29) {
    animation-delay: 2.8s;
}

.wave-char:nth-child(30) {
    animation-delay: 2.9s;
}

/* Animación wave */
@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.highlight-name {
    color: #00FF41;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.05em;
}

.highlight-name .wave-char {
    color: #00FF41;
}

.hero-subtitle {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    line-height: 1.5;
    max-width: 100%;
    margin: 1rem 0 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.macintosh-icon {
    position: relative;
    z-index: 2;
    width: min(550px, 40vw);
    height: auto;
    animation: slideInMac 1s ease-out forwards,
        float 3s ease-in-out infinite alternate 1s;
    opacity: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.macintosh-icon img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Animaciones base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInMac {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-20px);
    }
}

/* ========== VERSIÓN MÓVIL ========== */
@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
        height: auto;
        min-height: 100vh;
    }

    .hero-text-overlay {
        max-width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
        justify-content: center;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .macintosh-icon {
        width: min(300px, 60%);
        margin: 0 auto;
    }

    /* En móvil, reducimos la intensidad de la animación */
    @keyframes wave {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }
}

/* Versión para móviles pequeños */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .macintosh-icon {
        width: 200px;
    }

    @keyframes wave {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-5px);
        }
    }
}

/* ========== SUBTITLE ========== */
.subtitle {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 18px;
    margin-top: 20px;
    color: #f0f0f0;
}

/* Icono de scroll */
.scroll-down {
    position: absolute;
    bottom: 20px;
    font-size: 24px;
    color: #f0f0f0;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down span:hover {
    color: #ffffff;
}

/* ========== SKILLS SECTION - NUEVO DISEÑO MODERNO ========== */
.skills-section-modern {
    padding: 60px 20px;
    max-width: 1280px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* Hero Section */
.skills-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .skills-hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.skills-hero-content {
    max-width: 672px;
}

.skills-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: #00FF41;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.skills-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #00FF41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-description {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.6;
}

.skills-curriculum-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: #1e293b;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skills-curriculum-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* Categories */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.category-line {
    height: 1px;
    flex-grow: 1;
    background: #1e293b;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Skill Card Modern */
.skill-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.skill-card-modern:hover {
    border-color: rgba(0, 255, 65, 0.5);
    transform: translateY(-4px);
}

.skill-card-modern.active-card {
    border-color: rgba(0, 255, 65, 0.3);
    overflow: hidden;
}

.active-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #00FF41;
    color: black;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
}

.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.skill-icon {
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon .material-symbols-outlined {
    font-size: 40px;
}

.orange-bg {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.blue-bg {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.yellow-bg {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.cyan-bg {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.skill-level {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.skill-level.expert {
    color: #f97316;
}

.skill-level.advanced {
    color: #3b82f6;
}

.skill-level.progress {
    color: #00FF41;
}

.skill-level.main-focus {
    color: #06b6d4;
}

.skill-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.skill-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.skill-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.progress-label span:first-child {
    color: #64748b;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
}

.orange-fill {
    background: #f97316;
}

.blue-fill {
    background: #3b82f6;
}

.yellow-fill {
    background: #eab308;
}

.cyan-fill {
    background: #06b6d4;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .systems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.system-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    border-left-width: 4px;
    border-left-style: solid;
}

.system-card:hover {
    background: rgba(30, 41, 59, 0.4);
}

.java-card {
    border-left-color: #ef4444;
}

.python-card {
    border-left-color: #00FF41;
}

.cpp-card {
    border-left-color: #a855f7;
}

.system-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.system-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
}

.system-icon .material-symbols-outlined {
    font-size: 48px;
}

.red-text {
    color: #ef4444;
}

.primary-text {
    color: #00FF41;
}

.purple-text {
    color: #a855f7;
}

.system-info {
    flex: 1;
}

.system-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.system-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.system-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    border-width: 1px;
    border-style: solid;
}

.system-level.intermediate {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.system-level.learning {
    background: rgba(0, 255, 65, 0.1);
    color: #00FF41;
    border-color: rgba(0, 255, 65, 0.2);
}

.system-level.fundamental {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.2);
}

.system-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.system-progress .progress-bar {
    height: 8px;
}

.red-fill {
    background: #ef4444;
}

.primary-fill {
    background: #00FF41;
}

.purple-fill {
    background: #a855f7;
}

/* CTA Section */
.skills-cta {
    margin-top: 80px;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(to right, #00FF41, #00b33c);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.skills-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.2;
    pointer-events: none;
}

@media (min-width: 768px) {
    .skills-cta {
        flex-direction: row;
        justify-content: space-between;
        padding: 48px;
    }
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    position: relative;
    z-index: 10;
    background: white;
    color: #00FF41;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Ajustes responsive para la sección */
@media (max-width: 768px) {
    .skills-section-modern {
        padding: 40px 16px;
    }

    .system-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .system-title-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Clases adicionales para la versión alternativa */
.red-bg {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.green-bg {
    background: rgba(0, 255, 65, 0.1);
    color: #00FF41;
}

.purple-bg {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

/* Ajuste para el grid de 3 columnas en desktop */
@media (min-width: 1024px) {
    .skills-grid[style*="repeat(auto-fit"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1023px) and (min-width: 640px) {
    .skills-grid[style*="repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========== ABOUT ME SECTION - REDISEÑADA ========== */
.about-section-modern {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
    background: transparent;
    color: white;
    font-family: 'Inter', sans-serif;
}

/* Elementos decorativos de fondo */
.about-bg-decoration {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.about-bg-1 {
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(0, 255, 65, 0.05);
    transform: translate(25%, -50%);
}

.about-bg-2 {
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 65, 0.08);
    transform: translate(-25%, 50%);
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Grid principal */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* Columna de contenido */
.about-content-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    order: 2;
}

@media (min-width: 1024px) {
    .about-content-col {
        order: 1;
    }
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-line {
    width: 40px;
    height: 2px;
    background: #00FF41;
}

.about-tagline-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00FF41;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: white;
}

.about-title-highlight {
    color: #00FF41;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0;
}

@media (min-width: 768px) {
    .about-description p {
        font-size: 1.125rem;
    }
}

/* Stats container */
.about-stats-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 16px;
}

@media (min-width: 640px) {
    .about-stats-container {
        flex-direction: row;
        align-items: center;
    }
}

.about-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-stack-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin: 0;
}

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

.stack-icon-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    transition: all 0.3s ease;
    cursor: default;
}

.stack-icon-item:hover {
    border-color: #00FF41;
}

.stack-icon-item .material-symbols-outlined {
    font-size: 24px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.stack-icon-item:hover .material-symbols-outlined {
    color: #00FF41;
}

.about-stack-divider {
    width: 100%;
    height: 1px;
    background: #334155;
}

@media (min-width: 640px) {
    .about-stack-divider {
        width: 1px;
        height: 48px;
    }
}

.about-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.status-ping {
    position: relative;
    display: flex;
    width: 12px;
    height: 12px;
}

.status-ping::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #00FF41;
    opacity: 0.75;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-ping::after {
    content: '';
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00FF41;
    top: 2px;
    left: 2px;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #00FF41;
}

@keyframes ping {

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

/* Columna de imagen */
.about-media-col {
    position: relative;
    order: 1;
}

@media (min-width: 1024px) {
    .about-media-col {
        order: 2;
    }
}

.about-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-color: rgba(0, 255, 65, 0.3);
    pointer-events: none;
    transition: border-color 0.3s ease;
    z-index: 2;
}

.about-accent-tl {
    top: -20px;
    left: -20px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 12px;
}

.about-accent-br {
    bottom: -20px;
    right: -20px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 12px;
}

.about-media-col:hover .about-accent {
    border-color: #00FF41;
}

.about-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s ease-in-out;
    transform: scale(1.05);
}

.about-image-container:hover .about-image {
    filter: grayscale(0%);
    transform: scale(1);
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.about-image-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

@media (min-width: 768px) {
    .about-image-label {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }
}

.label-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-text {
    display: flex;
    flex-direction: column;
}

.label-subtitle {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.label-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.label-icon {
    color: #00FF41;
    font-size: 24px;
}

/* Stats Section */
.about-stats-section {
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.3);
    margin-top: 40px;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00FF41;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .about-stats-container {
        width: 100%;
    }

    .about-stack {
        width: 100%;
    }

    .about-stack-icons {
        justify-content: space-between;
    }

    .stack-icon-item {
        width: 44px;
        height: 44px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-section-modern {
        padding: 60px 16px;
    }

    .about-accent {
        width: 60px;
        height: 60px;
    }

    .about-image-label {
        padding: 12px;
    }

    .label-title {
        font-size: 14px;
    }
}

/* ========== SOCIAL CARDS ========== */
/* ========== SOCIAL MEDIA ICONS ========== */
.about-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-social-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin: 0;
}

.about-social-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icon-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #94a3b8;
}

.social-icon-item:hover {
    transform: translateY(-4px);
    border-color: #00FF41;
}

.social-icon-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon-item:hover svg {
    color: #00FF41;
}

/* Colores específicos para cada red social (opcional - al hacer hover) */
.github-icon:hover {
    border-color: #6e40c9;
}

.github-icon:hover svg {
    color: #6e40c9;
}

.instagram-icon:hover {
    border-color: #e1306c;
}

.instagram-icon:hover svg {
    color: #e1306c;
}

.youtube-icon:hover {
    border-color: #ff0000;
}

.youtube-icon:hover svg {
    color: #ff0000;
}

.x-icon:hover {
    border-color: #000000;
}

.x-icon:hover svg {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 640px) {
    .about-social-icons {
        justify-content: space-between;
    }

    .social-icon-item {
        width: 44px;
        height: 44px;
    }

    .social-icon-item svg {
        width: 20px;
        height: 20px;
    }
}

/* ========== CONTACT SECTION ========== */
/* ========== CONTACT SECTION - NEUMORFISMO MINIMALISTA ========== */
.contact-section-modern {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
    background: transparent;
    color: white;
    font-family: 'Inter', sans-serif;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header con estilo minimalista */
.contact-header-minimal {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.contact-tagline-minimal {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00FF41;
    margin-bottom: 16px;
    position: relative;
}

.contact-tagline-minimal::before,
.contact-tagline-minimal::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: rgba(0, 255, 65, 0.3);
}

.contact-tagline-minimal::before {
    right: calc(100% + 10px);
}

.contact-tagline-minimal::after {
    left: calc(100% + 10px);
}

.contact-title-minimal {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: white;
}

.contact-title-minimal strong {
    font-weight: 700;
    color: #00FF41;
}

.contact-description-minimal {
    font-size: 1rem;
    line-height: 1.8;
    color: #94a3b8;
    margin: 0;
    font-weight: 300;
}

/* Grid de contacto con neumorfismo */
.contact-grid-neumorph {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid-neumorph {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tarjetas con efecto neumórfico */
.neumorph-card {
    background: #1a1a1a;
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.8),
        -20px -20px 40px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.02);
    width: 100%;
    box-sizing: border-box;
}

.neumorph-card:hover {
    box-shadow:
        25px 25px 50px rgba(0, 0, 0, 0.9),
        -25px -25px 50px rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Tarjeta de información */
.info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card-title {
    font-size: 24px;
    font-weight: 400;
    color: white;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.info-card-title span {
    font-weight: 700;
    color: #00FF41;
}

.info-card-divider {
    width: 40px;
    height: 2px;
    background: #00FF41;
    margin: 0 0 30px;
    opacity: 0.5;
}

.info-card-text {
    font-size: 15px;
    line-height: 1.8;
    color: #94a3b8;
    margin: 0 0 30px;
    font-weight: 300;
}

/* Stats minimalistas */
.contact-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto;
}

.stat-item-minimal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.02);
    color: #00FF41;
    flex-shrink: 0;
}

.stat-icon .material-symbols-outlined {
    font-size: 24px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Para evitar desbordamiento */
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tarjeta del formulario */
.form-card {
    padding: 40px 32px;
    width: 100%;
    box-sizing: border-box;
}

.form-card-title {
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin: 0 0 30px;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-card-title span {
    font-weight: 700;
    color: #00FF41;
}

/* Campos del formulario con neumorfismo - CORREGIDO */
.form-group-neumorph {
    margin-bottom: 24px;
    width: 100%;
}

.form-label-neumorph {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    padding-left: 4px;
}

.form-input-neumorph,
.form-textarea-neumorph {
    width: 100%;
    padding: 16px 20px;
    /* Aumentado el padding interno */
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    /* Un poco más redondeado */
    color: white;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    box-shadow:
        inset 5px 5px 10px rgba(0, 0, 0, 0.6),
        inset -5px -5px 10px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Fundamental para que el padding no desborde */
}

.form-input-neumorph:focus,
.form-textarea-neumorph:focus {
    outline: none;
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow:
        inset 8px 8px 15px rgba(0, 0, 0, 0.8),
        inset -8px -8px 15px rgba(255, 255, 255, 0.03),
        0 0 0 2px rgba(0, 255, 65, 0.1);
}

.form-input-neumorph::placeholder,
.form-textarea-neumorph::placeholder {
    color: #4a5568;
    font-weight: 300;
}

.form-textarea-neumorph {
    resize: vertical;
    min-height: 120px;
    padding: 16px 20px;
    /* Consistente con los inputs */
}

/* Botón con neumorfismo */
.contact-btn-neumorph {
    width: 100%;
    padding: 16px 24px;
    background: #1a1a1a;
    border: none;
    border-radius: 24px;
    color: #00FF41;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.6),
        -10px -10px 20px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-btn-neumorph:hover {
    box-shadow:
        15px 15px 30px rgba(0, 0, 0, 0.8),
        -15px -15px 30px rgba(255, 255, 255, 0.03);
    color: white;
    transform: translateY(-2px);
}

.contact-btn-neumorph:active {
    box-shadow:
        inset 8px 8px 15px rgba(0, 0, 0, 0.7),
        inset -8px -8px 15px rgba(255, 255, 255, 0.02);
    transform: translateY(0);
}

.contact-btn-neumorph::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 65, 0.1),
            transparent);
    transition: left 0.7s ease;
}

.contact-btn-neumorph:hover::before {
    left: 100%;
}

/* Elemento decorativo minimalista */
.contact-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.contact-decoration-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.02);
    filter: blur(60px);
}

.contact-decoration-2 {
    bottom: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.02);
    filter: blur(50px);
}

/* Responsive */
@media (max-width: 640px) {
    .contact-section-modern {
        padding: 60px 16px;
    }

    .neumorph-card {
        padding: 32px 20px;
        /* Reducido el padding en móviles */
    }

    .form-card {
        padding: 32px 20px;
    }

    .form-input-neumorph,
    .form-textarea-neumorph {
        padding: 14px 16px;
        /* Padding ligeramente menor en móviles */
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon .material-symbols-outlined {
        font-size: 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-header-minimal {
        margin-bottom: 40px;
    }

    .contact-tagline-minimal {
        font-size: 12px;
    }

    .contact-title-minimal {
        font-size: 1.8rem;
    }

    .neumorph-card {
        padding: 28px 16px;
    }

    .form-input-neumorph,
    .form-textarea-neumorph {
        padding: 12px 14px;
        border-radius: 16px;
    }
}

/* Asegurar que todo el contenido respete los límites de las tarjetas */
* {
    box-sizing: border-box;
}

/* ========== ANIMACIONES PROFESIONALES ========== */

/* Animación de entrada para secciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases de animación */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.fade-up {
    transform: translateY(40px);
}

.scroll-animate.fade-left {
    transform: translateX(-40px);
}

.scroll-animate.fade-right {
    transform: translateX(40px);
}

.scroll-animate.scale {
    transform: scale(0.9);
}

.scroll-animate.show-on-scroll {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Animaciones para elementos hijos */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--child-index) * 0.1s);
}

.stagger-children.show-on-scroll>* {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos hover en tarjetas */
.skill-card-modern,
.project-card-modern,
.social-icon-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card-modern:hover,
.project-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 255, 65, 0.2);
}

/* Animación de carga para el preloader */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

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

/* Efecto de brillo en hover para botones */
.contact-submit-btn-modern,
.project-card-button,
.projects-nav-btn {
    position: relative;
    overflow: hidden;
}

.contact-submit-btn-modern::after,
.project-card-button::after,
.projects-nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-submit-btn-modern:hover::after,
.project-card-button:hover::after,
.projects-nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Animación de entrada para el header */
.header-section {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    animation: slideInUp 1s ease-out, typing 3.5s steps(20, end) forwards, blink-caret .75s step-end infinite;
}

.hero-subtitle {
    animation: slideInUp 1s ease-out 0.3s both, typing-subtitle 5s steps(40, end) 3.5s 1 normal both;
}

.macintosh-icon {
    animation: slideInRight 1s ease-out 0.5s both, float 3s ease-in-out infinite alternate 1.5s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== FOOTER REDISEÑADO ========== */
.footer-modern {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 15, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding: 60px 20px 30px;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Elementos decorativos del footer */
.footer-decoration {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.footer-decoration-1 {
    top: -50px;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(0, 255, 65, 0.1);
}

.footer-decoration-2 {
    bottom: -50px;
    right: 10%;
    width: 250px;
    height: 250px;
    background: rgba(0, 255, 65, 0.15);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Grid del footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Columna de información */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00FF41, #00b33c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: 900;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 300px;
}

/* Columna de enlaces rápidos */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00FF41;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links-list li a:hover {
    color: #00FF41;
    transform: translateX(5px);
}

.footer-links-list li a .material-symbols-outlined {
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links-list li a:hover .material-symbols-outlined {
    opacity: 1;
}

/* Columna de contacto */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00FF41;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact-item .material-symbols-outlined {
    color: #00FF41;
    font-size: 20px;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #00FF41;
}

/* Redes sociales del footer */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: #00FF41;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Bottom bar del footer */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: #00FF41;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #00FF41;
}

/* Badge de "Disponible para trabajar" */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 9999px;
    margin-top: 16px;
}

.footer-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00FF41;
    position: relative;
}

.footer-badge-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #00FF41;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.footer-badge-text {
    font-size: 12px;
    font-weight: 600;
    color: #00FF41;
}

/* Scroll to top button mejorado */
#back-to-top {
    background: #00FF41;
    color: black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
    border: none;
    z-index: 100;
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.5);
}

#back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Logo personalizado en el footer */
.footer-logo-img-custom {
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* Esto hace el logo blanco si es necesario */
    transition: transform 0.3s ease;
}

.footer-logo-img-custom:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Si tu logo tiene color y quieres mantenerlo, elimina la propiedad filter */
/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.terminal-loader {
    border: 0.1em solid #333;
    background-color: #1a1a1a;
    color: #00FF41;
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
    padding: 1.5em 1em;
    width: 12em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background-color: #333;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 0 0.4em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-title {
    color: #eee;
    font-size: 0.8em;
}

.terminal-controls {
    display: flex;
    gap: 0.4em;
}

.control {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
}

.control.close {
    background-color: #e33;
}

.control.minimize {
    background-color: #ee0;
}

.control.maximize {
    background-color: #0c0;
}

.terminal-loader .text {
    white-space: nowrap;
    overflow: hidden;
    margin-top: 1.5em;
    display: block;
    border-right: .15em solid #00FF41;
    animation: blink-caret .75s step-end infinite;
    width: 0;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #00FF41;
    }
}

/* ========== PORTFOLIO SECTION ========== */
/* ========== PORTFOLIO SECTION - REDISEÑADA ========== */
.portfolio-section-modern {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
    background: transparent;
    color: white;
    font-family: 'Inter', sans-serif;
}

.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header con estilo similar a About Me */
.portfolio-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 672px;
}

.portfolio-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-line {
    width: 40px;
    height: 2px;
    background: #00FF41;
}

.portfolio-tagline-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00FF41;
}

.portfolio-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    color: white;
}

.portfolio-title-highlight {
    color: #00FF41;
}

.portfolio-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

@media (min-width: 768px) {
    .portfolio-description {
        font-size: 1.125rem;
    }
}

/* Projects Section */
.projects-section {
    margin-top: 32px;
}

.projects-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .projects-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.projects-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.projects-subtitle-icon {
    color: #00FF41;
    font-size: 24px;
}

.projects-nav {
    display: flex;
    gap: 8px;
}

.projects-nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-nav-btn:hover {
    border-color: #00FF41;
    color: #00FF41;
    transform: scale(1.1);
}

.projects-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.projects-nav-btn:disabled:hover {
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    transform: none;
}

.projects-nav-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Carrusel */
.projects-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.projects-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 8px 0 24px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

/* Project Card */
.project-card-modern {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .project-card-modern {
        flex: 0 0 340px;
    }
}

.project-card-modern:hover {
    border-color: rgba(0, 255, 65, 0.5);
    transform: translateY(-4px);
}

.project-card-image-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 65, 0.1);
    z-index: 1;
    transition: background 0.3s ease;
}

.project-card-modern:hover .project-card-overlay {
    background: transparent;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-modern:hover .project-card-image {
    transform: scale(1.05);
}

.project-card-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 9999px;
    color: #00FF41;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.project-card-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-button {
    width: 100%;
    padding: 12px;
    margin-top: 4px;
    background: rgba(0, 255, 65, 0.1);
    border: none;
    border-radius: 10px;
    color: #00FF41;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card-button:hover {
    background: #00FF41;
    color: black;
}

.project-card-button .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.project-card-button:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* Dots */
.carousel-dots-modern {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.carousel-dot-modern {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot-modern:hover {
    background: #475569;
}

.carousel-dot-modern.active {
    width: 24px;
    border-radius: 9999px;
    background: #00FF41;
}

/* Loading Message */
.loading-message-modern {
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    padding: 60px;
    width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
    .portfolio-section-modern {
        padding: 60px 16px;
    }

    .projects-nav-btn {
        width: 40px;
        height: 40px;
    }

    .projects-nav-btn .material-symbols-outlined {
        font-size: 20px;
    }

    .project-card-modern {
        flex: 0 0 260px;
    }
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }

    .logo {
        top: 10px;
        left: 10px;
        width: 45px;
    }

    .ascii-title {
        font-size: 4px;
    }

    .subtitle {
        font-size: 16px;
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ascii-title {
        font-size: 3px;
    }

    .skills-icons {
        gap: 10px;
    }

    .tooltip {
        font-size: 10px;
    }
}

/* ========== ANIMACIÓN PARALLAX CON FADE ========== */
.parallax-section {
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, opacity;
}

.parallax-section.fade-up {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
}

.parallax-section.fade-down {
    opacity: 0;
    transform: translateY(-100px) scale(0.95);
}

.parallax-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========== WEB PROJECTS GRID SECTION ========== */
.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tarjeta para proyectos web (similar a la de skills pero adaptable) */
.web-project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.web-project-card:hover {
    border-color: rgba(0, 255, 65, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 255, 65, 0.2);
}

.web-project-image-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.web-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.web-project-card:hover .web-project-image {
    transform: scale(1.05);
}

.web-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.web-project-tag {
    padding: 4px 10px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    color: #00FF41;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.web-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.web-project-description {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.web-project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.web-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.1);
    border: none;
    border-radius: 30px;
    color: #00FF41;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.web-project-btn:hover {
    background: #00FF41;
    color: black;
}

.web-project-btn .material-symbols-outlined {
    font-size: 18px;
}

.web-project-featured {
    background: rgba(255, 215, 0, 0.15);
    color: gold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .web-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .web-projects-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== WEB PROJECTS CARRUSEL MEJORAS ========== */
#web-projects-section .projects-carousel .project-card-modern {
    flex: 0 0 300px;
}

@media (min-width: 768px) {
    #web-projects-section .projects-carousel .project-card-modern {
        flex: 0 0 340px;
    }
}

#web-projects-section .project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#web-projects-section .active-badge {
    position: relative;
    top: auto;
    right: auto;
    background: rgba(255, 215, 0, 0.15);
    color: gold;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

#web-projects-section .project-card-button {
    width: auto;
    padding: 8px 20px;
    margin-top: 0;
}

/* Animación específica para el carrusel de proyectos web */
#web-projects-section .projects-carousel {
    scroll-behavior: smooth;
}
/* ========== EXPANDABLE CARD MODAL - IMAGEN VERTICAL COMPLETA ========== */
.expandable-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expandable-modal.active {
    display: flex;
    opacity: 1;
}

.expandable-modal-content {
    background: #1a1a1a;
    border-radius: 32px;
    overflow: hidden;
    max-width: 1100px; /* Aumentado para dar más espacio */
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 255, 65, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.2);
    animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.expandable-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.expandable-modal-close:hover {
    background: #00FF41;
    color: black;
    transform: rotate(90deg);
}

/* Grid actualizado - imagen vertical completa */
.expandable-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* La imagen ocupa un poco menos que el texto */
    gap: 0; /* Sin gap para que la imagen llegue hasta el borde */
}

/* Contenedor de imagen que ocupa toda la altura */
.expandable-modal-image-container {
    position: relative;
    border-radius: 32px 0 0 32px; /* Bordes redondeados solo a la izquierda */
    overflow: hidden;
    background: #0a0a0a;
}

.expandable-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre todo el contenedor */
    object-position: center; /* Centra la imagen */
    transition: transform 0.5s ease;
}

.expandable-modal-image-container:hover .expandable-modal-image {
    transform: scale(1.05);
}

/* Overlay decorativo sobre la imagen */
.expandable-modal-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

/* Contenedor de información */
.expandable-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* Scroll si el contenido es muy largo */
}

.expandable-modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #00FF41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expandable-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.expandable-modal-tag {
    padding: 6px 16px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 30px;
    color: #00FF41;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expandable-modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0;
}

.expandable-modal-features {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.expandable-modal-features-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00FF41;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expandable-modal-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expandable-modal-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.expandable-modal-features-list li .material-symbols-outlined {
    color: #00FF41;
    font-size: 20px;
}

.expandable-modal-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.expandable-modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.expandable-modal-btn-primary {
    background: #00FF41;
    color: black;
}

.expandable-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 255, 65, 0.4);
}

.expandable-modal-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.expandable-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00FF41;
}

/* ========== VERSIÓN MÓVIL ========== */
@media (max-width: 768px) {
    .expandable-modal-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        min-height: auto;
    }
    
    .expandable-modal-image-container {
        min-height: 300px;
        border-radius: 32px 32px 0 0;
    }
    
    .expandable-modal-image-container::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    }
    
    .expandable-modal-info {
        padding: 30px 20px;
        max-height: none;
    }
    
    .expandable-modal-title {
        font-size: 1.8rem;
    }
    
    .expandable-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .expandable-modal-content {
        width: 95%;
    }
    
    .expandable-modal-image-container {
        min-height: 250px;
    }
    
    .expandable-modal-info {
        padding: 25px 15px;
    }
    
    .expandable-modal-title {
        font-size: 1.5rem;
    }
}