/* ========== PORTAFOLIO ALEJANDRO GALLARDO ==========
   Paleta: Azul degradado · Sin blancos
   Versión completa con:
   - Logo Dev Alejandro dinámico
   - Imagen integrada con sombra suave (Opción 1)
   - Habilidades con colores y animaciones
   - Python incluido
   - Efecto 3D en cards
   - Botón flotante WhatsApp
   - Hover mejorado en redes
   - Estela de cursor
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg-primary: #0a1a2f;
    --bg-secondary: #0f2740;
    --gradient-1: linear-gradient(145deg, #0a2540, #1f4068);
    --gradient-2: linear-gradient(145deg, #1f4068, #2c6c9e);
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #e0e0ff;
    --text-secondary: #a0b8d9;
    --accent: #4f9fff;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: auto;
}

/* ========== PARTÍCULAS DE FONDO ========== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== ESTELA DEL CURSOR ========== */
.cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(145deg, var(--accent), #7abfff);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.1s ease;
    box-shadow: 0 0 20px rgba(79, 159, 255, 0.5);
    filter: blur(1px);
}

/* ========== HEADER ========== */
header {
    background: var(--gradient-1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== LOGO DINÁMICO ========== */
.logo-dynamic {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.logo-dynamic:hover {
    transform: scale(1.05);
}

.logo-dev {
    background: linear-gradient(145deg, var(--accent), #7abfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(79, 159, 255, 0.5);
    animation: pulse 2s infinite;
}

.logo-alejandro {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

@keyframes pulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(79, 159, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 35px rgba(79, 159, 255, 0.9);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--card-bg);
    color: var(--accent);
    border: 1px solid var(--border);
}

/* ========== HERO (INICIO) ========== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ========== IMAGEN DE PERFIL - OPCIÓN 1: SOMBRA SUAVE ========== */
.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.glow-text {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(145deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* ========== TEXTO MÁQUINA DE ESCRIBIR ========== */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2rem;
    background-color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 159, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--accent);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* ========== REDES SOCIALES CON HOVER MEJORADO ========== */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 5px 15px currentColor);
}

/* Colores específicos al hover */
.social-links a[href*="linkedin"]:hover {
    color: #0077b5;
}

.social-links a[href*="github"]:hover {
    color: #f0f0f0;
}

.social-links a[href*="instagram"]:hover {
    color: #e1306c;
}

.social-links a[href*="wa.me"]:hover {
    color: #25D366;
}

/* ========== PÁGINAS INTERNAS ========== */
.page {
    flex: 1;
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--accent);
}

.section-subtitle {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    text-align: center;
    color: var(--text-primary);
}

/* ========== CARDS CON EFECTO 3D ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(79, 159, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
}

/* ========== HABILIDADES CON BARRAS DE PROGRESO ========== */
.skills-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-progress-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-progress-item:hover {
    transform: scale(1.02) rotateY(2deg) rotateX(2deg);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(79, 159, 255, 0.2);
}

.skill-progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-progress-header i {
    font-size: 2rem;
}

.skill-progress-header span:first-of-type {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    color: var(--accent);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    animation: progressFill 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes progressFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ========== PROYECTOS CON EFECTO 3D ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(79, 159, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: inline-block;
    background: var(--bg-primary);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* ========== CERTIFICACIONES ========== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.cert-card:hover {
    transform: translateY(-10px) rotateY(3deg) rotateX(3deg);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(79, 159, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.cert-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--border);
}

.cert-card.no-image img {
    display: none;
}

.cert-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--gradient-1);
    color: white;
    height: 150px;
}

.cert-card.no-image .cert-fallback {
    display: flex;
}

.cert-fallback i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.cert-fallback h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
}

.cert-card p {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* ========== CONTACTO ========== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3rem;
    margin: 2rem 0;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-detail-item i {
    width: 30px;
    color: var(--accent);
    font-size: 1.3rem;
}

.social-links.large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links.large a {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links.large a:hover {
    background: var(--gradient-2);
    color: white;
    transform: translateX(10px) scale(1.02);
    border-color: var(--accent);
}

.social-links.large a i {
    font-size: 1.3rem;
    color: var(--accent);
    transition: var(--transition);
}

.social-links.large a:hover i {
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 159, 255, 0.2);
}

.contact-form button {
    width: 100%;
    background: var(--gradient-2);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 159, 255, 0.3);
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* ========== MAPA ========== */
.map-container {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ========== SECCIÓN DE PROYECTOS DESTACADOS ========== */
.featured-projects {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.projects-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mini-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

.mini-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.mini-card-body {
    padding: 1.2rem;
}

.mini-card:hover {
    transform: translateY(-10px) rotateY(3deg) rotateX(3deg);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(79, 159, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.mini-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mini-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.mini-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== MODAL PARA PROYECTOS ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content li::before {
    content: '▹';
    color: var(--accent);
    font-size: 1.2rem;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========== BOTÓN FLOTANTE WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* ========== MENÚ HAMBURGUESA MÓVIL ========== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--gradient-2);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.mobile-menu {
    display: none;
    position: fixed;
    bottom: 85px;
    left: 20px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px 0;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    min-width: 220px;
    border: 1px solid var(--border);
}

.mobile-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: var(--card-bg);
    padding-left: 35px;
    color: var(--accent);
}

.mobile-menu a.active {
    background: var(--gradient-2);
    color: white;
}

/* ========== BOTÓN VOLVER ARRIBA ========== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--gradient-2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 98;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    transform: scale(1.1);
    background: var(--accent);
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    background: var(--gradient-1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* ========== ANIMACIONES GLOBALES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.project-card,
.cert-card,
.skill-progress-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-progress-item:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-progress-item:nth-child(2) {
    animation-delay: 0.15s;
}

.skill-progress-item:nth-child(3) {
    animation-delay: 0.2s;
}

.skill-progress-item:nth-child(4) {
    animation-delay: 0.25s;
}

.skill-progress-item:nth-child(5) {
    animation-delay: 0.3s;
}

.skill-progress-item:nth-child(6) {
    animation-delay: 0.35s;
}

.skill-progress-item:nth-child(7) {
    animation-delay: 0.4s;
}

.skill-progress-item:nth-child(8) {
    animation-delay: 0.45s;
}

.skill-progress-item:nth-child(9) {
    animation-delay: 0.5s;
}

.skill-progress-item:nth-child(10) {
    animation-delay: 0.55s;
}

.skill-progress-item:nth-child(11) {
    animation-delay: 0.6s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .cursor-trail-container {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 2rem;
    }

    .profile-img {
        width: 160px;
        height: 160px;
    }

    .glow-text {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .glow-text {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        min-height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-card {
        min-height: 250px;
    }

    .cert-fallback i {
        font-size: 2.5rem;
    }

    .cert-fallback h4 {
        font-size: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .skills-progress-grid {
        grid-template-columns: 1fr;
    }

    .social-links.large a {
        padding: 0.8rem 1.2rem;
    }

    .featured-projects {
        padding: 3rem 1rem;
    }

    .projects-grid-mini {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 90px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo-dynamic {
        font-size: 1.4rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.6rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 1rem;
    }

    .mobile-menu-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 15px;
        left: 15px;
    }

    .mobile-menu {
        bottom: 75px;
        left: 15px;
        min-width: 200px;
    }

    .mobile-menu a {
        padding: 12px 20px;
    }
}

/* ========== UTILIDADES ========== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* ========== PERSONALIZACIÓN DE SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}