/* ============================================
   MEJORAS ESTÉTICAS AVANZADAS - PORTFOLIO ESTEBAN RUSSO
   Transiciones suaves, efectos modernos y experiencia premium
   ============================================ */

/* ============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================ */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #FCDA69 0%, #8973F6 100%);
  --shadow-glow: 0 0 40px rgba(137, 115, 246, 0.3);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FONDO ANIMADO CON GRADIENTE
   ============================================ */
body {
  background: linear-gradient(-45deg, #ffffff, #f8f9fa, #fef3e2, #f0ebff);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow-x: hidden;
}

/* Partículas de fondo sutiles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(252, 218, 105, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(137, 115, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(252, 218, 105, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

/* ============================================
   ANIMACIONES KEYFRAMES
   ============================================ */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

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

@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 shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(137, 115, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(137, 115, 246, 0.6); }
}

/* ============================================
   HEADER MEJORADO
   ============================================ */
.header__Content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header__Content.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.header_name {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-smooth);
  cursor: pointer;
  min-width: fit-content;
  display: inline-block;
}

.header_name:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.header__navList a {
  position: relative;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.header__navList a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.header__navList a:hover::before {
  width: 80%;
}

.header__navList a:hover {
  color: #8973F6;
  background: rgba(137, 115, 246, 0.05);
}

.header__icon {
  transition: var(--transition-smooth);
  filter: grayscale(0.5);
}

.header__icon:hover {
  filter: grayscale(0);
  transform: translateY(-3px) scale(1.1);
}

/* ============================================
   SECCIÓN HERO - EFECTOS PREMIUM
   ============================================ */
.main__section {
  animation: fadeInUp 1s ease-out;
  position: relative;
}

.main__sectionTittle {
  animation: fadeInLeft 1s ease-out;
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Efecto de brillo al pasar el mouse sobre el título */
.main__sectionTittle:hover {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   WRAPPER DEL TÍTULO E IMAGEN
   ============================================ */
.main__titleWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 30px;
  position: relative;
}

.main__titleContent {
  flex: 1;
}

/* Imagen de perfil fija al lado del título */
.main__profileImage {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  z-index: 5;
}

.profile-image-wrapper {
  position: relative;
  width: 320px;
  height: auto;
}

/* Imagen con efectos sutiles - mantiene forma original */
.main__profileImage .main__sectionImg {
  width: 100%;
  height: auto;
  display: block;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 25px 50px rgba(137, 115, 246, 0.3));
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.main__profileImage .main__sectionImg:hover {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 30px 60px rgba(137, 115, 246, 0.45));
}

/* Efecto de brillo sutil detrás de la imagen */
.profile-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(
    circle,
    rgba(137, 115, 246, 0.3),
    rgba(252, 218, 105, 0.2),
    transparent
  );
  filter: blur(40px);
  z-index: 1;
  opacity: 0.6;
  animation: pulse 4s ease-in-out infinite;
}

.profile-image-wrapper:hover .profile-glow {
  opacity: 0.9;
}

/* Mantener la imagen original para compatibilidad */
.main__sectionBanner .main__sectionImg {
  animation: float 6s ease-in-out ;
  filter: drop-shadow(0 25px 50px rgba(137, 115, 246, 0.2));
  transition: var(--transition-smooth);
  position: relative;
}

.main__sectionBanner .main__sectionImg:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 30px 60px rgba(137, 115, 246, 0.35));
}

/* Botón con efectos avanzados */
.main__sectionButton {
  position: relative;
  overflow: hidden;
  background: var(--gradient-accent);
  box-shadow: 0 10px 30px rgba(137, 115, 246, 0.3);
  transition: var(--transition-smooth);
  border: none;
}

.main__sectionButton::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.main__sectionButton:hover::before {
  width: 400px;
  height: 400px;
}

.main__sectionButton::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

.main__sectionButton:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px rgba(137, 115, 246, 0.5);
  animation: glow 2s ease-in-out infinite;
}

.main__sectionButton:active {
  transform: translateY(-2px) scale(1.02);
}

