/* Pequeños ajustes personales encima de Tailwind */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* Texto de la bio justificado */
#profile-bio,
#profile-bio p {
  text-align: justify;
}

/* Imágenes de Instagram: B/N -> color al hover */
.instagram-photo {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.instagram-photo:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Animación del modal antigua: gira y crece (ya no la usamos, pero no molesta) */
@keyframes zoom-rotate-in {
  from {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.modal-image-anim {
  animation: zoom-rotate-in 0.4s ease-out;
}

/* El contenedor del modal (por si quieres perspectiva 3D en el futuro) */
#photo-modal {
  perspective: 1200px;
}

/* El contenido del modal es la "card" COMPLETA que hace el baivén
   y AHORA tiene scroll propio si hace falta */
#modal-content {
  transform-origin: center center;
  transform-style: flat;
  opacity: 0;
  max-height: 80vh;     /* límite de alto del modal */
  overflow-y: auto;     /* scroll interno si el texto es largo */
}

/* Imagen del modal más pequeña y centrada */
#modal-image {
  display: block;
  max-width: 70%;
  max-height: 55vh;
  margin: 0 auto;
}

/* Texto del modal de fotos justificado */
#modal-caption {
  text-align: justify;
}

/* En móviles, que use más ancho para no quedar ridícula */
@media (max-width: 640px) {
  #modal-image {
    max-width: 100%;
    max-height: 50vh;
  }
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;            /* Firefox */
  scrollbar-color: #34d399 #020617; /* thumb | track */
}

html::-webkit-scrollbar {
  width: 10px;                      /* Chrome / Edge / Safari */
}

html::-webkit-scrollbar-track {
  background: #020617;              /* fondo oscuro */
}

html::-webkit-scrollbar-thumb {
  background: #34d399;              /* mismo verde emerald-400 */
  border-radius: 9999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;              /* un pelín más claro al hover */
}

/* Ajusta el offset para las secciones con ancla */
#about,
#github,
#projects-highlight,
#instagram,
#notes,
#contact,
#pwa-install {
  scroll-margin-top: 6rem;
}

/* Botón de instalación PWA */
#pwa-install-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Wrapper de la foto del hero */
.hero-photo-wrapper {
  position: relative;
}

/* Círculo invisible que manda en el flujo del texto */
.hero-shape {
  float: right;
  width: 16rem;   /* más grande */
  height: 16rem;
  border-radius: 9999px;
  shape-outside: circle(50%);
  -webkit-shape-outside: circle(50%);
  shape-margin: 0.3rem; /* cuanto más pequeño, más pegado al círculo */
  margin-left: 1rem;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

/* Imagen real, colocada exactamente sobre el círculo */
.hero-float-img {
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 16rem;   /* más grande */
  height: 16rem;
  border-radius: 9999px;
  object-fit: cover;
  opacity: 0.4;      /* ~40% */
  pointer-events: auto;
  transition: opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hero-float-img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.8));
}

/* --- Línea divisoria entre secciones --- */
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0),
    #34d399,
    rgba(15, 23, 42, 0)
  ); /* mismo verde que text-emerald-400 */
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); /* resplandor verde */
  border-radius: 9999px;
  opacity: 0.9;
}

/* --- Animación estilo tarjetas "Endpoints principales" (por si la quieres usar) --- */
.api-card-open {
  animation: api-card-pop 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes api-card-pop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9) rotateX(18deg);
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.0);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03) rotateX(4deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
}

/* --- Baivén suave de aumento para TODO el modal-content --- */
.photo-spin-zoom {
  animation: modal-pop-bounce 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes modal-pop-bounce {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
  }
  60% {
    opacity: 1;
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
}

/* Scroll interno para las notas del modal */
.custom-note-scroll {
  scrollbar-width: thin;
  scrollbar-color: #34d399 #020617;
}

.custom-note-scroll::-webkit-scrollbar {
  width: 8px;
}

.custom-note-scroll::-webkit-scrollbar-track {
  background: #020617;
  border-radius: 9999px;
}

.custom-note-scroll::-webkit-scrollbar-thumb {
  background: #34d399; /* mismo verde emerald */
  border-radius: 9999px;
}

/* Texto del modal de notas justificado */
#note-modal-content {
  text-align: justify;
}

/* Estilos para los sliders de tema personalizado */
.theme-slider {
  -webkit-appearance: none;
  appearance: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Thumb para Chrome/Safari */
.theme-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

.theme-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
}

