/* ==========================================================================
   GRUPO DE INVESTIGACIÓN DICOM - HOJA DE ESTILOS PRINCIPAL
   Innovación en Comunicación Digital y Medios
   Carrera de Comunicación - Universidad Estatal Península de Santa Elena (UPSE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Paleta cromática DICOM */
  --brand-cyan: #00d2ff;
  --brand-blue: #0070f3;
  --brand-blue-dark: #0051b3;
  --brand-deep-navy: #060e1d;
  --brand-navy-card: #0c1a30;
  --brand-navy-light: #162a4d;
  
  --color-primary: #0070f3;
  --color-primary-cyan: #00d2ff;
  --color-accent-glow: rgba(0, 210, 255, 0.35);
  
  /* Textos y fondos */
  --bg-dark: #070e1c;
  --bg-surface-dark: rgba(12, 26, 48, 0.85);
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-card-light: #ffffff;
  
  --text-dark: #0f172a;
  --text-dark-muted: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-dark: rgba(0, 210, 255, 0.15);
  --border-dark-hover: rgba(0, 210, 255, 0.4);
  
  /* Redes Académicas */
  --color-scholar: #4285F4;
  --color-orcid: #A6CE39;
  --color-researchgate: #00CCBB;
  --color-academia: #3A4B58;

  /* Redes Sociales */
  --color-facebook: #1877F2;
  --color-instagram: #E4405F;
  --color-tiktok: #00F2FE;
  --color-x: #FFFFFF;

  /* Tipografías */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevaciones y sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.25);
  --shadow-card-dark: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #0099ff 50%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--brand-blue-dark);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.dark-section .section-tag {
  background: rgba(0, 210, 255, 0.15);
  color: var(--brand-cyan);
  border-color: rgba(0, 210, 255, 0.35);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.dark-section .section-title {
  color: var(--text-light);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-dark-muted);
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.dark-section .section-subtitle {
  color: var(--text-light-muted);
}

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

.container-narrow {
  max-width: 960px;
}

.section-padding {
  padding: 90px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 14, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: rgba(6, 14, 29, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.3));
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-acronym span {
  color: var(--brand-cyan);
}

.brand-subtext {
  font-size: 0.68rem;
  color: var(--text-light-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--brand-cyan);
  background: rgba(0, 210, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Redes en el Header */
.header-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.header-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.header-social-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--brand-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* ==========================================================================
   BOTONES Y LLAMADAS A LA ACCIÓN
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #26dcff 0%, #0084ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--brand-blue-dark);
  border: 2px solid var(--brand-blue);
}

.btn-outline-primary:hover {
  background: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--brand-deep-navy);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--brand-navy-light);
  color: var(--brand-cyan);
}

/* ==========================================================================
   REDES SOCIALES (ICONOS Y BOTONES)
   ========================================================================== */
.social-links-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.social-btn.social-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.social-btn.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  box-shadow: 0 6px 18px rgba(214, 36, 159, 0.45);
}

.social-btn.social-tiktok:hover {
  background: #000000;
  border-color: var(--brand-cyan);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.45);
  color: #00f2fe;
}

.social-btn.social-x:hover {
  background: #000000;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

/* Redes en Tarjetas Claras */
.social-card-light {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-card-light .social-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--brand-deep-navy);
}

.social-card-light .social-btn.social-facebook:hover {
  background: #1877F2;
  color: #ffffff;
}

.social-card-light .social-btn.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
}

.social-card-light .social-btn.social-tiktok:hover {
  background: #000000;
  color: #00f2fe;
}

.social-card-light .social-btn.social-x:hover {
  background: #000000;
  color: #ffffff;
}

/* ==========================================================================
   HERO BANNER PRINCIPAL (INICIO)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--brand-deep-navy);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(0, 112, 243, 0.2) 0%, transparent 50%),
    url('../images/hero-network.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: var(--text-light);
  padding: 120px 0 100px 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 29, 0.85) 0%, rgba(6, 14, 29, 0.95) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.hero-badge-tag svg {
  color: var(--brand-cyan);
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-affiliation {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--brand-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 35px;
  max-width: 100%;
}

.hero-affiliation-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding-right: 18px;
  max-width: 120px;
  max-height: 52px;
}

.hero-upse-logo {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 105px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.hero-upse-logo:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(0, 210, 255, 0.35));
}

.hero-affiliation-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.45;
  text-align: left;
}

.hero-affiliation-text strong {
  color: #ffffff;
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-affiliation-text span {
  display: block;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Card Visual del Hero */
