@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================
RESET Y CONFIGURACIÓN GLOBAL
========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hero-bg: #0F172A;           /* Azul Noche Profundo para Encabezado */
  --body-bg: #F8F9FA;           /* Gris Marfil Claro para el Cuerpo */
  --card-bg: #FFFFFF;           /* Tarjetas Blancas Purísimas */
  --blue-accent: #0025F5;       /* Azul Eléctrico */
  --text-dark: #1E293B;         /* Texto Oscuro de Alta Legibilidad */
  --text-muted: #64748B;        /* Texto Secundario */
  --border-light: #E2E8F0;      /* Bordes Finos */
}

html, body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.6;
  width: 100vw;
  margin: 0;
  padding: 0;
}

/* ==========================================
HERO / ENCABEZADO Y AVATAR
========================================== */
.hero-header {
  background-color: var(--hero-bg);
  color: #FFFFFF;
  position: relative;
  padding: 0 !important;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  z-index: 999;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 20px !important;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-top: 0;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: #CBD5E1;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #FFFFFF;
  color: var(--hero-bg);
  border: 1px solid #FFFFFF;
}

.btn-primary:hover {
  background-color: #E2E8F0;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* MARCO PROTEGIDO DEL AVATAR */
.hero-avatar-wrapper, .hero-image-container {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 50% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  overflow: hidden;
  z-index: 1;
}

.hero-avatar, .hero-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  display: block;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* SELECTOR DE IDIOMAS */
.lang-selector {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 9999;
}

.lang-btn {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
  background-color: #FFFFFF;
  color: var(--hero-bg);
}

/* ==========================================
ESTRUCTURA PRINCIPAL Y MENÚ LATERAL (25% / 75%)
========================================== */
.cv-layout-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0 20px;
  height: 100vh;
  align-items: center;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.cv-sidebar-menu {
  flex: 0 0 25%;
  width: 280px;
  flex-shrink: 0;
}

.cv-menu-sticky {
  position: relative;
}

.cv-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-menu-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.cv-menu-category:first-child {
  margin-top: 0;
}

.cv-menu-list li a.cv-menu-link,
.cv-menu-link {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.cv-menu-list li a.cv-menu-link:hover,
.cv-menu-link:hover {
  color: #1e293b;
  background-color: #f8fafc;
}

.cv-menu-list li a.cv-menu-link.active,
.cv-menu-link.active {
  color: #1e293b !important;
  font-weight: 700 !important;
  background-color: #f1f5f9 !important;
  border-left-color: #3b82f6 !important;
}

/* ==========================================
CONTENEDOR DE TARJETAS ÚNICAS (SLIDE ABSOLUTO)
========================================== */
.cv-content-area.cards-container {
  flex: 0 0 75%;
  height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-section-card {
  position: absolute;
  top: auto !important;
  left: 0;
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 30px 15px 140px 15px !important;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 140px);
  padding-bottom: 80px;
  scrollbar-width: thin;

  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.cv-section-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 10;
}

.cv-section-card::-webkit-scrollbar {
  width: 6px;
}
.cv-section-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cv-section-card h3 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

/* ==========================================
ESTILOS INTERNOS DE TARJETAS Y COMPONENTES
========================================== */
.cv-section-headline {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 800;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}

.card-image-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background-color: var(--hero-bg);
}

.card-img-filtered {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(105%) saturate(90%);
  transition: transform 0.4s ease;
}

#argentina .card-img-filtered { object-position: center 35% !important; }
#francia .card-img-filtered { object-position: center 80% !important; }
#brasil .card-img-filtered { object-position: center 70% !important; }

.card-image-wrapper:hover .card-img-filtered {
  transform: scale(1.03);
}

.cv-timeline-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.cv-timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cv-item-role {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 700;
}

.cv-item-date {
  font-size: 0.8rem;
  background-color: #F1F5F9;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.cv-item-company {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cv-item-desc {
  font-size: 0.92rem;
  color: #334155;
}

.cv-item-bullets {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  color: #334155;
  font-size: 0.9rem;
}

.cv-item-tags, .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag, .tags span {
  background-color: #F1F5F9;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.highlight-text {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.mb-3 { margin-bottom: 0.8rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ==========================================
MODALES Y POPUPS EMERGENTES
========================================== */
.popup-modal-overlay, .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(1, 4, 43, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
}

.popup-modal-overlay.active, .modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.popup-modal-overlay.active .popup-modal-card {
  transform: translateY(0);
}

.popup-close-btn, .modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close-btn:hover, .modal-close:hover {
  color: var(--text-dark);
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.popup-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.popup-body {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

.popup-body p { margin-bottom: 12px; }
.popup-body ul { padding-left: 20px; margin-bottom: 15px; }

.modal-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  padding: 30px;
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-options { display: flex; gap: 15px; margin-top: 20px; }

.contact-option {
  flex: 1; 
  padding: 15px; 
  border-radius: 12px;
  border: 1px solid var(--border-light); 
  text-decoration: none;
  color: var(--text-dark); 
  font-weight: 600; 
  font-size: 0.88rem;
  background-color: #F8F9FA; 
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
.contact-option .modal-icon-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
}

.contact-option .icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.contact-option:hover {
  transform: translateY(-3px);
  background-color: var(--body-bg, #f8f9fa);
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-option:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-option {
  flex: 1; 
  padding: 15px; 
  border-radius: 12px;
  border: 1px solid var(--border-light); 
  text-decoration: none;
  color: var(--text-dark); 
  font-weight: 600; 
  font-size: 0.88rem;
  background-color: #F8F9FA; 
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-step.active {
  display: block;
  opacity: 1;
}

.form-group label {
  display: block; 
  text-align: left; 
  font-size: 0.8rem;
  font-weight: 600; 
  color: var(--text-muted); 
  margin-bottom: 4px;
}

.form-group input, .form-group textarea {
  width: 100%; 
  padding: 10px; 
  border: 1px solid var(--border-light);
  border-radius: 8px; 
  margin-bottom: 12px; 
  font-family: inherit;
}

.modal-step img,
.modal-step svg,
.modal-card img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.modal-back-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-back-btn:hover {
  text-decoration: underline;
  background: none;
  border-color: transparent;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 15px;
}

/* ==========================================
WIDGET DE GITHUB
========================================== */
.sidebar-github-widget {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  padding-top: 20px;
  text-align: left;
  padding-left: 0.75rem;
}

.github-gif-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.github-gif-link:hover {
  color: #0f172a;
}

.github-gif-img, .github-gif-link img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
}

/* ==========================================
CONFIGURACIONES ESPECÍFICAS DE SECCIONES
========================================== */
#sobre-mi {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 40px 35px !important;
  max-height: fit-content;
}

.about-grid-container {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100%;
}

.about-text-content {
  flex: 1;
  width: 100% !important;
}

#sobre-mi .cv-item-desc {
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
  margin-bottom: 1rem !important;
  color: #334155;
}

#sobre-mi .highlight-text {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1e293b;
}

.about-image-wrapper {
  flex: 0 0 260px !important;
  height: 340px !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  position: relative;
}

.about-img-filtered {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.3s ease;
}

.about-image-wrapper:hover .about-img-filtered {
  transform: scale(1.03);
}

.profile-info-list {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.profile-info-list .cv-item-desc {
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem !important;
}

/* ==========================================
CONFIGURACIONES ESPECÍFICAS CONTACTO FINAL 
========================================== */
#contacto-final {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  padding: 45px 35px !important;
  max-height: fit-content;
}

#contacto-final .card-image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 25px;
}

#contacto-final .cta-text {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1e293b;
  margin-bottom: 25px !important;
}

#contacto-final .contact-direct-info {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2rem !important;
  margin-bottom: 30px !important;
  width: 100%;
}