/* Thumb para Firefox */
.theme-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

.theme-slider::-moz-range-thumb:hover {
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
}

/* Track para Firefox */
.theme-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.theme-slider::-moz-range-progress {
  background: transparent;
}

/* Semantic CSS Classes - Professional naming convention */

/* Header & Navigation */
.header-sticky {
  border-bottom: 1px solid rgb(30, 41, 59);
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgb(3, 7, 18, / 0.9);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-link {
  text-decoration: none;
  transition: filter 0.3s, text-shadow 0.3s;
}

.brand-link:hover {
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.6));
}

.brand-link:hover .brand-text {
  text-shadow: 0 0 10px rgb(52, 211, 153), 0 0 20px rgba(52, 211, 153, 0.5);
}

.brand-link:hover .brand-icon {
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7), inset 0 0 8px rgba(52, 211, 153, 0.4);
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgb(52, 211, 153);
  overflow: hidden;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  color: rgb(226, 232, 240);
}

.spacer {
  flex: 1 1 0%;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
  }
}

.nav-link {
  font-size: 0.75rem;
  color: rgb(203, 213, 225);
  transition: color 0.15s;
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 0.875rem;
  }
}

.nav-link:hover {
  color: rgb(52, 211, 153);
}

.nav-link-active {
  font-size: 0.75rem;
  color: rgb(52, 211, 153);
  transition: color 0.15s;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-link-active {
    font-size: 0.875rem;
  }
}

.nav-link-active:hover {
  color: rgb(110, 231, 183);
}

.nav-link-glow {
  color: white;
  transition: text-shadow 0.3s, filter 0.3s;
  font-weight: 600;
}

.nav-link-glow:hover {
  color: white;
  text-shadow: 0 0 10px rgb(52, 211, 153), 0 0 20px rgba(52, 211, 153, 0.5);
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.6));
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.lang-button {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(55, 65, 81);
  color: rgb(156, 163, 175);
  font-family: monospace;
}

.lang-button:hover {
  color: rgb(110, 231, 183);
  border-color: rgb(52, 211, 153);
}

.lang-button-active {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(52, 211, 153);
  color: rgb(110, 231, 183);
  font-family: monospace;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgb(55, 65, 81);
  color: rgb(156, 163, 175);
  transition: all 0.15s;
}

.theme-toggle:hover {
  border-color: rgb(52, 211, 153);
  color: rgb(110, 231, 183);
}

.theme-panel-container {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(55, 65, 81);
  border-radius: 0.5rem;
  padding: 1rem;
  z-index: 50;
  width: 16rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

.theme-panel-container.hidden {
  display: none;
}

.theme-panel-title {
  font-size: 0.75rem;
  color: rgb(148, 163, 175);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-label {
  font-size: 0.75rem;
  color: rgb(203, 213, 225);
  margin-bottom: 0.25rem;
  display: block;
}

.slider-value {
  font-size: 0.75rem;
  color: rgb(148, 163, 175);
  margin-top: 0.25rem;
}

.slider-input {
  width: 100%;
  height: 0.5rem;
  border-radius: 0.5rem;
  appearance: none;
  cursor: pointer;
}

.theme-reset-btn {
  margin-top: 1rem;
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  background-color: rgb(30, 41, 59);
  border: 1px solid rgb(71, 85, 99);
  border-radius: 0.25rem;
  color: rgb(203, 213, 225);
  transition: background-color 0.15s;
}

.theme-reset-btn:hover {
  background-color: rgb(20, 29, 43);
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(55, 65, 81);
  color: rgb(226, 232, 240);
  transition: all 0.15s;
}

@media (min-width: 768px) {
  .menu-toggle-btn {
    display: none;
  }
}

.menu-toggle-btn:hover {
  border-color: rgb(52, 211, 153);
  color: rgb(110, 231, 183);
}

.mobile-menu {
  display: flex;
  border-top: 1px solid rgb(30, 41, 59);
  background-color: rgb(3, 7, 18, / 0.95);
  backdrop-filter: blur(10px);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  padding-top: 0.75rem;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-menu.hidden {
  display: none;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-container {
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  align-items: flex-end;
}

.mobile-nav-link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  color: rgb(226, 232, 240);
  transition: color 0.15s;
}

.mobile-nav-link:hover {
  color: rgb(52, 211, 153);
}

.mobile-lang-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(30, 41, 59);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.mobile-lang-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  color: rgb(120, 113, 108);
}

.mobile-lang-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.mobile-lang-btn {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(55, 65, 81);
  color: rgb(156, 163, 175);
  font-family: monospace;
}

.mobile-lang-btn:hover {
  color: rgb(110, 231, 183);
  border-color: rgb(52, 211, 153);
}

.mobile-lang-btn-active {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(52, 211, 153);
  color: rgb(110, 231, 183);
  font-family: monospace;
}

.mobile-theme-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(30, 41, 59);
}

.mobile-theme-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  color: rgb(120, 113, 108);
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-theme-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.mobile-theme-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-theme-slider-label {
  font-size: 0.7rem;
  color: rgb(203, 213, 225);
}

.mobile-theme-slider-input {
  width: 100%;
  height: 0.375rem;
  border-radius: 0.25rem;
  appearance: none;
  cursor: pointer;
  background: transparent;
}

/* Thumb para Chrome/Safari en móvil */
.mobile-theme-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

.mobile-theme-slider-input::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.5);
}

