/* ==========================================================================
   PORTAFOLIO WEB - ESTILO COSMIC DARK & TECH (SINGLE-COLUMN FLOW)
   Candidato: Dr. Jefferson Vaca Santana
   Diseñado específicamente para formato web responsivo de nivel premium
   ========================================================================== */

/* --- CONFIGURACIÓN DE SISTEMA DE DISEÑO --- */
:root {
    /* Paleta Oficial del Logo */
    --logo-blue: #1e4466;         
    --logo-red: #9a031e;          
    --logo-gold: #e7971e;         
    
    /* Colores de Pantalla (Cosmic Dark) */
    --bg-dark: #040811;
    --bg-dark-accent: #0b111e;
    --bg-card: rgba(15, 26, 47, 0.45);
    --border-glass: rgba(255, 255, 255, 0.06);
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    --sidebar-bg: rgba(12, 23, 42, 0.45);
    --sidebar-text: #f8fafc;
    --sidebar-text-muted: #cbd5e1;
    
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(231, 151, 30, 0.15);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET Y COMPORTAMIENTOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- NAVBAR STICKY (GLASSMORPHISM) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 8, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--logo-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--logo-gold);
    transition: var(--transition-smooth);
}

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

.btn-cv-nav {
    text-decoration: none;
    background: linear-gradient(135deg, var(--logo-blue) 0%, rgba(30, 68, 102, 0.8) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cv-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 68, 102, 0.4);
    background: var(--logo-gold);
    border-color: var(--logo-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 160px 24px 90px 24px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #03060c;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -15%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 68, 102, 0.28) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 3, 30, 0.16) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}

.hero-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--logo-gold);
    background: rgba(231, 151, 30, 0.1);
    border: 1px solid rgba(231, 151, 30, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 15px;
}

.highlight-text {
    color: var(--logo-red);
    background: linear-gradient(135deg, var(--logo-red) 30%, var(--logo-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
}

.hero-description {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 35px;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* CONTENEDOR LOGO HERO FLOTANTE */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 45px rgba(30, 68, 102, 0.25), 0 0 0 10px rgba(231, 151, 30, 0.08);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- SECTOR INTERACTIVO EN HERO (FILTRO RÁPIDO) --- */
.profile-selector-container {
    background: rgba(15, 26, 47, 0.4);
    border: 1px solid var(--border-glass);
    padding: 16px 20px;
    border-radius: 12px;
    max-width: 650px;
    margin-bottom: 35px;
    backdrop-filter: blur(8px);
}

.selector-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-selector {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-selector.active {
    background: var(--logo-blue);
    color: #ffffff;
    border-color: var(--logo-blue);
    box-shadow: 0 4px 12px rgba(30, 68, 102, 0.4);
}

#btn-profile-academic.active {
    background: var(--logo-red);
    border-color: var(--logo-red);
    box-shadow: 0 4px 12px rgba(154, 3, 30, 0.4);
}

/* --- SECCIONES WEB COMUNES --- */
.section-web {
    padding: 90px 0;
    position: relative;
    border-top: 1px solid var(--border-glass);
}

.bg-accent {
    background-color: var(--bg-dark-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--logo-gold);
}

.section-title.centered {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.section-subtitle.centered {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SECCIÓN SOBRE MÍ / BIO --- */
.bio-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.bio-text p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 15.5px;
    text-align: justify;
}

.bio-text p strong {
    color: #ffffff;
}

.bio-quote-container {
    display: flex;
    justify-content: center;
}

.bio-quote {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--logo-gold);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 40px;
    color: rgba(231, 151, 30, 0.05);
    pointer-events: none;
}

.quote-text {
    font-size: 16.5px;
    font-weight: 400;
    color: #ffffff;
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.quote-author {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--logo-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- NUEVA SECCIÓN COMPETENCIAS --- */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.competency-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.competency-card:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 151, 30, 0.25);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.comp-icon-box {
    font-size: 22px;
    color: var(--logo-gold);
    background: rgba(231, 151, 30, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(231, 151, 30, 0.15);
}

.comp-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comp-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.comp-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: justify;
}

/* --- ESPECIALIDADES / STACK --- */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.specialty-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 35px 25px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
}

.specialty-card:hover {
    transform: translateY(-8px);
    border-color: rgba(231, 151, 30, 0.25);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.specialty-icon {
    font-size: 28px;
    color: var(--logo-gold);
    background: rgba(231, 151, 30, 0.08);
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid rgba(231, 151, 30, 0.15);
}

.specialty-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 12px;
}

.specialty-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 22px;
    text-align: justify;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4.5px;
    margin-top: auto;
}

.specialty-tags span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 500;
}

/* --- SECCIÓN TRAYECTORIA --- */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 26, 47, 0.4);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-right: 4px;
}

.btn-filter {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-filter:hover {
    color: #ffffff;
}

.btn-filter.active {
    background: var(--logo-blue);
    color: #ffffff;
}

/* LÍNEA DE TIEMPO WEB */
.timeline-web {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}

.timeline-card-web {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.timeline-card-web:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.timeline-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--logo-blue);
}

