/* Navbar Creativo & Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--space-md);
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
  transform: scale(1.15);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  font-weight: 600;
  border: 1px solid rgba(229, 169, 60, 0.25);
}

/* Badge de Software & Skills */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.software-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.software-item:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.software-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-sm);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Botones Creativos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #d89622 100%);
  color: #0c0f14;
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #e5a93c 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 169, 60, 0.4);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: #242e3d;
  color: #fff;
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-primary);
  border-color: var(--border-accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.83rem;
}

/* Badges Creativos */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-published {
  background-color: var(--status-published-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-dev {
  background-color: var(--status-dev-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-concept {
  background-color: var(--status-concept-bg);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-product {
  background-color: var(--status-product-bg);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Tarjetas Asimétricas & Creativas */
.card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 169, 60, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(229, 169, 60, 0.15);
  background-color: var(--bg-card-hover);
}

/* Tarjeta Bento Hero (Diseño Asimétrico Destacado) */
.card-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 169, 60, 0.25);
  background: linear-gradient(135deg, rgba(25, 33, 46, 0.8) 0%, rgba(18, 23, 33, 0.9) 100%);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.card-featured .card-media {
  aspect-ratio: auto;
  min-height: 340px;
  height: 100%;
}

@media (max-width: 860px) {
  .card-featured {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta con Número Editorial de Fondo */
.card-discipline {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.card-num-watermark {
  position: absolute;
  top: -10px;
  right: 15px;
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: all var(--transition-normal);
}

.card:hover .card-num-watermark {
  color: rgba(229, 169, 60, 0.08);
  transform: scale(1.08) translateY(-4px);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-media-book {
  aspect-ratio: 2 / 3;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.08) 0%, rgba(18, 23, 33, 0.8) 70%);
}

.card-media-book img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
}

.card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.card-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Galería de Arte & Fichas */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 169, 60, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-caption {
  padding: var(--space-sm) var(--space-md);
  background-color: var(--bg-tertiary);
  font-size: 0.85rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
}

.gallery-caption small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: var(--space-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  transform: rotate(90deg);
}

/* Project Detail Case Study */
.project-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.meta-item-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.meta-item-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Pills de Disciplinas */
.discipline-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.45rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.discipline-pill:hover, .discipline-pill.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

/* Footer Editorial */
.site-footer {
  background-color: #07090d;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .status-indicator { display: none; }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* ==========================================================================
   Language Switcher & Interactive Software Showcase
   ========================================================================== */

.lang-switcher-mount {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1100;
}

.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  color: #fff;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.25);
}

.lang-globe {
  font-size: 0.95rem;
}

.lang-chevron {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(217, 119, 6, 0.18);
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   Interactive Logo Showcase (Transparent Icons Only with Direct External Links)
   ========================================================================== */

.app-ecosystem-section {
  position: relative;
  padding: var(--space-2xl) 0;
}

.app-category-block {
  margin-bottom: var(--space-xl);
}

.app-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.app-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 14px;
}

.app-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: rgba(22, 27, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
  text-decoration: none;
  contain: content;
}

.app-icon-link:hover,
.app-icon-link:focus-visible {
  border-color: var(--accent-primary);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  outline: none;
}

.app-logo-img {
  width: 100%;
  height: 100%;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.app-icon-link:hover .app-logo-img {
  transform: scale(1.08);
}

/* Tooltip on hover */
.app-icon-link[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.app-icon-link[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
  }
  .app-icon-link {
    border-radius: 12px;
    padding: 10px;
  }
  .app-logo-img {
    max-width: 42px;
    max-height: 42px;
  }
}

/* ==========================================================================
   Continuous Logo Marquee Ticker (Header / Hero Bar)
   ========================================================================== */

.marquee-container {
  width: 100%;
  overflow: hidden;
  background: rgba(13, 17, 23, 0.75);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  position: relative;
  backdrop-filter: blur(8px);
}

.marquee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 var(--space-md);
}

.marquee-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.marquee-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.marquee-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateX(2px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
  gap: 20px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 8px;
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: all var(--transition-fast);
}

.marquee-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px) scale(1.1);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.marquee-item:hover img {
  filter: grayscale(0) drop-shadow(0 4px 10px rgba(217, 119, 6, 0.4));
}

/* ==========================================================================
   Floating Action Buttons: WhatsApp & Language Selector (Bottom Right)
   ========================================================================== */

.floating-actions-container {
  position: fixed !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  right: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}


/* Botón Flotante de Descarga de Hoja de Vida Integral */
.floating-btn-cv {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

.floating-btn-cv:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border-color: #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
}

.floating-btn-cv svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.floating-btn-cv:hover svg {
  transform: translateY(1px);
}

/* Indicador de Disponibilidad Remota Internacional (Global) */
.status-remote-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRemoteDot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseRemoteDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.floating-btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: #25D366;
}

.floating-btn-whatsapp:hover {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.floating-btn-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.floating-btn-lang {
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--accent-primary);
  color: #fff;
  font-size: 1.25rem;
}

.floating-btn-lang:hover {
  background: var(--bg-tertiary);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
}

.floating-lang-dropdown {
  position: absolute;
  top: 50%;
  bottom: auto;
  right: calc(100% + 12px);
  min-width: 160px;
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.95);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.floating-lang-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%) scale(1) !important;
}



.floating-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.floating-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.floating-lang-option.active {
  background: rgba(217, 119, 6, 0.2);
  color: var(--accent-primary);
  font-weight: 700;
}

/* Tooltip for floating buttons */
.floating-btn[data-floating-tooltip]::before {
  content: attr(data-floating-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.floating-btn[data-floating-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Software Catalog Cards with Mastery Percentage Radial / Bars
   ========================================================================== */

.catalog-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.catalog-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.catalog-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.catalog-logo-box {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  flex-shrink: 0;
}

.catalog-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.catalog-category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.catalog-progress-block {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.catalog-level {
  color: var(--text-muted);
  font-weight: 500;
}

.catalog-pct {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.catalog-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.catalog-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b, #10b981);
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

.catalog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
}

.catalog-highlight {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  padding-right: 12px;
}

.catalog-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.1);
  transition: all var(--transition-fast);
}

.catalog-link-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* ==========================================================================
   Portada / Horizontal Artist Cover Banner (portada.png)
   ========================================================================== */

.site-cover-banner {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  background: #0b0e14;
  border-bottom: 2px solid var(--accent-primary);
  position: relative;
  z-index: 995;
}

.site-cover-img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Light mode icon enhancement */
[data-theme="light"] .nav-icon {
  filter: brightness(0) opacity(0.85);
}

/* Japanese menu: hide text labels on icon-bearing nav links to avoid overflow */
html[lang="ja"] .nav-menu .nav-link span[data-i18n] {
  display: none !important;
}

html[lang="ja"] .nav-menu .nav-link {
  padding: 8px 12px;
  justify-content: center;
}

html[lang="ja"] .nav-menu .nav-link .nav-icon {
  margin: 0;
  width: 22px;
  height: 22px;
}
}

/* ==========================================================================
   Top Software Ticker Bar (Below Navbar on all pages)
   ========================================================================== */

.top-software-ticker {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 990;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.ticker-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
  white-space: nowrap;
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden !important;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  user-select: none;
  cursor: grab;
  touch-action: pan-y;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ticker-track-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: none !important;
  will-change: transform;
  gap: 24px;
  padding: 0 16px;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes smoothTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  pointer-events: auto;
}

.ticker-logo-item img {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
  pointer-events: none;
}

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

/* Tooltip on logo hover in ticker */
.ticker-logo-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid var(--accent-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ticker-logo-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Pinned Right Button on Ticker Bar */
.ticker-action {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 25%);
  z-index: 10;
}

.ticker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-primary);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
  transition: all var(--transition-fast);
}

