/* Define color variables at the root */
:root {
    --accent-color: #00e5ff;
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.04);
    --card-hover-border: rgba(255, 255, 255, 0.08);
    --accent-soft: rgba(0, 229, 255, 0.08);
    --accent-hover: rgba(0, 229, 255, 0.12);
    --text-color: #fff;
    --text-secondary: #e0e0e0;
    --linkedin-badge-bg: #0b0d10;
    --linkedin-badge-header: #3d4654;
    
    /* Sistema de espaciado escalable */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(0.75rem, 1.5vw, 1rem);
    --space-lg: clamp(1rem, 2vw, 1.5rem);
    --space-xl: clamp(1.5rem, 3vw, 2.5rem);
    --space-2xl: clamp(2rem, 4vw, 4rem);
    --space-3xl: clamp(3rem, 6vw, 6rem);
}

/* Ajuste global de tamaño base - REDUCIDO para mejor proporción */
html {
    /* Base más pequeña: 14px en móvil, escala hasta 15px en desktop grande */
    font-size: clamp(13px, 0.65vw + 0.5rem, 15px);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    scroll-padding-top: 100px;
}

/* Escalado más suave con más breakpoints */
@media (max-width: 1600px) {
    html {
        font-size: clamp(13px, 0.6vw + 0.5rem, 14.5px);
    }
}

@media (max-width: 1200px) {
    html {
        font-size: clamp(13px, 0.7vw + 0.45rem, 14px);
    }
}

@media (max-width: 991px) {
    html {
        font-size: clamp(13px, 0.8vw + 0.4rem, 14px);
    }
}

@media (max-width: 767px) {
    html {
        font-size: clamp(13px, 1vw + 0.35rem, 14px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

/*  ESTILOS GLOBALES  */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Estilos personalizados para la barra de desplazamiento */
/* Para navegadores WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    /* Hacemos el carril transparente/invisible */
}

::-webkit-scrollbar-thumb {
    background: rgba(50, 50, 50, 0.5);
    border-radius: 10px;
    transition: background 0.3s ease;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(70, 70, 70, 0.7);
    border: 2px solid transparent;
    background-clip: content-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(50, 50, 50, 0.5) transparent;
}

/* Contenedor principal con mejor escalado */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 8rem);
    box-sizing: border-box;
    width: 100%;
}

/* Contenedores de sección más compactos */
.section-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar container */
.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

/* Ajustamos la sección de contacto para que respete el contenedor principal */
.contact-section {
    padding: 2.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    margin: 10rem auto;
    max-width: 1100px;
}

.contact-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/*  EFECTOS DE ANIMACIÓN  */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes typing {

    0%,
    90%,
    100% {
        width: 0;
    }

    30%,
    60% {
        width: 145px;
    }
}

@keyframes cursor {
    50% {
        border-color: transparent;
    }
}

@keyframes titleUnderline {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

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

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

/*  BARRA DE NAVEGACIÓN REDISEÑADA  */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0;
}

/* Logo GP fijo en la esquina izquierda */
.logo {
    position: fixed;
    top: 0.8rem;
    left: 1.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.gp-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 1.6vw, 1.6rem);
    background: linear-gradient(135deg, #00e5ff, #007cf0, #9945ff, #00e5ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    -webkit-animation: gradientShift 5s ease infinite;
    letter-spacing: -1px;
}

/* Dynamic Island — Neural Void glassmorphism */
.dynamic-island {
    position: fixed;
    top: 0.8rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: min(90vw, 600px);
    background: rgba(10, 10, 14, 0.55);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    z-index: 1000;
}