#contacto-final .contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem !important;
}

#contacto-final .contact-item span:first-child {
  font-size: 1.2rem;
}

#contacto-final .contact-item a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#contacto-final .contact-item a:hover {
  color: #2563eb;
}

#contacto-final .btn-contacto-modal {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  padding: 14px 36px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#contacto-final .btn-contacto-modal:hover {
  background-color: #1e40af !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.4);
}
/* ==========================================
CONFIGURACIONES ESPECÍFICAS DISPOSITIVOS MOVILES
========================================== */
@media (max-width: 991px) {
  /* 1. Bloquear desbordes horizontales y permitir scroll vertical */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    width: 100% !important;
  }

  /* 2. Layout principal adaptado sin cortes laterales */
  .cv-layout-container {
    display: flex !important;
    flex-direction: column !important; 
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 70px) !important;
    padding: 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    padding-top: 40px !important; 
    padding-bottom: 90px !important;
  }

  /* Ocultar por completo el menú lateral de escritorio en celulares */
  .cv-sidebar-menu { 
    display: none !important; 
  }

  /* ➔ CORRECCIÓN DEL MODAL EN CELULARES */
  .modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;     /* Centrado vertical perfecto */
    justify-content: center !important; /* Centrado horizontal perfecto */
    padding: 15px !important;           
    z-index: 100000 !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 380px !important;        /* Ancho ideal para celulares */
    margin: auto !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
  }

  .modal-options {
    flex-direction: column !important;  /* Apila los botones de contacto verticalmente para que no se achiquen */
    gap: 10px !important;
  }

  .contact-option {
    flex-direction: row !important;     /* Diseño de lista horizontal dentro del botón para mejor uso táctil */
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px;
    padding: 12px 15px !important;
  }

  .contact-option .icon-wrapper {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
  }

  .contact-option .modal-icon-img {
    width: 36px !important;
    height: 36px !important;
  }
  
  .cv-content-area.cards-container { 
    flex: 1 1 auto !important; 
    width: 100% !important; 
    max-width: 100% !important;
    height: calc(100vh - 130px) !important;
    min-height: 500px !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero-container { 
    flex-direction: column-reverse; 
    text-align: center; 
  }
  
  .hero-buttons { 
    justify-content: center; 
  }

  /* ➔ AJUSTE DE LA FOTO: Separación arriba de los selectores y menor distancia hacia abajo */
  .hero-avatar-wrapper, .hero-image-container {
    position: relative !important;
    width: 180px !important;
    height: 220px !important;
    margin: 30px auto 5px auto !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
  }

  .hero-avatar, .hero-image-container img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .cv-profile-header h2, 
  .cv-profile-title,
  .cv-hero-text {
    margin-top: 0px !important;
  }

  /* 3. Tarjetas móviles con posicionamiento absoluto correcto y ancho del 100% */
  .cv-section-card {
    display: none !important; 
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    padding: 40px 15px 140px 15px !important; 
    background: var(--card-bg);
    border-radius: 12px;
  }

  .cv-section-card.active {
    display: block !important; 
  }

  /* 4. Barra inferior fija */
  .mobile-bottom-nav {
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 10px 12px;
    background: #0F172A;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  }

  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav-item {
    flex: 0 0 auto;
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #94A3B8;
    text-decoration: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-item.active {
    color: #FFFFFF;
    background: #3B82F6;
    font-weight: 700;
  }

  .about-grid-container {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .about-image-wrapper {
    width: 160px !important;
    height: 160px !important;
    min-width: 160px !important;
    flex: none !important;
    margin: 25px auto 15px auto !important;
    border-radius: 50% !important;
  }

  .about-text-content {
    width: 100% !important;
  }

  #sobre-mi {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: left;
    padding: 30px 15px 80px 15px !important;
  }
  
  #contacto-final {
    padding-bottom: 120px !important;
  }
}
/* ==========================================
CONFIGURACIONES ESPECÍFICAS ESCRITORIO
========================================== */

@media (min-width: 992px) {
  /* Ocultar la barra inferior móvil por completo en escritorio */
  .mobile-bottom-nav {
    display: none !important;
  }
  /* Distribución en dos columnas lado a lado para Sobre Mí */
  #sobre-mi .about-grid-container {
    display: grid !important;
    grid-template-columns: 1fr auto !important; /* Texto flexible a la izquierda, foto a la derecha */
    align-items: center !important;
    flex-direction: row !important;
    gap: 40px !important;
  }

  /* Asegurar que la imagen y su contenedor mantengan el espacio y dimensiones en escritorio */
  #sobre-mi .about-image-wrapper {
    flex: 0 0 260px !important;
    height: 340px !important;
    border-radius: 14px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    position: relative;
  }
  #sobre-mi .about-image-wrapper:hover .about-img-filtered {
  transform: scale(1.08); /* Mantiene el zoom al pasar el cursor */
  }

  /* Efecto de desfumado (fade out) hacia la izquierda para fundirse con el texto */
  #sobre-mi .about-img-filtered {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 88%;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 150%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    transform: transform 0.3s ease;
  }
    }

