/* ============================================
   CV LANDING PAGE - STYLES
   Irving Barrios Mojica - Fiscal Consultant
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

  :root {
    --primary-color: #c0b283;
    --secondary-color: #dcd0c0;
    /* RGB aliases for use in rgba() when alpha is needed */
    --primary-rgb: 192, 178, 131; /* rgb(192,178,131) from --primary-color */
    --secondary-rgb: 220, 208, 192; /* rgb(220,208,192) from --secondary-color */
    --background-color: #f8f8f8;
    --text-color: #373737;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  background-color: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-square {
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
  border-radius: 3px;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.logo-text p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  letter-spacing: 0.05em;
}

/* .navigation {
  flex: 1;
} */

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  position: relative;
}

nav a:first-child {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0;
  border: none;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION (OPTIMIZED)
   ============================================ */
.hero {
  position: relative;
  padding: 8rem 2rem;
  min-height: 900px;
  display: flex;
  align-items: center;
  background: linear-gradient(110deg, #f5f0e8 50%, #ffffff 45%);
  overflow: visible;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 6rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.animate-scale-in {
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* ============================================
   PROFILE CARD (LEFT SIDE)
   ============================================ */
.profile-card {
  position: sticky;
  top: 6rem; /* distancia desde el top al hacer scroll */
  background-image: url(/images/IrvingBarriosMojica.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  display: flex;
  align-items: flex-end;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  text-align: center;
  height: 100%;
  max-height: 80vh;
  margin: 0 auto;
  /*align-self: center; */
  transition: transform 0.3s ease;
  width: 600px;
  max-width: 100%;
}

.profile-card:hover {
  transform: translateY(-6px);
}

.profile-info {
  padding: 0 1rem;
  backdrop-filter: blur(8px);
  width: 100%;
}

.profile-name {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.profile-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #cdd3dc;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.profile-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), #dcd0c0);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.profile-specialty {
  font-size: 1rem;
  color: #dedede;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
  font-weight: 400;
}

/* ============================================
   HERO CONTENT (RIGHT SIDE)
   ============================================ */
.hero-content {
  grid-column: 2 / 3;
  border-radius: 15px;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent; /* explicit white area */
  align-self: center;
  overflow: hidden;
  max-width: calc(100% - 2rem);
}

/* Header Styling */
.hero-header {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.hero-left {
  position: relative;
}

.hero-greeting {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

/* Description */
.hero-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-description p {
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #dcd0c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #333;
  border: 2px solid #333;
}

.btn-secondary:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .hero {
    padding: 5rem 2rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }

  .hero {
    background: linear-gradient(180deg, #f5f0e8 40%, #ffffff 60%);
  }

  .hero-content {
    padding: 2.5rem;
    grid-column: auto;
  }

  .hero-greeting {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }

  .profile-card {
    width: 100%;
  }

  .profile-image-wrapper {
    width: 150px;
    height: 150px;
    margin: -3rem auto 1.5rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .profile-specialty {
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 1.5rem;
    grid-column: auto;
  }

  .hero-header {
    margin-bottom: 1.5rem;
  }

  .hero-greeting {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-description p {
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .profile-image-wrapper {
    width: 120px;
    height: 120px;
    margin: -2.5rem auto 1rem;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  .profile-title {
    font-size: 0.9rem;
  }

  .profile-specialty {
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-greeting {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-description p {
    font-size: 0.85rem;
  }

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

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: #f8f8f8;
  padding: 3rem 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  border-radius: 50%;
  color: #333;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  color: #666;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-color);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 1rem;
  }

  .header-container {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .logo-section {
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .logo-square {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-text h1 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-text p {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navigation {
    flex: 1;
  }

  nav ul {
    display: none !important;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: 100vw;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 98;
    margin: 0;
    list-style: none;
    border: none;
  }

  nav ul.active {
    display: flex !important;
  }

  nav li {
    margin: 0;
    padding: 0;
  }

  nav a {
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Hero */
  .hero {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-card {
    width: 100%;
  }

  .profile-image-wrapper {
    width: 150px;
    height: 150px;
    margin: -3rem auto 1.5rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-greeting {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Timeline */
  .trajectory-section {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  .trajectory-container {
    max-width: 100%;
  }

  .trajectory-container .section-title {
    font-size: 2rem;
  }

  .trajectory-container .section-subtitle {
    font-size: 1rem;
  }

  .timeline-wrapper {
    padding: 2rem 0;
    max-width: 100%;
  }

  .timeline-wrapper::before {
    left: 20px;
    width: 2px;
    height: 100%;
  }

  .timeline-item {
    flex-direction: column !important;
    margin-left: 60px;
    margin-bottom: 2rem;
    position: relative;
    gap: 0;
    display: flex;
    align-items: flex-start;
  }

  .timeline-item:nth-child(even) {
    flex-direction: column !important;
    margin-left: 60px;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: column !important;
    margin-left: 60px;
  }

  .timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    z-index: 2;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--primary-color);
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 2px 8px var(--secondary-color);
  }

  .timeline-wrapper::before {
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
      var(--primary-color) 0%,
      var(--primary-color) 10%,
      var(--primary-color) 50%,
      var(--primary-color) 90%,
      var(--primary-color) 100%
    );
  }

  .timeline-item {
    flex-direction: column !important;
    margin-left: 60px;
    margin-bottom: 2.5rem;
    gap: 1rem;
    position: relative;
    align-items: flex-start;
    animation: slideInLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .timeline-item:nth-child(even) {
    flex-direction: column !important;
    margin-left: 60px;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: column !important;
    margin-left: 60px;
  }

  .timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 2.5px var(--primary-color), 0 3px 10px var(--primary-color);
    animation: pulseMarker 2.5s ease-in-out infinite;
  }

  .timeline-content {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    border-radius: 12px;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 4px 16px var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInContent 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--primary-color);
    border-color: var(--primary-color);
  }

  .timeline-image-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .timeline-item:hover .timeline-image-wrapper {
    transform: scale(1.06);
    box-shadow: 0 8px 20px var(--primary-color);
    border-color: var(--primary-color);
  }

  .timeline-text {
    flex: 1;
    width: 100%;
  }

  .timeline-text h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: #000;
    font-weight: 700;
    transition: color 0.3s ease;
  }

  .timeline-item:hover .timeline-text h3 {
    color: var(--primary-color);
  }

  .timeline-date {
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    padding: 0.55rem 1.1rem;
    border-radius: 18px;
    display: inline-block;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px var(--primary-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .timeline-item:hover .timeline-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--primary-color);
  }

  .timeline-description {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
    line-height: 1.65;
    transition: color 0.3s ease;
  }

  .timeline-item:hover .timeline-description {
    color: #333;
  }

  /* Testimonials Grid */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Header */
  header {
    padding: 0.75rem 0.5rem;
  }

  .header-container {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .logo-section {
    gap: 0.25rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .logo-square {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-text h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-text p {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  nav ul.active {
    max-height: 400px;
    overflow-y: auto;
  }

  nav a {
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-card {
    height: 60vh;
  }

  .profile-image-wrapper {
    width: 120px;
    height: 120px;
    margin: -2.5rem auto 1rem;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  .profile-title {
    font-size: 0.9rem;
  }

  .profile-specialty {
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-greeting {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-description p {
    font-size: 0.85rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
  }

  /* Timeline */
  .trajectory-section {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .trajectory-container {
    max-width: 100%;
  }

  .trajectory-container .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .trajectory-container .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .timeline-wrapper {
    padding: 2rem 0;
    max-width: 100%;
  }

  .timeline-wrapper::before {
    left: 14px;
    width: 2.5px;
    height: 100%;
    background: linear-gradient(180deg,
      var(--primary-color) 0%,
      var(--primary-color) 10%,
      var(--primary-color) 50%,
      var(--primary-color) 90%,
      var(--primary-color) 100%
    );
    box-shadow: 0 0 20px var(--primary-color);
    z-index: 0;
    pointer-events: none;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-left: 0;
    margin-bottom: 3rem;
    gap: 1.2rem;
    position: relative;
    align-items: flex-start;
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    z-index: 2;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
    margin-left: 0;
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: row !important;
    margin-left: 0;
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .timeline-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  .timeline-item:nth-child(2) {
    animation-delay: 0.3s;
  }

  .timeline-item:nth-child(3) {
    animation-delay: 0.5s;
  }

  .timeline-marker {
    position: absolute;
    left: 0px;
    top: 1rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 0 0 2.5px var(--primary-color), 0 2px 10px var(--primary-color);
    animation: pulseMarker 2.5s ease-in-out infinite;
    flex-shrink: 0;
  }

  .timeline-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, rgba(0, 82, 204, 0.02) 100%);
    border-radius: 11px;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 3px 12px var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInContent 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px var(--primary-color);
    border-color: var(--primary-color);
  }

  .timeline-content h3 {
    font-size: 1.1rem;
    margin: 0 0 0.4rem 0;
    color: #000;
    font-weight: 700;
    transition: color 0.3s ease;
    line-height: 1.3;
  }

  .timeline-item:hover .timeline-content h3 {
    color: var(--primary-color);
  }

  .timeline-date {
    font-size: 0.85rem;
    margin: 0 0 0.6rem 0;
    color: var(--primary-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    padding: 0.4rem 0.9rem;
    border-radius: 14px;
    display: inline-block;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 1.5px 5px rgba(0, 82, 204, 0.07);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
  }

  .timeline-item:hover .timeline-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    transform: translateX(3px);
  }

  .timeline-description {
    font-size: 0.85rem;
    margin: 0;
    color: #555;
    line-height: 1.55;
    transition: color 0.3s ease;
  }

  .timeline-item:hover .timeline-description {
    color: #333;
  }

  .timeline-image-wrapper {
    width: 95px;
    height: 95px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
    border: 1.5px solid rgba(0, 82, 204, 0.1);
    box-shadow: 0 3px 9px rgba(0, 82, 204, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .timeline-item:hover .timeline-image-wrapper {
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(0, 82, 204, 0.12);
    border-color: rgba(0, 82, 204, 0.18);
  }

  .timeline-text {
    flex: 1;
    min-width: 0;
  }

  /* CV Upload */
  .cv-upload {
    padding: 2rem 1rem;
  }

  .cv-upload h2 {
    font-size: 1.5rem;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }

  /* Footer */
  .footer-container {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 0.95rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.85rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-right {
  animation: fadeIn 0.8s ease-out;
}

.profile-image-wrapper {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

/* ============================================
   TRAJECTORY SECTION
   ============================================ */
.trajectory-section {
  background-color: #fff;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(0, 82, 204, 0.08);
}

.trajectory-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.trajectory-container .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #000;
}

.trajectory-container .section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-weight: 400;
}

.timeline-wrapper {
  position: relative;
  padding: 3rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(0, 82, 204, 0) 0%,
    var(--primary-color) 5%,
    var(--primary-color) 15%,
    var(--primary-color) 50%,
    var(--primary-color) 85%,
    var(--primary-color) 95%,
    rgba(0, 82, 204, 0) 100%
  );
  opacity: 0.8;
  transition: all 0.5s ease;
  box-shadow: 0 0 30px rgba(0, 82, 204, 0.15);
}

.timeline-item {
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
  width: 45%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: auto;
  width: 45%;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-color), 0 4px 16px var(--primary-color);
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulseMarker 2.5s ease-in-out infinite;
}

@keyframes pulseMarker {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--primary-color), 0 4px 16px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 0 8px var(--secondary-color), 0 4px 20px var(--primary-color);
  }
}

.timeline-item:hover .timeline-marker {
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 5px var(--primary-color), 0 8px 28px var(--primary-color);
  animation: none;
}

.timeline-content {
  align-items: flex-start;
  padding: 2.2rem;
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* background: linear-gradient(135deg, #fff 0%, rgba(0, 82, 204, 0.01) 100%); */
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1.5px solid var(--secondary-color);
  animation: slideInContent 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, box-shadow, border-color;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
}

.timeline-item:hover .timeline-content::before {
  left: 100%;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 82, 204, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 82, 204, 0.22);
  border-color: rgba(0, 82, 204, 0.15);
}

.timeline-item:nth-child(1) .timeline-content {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) .timeline-content {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) .timeline-content {
  animation-delay: 0.3s;
}

.timeline-image-wrapper {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1.5px solid rgba(0, 82, 204, 0.1);
}

.timeline-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-item:hover .timeline-image-wrapper {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 82, 204, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 82, 204, 0.2);
}

.timeline-item:hover .timeline-image-wrapper::after {
  opacity: 1;
}

.timeline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-image {
  transform: scale(1.12);
}

.timeline-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  position: relative;
  padding-bottom: 0.75rem;
  transition: color 0.3s ease;
  padding-left: 0;
}

.timeline-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), rgba(0, 82, 204, 0.3));
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
}

.timeline-item:hover .timeline-text h3 {
  color: var(--primary-color);
}

.timeline-item:hover .timeline-text h3::after {
  width: 80px;
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 82, 204, 0.05) 100%);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.1);
}

.timeline-item:hover .timeline-date {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.15) 0%, rgba(0, 82, 204, 0.08) 100%);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.timeline-description {
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 82, 204, 0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-description {
  border-left-color: rgba(0, 82, 204, 0.3);
  padding-left: 1.5rem;
}

/* ============================================
   TRAINING SECTION
   ============================================ */
.training-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 6rem 2rem;
  position: relative;
  border-top: 1px solid rgba(0, 82, 204, 0.08);
  border-bottom: 1px solid rgba(0, 82, 204, 0.08);
}

.training-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 82, 204, 0.1) 25%,
    rgba(0, 82, 204, 0.1) 75%,
    transparent 100%
  );
}

.training-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 82, 204, 0.1) 25%,
    rgba(0, 82, 204, 0.1) 75%,
    transparent 100%
  );
}

.training-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.training-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.training-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.training-text .section-title {
  color: #1a1a1a;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.training-text .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), rgba(0, 82, 204, 0.3));
  transition: width 0.3s ease;
}

.training-text:hover .section-title::after {
  width: 80px;
}

.training-intro {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid rgba(0, 82, 204, 0.1);
  transition: border-left-color 0.3s ease;
}

.training-text:hover .training-intro {
  border-left-color: rgba(0, 82, 204, 0.3);
}

.training-highlight {
  background: #ffffff;
  border: 1px solid rgba(0, 82, 204, 0.1);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  display: flex;
  gap: 2rem;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.05);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.training-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), rgba(0, 82, 204, 0.5));
  opacity: 0.8;
  transition: all 0.3s ease;
}

.training-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 82, 204, 0.1);
  border-color: rgba(0, 82, 204, 0.2);
}

.training-highlight:hover::before {
  width: 6px;
}

.training-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  color: var(--primary-color);
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.training-highlight:hover .training-icon {
  transform: scale(1.1);
}

.training-highlight-content h3 {
  color: #1a1a1a;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.training-highlight-content p {
  color: #555;
  margin: 0;
  line-height: 1.6;
  position: relative;
  /* padding-left: 1rem; */
  /* border-left: 2px solid rgba(0, 82, 204, 0.1); */
  transition: all 0.3s ease;
}


.training-courses {
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.training-courses {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--secondary-color);
  border: 1px solid var(--primary-color);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* seconda training-courses div*/
.training-courses:nth-child(odd) {
  margin-top: 1.5rem;
}

.training-courses:hover {
  box-shadow: 0 8px 30px var(--secondary-color);
  border-color: var(--secondary-color);
}

.training-courses h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.training-courses h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.courses-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.courses-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.courses-list li:hover {
  background: #f8f9fa;
  border-color: rgba(0, 82, 204, 0.1);
  transform: translateX(5px);
}

.courses-list li:nth-child(1) { animation-delay: 0.1s; }
.courses-list li:nth-child(2) { animation-delay: 0.2s; }
.courses-list li:nth-child(3) { animation-delay: 0.3s; }
.courses-list li:nth-child(4) { animation-delay: 0.4s; }
.courses-list li:nth-child(5) { animation-delay: 0.5s; }

.course-icon {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 82, 204, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.courses-list li:hover .course-icon {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.course-text {
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.course-text strong {
  color: #1a1a1a;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.courses-list li:hover {
  transform: translateX(8px);
}

.training-image-wrapper {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

.training-image-wrapper.sticky {
  position: sticky;
  top: 150px;
  z-index: 10;
}

.training-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.training-image-wrapper:hover .training-image {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 30px 60px var(--secondary-color);
}

.training-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Training Section */
@media (max-width: 768px) {
  .training-section {
    padding: 2.5rem 1rem;
  }

  .training-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .training-image-wrapper {
    position: relative;
    order: -1;
  }

  .training-image-wrapper.sticky {
    position: relative;
    top: 0;
  }

  .training-image {
    width: 100%;
    height: 250px;
  }

  .training-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .training-text .section-title {
    font-size: 2rem;
  }

  .training-intro {
    font-size: 1rem;
  }

  .training-image {
    height: 300px;
  }

  .training-image-accent {
    width: 100px;
    height: 100px;
    top: -10px;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .training-section {
    padding: 2rem 1rem;
  }

  .training-text .section-title {
    font-size: 1.5rem;
  }

  .training-highlight {
    flex-direction: column;
    padding: 1.5rem;
  }

  .training-icon {
    font-size: 2rem;
  }

  .training-image {
    height: 200px;
  }

  .courses-list li {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

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

/* ============================================
   PROJECTS SECTION UPDATES
   ============================================ */
.projects {
  background-color: #f8f8f8;
  padding: 5rem 2rem;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-container .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #000;
}

.projects-container .section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-weight: 400;
}

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

.project-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
}

.projects-grid .project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.projects-grid .project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.projects-grid .project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px var(--primary-color);
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================
   ADVANCED ANIMATIONS
   ============================================ */
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  60% {
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInContent {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes timelineMarkerPulse {
  0% {
    box-shadow: 0 0 0 0 var(--primary-color);
  }
  70% {
    box-shadow: 0 0 0 10px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 0 0 var(--primary-color);
  }
}

.timeline-marker::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-marker::after {
  inset: -4px;
  border-color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-content {
  animation-name: fadeInSlideRight;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 var(--primary-color);
  }
  70% {
    box-shadow: 0 0 0 10px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 0 0 var(--primary-color);
  }
}

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

@keyframes fadeInSlideRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  60% {
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--primary-color);
  }
  50% {
    box-shadow: 0 0 0 10px var(--primary-color);
  }
}

/* Scroll animations trigger */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
  opacity: 0;
  animation: fadeInSlide 0.8s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
}

/* ============================================
   RECOGNITION & PUBLICATIONS SECTION
   ============================================ */
.recognition-section {
  background: linear-gradient(135deg, #f8f6f3 0%, #f5f0e8 100%);
  padding: 6rem 2rem;
  position: relative;
  border-top: 1px solid var(--primary-color);
}

.recognition-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--primary-color);
}

.recognition-container {
  max-width: 1000px;
  margin: 0 auto;
}

.recognition-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #000;
}

.recognition-section .section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-weight: 400;
}

.recognition-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  padding: 2rem 0 2rem 100px;
  max-width: 900px;
  margin: 0 auto;
}

.recognition-timeline::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, 
    var(--primary-color),
    var(--primary-color) 20%,
    var(--primary-color) 80%,
    var(--primary-color)
  );
  border-radius: 1px;
}

.recognition-item {
  position: relative;
  animation: fadeInSlide 0.8s ease-out forwards;
  opacity: 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-left: 20px;
}

.recognition-timeline .recognition-item:nth-child(1) {
  animation-delay: 0.1s;
}

.recognition-timeline .recognition-item:nth-child(2) {
  animation-delay: 0.2s;
}

.recognition-timeline .recognition-item:nth-child(3) {
  animation-delay: 0.3s;
}

.recognition-timeline .recognition-item:nth-child(4) {
  animation-delay: 0.4s;
}

.recognition-icon-wrapper {
  position: absolute;
  left: -93px;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.recognition-icon {
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 2px 8px var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}

.recognition-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  transition: all 0.4s ease;
}

.recognition-item:hover .recognition-icon::after {
  inset: -4px;
  border-color: var(--primary-color);
}

.recognition-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.recognition-item:hover .recognition-icon svg {
  transform: scale(1.1);
}

.recognition-item:hover .recognition-icon {
  background-color: #f0f7ff;
  color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-color);
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.recognition-content {
  flex: 1;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  border-left: 3px solid var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 20px rgba(0, 82, 204, 0.05),
    0 0 0 1px rgba(0, 82, 204, 0.08);
}

.recognition-content::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.recognition-item:hover .recognition-content::before {
  opacity: 1;
}

.recognition-item:hover .recognition-content {
  box-shadow: 0 4px 16px var(--primary-color);
  transform: translateX(8px);
}

.recognition-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  position: relative;
  padding-bottom: 1rem;
}

.recognition-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  transition: width 0.3s ease;
}