.timeline-card-web.item-academic .timeline-card-glow {
    background: var(--logo-red);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-card-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3.5px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.timeline-card-category.tech {
    background: rgba(30, 68, 102, 0.15);
    color: #5bc0be;
    border: 1px solid rgba(30, 68, 102, 0.25);
}

.timeline-card-category.academic {
    background: rgba(154, 3, 30, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(154, 3, 30, 0.2);
}

.timeline-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.timeline-card-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--logo-gold);
    background: rgba(231, 151, 30, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(231, 151, 30, 0.15);
}

.timeline-card-company {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 18px;
    font-style: italic;
}

.timeline-card-list {
    list-style: none;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-card-list li {
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    text-align: justify;
    line-height: 1.5;
}

.timeline-card-list li::before {
    content: "▪";
    color: var(--logo-gold);
    position: absolute;
    left: -14px;
    font-size: 9px;
    top: 2px;
}

.timeline-card-list li strong {
    color: #ffffff;
}

/* --- SECCIÓN PORTAFOLIO DIGITAL (SIDEBAR & CV) --- */
.cv-wrapper {
    display: none; /* Ocultamos la vista de doble columna en index.html ya que el portafolio ahora fluye de forma vertical completa */
}

/* --- SECCIÓN EDUCACIÓN --- */
.education-grid-web {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.edu-card-web {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--logo-blue);
    border-radius: 10px;
    padding: 25px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.edu-card-web:hover {
    transform: translateY(-4px);
    border-left-color: var(--logo-gold);
}

.edu-card-year {
    font-size: 11px;
    font-weight: 700;
    color: var(--logo-red);
    background: rgba(154, 3, 30, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.edu-card-degree {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.edu-card-inst {
    font-size: 13px;
    color: var(--logo-gold);
    font-weight: 500;
    margin-bottom: 8px;
}

.edu-card-details {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- SECCIÓN PUBLICACIONES --- */
.publications-grid-web {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pub-card-web {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.pub-card-web:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 151, 30, 0.25);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.pub-badge-web {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
    border-radius: 0 0 6px 0;
}

.pub-badge-web.epjc { background: var(--logo-gold); }
.pub-badge-web.arxiv { background: var(--logo-blue); }
.pub-badge-web.mdpi { background: var(--logo-red); }
.pub-badge-web.epn { background: #556c8c; }

.pub-content-web {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pub-title-web {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
    font-family: var(--font-heading);
}

.pub-authors-web {
    font-size: 13px;
    color: var(--logo-gold);
    font-weight: 500;
    margin-bottom: 6px;
}

.pub-meta-web {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: auto;
    padding-bottom: 15px;
}

.pub-links-web {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-pub-link {
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: var(--logo-blue);
    border: 1px solid var(--logo-blue);
    padding: 7px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-pub-link:hover {
    background: var(--logo-gold);
    border-color: var(--logo-gold);
    transform: translateY(-1px);
}

.btn-pub-link.secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-pub-link.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--logo-red);
}

.academic-profiles-web {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    text-align: center;
}

.academic-profiles-web h3 {
    font-size: 14.5px;
    color: #ffffff;
    margin-bottom: 18px;
    font-family: var(--font-heading);
}

.profile-links-web {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-links-web a {
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.profile-links-web a:hover {
    color: #ffffff;
    border-color: var(--logo-gold);
    background: rgba(231, 151, 30, 0.08);
}

/* --- SECCIÓN SERVICIOS --- */
.services-grid-web {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card-web {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid var(--logo-blue);
    box-shadow: var(--shadow-premium);
}

.service-card-web:last-child {
    border-left-color: var(--logo-gold);
}

.service-title-web {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-title-web i {
    color: var(--logo-gold);
}

.service-desc-web {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
}

.service-action-web {
    margin-top: auto;
}

.btn-service-web {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    background: var(--logo-blue);
    border: 1px solid var(--logo-blue);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-service-web:hover {
    background: var(--logo-gold);
    border-color: var(--logo-gold);
    transform: translateY(-2px);
}

.btn-service-web.private {
    background: rgba(154, 3, 30, 0.15);
    border-color: var(--logo-red);
    color: #ffffff;
}

.btn-service-web.private:hover {
    background: var(--logo-red);
    transform: translateY(-2px);
}

/* --- SECCIÓN CONTACTO --- */
.contact-card-web {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-methods-web {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.contact-method-btn {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.contact-method-btn:hover {
    border-color: var(--logo-gold);
    background: rgba(231, 151, 30, 0.08);
    transform: translateY(-3px);
}

.contact-method-btn i {
    color: var(--logo-gold);
    font-size: 18px;
}

/* --- REFERENCIAS WEB --- */
.references-grid-web {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1080px) {
    .references-grid-web {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ref-card-web {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 10px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.ref-card-web:hover {
    border-color: rgba(231, 151, 30, 0.15);
}

.ref-card-web .ref-name {
    font-size: 15.5px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 2px;
}

.ref-card-web .ref-desc {
    color: var(--logo-gold);
    font-size: 12.5px;
    font-style: normal;
    margin-bottom: 12px;
}

.ref-card-web .ref-email, .ref-card-web .ref-phone {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ref-card-web .ref-email i, .ref-card-web .ref-phone i {
    color: var(--logo-gold);
    width: 14px;
    text-align: center;
}

.ref-card-web .ref-email a {
    color: var(--text-muted);
    text-decoration: none;
}

.ref-card-web .ref-email a:hover {
    color: var(--logo-gold);
}

/* --- SELECTOR DE IDIOMA --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-size: 13px;
    font-weight: 700;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.lang-btn:hover {
    color: var(--logo-gold);
}

.lang-btn.active-lang {
    color: var(--logo-gold);
    pointer-events: none;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

/* --- FOOTER --- */
.footer {
    padding: 45px 24px;
    border-top: 1px solid var(--border-glass);
    background-color: #03060c;
    text-align: center;
}

.footer p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* --- RESPONSIVIDAD (MÓVIL Y TABLETS) --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .profile-selector-container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .competencies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-grid-web, .publications-grid-web, .services-grid-web, .references-grid-web {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #060b13;
        border-bottom: 1px solid var(--border-glass);
        padding: 20px;
        gap: 15px;
    }
    
    .navbar-links.active {
        display: flex;
    }
    
    .lang-switch {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
        border-top: 1px solid var(--border-glass);
        padding-top: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .section-title {
        font-size: 24px;
    }
}