/* Track para Chrome/Safari en móvil */
.mobile-theme-slider-input::-webkit-slider-runnable-track {
  height: 0.375rem;
  background: rgb(30, 41, 59);
  border-radius: 0.25rem;
}

/* Thumb para Firefox en móvil */
.mobile-theme-slider-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

.mobile-theme-slider-input::-moz-range-thumb:hover {
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.5);
}

/* Track para Firefox en móvil */
.mobile-theme-slider-input::-moz-range-track {
  background: rgb(30, 41, 59);
  border-radius: 0.25rem;
  border: none;
}

.mobile-theme-slider-input::-moz-range-progress {
  background: transparent;
}

.mobile-theme-slider-value {
  font-size: 0.65rem;
  color: rgb(120, 113, 108);
  margin-top: 0.25rem;
}

.mobile-theme-reset-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.7rem;
  background-color: rgb(30, 41, 59);
  color: rgb(203, 213, 225);
  border-radius: 0.25rem;
  transition: background-color 0.15s;
}

.mobile-theme-reset-btn:hover {
  background-color: rgb(20, 29, 43);
}

/* Main Content */
.main-content {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero-section {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
}

.hero-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(52, 211, 153);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-title-highlight {
  color: rgb(52, 211, 153);
}

.hero-title-underline {
  text-decoration: underline;
  text-decoration-color: rgb(52, 211, 153, / 0.6);
}

.profile-bio-text {
  font-size: 0.875rem;
  color: rgb(203, 213, 225);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.divider-line {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.75rem;
  color: rgb(148, 163, 175);
}

.section-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-full {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Cards */
.card-base {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.75rem;
  color: rgb(203, 213, 225);
}

.card-tech-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(148, 163, 175);
  margin-bottom: 0.25rem;
}

.card-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.65rem;
}

.card-tech-tag {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  background-color: rgb(3, 7, 18);
  border: 1px solid rgb(55, 65, 81);
  color: rgb(110, 231, 183);
}

.card-description {
  font-size: 0.75rem;
  color: rgb(203, 213, 225);
  margin-bottom: 0.75rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgb(110, 231, 183);
}

.card-link:hover {
  color: rgb(167, 243, 208);
}

/* Contact Section */
.contact-section {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 2rem;
  }
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-text {
  font-size: 0.875rem;
  color: rgb(203, 213, 225);
  margin-bottom: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  font-size: 0.875rem;
  color: rgb(226, 232, 240);
}

.contact-info-label {
  font-weight: 500;
}

.contact-link {
  color: rgb(110, 231, 183);
}

.contact-link:hover {
  color: rgb(167, 243, 208);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  background-color: rgb(16, 185, 129);
  color: rgb(3, 7, 18);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.btn-primary:hover {
  background-color: rgb(52, 211, 153);
  transform: translateY(-0.125rem);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgb(71, 85, 99);
  color: rgb(226, 232, 240);
  font-size: 0.875rem;
  transition: all 0.15s;
}

.btn-secondary:hover {
  border-color: rgb(52, 211, 153);
  color: rgb(110, 231, 183);
  transform: translateY(-0.125rem);
}

/* PWA Section */
.pwa-section {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
  margin-bottom: 3rem;
  scroll-margin-top: auto;
}

.pwa-card {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pwa-card {
    padding: 2rem;
  }
}

.pwa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgb(52, 211, 153);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(3, 7, 18);
  font-size: 1.25rem;
  font-weight: 700;
}

.pwa-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(110, 231, 183);
}