.recognition-item:hover .recognition-content h3::after {
  width: 80px;
}

.recognition-content h3 em {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.recognition-content h3 em::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.recognition-item:hover .recognition-content h3 em::before {
  transform: scaleX(1);
}

.recognition-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 1.5rem 0;
  position: relative;
  padding-left: 1rem;
}

.recognition-item:hover .recognition-content p::before {
  opacity: 0.4;
  transform: scaleY(1.1);
}

.recognition-badge {
  display: inline-flex;
  align-items: center;
  background-color: #f8f9fa;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

.recognition-item:hover .recognition-badge {
  background-color: rgba(0, 82, 204, 0.05);
  color: #ffff;
  border-color: rgba(0, 82, 204, 0.25);
}

.recognition-item:hover .recognition-badge {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-color);
}

.recognition-footer {
  margin-top: 4rem;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px var(--primary-color),
    0 0 0 1px var(--primary-color);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recognition-footer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.recognition-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    transparent 50%,
    var(--primary-color) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recognition-footer:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px var(--primary-color),
    0 0 0 1px var(--primary-color);
}

.recognition-footer:hover::after {
  opacity: 1;
}

.recognition-footer p {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
}

/* Responsive Recognition Section */
@media (max-width: 768px) {
  .recognition-section {
    padding: 3rem 1rem;
  }

  .recognition-timeline {
    padding: 0 0 0 40px;
  }

  .recognition-timeline::before {
    left: 15px;
  }

  .recognition-icon-wrapper {
    left: -30px;
  }

  .recognition-icon {
    width: 35px;
    height: 35px;
  }

  .recognition-icon svg {
    width: 18px;
    height: 18px;
  }

  .recognition-content {
    padding: 1.25rem;
  }

  .recognition-section .section-title {
    font-size: 2rem;
  }

  .recognition-footer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .recognition-section {
    padding: 2rem 1rem;
  }

  .recognition-timeline {
    padding: 0 0 0 30px;
    gap: 2rem;
  }

  .recognition-timeline::before {
    left: 10px;
  }

  .recognition-icon-wrapper {
    left: -22px;
  }

  .recognition-icon {
    width: 30px;
    height: 30px;
  }

  .recognition-icon svg {
    width: 16px;
    height: 16px;
  }

  .recognition-content {
    padding: 1rem;
    border-left: 2px solid var(--primary-color);
  }

  .recognition-content h3 {
    font-size: 1rem;
  }

  .recognition-content p {
    font-size: 0.9rem;
  }

  .recognition-section .section-title {
    font-size: 1.5rem;
  }

  .recognition-footer {
    padding: 1rem;
    margin-top: 2rem;
  }

  .recognition-footer p {
    font-size: 0.9rem;
  }
}