.main__sectionLink {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* ============================================
   SECCIÓN SKILLS - GLASSMORPHISM
   ============================================ */
.sectionSkills {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.section__infoGroup {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.section__infoGroup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 218, 105, 0.15), transparent);
  transition: left 0.8s ease;
}

.section__infoGroup:hover {
  transform: translateX(15px) translateY(-10px);
  box-shadow: -10px 20px 60px rgba(137, 115, 246, 0.25);
  border-color: rgba(137, 115, 246, 0.4);
  background: rgba(255, 255, 255, 0.85);
}

.section__infoGroup:hover::before {
  left: 100%;
}

.sectionSkills__number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
  transition: var(--transition-smooth);
  display: inline-block;
}

.section__infoGroup:hover .sectionSkills__number {
  opacity: 1;
  transform: scale(1.15) rotate(-5deg);
}

.section__dash {
  position: relative;
  background: linear-gradient(90deg, #161616 0%, #8973F6 50%, #FCDA69 100%);
  height: 3px;
  box-shadow: 0 2px 15px rgba(137, 115, 246, 0.2);
  border-radius: 2px;
}

/* ============================================
   SECCIÓN EXPERIENCIA - TIMELINE MODERNA
   ============================================ */
.sectionExperience {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.sectionExperience__infoGroup {
  padding: 25px 30px !important;
  margin-bottom: 25px !important;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  /* border-left eliminado - ahora usamos el timeline */
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow: visible;
}

/* Estilos decorativos de ::before y ::after eliminados - ahora usamos el timeline */

.sectionExperience__infoGroup:hover {
  transform: translateX(15px) translateY(-3px);
  box-shadow: -8px 15px 50px rgba(137, 115, 246, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

/* Mejorar el estilo del título de trabajo */
.sectionExperience__infoGroup .section__infoTitle {
  font-size: 1.4rem !important;
  line-height: 1.3;
  margin: 0 !important;
  width: 100% !important;
  color: #1a1a1a;
  font-weight: 700;
  transition: color 0.3s ease;
}

.sectionExperience__infoGroup:hover .section__infoTitle {
  color: #8973F6;
}

/* Fecha de la experiencia */
.sectionExperience__infoGroup > p.section__infoDetail:first-child {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #8973F6 !important;
  padding-left: 0 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Empresa/Ubicación */
.section__infoTitle .section__infoDetail {
  display: block;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #666 !important;
  margin-top: 5px !important;
  padding-left: 0 !important;
  line-height: 1.2;
}

/* Descripción de la experiencia */
.sectionExperience__infoGroup p[style] {
  margin-top: 12px !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: #555 !important;
  text-align: justify;
  padding: 12px 15px;
  background: rgba(137, 115, 246, 0.03);
  border-radius: 10px;
  /* border-left eliminado - ahora usamos el timeline */
  transition: all 0.3s ease;
}

.sectionExperience__infoGroup:hover p[style] {
  background: rgba(137, 115, 246, 0.06);
  /* border-left-color eliminado */
}

/* Badge decorativo para destacar */
/* Estilos especiales del primer elemento eliminados - ahora usamos el timeline */

.sectionExperience__infoGroup:first-of-type .section__infoDetail:first-child {
  color: #FCDA69 !important;
}

/* ============================================
   TIMELINE DE EXPERIENCIAS
   ============================================ */
.experience-timeline {
  position: relative;
  padding: 30px 0;
  margin-top: 20px;
}

/* Línea vertical del timeline */
.experience-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    rgba(137, 115, 246, 0.8) 0%,
    rgba(137, 115, 246, 0.4) 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  animation: fadeInLeft 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Punto del timeline */
.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid #8973F6;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(137, 115, 246, 0.1);
  transition: var(--transition-smooth);
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(137, 115, 246, 0.15);
  border-color: #FCDA69;
}

/* Contenido del timeline */
.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(137, 115, 246, 0.15);
}

.timeline-date {
  color: #8973F6;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(137, 115, 246, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.timeline-title {
  color: #2c2c2c;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-company {
  color: #555;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.timeline-company::before {
  content: '📍';
  margin-right: 6px;
}

.timeline-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

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

/* Iconos de tecnologías con efectos 3D */
.sectionExperience__listIcon {
  transition: var(--transition-smooth);
  filter: grayscale(0.4) brightness(0.95);
  position: relative;
}

.sectionExperience__listItem {
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.sectionExperience__listItem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(137, 115, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.5s ease;
  z-index: -1;
}

.sectionExperience__listItem:hover {
  transform: translateY(-15px) scale(1.15) rotate(5deg);
}

.sectionExperience__listItem:hover::before {
  width: 150%;
  height: 150%;
}

.sectionExperience__listItem:hover .sectionExperience__listIcon {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 10px 20px rgba(137, 115, 246, 0.4));
}

/* ============================================
   PROYECTOS - CARDS PREMIUM
   ============================================ */
.sectionProjects {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.sectionProjects__workDone {
  padding: 25px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.sectionProjects__workDone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(137, 115, 246, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sectionProjects__workDone:hover::before {
  opacity: 1;
  animation: float 8s ease-in-out infinite;
}

.sectionProjects__workDone:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 80px rgba(137, 115, 246, 0.2);
  border-color: rgba(137, 115, 246, 0.4);
}

.sectionProject__imgWebs {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 15px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: block;
}

.sectionProject__imgWebs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(137, 115, 246, 0.2), rgba(252, 218, 105, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sectionProjects__workDone:hover .sectionProject__imgWebs {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(137, 115, 246, 0.3);
}

.sectionProject__imgArrow {
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sectionProject__titleIcon:hover .sectionProject__imgArrow {
  transform: translateX(15px) rotate(10deg) scale(1.1);
}

/* ============================================
   TESTIMONIOS - CARDS ELEGANTES
   ============================================ */
.sectionTestimonies {
  animation: fadeInUp 1s ease-out 0.8s both;
}


.sectionTestimonies__carousel .content {
  background: var(--gradient-accent) !important;
  padding: 35px !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 50px rgba(137, 115, 246, 0.25) !important;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.sectionTestimonies__carousel .content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sectionTestimonies__carousel .item:hover .content {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 70px rgba(137, 115, 246, 0.35) !important;
}

.sectionTestimonies__carousel .item:hover .content::before {
  transform: scaleX(1);
}

.img-area img {
  transition: var(--transition-smooth);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.sectionTestimonies__carousel .item:hover .img-area img {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sectionTestimonies__quotes {
  font-size: 4rem !important;
  color: rgba(255, 255, 255, 0.25) !important;
  line-height: 0;
}

/* ============================================
   CONTACTO - FORMULARIO PREMIUM
   ============================================ */
.sectionDiscussProjects {
  animation: fadeInUp 1s ease-out 1s both;
}

.sectionDiscussProject__typeWord {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.sectionDiscussProject__typeWord:hover {
  box-shadow: 0 25px 80px rgba(137, 115, 246, 0.15);
}

.form-control {
  border: 2px solid rgba(137, 115, 246, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.form-control:focus {
  border-color: #8973F6;
  box-shadow: 0 0 0 5px rgba(137, 115, 246, 0.1);
  background: white;
  outline: none;
  transform: translateY(-2px);
}

.form-label {
  font-weight: 600;
  color: #3a3a3a;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.sectionDiscussProject__contact {
  padding: 25px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sectionDiscussProject__contact:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(137, 115, 246, 0.1);
}

/* Mejorar iconos de contacto */
.sectionDiscussProject__icon {
  transition: var(--transition-smooth);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.sectionDiscussProject__mail:hover .sectionDiscussProject__icon {
  filter: drop-shadow(0 6px 12px rgba(137, 115, 246, 0.3));
}

/* ============================================
   TÍTULOS CON EFECTOS
   ============================================ */
.section__title {
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section__title:hover::after {
  width: 100%;
}

/* ============================================
   BARRA DE PROGRESO DE LECTURA
   ============================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: var(--gradient-accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 2px 10px rgba(137, 115, 246, 0.5);
}

/* ============================================
   BOTÓN SCROLL TO TOP
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(137, 115, 246, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-to-top:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 15px 40px rgba(137, 115, 246, 0.6);
}

/* ============================================
   CURSOR PERSONALIZADO (OPCIONAL)
   ============================================ */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #8973F6;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s ease, border-color 0.2s ease;
  mix-blend-mode: difference;
}

.custom-cursor.active {
  transform: scale(2);
  border-color: #FCDA69;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 992px) {
  .section__infoGroup:hover {
    transform: translateX(8px) translateY(-5px);
  }

  .sectionProjects__workDone:hover {
    transform: translateY(-8px);
  }

  /* Timeline de experiencias en tablets */
  .timeline-item {
    padding-left: 50px;
    margin-bottom: 35px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-title {
    font-size: 1.2rem;
  }

  /* Imagen de perfil en tablets */
  .main__titleWrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .main__profileImage {
    position: relative;
    top: 0;
    order: -1;
  }

  .profile-image-wrapper {
    width: 250px;
    height: auto;
  }

  .main__titleContent {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .main__sectionBanner .main__sectionImg {
    animation: float 4s ease-in-out infinite;
  }

  .section__infoGroup {
    padding: 20px;
  }

  .sectionProjects__workDone {
    padding: 20px;
    margin-bottom: 25px;
  }

  .sectionProject__imgWebs {
    max-height: 220px;
  }

  /* Imagen de perfil en móviles - MEJOR CENTRADO */
  .profile-image-wrapper {
    width: 220px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .main__profileImage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
  }

  .main__titleWrapper {
    gap: 20px;
    margin-bottom: 25px;
    text-align: center;
  }

  /* Mejorar visibilidad del efecto glow en móviles */
  .profile-glow {
    opacity: 0.8;
    filter: blur(30px);
  }

  /* Efectos táctiles para cards de proyectos */
  .sectionProjects__workDone:active {
    transform: translateY(-8px) scale(0.98);
    box-shadow: 0 20px 50px rgba(137, 115, 246, 0.2);
  }

  /* Efectos táctiles para skills */
  .section__infoGroup:active {
    transform: translateX(8px) translateY(-5px) scale(0.98);
  }

  /* Contacto - mejorar cards */
  .sectionDiscussProject__contact {
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
  }

  .sectionDiscussProject__mail {
    align-items: center;
    gap: 12px;
  }

  .sectionDiscussProject__icon {
    width: 60px;
    height: 60px;
  }

  .sectionExperience__infoGroup {
    padding: 20px !important;
    margin-bottom: 0px !important;
  }

  .sectionExperience__infoGroup .section__infoTitle {
    font-size: 1.2rem !important;
  }

  .sectionExperience__infoGroup p[style] {
    font-size: 0.85rem !important;
    padding: 10px 12px;
  }

  /* Timeline de experiencias en móviles */
  .experience-timeline {
    padding: 20px 0;
  }

  .experience-timeline::before {
    left: 15px;
    width: 2px;
  }

  .timeline-item {
    padding-left: 45px;
    margin-bottom: 30px;
  }

  .timeline-dot {
    left: 7px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .timeline-content {
    padding: 18px;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-company {
    font-size: 0.88rem;
  }

  .timeline-description {
    font-size: 0.85rem;
  }

  .sectionDiscussProject__typeWord {
    padding: 25px;
  }

  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

/* ====================================
   OPTIMIZACIÓN PARA iPhone XR y similares (391px - 450px)
   ==================================== */
@media screen and (max-width: 450px) and (min-width: 391px) {
  /* Contacto - cards de email y dirección */
  .sectionDiscussProject__contact {
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
  }

  .sectionDiscussProject__mail {
    align-items: center;
    gap: 12px;
  }

  .sectionDiscussProject__icon {
    width: 52px;
    height: 52px;
  }

  .sectionDiscussProject__title {
    flex: 1;
    min-width: 0;
  }

  .sectionDiscussProject__title .section__infoTitle {
    font-size: 1.1rem !important;
    line-height: 1.4;
    word-break: break-word;
  }
}

@media screen and (max-width: 576px) {
  /* ====================================
     MEJORAS ESPECÍFICAS PARA 375x667px Y SUPERIORES
     ==================================== */

  /* Imagen de perfil - CENTRADO PERFECTO */
  .profile-image-wrapper {
    width: 190px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .main__profileImage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    padding: 0;
  }

  .main__profileImage .main__sectionImg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(137, 115, 246, 0.35));
  }

  /* Mejorar el efecto glow en móviles pequeños */
  .profile-glow {
    opacity: 0.7;
    filter: blur(25px);
  }

  /* Wrapper del título mejor centrado */
  .main__titleWrapper {
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 10px;
  }

  /* Experiencia */
  .sectionExperience__infoGroup {
    padding: 18px !important;
    margin-bottom: 18px !important;
  }

  .sectionExperience__infoGroup .section__infoTitle {
    font-size: 1.1rem !important;
  }

  .section__infoTitle .section__infoDetail {
    font-size: 0.9rem !important;
  }

  .sectionExperience__infoGroup > p.section__infoDetail:first-child {
    font-size: 0.75rem !important;
  }

  .sectionExperience__infoGroup p[style] {
    font-size: 0.8rem !important;
    padding: 8px 10px;
    line-height: 1.5 !important;
  }

  /* Efectos táctiles mejorados para experiencia */
  .sectionExperience__infoGroup:active {
    transform: translateX(5px) translateY(-2px) scale(0.98);
  }

  /* Proyectos en móviles - CON EFECTOS PRESERVADOS */
  .sectionProjects__workDone {
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  /* Efecto táctil para proyectos */
  .sectionProjects__workDone:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 18px 45px rgba(137, 115, 246, 0.25);
  }

  .sectionProject__imgWebs {
    max-height: 200px;
    border-radius: 12px;
  }

  /* Mejorar cards de skills en móviles */
  .section__infoGroup {
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 16px;
  }

  /* Efecto táctil para skills */
  .section__infoGroup:active {
    transform: translateX(5px) translateY(-3px) scale(0.98);
    box-shadow: -8px 15px 40px rgba(137, 115, 246, 0.2);
  }

  /* Timeline en móviles pequeños */
  .timeline-item {
    padding-left: 40px;
    margin-bottom: 25px;
  }

  .timeline-content {
    padding: 16px;
    border-radius: 10px;
  }

  /* Efecto táctil para timeline */
  .timeline-item:active .timeline-content {
    transform: translateX(5px) scale(0.98);
  }

  /* Formulario de contacto optimizado */
  .sectionDiscussProject__typeWord {
    padding: 20px;
    border-radius: 16px;
  }

  .form-control {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  /* Testimonios - mejor en móvil */
  .sectionTestimonies__carousel .content {
    padding: 25px !important;
    border-radius: 16px !important;
  }

  /* Botón scroll to top más pequeño */
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 24px;
  }

  /* Header más compacto */
  .header__Content {
    padding: 0.8rem 1rem;
  }

  .header_name {
    font-size: 1.5rem;
  }
}

/* ====================================
   OPTIMIZACIÓN ESPECÍFICA PARA 375x667px (iPhone SE, Galaxy S8+)
   ==================================== */
@media screen and (max-width: 390px) and (min-width: 360px) {
  /* Imagen de perfil - CENTRADO ABSOLUTO */
  .profile-image-wrapper {
    width: 180px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .main__profileImage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    padding: 0;
  }

  .main__profileImage .main__sectionImg {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 35px rgba(137, 115, 246, 0.4));
  }

  /* Ajustar glow para mejor rendimiento */
  .profile-glow {
    opacity: 0.6;
    filter: blur(20px);
  }

  /* Wrapper del título */
  .main__titleWrapper {
    gap: 12px;
    margin-bottom: 18px;
    text-align: center;
    padding: 0 8px;
  }

  /* Optimizar cards */
  .section__infoGroup {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .sectionProjects__workDone {
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  /* Timeline más compacto */
  .timeline-content {
    padding: 14px;
  }

  .timeline-title {
    font-size: 1.05rem;
  }

  /* Formulario más compacto */
  .sectionDiscussProject__typeWord {
    padding: 18px;
  }

  .form-control {
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  /* Botones más pequeños */
  .main__sectionButton {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Header más compacto */
  .header_name {
    font-size: 1.4rem;
  }

  /* Iconos de tecnología más pequeños */
  .sectionExperience__listIcon {
    width: 35px;
    height: 35px;
  }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