/* Dynamic Island — scrolled state with intensified glass */
.navbar-scrolled .dynamic-island {
    background: rgba(10, 10, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 0.5px rgba(0, 229, 255, 0.05);
}

/* Links dentro del Dynamic Island */
.nav-links {
    display: flex;
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
    align-items: center;
    margin: 0;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-color);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.nav-links a:hover::after {
    width: 70%;
}

/* Animación suave de transición al hacer scroll */
.navbar-scrolled .dynamic-island {
    animation: dynamicIslandEnhance 0.3s ease forwards;
}

@keyframes dynamicIslandEnhance {
    0% {
        background: rgba(20, 20, 25, 0.6);
    }

    100% {
        background: rgba(20, 20, 25, 0.9);
    }
}

/* Responsive Design para Dynamic Island */
@media (max-width: 1200px) {
    .dynamic-island {
        padding: 0.55rem 1.3rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 991px) {
    .dynamic-island {
        padding: 0.5rem 1.1rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .logo {
        left: 1.2rem;
    }

    .gp-logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .dynamic-island {
        padding: 0.4rem 0.8rem;
        top: 0.6rem;
        max-width: 85vw;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dynamic-island::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.2rem 0.45rem;
        white-space: nowrap;
    }

    .logo {
        left: 0.8rem;
        top: 0.6rem;
    }

    .gp-logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .dynamic-island {
        padding: 0.35rem 0.6rem;
        max-width: 80vw;
    }

    .nav-links {
        gap: 0.35rem;
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: 0.18rem 0.35rem;
    }

    .gp-logo {
        font-size: 1.2rem;
    }
}

/*  BARRA LATERAL DE REDES SOCIALES  */
.social-nav {
    position: fixed;
    left: 16px;
    bottom: 0;
    z-index: 1000;
    margin: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.social-icon {
    color: #e0e0e0;
    transition: all 0.3s ease;
    transform: scale(1.35);
}

.social-icon:hover {
    color: #00e5ff;
    transform: scale(1.35) translateY(-2px);
}

.social-line {
    width: 1px;
    height: 70px;
    background-color: #e0e0e0;
    margin: 0 auto;
}


.cv-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
}

.cv-circle {
    width: 28px;
    height: 28px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 10px;
}

/* Estilos para el menú desplegable del CV */
.cv-options-menu {
    display: none;
    position: absolute;
    left: 40px;
    bottom: 40px;
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    z-index: 1001;
    min-width: 80px;
}

.cv-options-menu.show {
    display: block;
}

.cv-options-menu a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cv-options-menu a:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
}


/*  MENÚ LATERAL MÓVIL  */
/* Botón hamburguesa - oculto por defecto, visible solo en móviles */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1002;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: none;
    /* Oculto por defecto */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn:hover {
    background: rgba(20, 20, 25, 1);
    border-color: rgba(0, 229, 255, 0.3);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover .hamburger-line {
    background: #00e5ff;
}

/* Animación del botón hamburguesa cuando está activo */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar móvil */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: none;
    /* Oculto por defecto */
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

/* Header del sidebar */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    background: linear-gradient(135deg, #00e5ff, #007cf0, #9945ff, #00e5ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 44px;
    height: 44px;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00e5ff;
}

.sidebar-close-btn:active {
    transform: scale(0.95);
}

/* Navegación del sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    gap: 0.5rem;
}

.sidebar-link {
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link:hover,
.sidebar-link:active {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
    border-left-color: #00e5ff;
}

.sidebar-link:active {
    transform: translateX(4px);
}

/* Overlay oscuro */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: none;
    /* Oculto por defecto */
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mostrar solo en móviles */
@media (max-width: 767px) {

    .mobile-menu-btn,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: flex;
    }

    /* Ocultar el Dynamic Island en móviles */
    .dynamic-island {
        display: none !important;
    }

    /* Ocultar el logo GP en móviles ya que estará en el sidebar */
    .logo {
        display: none;
    }
}

/* Optimización para pantallas pequeñas */
@media (max-width: 480px) {
    .mobile-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Estilos para el selector de idiomas del proyecto Notes App */
.language-selector {
    position: relative;
}

.lang-options-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    z-index: 1001;
    min-width: 100px;
}

.lang-options-menu.show {
    display: block;
}

.lang-options-menu a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-options-menu a:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
}

/*  SECCIÓN HERO  */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.greeting {
    font-size: clamp(0.85rem, 1vw, 1rem);
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
}

.name-animation {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    margin: 0 0 0.8rem 0;
    background: linear-gradient(135deg, #00e5ff, #007cf0, #9945ff, #00e5ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    -webkit-animation: gradientShift 5s ease infinite;
}

.title {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    letter-spacing: 1.5px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.btn {
    padding: 0.5rem 1.2rem;
    font-size: clamp(0.75rem, 0.9vw, 0.82rem);
    border: 2px solid #00e5ff;
    border-radius: 25px;
    text-decoration: none;
    color: #00e5ff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: fit-content;
    text-align: center;
}

@media (max-width: 767px) {
    .btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.78rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.btn:hover {
    background: #00e5ff2a;
    color: #ffffff;
}

/*  SECCIÓN SOBRE MÍ  */
.about-section {
    padding-top: clamp(6rem, 15vh, 10rem);
    padding-bottom: clamp(6rem, 15vh, 10rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .about-section {
        padding-top: clamp(8rem, 18vh, 12rem);
        padding-bottom: clamp(8rem, 18vh, 12rem);
    }
}

@media (min-width: 1200px) {
    .about-section {
        padding-top: clamp(10rem, 20vh, 15rem);
        padding-bottom: clamp(10rem, 20vh, 15rem);
    }
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #00e5ff;
}

.about-content {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: flex-start;
    justify-content: space-between;
}

.about-image {
    flex: 0 0 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Contenedor para permitir la calcomanía sobre la imagen */
.profile-image-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.profile-image-large {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background-color: #1a1a1a;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Optimizaciones para evitar carga progresiva visible */
    opacity: 0;
    transition: opacity 0.3s ease;
    image-rendering: auto;
    image-orientation: from-image;
}

/* Calcomanía de mate en la esquina superior izquierda */
.mate-sticker {
    position: absolute;
    top: -24px;
    left: -26px;
    width: 64px;
    height: 64px;
    z-index: 2;
    pointer-events: none;
    background: transparent;
    transform: rotate(-10deg);
}

.mate-sticker::before {
    content: "🧉";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    /* Simular borde blanco tipo calcomanía alrededor del emoji */
    text-shadow:
        0 0 0 #fff,
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff,
        1px 1px 0 #fff,
        -1px 1px 0 #fff,
        1px -1px 0 #fff,
        -1px -1px 0 #fff,
        2px 0 0 #fff,
        -2px 0 0 #fff,
        0 2px 0 #fff,
        0 -2px 0 #fff,
        2px 2px 0 #fff,
        -2px 2px 0 #fff,
        2px -2px 0 #fff,
        -2px -2px 0 #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

@media (max-width: 767px) {
    .mate-sticker {
        top: -16px;
        left: -18px;
        width: 56px;
        height: 56px;
    }

    .mate-sticker::before {
        font-size: 36px;
    }
}

.about-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.about-social-icon {
    color: #e0e0e0;
    background: rgba(30, 30, 30, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .about-social-icon {
        width: 48px;
        height: 48px;
    }
}

.about-social-icon:hover {
    color: #00e5ff;
    transform: translateY(-3px);
}

.about-text {
    flex: 0 0 68%;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
    overflow: hidden;
}

.about-bio {
    font-size: clamp(0.82rem, 0.95vw, 0.9rem);
    color: #e0e0e0;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.highlight {
    color: #00e5ff;
    font-weight: 600;
}

.about-skills {
    margin-top: 1.2rem;
}

.skills-title {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: #fff;
    margin-bottom: 0.8rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-tag {
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    padding: 0.28rem 0.6rem;
    border-radius: 25px;
    font-size: clamp(0.7rem, 0.8vw, 0.75rem);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

/*  SECCIÓN DE PROYECTOS - DISEÑO PREMIUM  */
.projects-section {
    padding-top: clamp(6rem, 15vh, 10rem);
    padding-bottom: clamp(6rem, 15vh, 10rem);
}

@media (min-width: 768px) {
    .projects-section {
        padding-top: clamp(8rem, 18vh, 12rem);
        padding-bottom: clamp(8rem, 18vh, 12rem);
    }
}

@media (min-width: 1200px) {
    .projects-section {
        padding-top: clamp(10rem, 20vh, 15rem);
        padding-bottom: clamp(10rem, 20vh, 15rem);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 2.5vw, 2rem);
    width: 100%;
    max-width: 100%;
}

/* Layout: Featured projects (primeros 2) ocupan ancho completo */
@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Featured projects ocupan toda la fila */
    .projects-grid .featured-project {
        grid-column: 1 / -1;
    }
}

/* ====== PROJECT CARD BASE - DISEÑO PREMIUM ====== */
.projects-section .project-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.projects-section .project-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
}

/* ====== FEATURED PROJECT - LAYOUT HORIZONTAL ====== */
.featured-project {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .featured-project {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 0;
        min-height: clamp(280px, 30vw, 340px);
    }
}

/* Decorative glow para featured */
.featured-project::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ====== PROJECT IMAGE ====== */
.project-image {
    width: 100%;
    height: clamp(180px, 20vw, 220px);
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
}

/* Cards normales (no featured) */
.project-card:not(.featured-project) .project-image {
    height: clamp(160px, 18vw, 200px);
}

/* Featured projects - imagen más grande */
.featured-project .project-image {
    height: 100%;
    min-height: clamp(200px, 25vw, 280px);
    border-radius: 16px 16px 0 0;
}

@media (min-width: 992px) {
    .featured-project .project-image {
        border-radius: 16px 0 0 16px;
        min-height: clamp(260px, 28vw, 320px);
    }
}

/* Overlay gradiente sobre imágenes */
.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(25, 25, 30, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
}

.featured-project .project-image::after {
    display: none;
}

@media (min-width: 992px) {
    .featured-project .project-image::after {
        display: block;
        bottom: 0;
        left: auto;
        right: 0;
        width: 30%;
        height: 100%;
        background: linear-gradient(to left, rgba(25, 25, 30, 0.8), transparent);
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* Estilos para video identicos a las imágenes pero con posición absoluta para evitar overflow */
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.project-card:hover .project-image video {
    transform: scale(1.08);
    /* Removed layout shift on hover */
}

/* ====== PROJECT INFO ====== */
.project-info {
    padding: clamp(1rem, 1.5vw, 1.4rem);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project .project-info {
    padding: clamp(1.2rem, 1.8vw, 1.6rem) clamp(1.4rem, 2vw, 1.8rem);
}

@media (min-width: 992px) {
    .featured-project .project-info {
        padding: clamp(1.5rem, 2vw, 2rem) clamp(1.8rem, 2.5vw, 2.2rem);
    }
}

/* ====== PROJECT TITLE ====== */
.project-title {
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-project .project-title {
    font-size: clamp(1.25rem, 1.5vw, 1.45rem);
    margin-bottom: 0.8rem;
}

.project-card:hover .project-title {
    color: #00e5ff;
}

/* ====== PROJECT DESCRIPTION ====== */
.project-description {
    font-size: clamp(0.8rem, 0.9vw, 0.88rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.featured-project .project-description {
    font-size: clamp(0.85rem, 0.95vw, 0.92rem);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* ====== TECH TAGS - DISEÑO PREMIUM ====== */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.featured-project .project-tech {
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech .tech-tag {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
    color: #00e5ff;
    padding: 0.28rem 0.6rem;
    border-radius: 20px;
    font-size: clamp(0.65rem, 0.75vw, 0.72rem);
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.project-tech .tech-tag:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 229, 255, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.featured-project .project-tech .tech-tag {
    padding: 0.32rem 0.7rem;
    font-size: clamp(0.68rem, 0.78vw, 0.75rem);
}

/* ====== PROJECT LINKS - BOTONES PREMIUM ====== */
.project-links {
    display: flex;
    gap: 0.7rem;
}

.project-link {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: clamp(34px, 3.5vw, 38px);
    height: clamp(34px, 3.5vw, 38px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.2);
}

.project-link svg {
    width: clamp(16px, 1.6vw, 18px);
    height: clamp(16px, 1.6vw, 18px);
}

.featured-project .project-link {
    width: clamp(36px, 3.8vw, 42px);
    height: clamp(36px, 3.8vw, 42px);
}

.featured-project .project-link svg {
    width: clamp(18px, 1.8vw, 20px);
    height: clamp(18px, 1.8vw, 20px);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .featured-project .project-image {
        min-height: 280px;
        border-radius: 20px 20px 0 0;
    }

    .featured-project .project-title {
        font-size: 1.5rem;
    }

    .featured-project .project-info {
        padding: 1.8rem;
    }
}

@media (max-width: 767px) {
    .project-image {
        height: 220px;
    }

    .project-card:not(.featured-project) .project-image {
        height: 200px;
    }

    .featured-project .project-image {
        min-height: 240px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .featured-project .project-title {
        font-size: 1.4rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .project-tech .tech-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .project-link {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 180px;
    }

    .featured-project .project-image {
        min-height: 200px;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .featured-project .project-title {
        font-size: 1.3rem;
    }

    .projects-section .project-card {
        border-radius: 16px;
    }

    .project-image {
        border-radius: 16px 16px 0 0;
    }
}

/* SECCIÓN DE EDUCACIÓN */
.education-section {
    padding-top: clamp(6rem, 15vh, 10rem);
    padding-bottom: clamp(6rem, 15vh, 10rem);
}

@media (min-width: 768px) {
    .education-section {
        padding-top: clamp(8rem, 18vh, 12rem);
        padding-bottom: clamp(8rem, 18vh, 12rem);
    }
}

@media (min-width: 1200px) {
    .education-section {
        padding-top: clamp(10rem, 20vh, 15rem);
        padding-bottom: clamp(10rem, 20vh, 15rem);
    }
}

.education-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 2rem);
    width: 100%;
}

.education-card {
    position: relative;
    padding: clamp(1rem, 1.5vw, 1.3rem);
    border-radius: 14px;
    background: var(--card-bg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.education-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-hover-border);
}

.education-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.education-icon {
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    width: clamp(45px, 5vw, 55px);
    height: clamp(45px, 5vw, 55px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon svg {
    width: clamp(24px, 3vw, 30px);
    height: clamp(24px, 3vw, 30px);
}

.cert-icon {
    background: rgba(79, 47, 255, 0.1);
    color: #4f2fff;
}

.go-icon {
    background: rgba(0, 173, 216, 0.1);
    color: #00add8;
}

.education-title-area {
    flex-grow: 1;
}

.education-institution {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: #fff;
    margin: 0 0 0.35rem 0;
}

.education-degree {
    font-size: clamp(0.78rem, 0.9vw, 0.85rem);
    color: #e0e0e0;
    margin: 0;
}

.education-date {
    color: #00e5ff;
    font-style: italic;
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.certification-overview p {
    color: #e0e0e0;
    font-size: clamp(0.8rem, 0.92vw, 0.88rem);
    line-height: 1.6;
    margin: 0;
}

.certification-modules-title,
.certification-skills-title {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: #fff;
    margin: 0 0 1rem 0;
}

.certification-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    background: rgba(40, 40, 40, 0.4);
    border-radius: 8px;
    padding: 1rem;
}

.certification-module {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-module span {
    color: #e0e0e0;
    font-size: clamp(0.75rem, 0.85vw, 0.82rem);
}

.cert-module-icon {
    color: #00e5ff;
    font-size: 0.9rem;
}

.certification-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.certification-skills .skill-tag {
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: clamp(0.7rem, 0.8vw, 0.75rem);
}

.certification-highlight {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.2rem;
    margin-top: 0.8rem;
    font-style: italic;
    border-radius: 8px;
}

.certification-highlight p {
    color: #e0e0e0;
    font-size: clamp(0.78rem, 0.9vw, 0.85rem);
    line-height: 1.6;
    margin: 0;
}

.education-content-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.education-paragraph {
    background: rgba(40, 40, 40, 0.4);
    border-radius: 8px;
    padding: 1rem;
}

.paragraph-title {
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    color: #00e5ff;
    margin: 0 0 0.4rem 0;
}

.paragraph-content {
    color: #e0e0e0;
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    line-height: 1.6;
    margin: 0;
}

.education-external-link {
    margin-left: auto;
}

.edu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.edu-link:hover {
    color: #00e5ff;
    transform: translateY(-2px);
}


.linkedin-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin: clamp(6rem, 12vh, 10rem) 0;
    padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2rem);
    background: rgba(30, 30, 30, 0.6);
    width: 100%;
    box-sizing: border-box;
}

.linkedin-more-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 2.5vw, 2rem);
}

/* Clase adicional para elementos que deben ocupar todo el ancho */
.full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.linkedin-more-text {
    color: #e0e0e0;
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    margin: 0;
    max-width: 550px;
    line-height: 1.6;
}

.linkedin-more-content .linkedin-badge-wrapper {
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .linkedin-more-container {
        padding: 2.5rem 1.5rem;
    }

    .linkedin-more-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .linkedin-more-text {
        text-align: center;
    }

    .linkedin-more-content .linkedin-badge-wrapper {
        margin-top: 1.2rem;
    }
}

.linkedin-icon {
    transition: all 0.3s ease;
}

.linkedin-button:hover .linkedin-icon {
    transform: scale(1.1);
}

/* Media query para dispositivos móviles */
@media (max-width: 767px) {
    .linkedin-more-text {
        font-size: 1.1rem;
    }

    .linkedin-button {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}

/* Media query para dispositivos móviles */
@media (max-width: 767px) {
    .education-section {
        padding: clamp(5rem, 12vh, 8rem) 0;
    }

    .education-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .education-paragraph {
        padding: 1rem;
    }

    .paragraph-title {
        font-size: 1.1rem;
    }

    .paragraph-content {
        font-size: 0.9rem;
    }

    .education-card-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .education-icon {
        width: 60px;
        height: 60px;
    }

    .education-institution {
        font-size: 1.3rem;
    }

    .education-degree {
        font-size: 0.85rem;
    }

    .education-external-link {
        margin: 0.5rem 0 0 auto;
    }

    .certification-overview p {
        font-size: 0.9rem;
    }
}

/* Media queries para responsividad */
@media (max-width: 991px) {
    .certification-modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.2rem;
    }

    .education-institution {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .certification-modules-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }

    .education-card-header {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .education-institution {
        font-size: 1.3rem;
    }

    .certification-module {
        gap: 0.6rem;
    }

    .certification-module span {
        font-size: 0.9rem;
    }

    .cert-module-icon {
        font-size: 1rem;
    }

    .certification-overview p,
    .certification-highlight p {
        font-size: 0.9rem;
    }

    .certification-modules-title,
    .certification-skills-title {
        font-size: 1.2rem;
        text-align: left;
        margin-bottom: 1rem;
    }

    .certification-skills {
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .certification-skills .skill-tag {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .certification-highlight {
        padding: 1rem;
        margin-top: 0.8rem;
    }
}

/* Ajustes para el responsive */
@media (max-width: 991px) {
    .main-container {
        padding: 0 40px;
    }

    .nav-container {
        padding: 0 40px;
    }
}

@media (max-width: 767px) {
    .main-container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    /* Eliminar el margen lateral en celulares */
    .hero,
    section,
    footer {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/*  SECCIÓN DE CONTACTO  */
.contact-section {
    padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: 16px;
    margin: clamp(8rem, 15vh, 12rem) auto;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .contact-section {
        margin: clamp(6rem, 12vh, 10rem) auto;
    }
}

@media (max-width: 767px) {
    .contact-section {
        margin: clamp(5rem, 10vh, 8rem) auto;
        border-radius: 12px;
    }
}

.contact-wrapper {
    display: flex;
    gap: 2.5rem;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.contact-info {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    background: linear-gradient(45deg, #4f2fffd2, #037ff3, #03f0b4, #9df100);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    -webkit-animation: gradientShift 5s ease infinite;
    margin-bottom: 0.8rem;
    padding: 0.8rem 0;
    display: inline-block;
    text-align: left;
}

.contact-description {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.email-link {
    color: #00e5ff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #fff;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.profile-image {
    width: 200px;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
}

.contact-form {
    flex: 1;
    max-width: 600px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: clamp(0.8rem, 1.5vw, 1.2rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00e5ff;
    background: rgba(255, 255, 255, 0.1);
}

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

.submit-btn {
    background: #00e5ff;
    color: #1a1a1a;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 48px;
    touch-action: manipulation;
}

@media (max-width: 767px) {
    .submit-btn {
        min-height: 52px;
        font-size: 1rem;
        padding: 1rem 1.8rem;
    }
}

.submit-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

/* Estilos para mensajes del formulario */
.form-messages {
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.form-messages.success-message {
    background-color: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    opacity: 1;
}

.form-messages.error-message {
    background-color: rgba(255, 76, 76, 0.1);
    color: #ff4c4c;
    border: 1px solid rgba(255, 76, 76, 0.3);
    opacity: 1;
}

/*  FOOTER  */
footer {
    text-align: center;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    /* Centramos el footer */
}

/*  CANVAS DE PARTÍCULAS  */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    /* Asegurar que el fondo aparezca inmediatamente */
    display: block;
    opacity: 1;
}

/*  SECCIÓN CONTAINER GENERAL  */
.section-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/*  MEDIA QUERIES  */
/* Tablets y pantallas medianas */
@media (max-width: 991px) {
    .section-title {
        font-size: clamp(1.4rem, 2.2vw, 1.8rem);
        margin-bottom: 1.5rem;
    }

    .about-bio,
    .contact-description,
    .project-description {
        font-size: clamp(0.82rem, 0.95vw, 0.9rem);
        line-height: 1.65;
    }

    .button-container .btn {
        padding: 0.55rem 1.3rem;
        font-size: 0.8rem;
    }

    .cv-circle {
        width: 24px;
        height: 24px;
    }

    .cv-text {
        font-size: 10px;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 0.9rem;
    }

    /* Específico para tablets */
    @media (min-width: 768px) and (max-width: 991px) {
        .about-content {
            gap: 2rem;
        }

        .profile-image-large {
            width: 200px;
            height: auto;
        }

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

        .hero {
            padding-top: 70px;
        }

        .name-animation {
            font-size: clamp(2.2rem, 4vw, 3rem);
        }

        .title {
            font-size: clamp(1rem, 1.2vw, 1.15rem);
        }
    }
}

/* Celulares */
@media (max-width: 767px) {

    /* Elimina la barra social en celulares */
    .social-nav {
        display: none;
    }

    /* Eliminar el margen lateral en celulares */
    .hero,
    section,
    footer {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 0 15px;
        display: flex;
        justify-content: center;
    }

    .greeting {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .name-animation {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        margin-bottom: 0.6rem;
    }

    .title {
        font-size: 0.95rem;
        margin-top: 0.8rem;
        margin-bottom: 1.2rem;
        letter-spacing: 1px;
    }

    .button-container {
        gap: 0.6rem;
        margin-top: 1rem;
    }

    .button-container .btn {
        padding: 0.55rem 1rem;
        font-size: 0.72rem;
        min-height: 38px;
    }

    /* Ajustes para la navegación */
    .nav-container {
        padding: 0 0.8rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .gp-logo {
        font-size: 1.3rem;
    }

    /* About section */
    .about-section {
        padding: clamp(5rem, 12vh, 8rem) 0;
        min-height: auto;
    }

    .about-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.8rem;
    }

    .about-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .profile-image-large {
        width: 100%;
        max-width: 240px;
        height: auto;
    }

    .about-text {
        flex: 0 0 100%;
        margin-top: 0.8rem;
    }

    .about-bio {
        font-size: 0.85rem;
        text-align: left;
        margin-bottom: 0.9rem;
        line-height: 1.6;
    }

    .skills-container {
        justify-content: center;
        gap: 0.5rem;
    }

    .about-skills .skills-title {
        font-size: 1rem;
        text-align: center;
        margin: 1.2rem 0 0.8rem;
    }

    .skill-tag {
        font-size: 0.72rem;
        padding: 0.35rem 0.7rem;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .about-social {
        margin-top: 1.2rem;
        gap: 0.8rem;
    }

    .about-social-icon {
        width: 42px;
        height: 42px;
    }

    /* Proyectos section */
    .projects-section {
        padding: clamp(5rem, 12vh, 8rem) 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .projects-section .project-card {
        margin-bottom: 0;
        padding: 0.8rem;
    }

    .project-image {
        height: 160px;
    }

    .project-title {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .project-description {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .project-tech .tech-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .project-info {
        padding: 0.8rem;
    }

    /* Contact section */
    .contact-section {
        padding: 2rem 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 2.5rem auto;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-title {
        font-size: 1.4rem;
        width: auto;
        max-width: 100%;
        margin: 0 auto 1rem;
        text-align: center;
    }

    .contact-description {
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 1rem;
        text-align: center;
    }

    .contact-email {
        justify-content: center;
        margin: 1rem auto;
    }

    .email-link {
        font-size: 0.85rem;
    }

    .contact-form {
        padding-right: 0;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.88rem;
        padding: 0.8rem;
    }

    /* Arreglo para el contenedor principal */
    .section-container {
        padding: 0;
    }
}

/* Dispositivos muy pequeños */
@media (max-width: 480px) {
    .name-animation {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .greeting {
        font-size: 0.85rem;
    }

    .title {
        font-size: 0.88rem;
    }

    .profile-image-large {
        max-width: 200px;
    }

    .project-image {
        height: 140px;
    }

    .about-content {
        gap: 1.2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .about-bio,
    .contact-description,
    .project-description {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .contact-title {
        padding: 0;
        font-size: 1.25rem;
    }

    .contact-section {
        padding: 1.8rem 0.8rem;
        margin: 2rem auto;
    }

    .button-container .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.68rem;
        min-height: 36px;
    }

    .main-container {
        padding: 0 12px;
    }

    .linkedin-more-container {
        padding: 1.5rem 0.8rem;
    }

    .linkedin-more-text {
        font-size: 0.85rem;
    }
}

/* Orientación landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 100px 20px 50px;
    }

    .about-content {
        flex-direction: row;
    }

    .profile-image-large {
        width: 180px;
        height: 180px;
    }
}

/* Media queries específicos para tamaños adicionales */
@media (max-width: 1440px) {
    .main-container {
        padding: 0 clamp(2rem, 5vw, 5rem);
    }
}

@media (max-width: 1200px) {
    .main-container {
        padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    }
}

@media (max-width: 991px) {
    .main-container {
        padding: 0 clamp(1.2rem, 3vw, 2.5rem);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 767px) {
    .main-container {
        padding: 0 15px;
    }
}

/* Mantener responsive para dispositivos más pequeños */
@media (max-width: 480px) {
    .main-container {
        padding: 0 12px;
    }

    .about-section,
    .projects-section,
    .education-section {
        padding: clamp(4rem, 10vh, 6rem) 0;
    }

    .project-card {
        padding: 0.6rem;
    }
}

/* Clases para animaciones de scroll */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animaciones no utilizadas eliminadas */

/* Clases activas al entrar en viewport */
.show {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Delay para efectos escalonados - aparición por filas de a dos */
.delay-1 {
    transition-delay: 0.6s;
    animation-delay: 0.6s;
}

.delay-2 {
    transition-delay: 0.10s;
    animation-delay: 0.10s;
}

.delay-3 {
    transition-delay: 0.8s;
    animation-delay: 0.8s;
}

.delay-4 {
    transition-delay: 1.2s;
    animation-delay: 1.2s;
}

.delay-5 {
    transition-delay: 1.4s;
    animation-delay: 1.4s;
}

/*  SELECTOR DE IDIOMA  */
.language-switcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.language-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border-color: #00e5ff;
    color: #00e5ff;
}

.language-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

/* Ajustes responsivos para el selector de idioma */
@media (max-width: 767px) {
    .language-switcher {
        right: 12px;
        bottom: 12px;
        z-index: 999;
    }

    .language-button {
        width: 40px;
        height: 40px;
    }

    .language-text {
        font-size: 0.8rem;
    }

    /* Hero section - mejorar padding superior */
    .hero {
        padding-top: 0 !important;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        right: 10px;
        bottom: 10px;
    }

    .language-button {
        width: 36px;
        height: 36px;
    }

    .language-text {
        font-size: 0.75rem;
    }

    /* Hero section - ajustes para pantallas muy pequeñas */
    .hero {
        padding-top: 0 !important;
        min-height: 100vh;
    }
}

/* Contenedor de la línea de tiempo */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-left: 20px;
    /* Añadido espacio para la línea */
    min-height: 300px;
    /* Asegurar altura mínima para mostrar la línea */
    display: block;
    /* Asegurar que se muestre como bloque */
}

/* Línea vertical explícita - elemento dedicado */
.timeline-vertical-line {
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 120px;
    z-index: 1;
    height: 100%;
    /* Asegurar que cubra toda la altura */
}

/* Conector vertical de la línea de tiempo - REFORZADO */
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    /* Aún más grosor para garantizar visibilidad */
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 120px;
    opacity: 1;
    /* Opacidad completa */
    z-index: 1;
    /* Asegurar que la línea esté por detrás de los conectores */
    display: block !important;
    /* Forzar visualización */
}

/* Elemento individual de la línea de tiempo */
.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    /* Más espacio entre elementos */
    position: relative;
}

/* Fecha en la línea de tiempo */
.timeline-date {
    width: 150px;
    position: relative;
    padding-right: 30px;
    flex-shrink: 0;
}

.date-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
}

.date {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.date-line {
    width: 15px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 4px 0;
}

/* Conector circular - CORREGIDO */
.timeline-connector {
    position: absolute;
    top: 10px;
    right: 0;
    width: 16px;
    /* Aumentado tamaño */
    height: 16px;
    /* Aumentado tamaño */
    border-radius: 50%;
    background-color: var(--accent-color);
    z-index: 2;
    border: 3px solid var(--card-bg);
    /* Borde para destacar */
    box-shadow: 0 0 0 1px var(--accent-color);
    /* Sombra adicional para resaltar */
}

/* Contenido de la línea de tiempo */
.timeline-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    width: calc(100% - 150px);
    border-left: 3px solid var(--accent-color);
    margin-left: 10px;
    /* Espacio entre el conector y el contenido */
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.job-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.job-type {
    font-weight: 500;
}

.job-location {
    font-style: italic;
}

.job-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.tech-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.tech-list {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.tech-list li {
    margin-bottom: 0.75rem;
    position: static;
    padding-left: 0;
    line-height: 1.5;
}

.tech-list li:before {
    content: none;
}

.tech-highlight {
    font-weight: 600;
    color: var(--accent-color);
}

/* Responsividad para móviles - CORREGIDO */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-date {
        width: 80px;
    }

    .date-content {
        padding-right: 10px;
    }

    .timeline-content {
        width: calc(100% - 80px);
    }

    .date {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .timeline-item {
        flex-direction: column;
    }

    .timeline::before {
        left: 20px;
        height: calc(100% + 30px);
        /* Extender la línea */
    }

    .timeline-date {
        width: 100%;
        padding-bottom: 20px;
        padding-right: 0;
    }

    .date-content {
        align-items: flex-start;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-connector {
        left: 20px;
        right: auto;
        top: 15px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .timeline-vertical-line {
        display: none;
    }
}

/* Estilos mejorados para la sección de Experiencia laboral */
.experience-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.experience-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-title-container {
    flex: 1;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.experience-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.experience-type {
    font-weight: 500;
}

.experience-location {
    font-style: italic;
}

.experience-date-badge {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1rem;
}

.experience-content {
    padding: 2rem;
}

.experience-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.95rem;
}

.tech-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.tech-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.tech-list {
    list-style-type: none;
    padding-left: 0;
}

.tech-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tech-list li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.tech-highlight {
    font-weight: 600;
    color: var(--accent-color);
}

/* Ajuste responsivo para la sección de experiencia */
@media screen and (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .experience-date-badge {
        margin-left: 0;
        align-self: flex-start;
    }

    .experience-content {
        padding: 1.5rem;
    }

    .tech-container {
        padding: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .experience-title {
        font-size: 1.3rem;
    }

    .experience-subtitle {
        flex-direction: column;
        gap: 0.3rem;
    }

    .tech-list li {
        padding-left: 1.2rem;
    }
}

/* Nuevo diseño para la sección de Experiencia laboral */
.experience-section {
    padding-top: clamp(6rem, 15vh, 10rem);
    padding-bottom: clamp(6rem, 15vh, 10rem);
    background-color: var(--bg-color);
}

@media (min-width: 768px) {
    .experience-section {
        padding-top: clamp(8rem, 18vh, 12rem);
        padding-bottom: clamp(8rem, 18vh, 12rem);
    }
}

@media (min-width: 1200px) {
    .experience-section {
        padding-top: clamp(10rem, 20vh, 15rem);
        padding-bottom: clamp(10rem, 20vh, 15rem);
    }
}

.experience-showcase {
    position: relative;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: clamp(1.5rem, 2.5vw, 2rem) auto;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.experience-showcase:hover {
    transform: translateY(-3px);
    border-color: var(--card-hover-border);
}

/* Elementos decorativos */
.decorative-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.1;
}

.top-left {
    background: radial-gradient(var(--accent-color), transparent 70%);
    top: -100px;
    left: -100px;
}

.bottom-right {
    background: radial-gradient(var(--accent-color), transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* Cabecera de experiencia */
.experience-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(1.2rem, 2vw, 1.6rem) clamp(1.5rem, 2.5vw, 2rem);
    background-color: rgba(20, 20, 25, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-header-content {
    flex: 1;
}

.experience-title {
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.6rem 0;
}

/* Título con logo de empresa */
.title-with-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.company-logo {
    width: clamp(45px, 5vw, 55px);
    height: clamp(45px, 5vw, 55px);
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.title-with-logo .experience-title {
    margin: 0;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: clamp(0.78rem, 0.88vw, 0.85rem);
}

.experience-type {
    font-weight: 500;
}

.experience-divider {
    color: rgba(255, 255, 255, 0.3);
}

.experience-location {
    font-style: italic;
}

.experience-date {
    margin-left: 1.5rem;
}

.date-pill {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: clamp(0.72rem, 0.82vw, 0.8rem);
    font-weight: 500;
    border: 1px solid rgba(0, 229, 255, 0.2);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.experience-showcase:hover .date-pill {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.1);
}

/* Contenido principal */
.experience-content {
    position: relative;
    z-index: 1;
    padding: clamp(1.2rem, 2vw, 1.6rem) clamp(1.5rem, 2.5vw, 2rem);
}

.experience-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-size: clamp(0.82rem, 0.95vw, 0.9rem);
}

/* Stack tecnológico */
.tech-stack {
    margin-top: 1.5rem;
    padding: clamp(1rem, 1.5vw, 1.4rem);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.tech-stack-title {
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tech-stack-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.tech-stack-list li {
    display: list-item;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-stack-list li:last-child {
    margin-bottom: 0;
}

.tech-icon {
    display: none;
}

.tech-text {
    flex: 1;
    font-size: clamp(0.78rem, 0.9vw, 0.88rem);
    line-height: 1.55;
}

.tech-highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .experience-section {
        padding: 4rem 0;
    }

    .experience-header {
        flex-direction: column;
        padding: 1.5rem 1.5rem;
    }

    .experience-date {
        margin-left: 0;
        margin-top: 1rem;
        align-self: flex-start;
    }

    .experience-content {
        padding: 1.5rem 1.5rem;
    }

    .tech-stack {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }

    /* Ajustes para el logo en tablets */
    .company-logo {
        width: 60px;
        height: 60px;
        padding: 8px;
    }

    .experience-description p {
        font-size: 0.95rem;
    }

    .tech-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .experience-section {
        padding: clamp(4rem, 10vh, 6rem) 0;
    }

    .experience-showcase {
        margin: 1.5rem auto;
    }

    .experience-header {
        padding: 1.2rem 1.2rem;
    }

    .experience-content {
        padding: 1.2rem 1.2rem;
    }

    .experience-title {
        font-size: 1.3rem;
    }

    .experience-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .experience-divider {
        display: none;
    }

    .date-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .experience-description p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .tech-stack {
        padding: 1rem;
        margin-top: 1.2rem;
    }

    .tech-stack-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .tech-stack-list {
        padding-left: 1rem;
    }

    .tech-stack-list li {
        flex-direction: column;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .tech-icon {
        margin-bottom: 0.5rem;
    }

    .tech-text {
        font-size: 0.85rem;
    }

    /* Ajustes para el logo en móviles */
    .company-logo {
        width: 50px;
        height: 50px;
        padding: 8px;
    }

    .title-with-logo {
        gap: 0.5rem;
    }
}

/* ========================================
   ESTILOS PARA LINKEDIN BADGE
   ======================================== */

/* Contenedor del badge de LinkedIn */
.linkedin-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding: 1.5rem 0;
    width: 100%;
}

/* Badge personalizado de LinkedIn */
.linkedin-badge-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--linkedin-badge-bg);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #1f2730;
}

.linkedin-badge-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

/* Header del badge */
.badge-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: -1.5rem -1.5rem 1.25rem;
    padding: 0.85rem 1.25rem;
    background: var(--linkedin-badge-header);
    align-self: stretch;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.linkedin-icon-badge {
    width: 24px;
    height: 24px;
    color: #fff;
}

.badge-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.badge-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2e3744;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.badge-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenido del badge */
.badge-content {
    margin-bottom: 1.1rem;
    text-align: center;
}

.badge-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.badge-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.badge-location {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

/* Footer del badge */
.badge-footer {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
}

.badge-action {
    font-size: 0.9rem;
    color: #0b0d10;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0.55rem 1.25rem;
    background: #f3f5f7;
    border-radius: 999px;
    border: 1px solid #ffffff;
    min-width: 150px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.linkedin-badge-custom:hover .badge-action {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Responsive - Tablets */
@media (max-width: 991px) {
    .linkedin-badge-wrapper {
        margin-top: 2rem;
        padding: 1.2rem 0;
    }

    .linkedin-badge-custom {
        max-width: 320px;
        width: 100%;
    }
}

/* Responsive - Móviles */
@media (max-width: 767px) {
    .linkedin-badge-wrapper {
        margin-top: 1.8rem;
        margin-bottom: 0.8rem;
        padding: 1rem 0;
    }

    .linkedin-badge-custom {
        max-width: 100%;
        width: 100%;
    }
}

/* Responsive - Dispositivos pequeños */
@media (max-width: 480px) {
    .linkedin-badge-wrapper {
        margin-top: 1.5rem;
        padding: 0.8rem 0;
    }

    .linkedin-badge-custom {
        padding: 1.2rem;
    }

    .badge-name {
        font-size: 1rem;
    }

    .badge-description {
        font-size: 0.8rem;
    }
}

/* ==================== GPU ACCELERATION & PERFORMANCE OPTIMIZATIONS ==================== */

/* Promote animated elements to their own compositor layer for 60fps animations */
.fade-in,
.slide-in-right,
.slide-in-left,
.zoom-in,
.stagger-item {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Remove will-change after animation completes to free memory */
.fade-in.show,
.slide-in-right.show,
.slide-in-left.show,
.zoom-in.show,
.stagger-item.show {
    will-change: auto;
}

/* Optimize high-frequency animations */
.dynamic-island,
.gp-logo,
.sidebar-logo,
.name-animation {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* GPU acceleration for hover transitions */
.btn,
.project-card,
.education-card,
.experience-showcase,
.social-icon,
.nav-links a,
.sidebar-link {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize scroll-triggered elements */
.navbar {
    will-change: background-color;
    transform: translateZ(0);
}

/* Contain paint for complex sections */
.projects-grid,
.education-cards-vertical,
.experience-section {
    contain: layout style paint;
}

/* Reduce paint area for particle canvas */
#particle-canvas {
    will-change: contents;
    contain: strict;
}

/* Optimize images */
img {
    content-visibility: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .slide-in-right,
    .slide-in-left,
    .zoom-in,
    .stagger-item {
        opacity: 1 !important;
        transform: none !important;
    }
}