.tl-elegant-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Línea central con gradiente */
.tl-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #3498db 10%, 
    #3498db 90%, 
    transparent 100%);
  transform: translateX(-50%);
  z-index: 1;
}

/* Elementos de la línea de tiempo */
.tl-timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  animation: tl-fadeInUp 0.8s ease forwards;
}

.tl-timeline-item:nth-child(2) { animation-delay: 0.1s; }
.tl-timeline-item:nth-child(3) { animation-delay: 0.2s; }
.tl-timeline-item:nth-child(4) { animation-delay: 0.3s; }
.tl-timeline-item:nth-child(5) { animation-delay: 0.4s; }
.tl-timeline-item:nth-child(6) { animation-delay: 0.5s; }
.tl-timeline-item:nth-child(7) { animation-delay: 0.6s; }

/* Alternar posición izquierda/derecha */
.tl-timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}



/* Marcador de tiempo */
.tl-timeline-marker {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.tl-marker-circle {
  width: 24px;
  height: 24px;
  border: 4px solid var(--tl-item-color);
  background: white;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tl-timeline-item:hover .tl-marker-circle {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tl-year {
  margin-top: 12px;
  font-weight: 600;
  color: var(--tl-item-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.tl-timeline-item:hover .tl-year {
  transform: scale(1.1);
  font-weight: 700;
}

/* Efecto de pulso para posición actual */
.tl-current-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--tl-item-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: tl-pulse 2s infinite;
}

/* Contenido de la tarjeta */
.tl-timeline-content {
  flex: 1;
  margin: 0 40px;
}

.tl-content-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-left: 4px solid var(--tl-item-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.tl-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tl-item-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.tl-content-card:hover::before {
  opacity: 1;
}

/* Badge para posición actual */
.tl-current-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: tl-badgePulse 3s infinite;
}

/* Tipografía mejorada */
.tl-position-title {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tl-institution {
  color: var(--tl-item-color);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.tl-period {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-style: italic;
}

.tl-description {
  color: #5d6d7e;
  line-height: 1.6;
  margin: 0;
}

/* Animaciones */
@keyframes tl-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tl-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* =============================================
   BOOK PROMOTION SECTION
   ============================================= */

.book-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 82, 204, 0.2), transparent);
}

.book-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.book-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: bookFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.2s;
}

/* Book Cover */
.book-cover-wrapper {
  position: relative;
  perspective: 1500px;
  animation: bookFloat 6s ease-in-out infinite;
}

.book-cover-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 82, 204, 0.2), transparent);
  filter: blur(15px);
  z-index: -1;
}