.ticker-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5);
}

/* ==========================================================================
   Catalog Logo Box (Radiant Yellow Border + White Interior)
   ========================================================================== */

.catalog-logo-box {
  width: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle, #ffffff 65%, #fffbeb 100%) !important;
  border: 2px solid var(--accent-primary) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.35), inset 0 0 8px rgba(245, 158, 11, 0.2) !important;
}

.catalog-logo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)) !important;
}

/* ==========================================================================
   Floating Action Buttons (Theme Toggle, Language, WhatsApp)
   ========================================================================== */

.floating-btn-theme {
  background: rgba(22, 27, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  font-size: 1.25rem;
}

[data-theme="light"] .floating-btn-theme {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.floating-btn-theme:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--accent-primary);
}

.floating-btn-whatsapp img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ==========================================================================
   Hero Author Showcase Grid & Presentation Frame
   ========================================================================== */
.hero-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .hero-author-frame {
    max-width: 320px;
    margin: var(--space-md) auto 0;
  }
}

.hero-author-frame {
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.hero-author-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(217, 119, 6, 0.35);
}

.hero-author-frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-author-caption {
  padding: 14px 18px;
  background: rgba(13, 17, 23, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

[data-theme="light"] .hero-author-caption {
  background: #ffffff;
}

.hero-author-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0;
}

.hero-author-role {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin: 0;
}

.hero-author-loc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}