.hero-card-visual {
  position: relative;
  background: var(--bg-surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: var(--shadow-card-dark), var(--shadow-glow);
  backdrop-filter: blur(20px);
}

.hero-card-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  margin-bottom: 24px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-card-logo-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 210, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 210, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card-logo-container:hover img {
  transform: scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 210, 255, 0.45);
}

.hero-card-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-info-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition-fast);
}

.hero-info-box:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.3);
}

.hero-info-box .info-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-cyan);
  display: block;
}

.hero-info-box .info-label {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PAGE HERO BANNER (PÁGINAS INTERNAS)
   ========================================================================== */
.page-hero {
  position: relative;
  background: var(--brand-deep-navy);
  padding: 70px 0 50px 0;
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--brand-cyan);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.page-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light-muted);
  max-width: 750px;
}

/* ==========================================================================
   TARJETAS Y SECCIONES DE LÍNEAS
   ========================================================================== */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.line-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.line-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 112, 243, 0.4);
}

.line-card-header {
  padding: 30px 30px 20px 30px;
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.line-card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(0, 112, 243, 0.12);
  line-height: 1;
}

.line-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(0, 112, 243, 0.15) 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 18px;
}

.line-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brand-deep-navy);
}

.line-coordinator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: rgba(0, 112, 243, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.line-card-body {
  padding: 24px 30px 30px 30px;
  flex: 1;
}

.sublines-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-dark-muted);
  margin-bottom: 14px;
}

.sublines-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sublines-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.sublines-list li svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.line-feature-card {
  background: var(--brand-deep-navy);
  color: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-dark);
}

.line-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 14, 29, 0.92) 0%, rgba(12, 26, 48, 0.88) 100%);
  z-index: 1;
}

.line-feature-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.line-feature-header h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.line-feature-coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.15);
  color: var(--brand-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 210, 255, 0.3);
  margin-bottom: 20px;
}

/* ==========================================================================
   EQUIPO / INVESTIGADORES (CARDS & FOTOS COMPACTAS)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.member-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 24px 20px 20px 20px;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 112, 243, 0.35);
}

.member-photo-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.2);
  flex-shrink: 0;
}

.member-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #0f172a;
  border: 2px solid #ffffff;
  transition: transform 0.4s ease;
}

.member-card:hover .member-photo {
  transform: scale(1.08);
}

.member-badge-role {
  display: inline-block;
  background: rgba(0, 112, 243, 0.08);
  border: 1px solid rgba(0, 112, 243, 0.2);
  color: var(--brand-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.member-line {
  font-size: 0.84rem;
  color: var(--text-dark-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 42px;
}

.member-line strong {
  color: var(--brand-blue-dark);
  display: block;
}

.member-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--brand-blue);
  margin-bottom: 16px;
  word-break: break-all;
  font-weight: 600;
}

.member-email svg {
  flex-shrink: 0;
}

.member-email:hover {
  text-decoration: underline;
}

.academic-links-wrap {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.academic-links-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.academic-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.academic-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-fast);
}

.academic-btn svg {
  width: 16px;
  height: 16px;
}

.academic-btn.btn-scholar:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: var(--color-scholar);
  color: var(--color-scholar);
}

.academic-btn.btn-orcid:hover {
  background: rgba(166, 206, 57, 0.15);
  border-color: var(--color-orcid);
  color: #637f19;
}

.academic-btn.btn-rg:hover {
  background: rgba(0, 204, 187, 0.12);
  border-color: var(--color-researchgate);
  color: #008f83;
}

.academic-btn.btn-academia:hover {
  background: rgba(58, 75, 88, 0.12);
  border-color: var(--color-academia);
  color: var(--color-academia);
}

.academic-btn.btn-cv {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.4);
  color: var(--brand-blue-dark);
  font-weight: 700;
}

.academic-btn.btn-cv:hover {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #060e1d;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   PÁGINAS DE CURRICULUM VITAE (CV ACADÉMICO)
   ========================================================================== */
.cv-header-card {
  background: var(--brand-deep-navy);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  padding: 40px;
  color: #ffffff;
  margin-bottom: 35px;
  box-shadow: var(--shadow-card-dark);
  position: relative;
  overflow: hidden;
}

.cv-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cv-header-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.cv-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.35);
}

.cv-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.cv-header-info {
  flex: 1;
}

.cv-header-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.cv-header-role {
  display: inline-block;
  background: rgba(0, 210, 255, 0.18);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.cv-header-institution {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cv-header-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.cv-header-link-btn:hover {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #060e1d;
  transform: translateY(-1px);
}

.cv-header-link-btn svg {
  width: 14px;
  height: 14px;
}

.cv-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cv-main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 35px;
}

.cv-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.cv-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  color: var(--brand-deep-navy);
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
  position: relative;
}