.book-cover-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 82, 204, 0.1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotateY(-8deg) rotateX(2deg);
}

.book-cover-wrapper:hover .book-cover-image {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.2),
    0 12px 30px rgba(0, 82, 204, 0.15);
}

.book-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px var(--primary-color);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.book-badge svg {
  fill: #ffd700;
  stroke: none;
}

/* Book Details */
.book-details {
  animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.4s;
  opacity: 0;
}

.book-label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 82, 204, 0.05));
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 82, 204, 0.2);
}

.book-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1a1a1a, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.book-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(0, 82, 204, 0.1);
}

.book-author svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.book-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.book-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 35px;
}

.book-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #444;
}

.book-highlight-item svg {
  color: #27ae60;
  flex-shrink: 0;
}

/* Book CTAs */
.book-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}

.book-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 8px 20px var(--secondary-color);
}

.book-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--secondary-color);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.book-btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
}

.book-btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--secondary-color);
}

/* Animations */
@keyframes bookFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bookFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 82, 204, 0.4);
  }
}

/* Responsive Book Section */
@media screen and (max-width: 992px) {
  .book-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .book-cover-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }

  .book-cover-image {
    transform: rotateY(0) rotateX(0);
  }

  .book-badge {
    right: 50%;
    transform: translateX(50%);
  }

  .book-author {
    justify-content: center;
  }

  .book-highlights {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .book-cta {
    justify-content: center;
  }

  .book-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .book-section {
    padding: 60px 0;
  }

  .book-title {
    font-size: 1.75rem;
  }

  .book-description {
    font-size: 1rem;
  }

  .book-cover-wrapper {
    max-width: 300px;
  }
}