/* ==========================================================================
   USER SPECIFIC OVERRIDES & POLISH
   ========================================================================== */

/* 1. Permanent Pure White Background for Software Ticker in ALL themes */
.top-software-ticker,
[data-theme="light"] .top-software-ticker,
[data-theme="dark"] .top-software-ticker {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.ticker-label,
[data-theme="light"] .ticker-label,
[data-theme="dark"] .ticker-label {
  background: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.ticker-action,
[data-theme="light"] .ticker-action,
[data-theme="dark"] .ticker-action {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 25%) !important;
}

/* 2. Ticker Track Hover Pause & Icon Expansion */
.ticker-track-wrapper:hover .ticker-track,
.ticker-track:hover {
  animation-play-state: paused !important;
}

.ticker-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.ticker-logo-item img {
  height: 34px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.ticker-logo-item:hover {
  z-index: 999;
}

.ticker-logo-item:hover img {
  transform: scale(1.32) !important;
  filter: drop-shadow(0 4px 12px rgba(217, 119, 6, 0.4)) !important;
}

/* Hide default ::after tooltip since we use dynamic global tooltip on body */
.ticker-logo-item[data-tooltip]::after {
  display: none !important;
}

/* 3. Global Dynamic Ticker Tooltip (Appended to body, never clipped by overflow:hidden) */
.global-ticker-tooltip {
  position: fixed;
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  border: 1px solid #f59e0b !important;
  color: #ffffff !important;
  font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
  pointer-events: none;
  z-index: 999999 !important;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.global-ticker-tooltip.show {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

/* 4. Floating Action Buttons Radiant Amber Tooltip (Eliminates dark unreadable text in Light mode) */
.floating-btn[data-floating-tooltip]::before {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  border: 1px solid #f59e0b !important;
  color: #ffffff !important;
  font-family: var(--font-heading, sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
  z-index: 100000 !important;
}

/* Lift floating buttons comfortably */
.floating-actions-container {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  right: 18px !important;
  z-index: 9999 !important;
}

/* 5. Master Footer Layout & WhatsApp Overlap Prevention */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr !important;
  gap: var(--space-2xl) !important;
  margin-bottom: var(--space-2xl) !important;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: var(--space-xl) !important;
  }
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-right: 120px !important; /* Prevents overlap with floating WhatsApp button */
}

@media (max-width: 680px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 80px !important;
  }
}

/* 6. Footer Social Badges */
.footer-social-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  transition: all var(--transition-fast);
}

.social-badge:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateX(4px);
}

.social-badge strong {
  color: var(--text-primary);
}

/* 7. Light Mode Master Polish */
[data-theme="light"] .site-footer {
  background-color: #f1f5f9 !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-secondary) !important;
}

[data-theme="light"] .section-watermark {
  color: rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .card-num-watermark {
  color: rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .card:hover .card-num-watermark {
  color: rgba(217, 119, 6, 0.16) !important;
}

/* 8. CV Download Banner */
.cv-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(245, 158, 11, 0.03));
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 16px;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  width: 100%;
}

@media (max-width: 768px) {
  .cv-action-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 9. Interactive 3D Flip Cards (NEXUS TCG Showcase) */
.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 5 / 7;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(229, 169, 60, 0.35);
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: #0d1117;
}

.flip-card-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   10. VISOR DE LIBRO CON EFECTO REAL DE PASO DE PÁGINAS (3D PAGE-FLIP)
   ========================================================================== */
