/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;      /* Azul más tecnológico */
    --secondary-color: #0f766e;    /* Verde-azulado para automatización */
    --accent-color: #3b82f6;       /* Azul acento */
    --success-color: #10b981;      /* Verde éxito */
    --warning-color: #06b6d4;      /* Cian para alertas */
    --danger-color: #ef4444;       /* Rojo para errores */
    --dark-color: #1e293b;         /* Azul oscuro casi negro */
    --light-color: #f1f5f9;        /* Gris muy claro */
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);   /* Gradiente principal */
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);   /* Gradiente secundario */
    --gradient-3: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);   /* Gradiente terciario */
    --gradient-4: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);   /* Gradiente cuaternario */
    --shadow-light: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variables adicionales para jerarquía tipográfica */
    --title-size: 2.5rem;          /* Tamaño para títulos principales */
    --subtitle-size: 1.75rem;      /* Tamaño para subtítulos */
    --section-title-size: 2rem;    /* Tamaño para títulos de sección */
    --heading-size: 1.4rem;        /* Tamaño para encabezados */
    --text-size: 1rem;             /* Tamaño para texto normal */
    --small-text-size: 0.875rem;   /* Tamaño para texto pequeño */
    
    /* Espaciado consistente */
    --spacing-xs: 0.5rem;          /* 8px */
    --spacing-sm: 1rem;            /* 16px */
    --spacing-md: 1.5rem;          /* 24px */
    --spacing-lg: 2.5rem;          /* 40px */
    --spacing-xl: 4rem;            /* 64px */
    --spacing-xxl: 6rem;           /* 96px */
    --background-main: #eaf1fb; /* Azul muy claro para fondo general */
    --section-pattern: url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23c7d2fe" fill-opacity="0.18"/><rect x="40" y="40" width="40" height="40" fill="%233b82f6" fill-opacity="0.08"/></svg>');
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    overflow-x: hidden;
    background: var(--background-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Cambia aquí el color de fondo */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

 /* HERO: Gradiente mejorado con más colores */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b0c2a 0%, #384a7d 30%, #153f65 70%, #1d5476 100%); /* Nuevo gradiente con 4 tonos */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* Para compensar la navbar fija */
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.03)" width="50" height="50" x="0" y="0" /><rect fill="rgba(255,255,255,0.03)" width="50" height="50" x="50" y="50" /></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-header {
    margin-bottom: 30px;
}

.hero-greeting {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.hero-greeting::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent-color);
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    position: relative;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.4);
    z-index: -1;
    border-radius: 4px;
}

.title-bar {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 25px 0;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 600; /* Peso de fuente aumentado */
    line-height: 1.6;
    max-width: 90%;
    color: #111827 !important; /* Negro más oscuro y bien contrastado */
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Etiquetas de especialidades */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* PROYECTOS: Etiquetas tipo badge con códigos de color según la tecnología */
/* Estilos base para los tech-tags */
.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid;
    position: relative;
}

/* Códigos de color según tecnología */
.tech-tag[data-tech="python"] {
    border-color: #3572A5;
    background-color: rgba(53, 114, 165, 0.1);
}

.tech-tag[data-tech="javascript"] {
    border-color: #f7df1e;
    background-color: rgba(247, 223, 30, 0.1);
}

.tech-tag[data-tech="html"] {
    border-color: #e34c26;
    background-color: rgba(227, 76, 38, 0.1);
}

.tech-tag[data-tech="css"] {
    border-color: #264de4;
    background-color: rgba(38, 77, 228, 0.1);
}

.tech-tag[data-tech="react"] {
    border-color: #61dafb;
    background-color: rgba(97, 218, 251, 0.1);
}

.tech-tag[data-tech="net"] {
    border-color: #5C2D91;
    background-color: rgba(92, 45, 145, 0.1);
}

