/* Estilos globales para WebDev & Marketing */

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Transiciones suaves para dark mode */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.glass-surface {
  /* background: rgba(19, 22, 28, 0.62); */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 55px rgba(3, 15, 35, 0.45);
  /* backdrop-filter: blur(20px); */
  -webkit-backdrop-filter: blur(20px);
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 25px 55px rgba(3, 15, 35, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.testimonial-meta-dot {
  color: rgba(148, 163, 184, 0.9);
}

.testimonial-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #21C87A;
  transition: color 0.2s ease;
}

.testimonial-source-link:hover {
  color: #00B36A;
}

.testimonial-source-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonial-source-icon-wrapper svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.binary-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.6;
}

.binary-overlay span {
  position: absolute;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  color: rgba(33, 200, 122, 0.15);
  font-size: clamp(8px, 0.8vw, 16px);
  animation: binaryFloat var(--duration, 12s) linear infinite;
  text-shadow: 0 0 8px rgba(33, 200, 122, 0.2);
}

@keyframes binaryFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) translateX(30px) scale(1.1);
    opacity: 0;
  }
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 500px;
}

.blog-article-richtext p {
  text-align: justify;
}

/* Animaciones para elementos */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Hover effects para cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Ajuste específico para la altura del offset en desktop cuando el header es fijo */
@media (min-width: 768px) {
  .md\:h-\[86px\] {
    height: 86px !important;
  }
}

/* Kanban card modal redesign */
.kanban-card-modal {
  background: linear-gradient(135deg, #11161d 0%, #0d1218 100%);
}

.kanban-card-stage {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.85);
}

.kanban-card-stage .material-symbols-outlined {
  font-size: 20px;
}

.kanban-card-title {
  width: 100%;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.kanban-card-title::placeholder {
  color: rgba(248, 250, 252, 0.35);
}

.kanban-card-title:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.25);
}

.kanban-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.55);
  color: rgba(226, 232, 240, 0.85);
  padding: 0.25rem 0.75rem;
}

.kanban-chip span.material-symbols-outlined {
  font-size: 18px;
  opacity: 0.7;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.org-chart__level {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
}

.org-chart__level--root {
  gap: 0;
}

.org-chart__level--children {
  padding-top: 2.75rem;
}

.org-chart__level--children::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(148, 163, 184, 0.4), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.org-chart__level--children[data-count="1"] {
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 1.75rem;
}

.org-chart__level--children[data-count="1"]::before {
  display: none;
}

.org-chart__level--children[data-count="1"] .org-chart__node {
  width: 100%;
}

.org-chart__level--children[data-count="1"] .org-chart__node::before {
  height: 2rem;
}

.org-chart__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.org-chart__node--member::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0));
  pointer-events: none;
}

.org-chart__connector {
  width: 2px;
  height: 36px;
  margin: 20px auto 0;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.65), rgba(15, 118, 110, 0.2));
}

.org-chart__node--lead .team-card {
  max-width: 360px;
}

.org-chart__node--member .team-card {
  max-width: 300px;
}

@media (max-width: 640px) {
  .org-chart {
    gap: 2.25rem;
  }

  .org-chart__level--children {
    padding-top: 2rem;
  }

  .org-chart__level--children::before {
    left: 20%;
    right: 20%;
  }
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(100%, 360px);
  padding: 1.6rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  box-shadow: 0 20px 55px -36px rgba(45, 212, 191, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px -30px rgba(94, 234, 212, 0.5);
}

.team-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(45, 212, 191, 0.65);
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.45), rgba(12, 74, 110, 0.35));
}

.team-card__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.85);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.75), rgba(30, 64, 175, 0.55));
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: rgba(226, 232, 240, 0.9);
}

.team-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.team-card__role {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(129, 140, 248, 0.85);
}

.team-card__headline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9);
}

.team-card__skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.team-card__skill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
}

.team-card__footer {
  display: flex;
  justify-content: center;
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(94, 234, 212, 0.9);
  transition: color 0.2s ease;
}

.team-card__link:hover {
  color: rgba(94, 234, 212, 1);
}

/* ==========================================
   TESTIMONIALS CAROUSEL
   ========================================== */

.testimonials-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.carousel-slide {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .carousel-controls {
    padding: 0;
    left: -4rem;
    right: -4rem;
  }
}

.carousel-btn {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 179, 106, 0.1);
  backdrop-filter: blur(10px);
  color: #00B36A;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 179, 106, 0.1);
}

.carousel-btn:hover {
  background: rgba(0, 179, 106, 0.2);
  border-color: #00B36A;
  box-shadow: 0 6px 20px rgba(0, 179, 106, 0.3);
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn .material-symbols-outlined {
  font-size: 28px;
}

/* Dots Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  border-color: rgba(0, 179, 106, 0.6);
  background: rgba(0, 179, 106, 0.2);
}

.carousel-dot.active {
  width: 30px;
  border-radius: 5px;
  border-color: #00B36A;
  background: #00B36A;
  box-shadow: 0 0 10px rgba(0, 179, 106, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn .material-symbols-outlined {
    font-size: 24px;
  }

  .carousel-dots {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 24px;
  }
}