@media screen and (max-width: 480px) {
  .book-section {
    padding: 50px 0;
  }

  .book-title {
    font-size: 1.5rem;
  }

  .book-btn {
    width: 100%;
    justify-content: center;
  }

  .book-highlights {
    gap: 12px;
  }

  .book-label {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* =============================================
   ADDITIONAL PUBLICATIONS SECTION
   ============================================= */

.publications-additional {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid rgba(0, 82, 204, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: publicationsFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.6s;
}

.publications-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.publications-subtitle::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.publication-card {
  background: white;
  border: 1px solid rgba(0, 82, 204, 0.1);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: publicationCardFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.publication-card:nth-child(1) { animation-delay: 0.7s; }
.publication-card:nth-child(2) { animation-delay: 0.8s; }
.publication-card:nth-child(3) { animation-delay: 0.9s; }
.publication-card:nth-child(4) { animation-delay: 1s; }
.publication-card:nth-child(5) { animation-delay: 1.1s; }

.publication-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--primary-color);
  border-color: var(--secondary-color);
}

.publication-card:hover::before {
  transform: scaleY(1);
}

.publication-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 82, 204, 0.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.publication-card:hover .publication-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.publication-content {
  flex: 1;
}

.publication-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(0, 82, 204, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.publication-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.publication-card:hover .publication-title {
  color: var(--primary-color);
}

.publication-institution {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

.publication-year {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* Publications Animations */
@keyframes publicationsFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes publicationCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Publications */
@media screen and (max-width: 992px) {
  .publications-additional {
    margin-top: 60px;
    padding-top: 50px;
  }

  .publications-subtitle {
    font-size: 1.75rem;
  }

  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media screen and (max-width: 768px) {
  .publications-additional {
    margin-top: 50px;
    padding-top: 40px;
  }

  .publications-subtitle {
    font-size: 1.5rem;
  }

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

  .publication-card {
    padding: 25px;
    gap: 15px;
  }

  .publication-icon {
    width: 45px;
    height: 45px;
  }

  .publication-title {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publications-additional {
    margin-top: 40px;
    padding-top: 30px;
  }

  .publications-subtitle {
    font-size: 1.3rem;
  }

  .publication-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .publication-icon {
    margin: 0 auto;
  }

  .publication-title {
    font-size: 0.95rem;
  }

  .publication-institution {
    font-size: 0.9rem;
  }
}

/* =============================================
   GALLERY SECTION (Pinterest-style Masonry)
   ============================================= */

.gallery-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 82, 204, 0.2), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 20px;
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: galleryFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 82, 204, 0.2);
  z-index: 10;
}

/* Staggered animation delays */
.gallery-item[data-index="1"] { animation-delay: 0.1s; }
.gallery-item[data-index="2"] { animation-delay: 0.15s; }
.gallery-item[data-index="3"] { animation-delay: 0.2s; }
.gallery-item[data-index="4"] { animation-delay: 0.25s; }
.gallery-item[data-index="5"] { animation-delay: 0.3s; }
.gallery-item[data-index="6"] { animation-delay: 0.35s; }
.gallery-item[data-index="7"] { animation-delay: 0.4s; }
.gallery-item[data-index="8"] { animation-delay: 0.45s; }
.gallery-item[data-index="9"] { animation-delay: 0.5s; }
.gallery-item[data-index="10"] { animation-delay: 0.55s; }
.gallery-item[data-index="11"] { animation-delay: 0.6s; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* gradient changed from blue to neutral grays */
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.85), rgba(128, 128, 128, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: white;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.9);
  animation: modalImageAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: rgba(0, 82, 204, 0.9);
  border-color: rgba(0, 82, 204, 1);
  transform: scale(1.1);
}

.gallery-modal-close {
  top: 30px;
  right: 30px;
}

.gallery-modal-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Gallery Animations */
@keyframes galleryFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalImageAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Gallery */
@media screen and (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 992px) {
  .gallery-section {
    padding: 80px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .gallery-section {
    padding: 60px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    grid-auto-rows: 15px;
  }
  
  .gallery-modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .gallery-modal-prev,
  .gallery-modal-next {
    width: 40px;
    height: 40px;
  }
  
  .gallery-modal-prev {
    left: 15px;
  }
  
  .gallery-modal-next {
    right: 15px;
  }
}

@media screen and (max-width: 480px) {
  .gallery-section {
    padding: 50px 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    grid-auto-rows: auto;
  }
  
  .gallery-item {
    height: auto !important;
  }
  
  .gallery-item img {
    height: auto;
    aspect-ratio: 4/3;
  }
  
  .gallery-modal-image {
    max-width: 95%;
    max-height: 85%;
  }
  
  .gallery-modal-counter {
    bottom: 15px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

@keyframes tl-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
}

@keyframes tl-badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(39, 174, 96, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tl-timeline-line {
    left: 30px;
  }
  
  .tl-timeline-item {
    flex-direction: row !important;
    margin-bottom: 60px;
  }
  
  .tl-timeline-marker {
    min-width: 60px;
  }
  
  .tl-timeline-content {
    margin-left: 10px !important;
    margin-right: 0 !important;
  }
  
  .tl-content-card {
    padding: 20px;
  }
  
  .tl-position-title {
    font-size: 1.2rem;
  }
  
  .tl-current-badge {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin-bottom: 10px;
  }
}

/* Efectos de scroll */
.tl-timeline-item {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Asegurar que no afecte otros elementos */
.trajectory-section {
  isolation: isolate;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.trajectory-container {
  position: relative;
}