.tech-tag[data-tech="automation"] {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.tech-tag[data-tech="database"] {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.tech-tag[data-tech="cloud"] {
    border-color: #00aff0;
    background-color: rgba(0, 175, 240, 0.1);
}

.tech-tag i {
    font-size: 1.1rem;
    color: inherit;
}

.tech-tag[data-tech="python"] i {
    color: #3572A5;
}

.tech-tag[data-tech="javascript"] i {
    color: #f7df1e;
}

.tech-tag[data-tech="html"] i {
    color: #e34c26;
}

/* Insignias de empresa y certificación */
.hero-company {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.company-badge, .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.company-badge i, .cert-badge i {
    font-size: 1.1rem;
}

.company-badge {
    border-left: 3px solid var(--success-color);
}

.cert-badge {
    border-left: 3px solid var(--warning-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.4s both;
}

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease;
    transform: skewX(-25deg);
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(200%) skewX(-25deg);
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

/* Estilo específico para los botones dentro de la sección de curriculum */
.curriculum .btn-primary,
.curriculum .btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.curriculum .btn-primary:hover,
.curriculum .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cv-btn {
    min-width: 180px;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out 0.6s both;
}

.profile-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    height: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Código en la tarjeta */
.code-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    width: 100%;
}

.code-line {
    display: block;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.code-keyword {
    color: #f472b6;
}

.code-class {
    color: #60a5fa;
}

.code-property {
    color: #93c5fd;
}

.code-string {
    color: #a5b4fc;
}

.code-method {
    color: #f59e0b;
}

.cursor-blink {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 10px;
    height: 20px;
    background: #d8b4fe;
    opacity: 0;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 0;
    }
    50%, 100% {
        opacity: 1;
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: scrollDown 2s infinite;
    position: absolute;
    top: 10px;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Mejoras responsivas */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .profile-card {
        height: auto;
    }
    
    .code-lines {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        z-index: 999;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Animación del menú hamburguesa */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .skill-items {
        grid-template-columns: 1fr 1fr;
    }
}

/* Fondo patrón para TODAS las secciones principales */
.about,
.curriculum,
.skills,
.services,
.projects,
.certificates,
.contact {
    background-color: var(--white); /* Ahora todas las secciones tienen fondo blanco */
    background-image: var(--section-pattern);
    background-size: 80px 80px;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* El hero mantiene su gradiente y patrón propio */
/* .hero ruleset removed because it was empty */

/* Las tarjetas siguen con fondo sólido para destacar */
.about-card,
.stat,
.service-card,
.certificate-card,
.project-card {
    background: #fff !important;
}

/* Estandarización de espaciado en secciones */
section {
    padding: var(--spacing-xxl) 0;
}

/* Ajustes específicos por sección */
.hero {
    padding-top: calc(70px + var(--spacing-xxl)); /* Ajuste para compensar la barra de navegación */
    padding-bottom: var(--spacing-xxl);
}

.about-content, 
.projects-grid, 
.services-grid,
.cv-container, 
.certificates-grid, 
.skills-grid,
.contact-content {
    margin-top: var(--spacing-xl);
}

/* Sobre Mí */
/* Quita el fondo sólido para que se vea el patrón global */
/*
.about {
    background: var(--light-color);
}
*/

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.stat {
    background: var(--white);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Nuevo diseño para la sección Sobre Mí */
.about-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* Versión de dos columnas para pantallas grandes */
@media (min-width: 992px) {
    .about-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.about-text p {
    margin-bottom: 20px;
}

/* Ajuste a about-stats para nuevo layout */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Proyectos */
.projects {
    position: relative;
    overflow: hidden;
}

/* .projects {
    background: linear-gradient(180deg, var(--white) 0%, rgba(241, 245, 249, 0.5) 100%);
    position: relative;
    overflow: hidden;
} */

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(37, 99, 235, 0.03)" width="50" height="50" x="25" y="25" /></svg>');
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

.projects .container {
    position: relative;
    z-index: 2;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-branded-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    pointer-events: none;
}

.brand-name {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #fff;
    background-clip: initial;
    text-transform: uppercase;
    margin-bottom: 0.2em;
    line-height: 1.1;
    border-radius: 10px;
    padding: 0 18px;
    box-shadow: none;
    border: none;
    filter: drop-shadow(0 4px 16px #2563eb88);
    text-shadow:
        0 4px 16px #2563eb88,
        0 2px 0 #fff,
        0 0 8px #3b82f6;
    background-blend-mode: normal;
    backdrop-filter: none;
    transition: box-shadow 0.3s, filter 0.3s, background 0.5s;
    animation: none;
    position: relative;
    z-index: 3;
    text-align: center;
}

.brand-name::after {
    display: none;
}

.brand-slogan {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(255,255,255,0.7);
    padding: 2px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.07);
    text-align: center;
}

.project-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #0b0c2a 0%, #384a7d 30%, #153f65 70%, #1d5476 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* Cambiado a transparente */
    display: flex;
    align-items: flex-end; /* Alineado al fondo */
    justify-content: flex-end; /* Alineado a la derecha */
    opacity: 1; /* Siempre visible */
    transition: var(--transition);
    pointer-events: none; /* Para que no interfiera con otros elementos */
    padding: 15px; /* Espaciado interno */
    z-index: 4; /* Un nivel por encima del branded overlay */
}

.project-links {
    display: flex;
    gap: 15px;
    pointer-events: auto; /* Permite hacer clic en los enlaces */
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    backdrop-filter: blur(5px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.15) translateY(-3px);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(90deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* fallback */
}


.project-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech-container {
    margin-top: 30px;
    background: linear-gradient(145deg, #f6f8fb, #e9eff6);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tech-title {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--dark-color);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-tag:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.25);
}

.tech-tag:hover::before {
    opacity: 1;
}

.tech-tag i {
    font-size: 1.1rem;
}

/* Animación para las tech tags */
.tech-tag:nth-child(1) { animation: slideInUp 0.4s ease-out 0.1s both; }
.tech-tag:nth-child(2) { animation: slideInUp 0.4s ease-out 0.2s both; }
.tech-tag:nth-child(3) { animation: slideInUp 0.4s ease-out 0.3s both; }
.tech-tag:nth-child(4) { animation: slideInUp 0.4s ease-out 0.4s both; }

/* Responsive para tech tags */
@media (max-width: 480px) {
    .project-tech {
        gap: 10px;
    }
    
    .tech-tag {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Habilidades */
/* Quita el fondo gradiente y deja solo el fondo blanco con patrón como el resto */
.skills {
    /* background: linear-gradient(to bottom, var(--light-color) 0%, #f8fafc 100%); */
    background-color: var(--white);
    background-image: var(--section-pattern);
    background-size: 80px 80px;
    background-repeat: repeat;
    background-attachment: fixed;
    padding-bottom: 120px;
}

.skills-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(240, 240, 240, 0.8);
}

.skill-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(240, 240, 240, 0);
}

.skill-category:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.category-header i {
    font-size: 1.8rem;
    color: white;
    background: var(--gradient-1);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-header h3 {
    font-size: 1.4rem;
    margin: 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.skill-item {
    background: white;
    padding: 15px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    background: rgba(102, 126, 234, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colores para grupos específicos de skills */
.skill-item[data-category="red"] i {
    color: #f77062;
    background: rgba(247, 112, 98, 0.1);
}

.skill-item[data-category="blue"] i {
    color: #2575fc;
    background: rgba(37, 117, 252, 0.1);
}

.skill-item[data-category="green"] i {
    color: #00ecbc;
    background: rgba(0, 236, 188, 0.1);
}

.skill-item[data-category="purple"] i {
    color: #6a11cb;
    background: rgba(106, 17, 203, 0.1);
}

.skill-item[data-category="orange"] i {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-4);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover span,
.skill-item:hover i {
    color: white;
}

/* Categoría destacada */
.featured-category {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
}

.featured-category .category-header i {
    background: var(--gradient-3);
}

.featured-category .category-header h3 {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Habilidad destacada */
.skill-item.featured {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: scale(1.05);
}

.skill-item.featured i {
    color: #4facfe;
}

.skill-item.featured:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Responsive para skills */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-item {
        padding: 12px 8px;
    }
    
    .skill-item span {
        font-size: 0.8rem;
    }
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    color: var(--white) !important;
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.footer-content p {
    color: var(--white) !important;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Estilos específicos para servicios */
/* Cambia el fondo a blanco y patrón como el resto de las secciones */
.services {
    /* background-color: var(--light-color); */
    background-color: var(--white);
    background-image: var(--section-pattern);
    background-size: 80px 80px;
    background-repeat: repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

/* Patrón sutil de fondo para servicios */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(15, 118, 110, 0.03)" width="50" height="50" x="25" y="25" /></svg>');
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    margin-bottom: var(--spacing-md);
    font-size: 42px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 118, 110, 0.1) 100%);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 0.15;
}

.service-title {
    font-size: var(--heading-size);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.service-description {
    color: rgba(30, 41, 59, 0.85);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--dark-color);
    opacity: 0.85;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
    font-size: 1rem;
}

.services-action {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

.services-action p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
    font-weight: 500;
}

/* Estilos específicos para certificados */
.certificates {
    background-color: var(--white);
    position: relative;
    z-index: 1;
}

/* Patrón sutil de fondo para certificados */
.certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(37, 99, 235, 0.02)" width="50" height="50" x="25" y="25" /></svg>');
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
}

.certificates-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.certificate-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.certificate-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
}

.certificate-content {
    flex: 1;
}

.certificate-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.certificate-issuer {
    font-size: 0.9rem;
    color: var(--dark-color);
    opacity: 0.7;
    margin-bottom: var(--spacing-sm);
}

.btn-certificate {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-certificate:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-certificate i {
    margin-right: 8px;
}

/* Tarjetas de contacto con color de red social y contraste óptimo */
.contact-item.email {
    background: #ea4335 !important; /* Gmail */
    color: #fff;
}
.contact-item.email i { color: #fff; }
.contact-item.email h3, .contact-item.email p, .contact-item.email a { color: #fff; }

.contact-item.linkedin {
    background: #0a66c2 !important; /* LinkedIn */
    color: #fff;
}
.contact-item.linkedin i { color: #fff; }
.contact-item.linkedin h3, .contact-item.linkedin p, .contact-item.linkedin a { color: #fff; }

.contact-item.github {
    background: #171515 !important; /* GitHub */
    color: #fff;
}
.contact-item.github i { color: #fff; }
.contact-item.github h3, .contact-item.github p, .contact-item.github a { color: #fff; }

.contact-item.whatsapp {
    background: #25d366 !important; /* WhatsApp */
    color: #222;
}
.contact-item.whatsapp i {
    color: #25d366;
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    min-width: 36px;
    min-height: 36px;
    box-shadow: 0 2px 8px #25d36622;
    margin-right: 0;
}
.contact-item.whatsapp h3, .contact-item.whatsapp p, .contact-item.whatsapp a { color: #222; }

/* Mantener tamaño y padding original */
.contact-item {
    padding: 30px;
}

/* Mejoras en la navegación principal */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Estilos para la sección activa */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mejoras en consistencia de contenedores */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Mejoras en la legibilidad general */
body {
    color: var(--dark-color);
    line-height: 1.7;
}

p {
    margin-bottom: var(--spacing-md);
    color: rgba(30, 41, 59, 0.85);
}

/* Mejora del contraste en textos importantes */
.section-title,
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
}

/* Efectos de hover más suaves */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Mejoras en imágenes y multimedia */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  width: 100%;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 #0001;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 330px;    /* <-- Este es CLAVE */
  max-width: 330px;
  margin: 0;
}


@media (min-width: 768px) {
  .project-card {
    width: calc(33.333% - 13.33px);
    max-width: calc(33.333% - 13.33px);
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary-dark);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; top: 0;
  width: 100%; height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}
.modal-content {
  background-color: #fff;
  margin: 5% auto; 
  padding: 30px 20px;
  border-radius: 16px;
  max-width: 720px; /* Más ancho */
  position: relative;
  animation: modalFadeIn 0.2s;
  padding: 40px 36px 36px 36px;
  font-size: 1.08rem;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97);}
  to   { opacity: 1; transform: scale(1);}
}
.close {
  color: #333;
  position: absolute; top: 18px; right: 26px;
  font-size: 2rem; font-weight: bold;
  cursor: pointer;
}
#servicios {
  scroll-margin-top: 90px; /* Ajusta según la altura de tu navbar */
}

.modal-gallery {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.modal-gallery img {
  max-width: 340px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 18px #0001;
  background: #fff;
  transition: box-shadow 0.2s;
}
@media (max-width: 600px) {
  .modal-gallery {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .modal-gallery img {
    max-width: 98vw;
  }
}
.project-card .btn {
  margin-top: auto;        /* Empuja el botón siempre hacia el fondo */
  margin-bottom: 10px;     /* Para que no quede pegado al borde */
  width: 70%;              /* Opcional: iguala el ancho con otras tarjetas */
  max-width: 180px;        /* Opcional: limita el ancho */
}

/* MODALES DE PROYECTOS MEJORADOS */
.modal-content {
  max-width: 720px; /* Más ancho */
  padding: 40px 36px 36px 36px;
  font-size: 1.08rem;
}

@media (max-width: 800px) {
  .modal-content {
    max-width: 98vw;
    padding: 18px 6vw;
  }
}

.modal-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 18px;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content h4 {
  font-size: 1.15rem;
  color: var(--secondary-color);
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.modal-content ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.modal-content ul li {
  margin-bottom: 7px;
  line-height: 1.7;
}

.modal-content p {
  margin-bottom: 20px;
  color: #222;
}

.modal-content .project-tech {
  margin-top: 18px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.modal-content .project-tech .tech-tag {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 22px;
  background: #f5f8fd;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 2px 8px #2563eb11;
}

.modal-content .project-tech .tech-tag i {
  font-size: 1.2rem;
}

.modal-content .project-thumb,
.modal-content img {
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px #2563eb11;
  max-width: 360px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal-content .modal-section {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #e5eaf5;
}

.modal-content .modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modal-content .repos-list {
  margin: 0 0 10px 0;
  padding-left: 0;
  list-style: none;
}

.modal-content .repos-list li {
  margin-bottom: 8px;
}

.modal-content .repos-list a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.modal-content .repos-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 12px 2vw;
    font-size: 0.98rem;
  }
  .modal-content h2 {
    font-size: 1.2rem;
  }
}