.cv-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--brand-cyan);
}

.cv-section-title svg {
  color: var(--brand-blue);
  width: 22px;
  height: 22px;
}

.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-timeline-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-light);
}

.cv-timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--brand-blue);
}

.cv-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin-bottom: 4px;
}

.cv-item-meta {
  font-size: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.cv-item-desc {
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

.cv-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-badge {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--brand-blue-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.cv-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.cv-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-deep-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-sidebar-title svg {
  color: var(--brand-blue);
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .cv-main-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cv-header-grid {
    flex-direction: column;
    text-align: center;
  }
  .cv-header-institution {
    justify-content: center;
  }
  .cv-header-links {
    justify-content: center;
  }
}

@media print {
  .site-header, .site-footer, .cv-actions-bar, .modal-backdrop {
    display: none !important;
  }
  .page-hero {
    padding: 20px 0 !important;
    background: none !important;
    color: #000 !important;
  }
  .cv-header-card {
    background: none !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .cv-header-name, .cv-header-institution, .cv-header-role {
    color: #000 !important;
  }
}

/* ==========================================================================
   PROYECTOS / CONGRESOS / JORNADAS
   ========================================================================== */
.tabs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 112, 243, 0.04);
}

.tab-btn.active {
  background: var(--brand-deep-navy);
  color: #ffffff;
  border-color: var(--brand-deep-navy);
  box-shadow: 0 4px 12px rgba(6, 14, 29, 0.25);
}

.tab-btn.active svg {
  color: var(--brand-cyan);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 112, 243, 0.3);
}

/* ==========================================================================
   CARRUSEL DE PROYECTOS (PROYECTOS.HTML)
   ========================================================================== */
.projects-carousel-wrapper {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  outline: none;
}

.projects-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.project-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.project-selector-btn:hover {
  background: rgba(0, 112, 243, 0.08);
  border-color: rgba(0, 112, 243, 0.3);
  color: var(--brand-blue);
}

.project-selector-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.28);
}

.project-selector-btn .proj-badge-num {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.07);
  font-weight: 700;
}

.project-selector-btn.active .proj-badge-num {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.projects-carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--brand-deep-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  flex-shrink: 0;
  z-index: 5;
}

.carousel-nav-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 112, 243, 0.3);
}

.carousel-nav-btn:active {
  transform: scale(0.96);
}

.projects-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
}

.projects-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  will-change: transform;
}

.project-carousel-slide {
  min-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.project-carousel-card {
  background: var(--bg-white);
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  box-sizing: border-box;
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-upcoming {
  background: rgba(0, 210, 255, 0.12);
  color: var(--brand-blue-dark);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.status-call {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin-bottom: 16px;
  line-height: 1.35;
}

.project-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text-dark-muted);
}

.project-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.project-meta-list li svg {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.project-meta-list strong {
  color: var(--text-dark);
}

.project-budget-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--brand-deep-navy);
  font-size: 0.92rem;
}

.project-budget-pill.budget-funded {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.project-budget-pill.budget-none {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.carousel-footer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 6px;
  flex-wrap: wrap;
  gap: 16px;
}

.carousel-counter-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep-navy);
  background: var(--bg-white);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: var(--brand-blue-light);
}

.carousel-dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.35);
}

@media (max-width: 768px) {
  .project-carousel-card {
    padding: 26px 20px;
    min-height: auto;
  }
  .projects-carousel-stage {
    gap: 8px;
  }
  .carousel-nav-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-footer-controls {
    justify-content: center;
  }
}

/* ==========================================================================
   PUBLICACIONES (FILTROS Y TARJETAS)
   ========================================================================== */
.filter-controls-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-select {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--brand-blue);
}

.pub-filter-buttons-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.pub-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pub-filter-btn:hover {
  background: rgba(0, 112, 243, 0.08);
  border-color: rgba(0, 112, 243, 0.3);
  color: var(--brand-blue);
}

.pub-filter-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
}

.pub-filter-btn .pub-count-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.pub-filter-btn.active .pub-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.clear-filters-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
}

.clear-filters-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.pub-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pub-card:hover {
  border-color: rgba(0, 112, 243, 0.3);
  box-shadow: var(--shadow-md);
}

.pub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-type-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.type-article {
  background: rgba(0, 112, 243, 0.1);
  color: var(--brand-blue-dark);
  border: 1px solid rgba(0, 112, 243, 0.25);
}

.type-book {
  background: rgba(147, 51, 234, 0.1);
  color: #7e22ce;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.type-thesis {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pub-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark-muted);
}