.pwa-description {
  font-size: 0.875rem;
  color: rgb(203, 213, 225);
  line-height: 1.5;
}

.pwa-info-box {
  background-color: rgb(30, 41, 59, / 0.5);
  border: 1px solid rgb(55, 65, 81);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.75rem;
  color: rgb(203, 213, 225);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pwa-info-title {
  font-weight: 600;
  color: rgb(110, 231, 183);
}

.pwa-info-list {
  list-style-type: disc;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.pwa-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pwa-install-btn {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.5rem;
  background-color: rgb(52, 211, 153);
  color: rgb(3, 7, 18);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.pwa-install-btn:hover {
  background-color: rgb(110, 231, 183);
  transform: translateY(-0.25rem);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.pwa-install-btn:active {
  background-color: rgb(16, 185, 129);
}

.pwa-disclaimer {
  font-size: 0.75rem;
  color: rgb(148, 163, 175);
  text-align: center;
}

/* Footer */
.footer-section {
  border-top: 1px solid rgb(30, 41, 59);
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgb(52, 211, 153);
}

.footer-copyright {
  display: block;
}

.footer-tagline {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  color: rgb(71, 85, 99);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgb(16, 185, 129);
  color: rgb(3, 7, 18);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: all 0.3s;
}

.scroll-top-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgb(0, 0, 0, / 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay.hidden {
  display: none;
}

.modal-container {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(55, 65, 81);
  border-radius: 1rem;
  max-width: 48rem;
  width: 90%;
  padding: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .modal-container {
    padding: 1.5rem;
  }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: rgb(148, 163, 175);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.modal-close:hover {
  color: rgb(52, 211, 153);
}

.modal-image-wrapper {
  width: 100%;
  margin-bottom: 1rem;
}

.modal-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.modal-caption {
  font-size: 0.75rem;
  color: rgb(226, 232, 240);
}

.note-modal-container {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(55, 65, 81);
  border-radius: 1rem;
  max-width: 56rem;
  width: 95%;
  padding: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .note-modal-container {
    padding: 1.5rem;
  }
}

.note-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.note-modal-scrollable {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(55, 65, 81);
  max-height: 70vh;
  overflow-y: auto;
}

.note-modal-content {
  color: rgb(226, 232, 240);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 100%;
}

/* Additional Semantic Wrappers */
.theme-panel-wrapper {
  position: relative;
  margin-left: 0.75rem;
}

.card-content-wrapper {
  margin-top: 0.5rem;
}

.section-links-wrapper {
  margin-top: 0.5rem;
  text-align: right;
  font-size: 0.75rem;
}

.section-divider-wrapper {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 2.5rem;
}

/* ============================================================================
   PROYECTOS FEATURED LAYOUT (Dos columnas para EM-PULSE)
   ============================================================================ */

.projects-featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .projects-featured-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.projects-featured-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.projects-featured-left .card-tech-tags {
  justify-content: center;
}

.card-presentation-note {
  font-size: 0.8rem;
  color: rgb(52, 211, 153);
  font-style: italic;
  text-align: center;
  margin: 0.75rem 0 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(52, 211, 153, 0.2);
}

.projects-featured-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  min-height: 120px;
}

.projects-logo-img {
  max-width: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.2));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.projects-logo-img:hover {
  filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.4));
  transform: scale(1.05);
}

.projects-featured-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.05) 0%, rgba(52, 211, 153, 0) 100%);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
}

@media (max-width: 768px) {
  .projects-featured-right {
    padding: 1.5rem;
  }
}

.projects-featured-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projects-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(52, 211, 153);
  margin: 0;
}

.projects-featured-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(226, 232, 240);
  margin: 0;
  margin-top: 0.5rem;
}

.projects-featured-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgb(203, 213, 225);
  margin: 0;
  text-align: justify;
}

.projects-featured-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.projects-featured-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgb(203, 213, 225);
  padding-left: 1.75rem;
  position: relative;
}

.projects-featured-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgb(52, 211, 153);
  font-weight: 600;
}

/* ============================================================================
   OTROS PROYECTOS
   ============================================================================ */

.projects-other-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(30, 41, 59);
}

.projects-other-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(226, 232, 240);
  margin-bottom: 1.5rem;
  text-align: center;
}