.flipbook-real-reader {
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  margin: var(--space-xl) auto;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.flipbook-real-header {
  padding: 14px 20px;
  background: #161b22;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 10;
}

.flipbook-real-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flipbook-real-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(229, 169, 60, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.flipbook-stage {
  position: relative;
  width: 100%;
  min-height: 580px;
  background: radial-gradient(circle at center, #1c2331 0%, #0a0d14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  perspective: 2400px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .flipbook-stage {
    min-height: 440px;
    padding: 16px 8px;
  }
}

/* El Libro 3D */
.flipbook-book {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1.414; /* Proporción estándar de papel */
  background: #ffffff;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), inset 4px 0 10px rgba(0,0,0,0.15);
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Páginas activas */
.flipbook-sheet {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #ffffff;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow: inset 10px 0 25px rgba(0,0,0,0.06);
}

.flipbook-sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ffffff;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Hoja en movimiento 3D al voltear */
.flipbook-turner {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #ffffff;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 20;
  display: none;
  box-shadow: 0 14px 35px rgba(0,0,0,0.5);
}

.flipbook-turner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.flipbook-turner-shadow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Animación de volteo hacia adelante */
.flipbook-anim-forward {
  display: block;
  animation: flipPageForward 0.55s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes flipPageForward {
  0% {
    transform: rotateY(0deg);
    box-shadow: 0 14px 35px rgba(0,0,0,0.4);
  }
  50% {
    transform: rotateY(-90deg) scale(1.02);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.7);
  }
  100% {
    transform: rotateY(-180deg);
    box-shadow: 0 14px 35px rgba(0,0,0,0.2);
    opacity: 0;
  }
}

/* Animación de volteo hacia atrás */
.flipbook-anim-backward {
  display: block;
  transform-origin: left center;
  animation: flipPageBackward 0.55s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes flipPageBackward {
  0% {
    transform: rotateY(-180deg);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.2);
    opacity: 0;
  }
  50% {
    transform: rotateY(-90deg) scale(1.02);
    opacity: 1;
    box-shadow: 20px 20px 40px rgba(0,0,0,0.7);
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
    box-shadow: 0 14px 35px rgba(0,0,0,0.4);
  }
}

/* Esquinas interactivas dobladas (Corner Curl) */
.flipbook-curl {
  position: absolute;
  bottom: 0; right: 0;
  width: 55px; height: 55px;
  z-index: 30;
  cursor: pointer;
  background: linear-gradient(135deg, transparent 50%, rgba(229, 169, 60, 0.4) 50%, #ffffff 100%);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  filter: drop-shadow(-3px -3px 6px rgba(0,0,0,0.4));
  transition: all 0.25s ease;
}

.flipbook-curl:hover {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(229, 169, 60, 0.8) 50%, #ffffff 100%);
}

.flipbook-curl-left {
  position: absolute;
  bottom: 0; left: 0;
  width: 55px; height: 55px;
  z-index: 30;
  cursor: pointer;
  background: linear-gradient(225deg, transparent 50%, rgba(229, 169, 60, 0.4) 50%, #ffffff 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  filter: drop-shadow(3px -3px 6px rgba(0,0,0,0.4));
  transition: all 0.25s ease;
}

.flipbook-curl-left:hover {
  width: 80px; height: 80px;
  background: linear-gradient(225deg, transparent 50%, rgba(229, 169, 60, 0.8) 50%, #ffffff 100%);
}

/* Página Teaser en Flipbook */
.flipbook-teaser-wrap {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000000;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipbook-teaser-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(8px) brightness(0.2) contrast(1.1);
  opacity: 0.5;
  pointer-events: none;
}

.flipbook-teaser-card {
  position: absolute;
  max-width: 440px;
  width: 88%;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid rgba(229, 169, 60, 0.5);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 10;
}

.flipbook-teaser-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
  display: inline-block;
}

.flipbook-teaser-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.flipbook-teaser-text {
  font-size: 0.88rem;
  color: #c9d1d9;
  line-height: 1.5;
  margin: 0 0 18px 0;
}

/* Barra inferior de navegación del libro */
.flipbook-real-footer {
  padding: 12px 20px;
  background: #161b22;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.flipbook-real-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flipbook-real-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.flipbook-real-btn:hover:not(:disabled) {
  background: rgba(229, 169, 60, 0.2);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.flipbook-real-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flipbook-real-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Modal de Pantalla Completa del Libro */
.flipbook-real-reader.is-fullscreen {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  z-index: 100000 !important;
}

.flipbook-real-reader.is-fullscreen .flipbook-stage {
  min-height: calc(100vh - 120px) !important;
  height: calc(100vh - 120px) !important;
  padding: 24px !important;
}

.flipbook-real-reader.is-fullscreen .flipbook-book {
  max-width: 580px !important;
}
/* ==========================================================================
   11. SILENT BLACKOUT SHIELD & ANTI-SCREENSHOT PROTECTION
   ========================================================================== */
.silent-blackout-shield {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000000 !important;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.03s ease;
}

.silent-blackout-shield.active {
  opacity: 1;
  pointer-events: all;
}

/* Oscurecimiento silencioso cuando la ventana pierde el foco (Herramientas de captura activas) */


/* Protección de Impresión Silenciosa en Portafolio */
@media print {
  body:not(.cv-print-allowed) img,
  body:not(.cv-print-allowed) .gallery-item,
  body:not(.cv-print-allowed) .flipbook-container,
  body:not(.cv-print-allowed) .flip-card,
  body:not(.cv-print-allowed) .site-cover-banner,
  body:not(.cv-print-allowed) .top-software-ticker {
    filter: brightness(0) !important;
    background: #000000 !important;
    color: #000000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* ==========================================================================
   12. LIGHTBOX CON ZOOM INTERACTIVO Y ARRASTRE
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(8, 11, 16, 0.94);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-img-container {
  position: relative;
  overflow: hidden;
  max-width: 88vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border-radius: 12px;
}

.lightbox-img-container.panning {
  cursor: grabbing;
}

#lightbox-img {
  max-width: 88vw;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Capa Protectora Transparente anti-clic derecho */
.lightbox-shield {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10;
  background: transparent;
  cursor: inherit;
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
  max-width: 650px;
}

.lightbox-zoom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-top: 12px;
  z-index: 20;
}

.lightbox-zoom-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-primary);
}

.lightbox-zoom-level {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 30;
}

.lightbox-close:hover {
  background: #e53e3e;
  border-color: #e53e3e;
}


/* ==========================================================================
   INTERACTIVE WHATSAPP POPUP MODAL & CHAT WIDGET
   ========================================================================== */
/* Compact WhatsApp Modal */
.floating-wa-modal {
  position: fixed !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  right: 80px !important;
  width: 335px !important;
  max-width: calc(100vw - 96px) !important;
  max-height: calc(100vh - 60px) !important;
  background: var(--bg-secondary, #161b22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
  transform-origin: center right;
  animation: waModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .floating-wa-modal {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.floating-wa-modal.show {
  display: flex;
}

.wa-modal-header {
  background: linear-gradient(135deg, #075E54, #128C7E);
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wa-modal-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-modal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.wa-modal-info h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.wa-modal-status {
  font-size: 0.68rem;
  color: #bbf7d0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-modal-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.wa-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.wa-modal-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
}

.wa-modal-bubble {
  background: rgba(18, 140, 126, 0.12);
  border: 1px solid rgba(18, 140, 126, 0.25);
  border-radius: 10px 10px 10px 2px;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-primary, #f0f6fc);
}

[data-theme="light"] .wa-modal-bubble {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #1f2937;
}

.wa-modal-options-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #8b949e);
  font-weight: 700;
}

.wa-modal-options-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wa-option-btn {
  background: var(--bg-tertiary, #21262d);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: var(--text-primary, #c9d1d9);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

[data-theme="light"] .wa-option-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

.wa-option-btn:hover, .wa-option-btn.active {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25D366;
  color: #25D366;
}

[data-theme="light"] .wa-option-btn:hover, [data-theme="light"] .wa-option-btn.active {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

.wa-modal-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-modal-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-primary, #0d1117);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-primary, #f0f6fc);
  resize: vertical;
  min-height: 52px;
  font-family: inherit;
}

[data-theme="light"] .wa-modal-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.wa-modal-textarea:focus {
  outline: none;
  border-color: #25D366;
}

.wa-modal-footer {
  padding: 8px 14px 12px 14px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

[data-theme="light"] .wa-modal-footer {
  border-top-color: #f1f5f9;
}

.wa-send-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.wa-send-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Compact Book Card Media */
.card-media-book-compact {
  height: 190px !important;
  max-height: 190px !important;
  overflow: hidden;
  background: #11151c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card-media-book-compact img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* ==========================================================================
   COOKIE & PRIVACY CONSENT BANNER
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  box-sizing: border-box;
  z-index: 9998;
  display: none;
  animation: cookieBannerSlideUp 0.35s ease;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .cookie-consent-banner {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
}

.cookie-consent-banner.show {
  display: block;
}

@keyframes cookieBannerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-content {
  flex: 1 1 650px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary, #8b949e);
}

[data-theme="light"] .cookie-banner-content {
  color: #4b5563;
}

.cookie-banner-content strong {
  color: var(--text-primary, #f0f6fc);
  font-size: 0.92rem;
  display: inline-block;
  margin-bottom: 4px;
}

[data-theme="light"] .cookie-banner-content strong {
  color: #111827;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cookie-btn-accept {
  background: var(--accent-primary, #d97706);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.cookie-btn-essential {
  background: transparent;
  border-color: var(--border-subtle, rgba(255, 255, 255, 0.2));
  color: var(--text-primary, #f0f6fc);
}

[data-theme="light"] .cookie-btn-essential {
  border-color: #cbd5e1;
  color: #374151;
}

.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CV ACTIONS: HIRING & RECRUITER WHATSAPP PROMPTS
   ========================================================================== */
.cv-hiring-section {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--accent-primary, #d97706);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .cv-hiring-section {
  background: #f8fafc;
  border-color: #d97706;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cv-hiring-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cv-hiring-badge {
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-primary, #d97706);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-hiring-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
}

[data-theme="light"] .cv-hiring-title {
  color: #0f172a;
}

.cv-hiring-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #8b949e);
  margin-bottom: 18px;
  line-height: 1.5;
}

[data-theme="light"] .cv-hiring-desc {
  color: #475569;
}

.cv-hiring-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cv-hire-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-tertiary, #21262d);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #f0f6fc);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s ease;
  cursor: pointer;
}

[data-theme="light"] .cv-hire-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.cv-hire-btn:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.2);
}

[data-theme="light"] .cv-hire-btn:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

.cv-hire-btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.cv-hire-btn-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}

.ticker-track-wrapper.is-dragging { cursor: grabbing !important; }


/* ==========================================================================
   Cuadrícula 4xN de miniaturas cuadradas para proyectos (Incomms, KD Store, etc.)
   ========================================================================== */
.gallery-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 992px) {
  .gallery-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .gallery-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.gallery-grid-4col .gallery-item {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  border: 1px solid var(--border-subtle) !important;
  background-color: #0b0f17 !important;
  cursor: pointer !important;
  display: block !important;
  margin: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

@supports (aspect-ratio: 1 / 1) {
  .gallery-grid-4col .gallery-item {
    height: auto !important;
    padding-bottom: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
}

.gallery-grid-4col .gallery-item:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 169, 60, 0.25) !important;
  z-index: 2 !important;
}

.gallery-grid-4col .gallery-item img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.gallery-grid-4col .gallery-item:hover img {
  transform: scale(1.08) !important;
}

.gallery-grid-4col .gallery-caption-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 8px 10px !important;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0) 100%) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  pointer-events: none !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  z-index: 2 !important;
}


/* ==========================================================================
   Reglas de Impresión y Exportación a PDF para Hoja de Vida (CV)
   ========================================================================== */
@media print {
  .cv-print-hide,
  .cv-contact-buttons,
  .cv-action-card,
  .cv-cta-box,
  .cv-contact-immediate,
  [data-cv-no-print],
  .header,
  .footer,
  .floating-controls,
  #floatingWaModal,
  .theme-toggle-floating {
    display: none !important;
  }
}


/* Mid-Right Floating Actions: Responsive for Mobile */
@media (max-width: 600px) {
  .floating-actions-container {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    right: 8px !important;
    gap: 8px !important;
  }
  .floating-btn {
    width: 44px !important;
    height: 44px !important;
  }
  .floating-lang-dropdown {
    right: calc(100% + 8px) !important;
  }
  .floating-wa-modal {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    right: 58px !important;
    width: calc(100vw - 72px) !important;
    max-width: 320px !important;
    max-height: calc(100vh - 40px) !important;
  }
}