.pub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pub-authors {
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pub-journal {
  font-size: 0.9rem;
  font-style: italic;
  color: #475569;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doi-link:hover {
  text-decoration: underline;
}

.copy-citation-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.copy-citation-btn:hover {
  background: #e2e8f0;
  color: var(--brand-blue);
}

/* ==========================================================================
   TRANSFERENCIA / MEDIA-LAB DICOM
   ========================================================================== */
.medialab-hero-card {
  background: var(--brand-deep-navy);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  padding: 48px;
  color: #ffffff;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-dark);
}

.medialab-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.medialab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.medialab-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.medialab-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 112, 243, 0.3);
}

.medialab-img-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.medialab-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.medialab-card:hover .medialab-img {
  transform: scale(1.06);
}

.medialab-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 14, 29, 0.85);
  backdrop-filter: blur(8px);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.medialab-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.medialab-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin-bottom: 12px;
}

.medialab-desc {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.medialab-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medialab-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.medialab-features li svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   CONTACTO Y MAPA DE GOOGLE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-card-info {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-authority-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-blue);
  padding: 20px;
  margin-bottom: 20px;
}

.contact-authority-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.contact-authority-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin-bottom: 8px;
}

.contact-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-mail-link:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 320px;
  display: block;
}

/* Formularios */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-deep-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   MODAL DE REGISTRO DICOM
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 29, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 28px 32px;
  background: var(--brand-deep-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-body {
  padding: 32px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--brand-deep-navy);
  color: #ffffff;
  border-left: 4px solid var(--brand-cyan);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  pointer-events: auto;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background: var(--brand-deep-navy);
  color: #cbd5e1;
  padding: 80px 0 30px 0;
  border-top: 1px solid var(--border-dark);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light-muted);
  margin-top: 16px;
  margin-bottom: 14px;
  max-width: 320px;
}

.footer-upse-wrap {
  margin-top: 12px;
  margin-bottom: 20px;
  max-width: 120px;
  max-height: 48px;
}

.footer-upse-logo {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 95px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-upse-logo:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 4px 10px rgba(0, 210, 255, 0.35));
}

.footer-social-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-cyan);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-light-muted);
  margin-bottom: 14px;
}

.footer-contact-item svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVIDAD Y BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-affiliation {
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-socials {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--brand-deep-navy);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .line-feature-content {
    grid-template-columns: 1fr;
  }

  .medialab-card {
    grid-template-columns: 1fr !important;
  }

  .medialab-card .medialab-body {
    order: 2 !important;
  }

  .medialab-card .medialab-img-wrap {
    order: 1 !important;
  }
}

/* ==========================================================================
   PÁGINA DE CONGRESOS & CALL FOR PAPERS (CONGRESOS.HTML)
   ========================================================================== */
.congreso-hero-banner {
  background: linear-gradient(135deg, var(--brand-deep-navy) 0%, #0a2540 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 42px;
  color: #ffffff;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-dark);
}

.congreso-hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.congreso-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
}

.congreso-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.congreso-meta-item svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.congreso-meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  font-weight: 700;
  margin-bottom: 4px;
}

.congreso-meta-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.cfp-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-white);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
  position: sticky;
  top: 90px;
  z-index: 100;
}

.cfp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.cfp-nav-link:hover {
  background: rgba(0, 112, 243, 0.08);
  color: var(--brand-blue);
}

.cfp-nav-link.active {
  background: var(--brand-blue);
  color: #ffffff;
}

.cfp-policy-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.cfp-policy-card:hover {
  border-color: rgba(0, 112, 243, 0.3);
  box-shadow: var(--shadow-md);
}

.cfp-policy-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.cfp-policy-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 112, 243, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cfp-policy-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin: 0;
}

.cfp-callout {
  border-left: 4px solid var(--brand-blue);
  background: #f0f7ff;
  padding: 18px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  font-size: 0.93rem;
  color: #1e3a8a;
  line-height: 1.6;
}

.cfp-callout.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.cfp-callout.danger {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

/* Precios / APC Cards */
.apc-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.apc-price-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-fast);
}

.apc-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.apc-price-card.featured {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 10px 25px rgba(0, 112, 243, 0.15);
}

.apc-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.apc-category-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep-navy);
  margin-bottom: 12px;
}

.apc-price-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-deep-navy);
  line-height: 1;
  margin-bottom: 6px;
}

.apc-price-number span {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.apc-price-desc {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.apc-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.apc-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.apc-features-list li svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.download-template-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .congreso-hero-banner {
    padding: 26px 20px;
  }
  .cfp-policy-card {
    padding: 24px 18px;
  }
  .download-template-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
