/* #region Reset y configuración base */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  overscroll-behavior: none;
}

:root {
  /* Colores de acento */
  --accent: #00d4ff;
  --dark-accent: #0ea5e9;
  --purple-accent: #7c3aed;
  --accent-glow:        rgba(0, 212, 255, 0.3);
  --accent-glow-strong: rgba(0, 212, 255, 0.5);
  --accent-subtle:      rgba(0, 212, 255, 0.15);
  --accent-faint:       rgba(0, 212, 255, 0.2);
  --purple-subtle:      rgba(124, 58, 237, 0.15);
  --accent-border:      rgba(0, 212, 255, 0.12);
  --section-border:     rgba(0, 212, 255, 0.08);
  --white-faint:  rgba(255, 255, 255, 0.1);
  --white-border: rgba(255, 255, 255, 0.3);
  --white-semi:   rgba(255, 255, 255, 0.4);

  /* Sombras (escala ascendente de opacidad) */
  --shadow-xs: rgba(0, 0, 0, 0.15);
  --shadow-sm: rgba(0, 0, 0, 0.2);
  --shadow-md: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --shadow-xl: rgba(0, 0, 0, 0.6);

  /* Fondo navbar */
  --bg-nav:         rgba(8, 12, 20, 0.6);
  --bg-nav-scrolled: rgba(8, 12, 20, 0.9);

  /* Colores de iconos por categoría */
  --icon-sky:    #38bdf8;
  --icon-green:  #34d399;
  --icon-orange: #fb923c;
  --icon-yellow: #fbbf24;
  --icon-pink:   #f472b6;
  --icon-purple: #c084fc;
  --color-azure: #60a5fa;
  --color-m365:  #4ade80;

  /* Colores de fondo */
  --bg-deep:     #0a0e1a;
  --bg-section:  #0f1629;
  --bg-elevated: #1c2740;
  --bg-footer:   #060810;
  --bg-nav-menu: #100d30;
  --bg-faq-end:  #1a2040;

  /* Colores de texto */
  --text-primary:    #e2e8f0;
  --text-muted:      #94a3b8;
  --text-faint:      #64748b;
  --text-nav-mobile: #f7eded;

  /* Fondo interior de tarjetas */
  --card-inner: linear-gradient(135deg, #111827 0%, #1a2234 100%);

  /* Radios de borde */
  --radius-section: 20px;
  --radius-card:    15px;
  --radius-lg:      25px;
  --radius-full:    50px;

  /* Efectos glass */
  --glass-blur:      blur(20px) saturate(180%) brightness(1.1);
  --glass-blur-menu: blur(80px);

  /* Fondos de tarjetas de servicios */
  --service-red:     linear-gradient(135deg, #1a0a0a 0%, #2d1515 100%);
  --service-teal:    linear-gradient(135deg, #0a1a1a 0%, #0f2828 100%);
  --service-pink:    linear-gradient(135deg, #1a0a15 0%, #2d1028 100%);
  --service-orange:  linear-gradient(135deg, #1a0f0a 0%, #2d1e10 100%);
  --service-purple:  linear-gradient(135deg, #0f0a20 0%, #1e1040 100%);
  --service-magenta: linear-gradient(135deg, #1a0a1a 0%, #2d1040 100%);
  --service-blue:    linear-gradient(135deg, #0a0f1e 0%, #0f1a38 100%);

  /* Fondos de tarjetas de proceso */
  --process-pink:  linear-gradient(135deg, #1a0a15 0%, #3b1f35 100%);
  --process-aqua:  linear-gradient(135deg, #0a1a18 0%, #0f2828 100%);
  --process-peach: linear-gradient(135deg, #1a0f0a 0%, #3b2810 100%);
  --process-blue:  linear-gradient(135deg, #0a0f1a 0%, #101f3b 100%);

  /* Fondos de tarjetas de contacto */
  --contact-purple: linear-gradient(135deg, #100a1e 0%, #1a1040 100%);
  --contact-red:    linear-gradient(135deg, #1e0a0a 0%, #2d1010 100%);
  --contact-teal:   linear-gradient(135deg, #0a1a1e 0%, #0f2028 100%);

  /* Transiciones reutilizables */
  --transition-transform:   transform 0.3s ease;
  --transition-color:       color 0.3s ease;
  --transition-card:        transform 0.3s ease, box-shadow 0.3s ease;
  --transition-interactive: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

  /* Sombras compuestas */
  --shadow-card-sm: 0 6px 15px var(--shadow-lg);

  /* Escala de z-index */
  --z-navbar:    1000;
  --z-hamburger: 1001;
  --z-preloader: 9999;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-section) 100%);
  min-height: 100vh;
  overscroll-behavior: none;
  overflow-x: hidden;
}

/* #endregion */

/* #region Navegación */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: var(--z-navbar);
}

.navbar.scrolled {
  background: var(--bg-nav-scrolled);
  box-shadow: 0 2px 20px var(--section-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow-strong);
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 700;
  transition: var(--transition-color);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:focus-visible,
.cta-button:focus-visible,
.project-link:focus-visible,
.contact-link:focus-visible,
.footer-section ul li a:focus-visible,
.social-links a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-links a:focus-visible,
.footer-section ul li a:focus-visible,
.social-links a:focus-visible,
.footer-links a:focus-visible {
  border-radius: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.nav-link--active::after {
  width: 100%;
}

.nav-links a.nav-link--active {
  color: var(--accent);
}

.hamburger-btn {
  display: none;
  cursor: pointer;
  padding: 0.625rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  z-index: var(--z-hamburger);
  transition: var(--transition-color);
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
}

.hamburger-btn:hover {
  color: var(--accent);
}

/* #endregion */

/* #region Hero Section */

.hero {
  min-height: fit-content;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 4rem;
  background-image: url('Images/Profile-Picture-2.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--purple-subtle) 100%);
  animation: float 20s infinite linear;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 4px 4px 6px black;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: slideInDown 1s ease-out;
}

.hero .subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
  animation: slideInUp 1s ease-out 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--accent), var(--dark-accent));
  color: white;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: var(--transition-card);
  animation: slideInUp 1s ease-out 0.4s both;
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}


.cta-button:hover {
  box-shadow: 0 6px 20px var(--shadow-md);
}

.hero--services {
  background-image:
    linear-gradient(135deg, rgba(8, 12, 20, 0.85) 0%, rgba(15, 22, 41, 0.85) 100%),
    url('Images/devices-desktop.png');
  background-size: cover;
  background-position: center;
  min-height: 40vh;
}

.hero--services h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero--services .subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.hero--microsoft {
  background-image:
    linear-gradient(135deg, rgba(0, 30, 60, 0.92) 0%, rgba(10, 14, 26, 0.90) 100%),
    linear-gradient(45deg, var(--accent-subtle) 0%, rgba(0, 90, 160, 0.15) 100%);
  min-height: 40vh;
}

.hero--microsoft h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero--microsoft .subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.service-card--blue {
  background: var(--service-blue);
}

.service-card--blue .service-icon {
  color: var(--icon-sky);
}

.hero__buttons {
  margin: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button--outline {
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: var(--transition-interactive);
}

.cta-button--outline:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

/* #endregion */

/* #region Sections base */

.section {
  padding: 0.5rem 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, var(--accent), var(--purple-accent));
  border-radius: 2px;
}

/* #endregion */

/* #region Section cards (patrón compartido) */

.section-card {
  background: var(--bg-section);
  border-radius: var(--radius-section);
  padding: 4rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px var(--shadow-lg);
  border: 1px solid var(--section-border);
}

.faq {
  overflow: hidden;
}

.contact {
  text-align: center;
}

/* #endregion */

/* #region Card base (patrón compartido) */

.skill-category,
.project-card {
  background: var(--card-inner);
  border: 1px solid var(--accent-border);
  transition: var(--transition-card);
}

.skill-category:hover,
.project-card:hover {
  transform: none;
}

.cta-button:hover,
.project-link:hover,
.contact-link:hover,
.social-links a:hover {
  transform: translateY(-3px);
}

/* #endregion */

/* #region Utility classes */

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* #endregion */

/* #region References Section */

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 3rem;
}


/* Logo Carousel */
.logo-carousel {
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-elevated), transparent);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.logo-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
}

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  width: 400px;
}

.logo-slide img {
  max-height: 170px;
  max-width: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: invert(1) grayscale(100%) brightness(1.2) opacity(0.8);
  transition: filter 0.4s ease;
}

.logo-slide img:hover {
  filter: grayscale(0%) brightness(1) opacity(1);
}

/* LanguageLine — más grande para igualar peso visual */
.logo-slide.logo-square img {
  max-height: 218px;
}

/* Microsoft — más grande para igualar peso visual */
.logo-slide.logo-microsoft img {
  max-height: 233px;
}

/* Logos anchos (Sutherland 474x224) */
.logo-slide.logo-wide img {
  max-height: 140px;
  max-width: 380px;
}

/* Logos extra anchos (Teleperformance 300x51) — escalar más para compensar */
.logo-slide.logo-extrawide img {
  max-height: 170px;
  max-width: 400px;
}


/* #endregion */

/* #region About Section */

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}


.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-text h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* #endregion */

/* #region Skills Section */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.skills-grid--certs {
  grid-template-columns: repeat(4, 1fr);
  justify-items: stretch;
}

.skill-category {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-card);
}

.skill-category i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.skill-category--frontend i { color: var(--icon-sky); }
.skill-category--backend i  { color: var(--icon-green); }
.skill-category--db i       { color: var(--icon-orange); }
.skill-category--tools i    { color: var(--icon-yellow); }

.skill-category h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Tarjetas de certificación */
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  border-top-width: 3px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  color: inherit;
  transform: translateY(-8px);
}

.cert-card:hover i {
  transform: scale(1.1);
}

.cert-card i {
  transition: transform 0.3s ease;
}

/* AZ-900 — Azure blue */
.cert-card--az {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.15), var(--bg-deep));
  border-color: rgba(0, 120, 212, 0.5);
  border-top-color: rgb(0, 120, 212);
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.15);
}
.cert-card--az:hover {
  border-color: rgba(0, 120, 212, 0.9);
  box-shadow: 0 8px 32px rgba(0, 120, 212, 0.35);
}

/* MS-900 — M365 green */
.cert-card--ms {
  background: linear-gradient(135deg, rgba(0, 180, 0, 0.15), var(--bg-deep));
  border-color: rgba(0, 180, 0, 0.5);
  border-top-color: rgb(0, 180, 0);
  box-shadow: 0 4px 20px rgba(0, 180, 0, 0.15);
}
.cert-card--ms:hover {
  border-color: rgba(0, 180, 0, 0.9);
  box-shadow: 0 8px 32px rgba(0, 180, 0, 0.35);
}

/* SC-900 — Security purple */
.cert-card--sc {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), var(--bg-deep));
  border-color: rgba(124, 58, 237, 0.5);
  border-top-color: rgb(124, 58, 237);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}
.cert-card--sc:hover {
  border-color: rgba(124, 58, 237, 0.9);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

/* AI-900 — AI orange */
.cert-card--ai {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), var(--bg-deep));
  border-color: rgba(255, 140, 0, 0.5);
  border-top-color: rgb(255, 140, 0);
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.15);
}
.cert-card--ai:hover {
  border-color: rgba(255, 140, 0, 0.9);
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.35);
}

.achievement-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-section);
  font-size: 0.85rem;
  font-weight: 500;
}

/* #endregion */

/* #region Projects Section */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Servicios: 6 tarjetas en 3 columnas */
  #services .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  border-radius: var(--radius-card);
  padding: 1.5rem;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover::before {
  opacity: 0;
}

.project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-link {
  color: white;
  padding: 0.5rem 1rem;
  border: 2px solid var(--white-border);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-interactive);
  position: relative;
  overflow: hidden;
}

.project-link i {
  transition: var(--transition-transform);
}

.project-link:hover {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.project-link:hover i {
  transform: scale(1.1);
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.project-link:hover::before {
  left: 100%;
}

/* Shine sweep — shared across all site buttons */
.cta-button::before,
.cta-button--ghost::before,
.contact-link::before,
.bio-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before,
.cta-button--ghost:hover::before,
.contact-link:hover::before,
.bio-btn:hover::before {
  left: 100%;
}

/* Icon scale on hover */
.cta-button i,
.cta-button--ghost i,
.contact-link i,
.bio-btn i {
  transition: var(--transition-transform);
}

.cta-button:hover i,
.cta-button--ghost:hover i,
.contact-link:hover i,
.bio-btn:hover i {
  transform: scale(1.1);
}

.project-link:active {
  transform: translateY(-1px);
}


.projects.swiper {
  display: none;
}

.card-wrapper {
  overflow: hidden;
}

.card-wrapper .swiper-wrapper {
  align-items: stretch;
}

.card-wrapper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--accent-glow);
}

.card-wrapper .swiper-pagination-bullet-active {
  background: var(--accent);
}

.card-wrapper .swiper-slide {
  width: 60%; /* controla cuánto se ve de las tarjetas vecinas */
  height: auto; /* permite que flex stretch iguale alturas */
}

.service-card--red {
  background: var(--service-red);
}

.service-card--teal {
  background: var(--service-teal);
}

.service-card--pink {
  background: var(--service-pink);
  color: var(--text-primary);
}

.service-card--pink .service-price {
  color: var(--accent);
}

.service-card--orange {
  background: var(--service-orange);
  color: var(--text-primary);
}

.service-card--orange .service-price {
  color: var(--accent);
}

.service-card--purple {
  background: var(--service-purple);
}

.service-card--magenta {
  background: var(--service-magenta);
}

.service-badge {
  position: absolute;
  width: 140px;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-section);
  font-size: 0.8rem;
  font-weight: 700;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Colores de iconos por tarjeta */
.service-card--red .service-icon    { color: var(--icon-sky); }
.service-card--teal .service-icon   { color: var(--icon-green); }
.service-card--pink .service-icon   { color: var(--icon-pink); }
.service-card--orange .service-icon { color: var(--icon-orange); }
.service-card--purple .service-icon { color: var(--icon-yellow); }
.service-card--magenta .service-icon{ color: var(--icon-purple); }

.service-price {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

/* #endregion */

/* #region Contact Section */

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  gap: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  padding: 1rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  transition: var(--transition-interactive);
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.contact-link i {
  font-size: 1.2rem;
}

.contact-link:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

/* #endregion */

/* #region Footer */

.footer-enhanced {
  background: linear-gradient(135deg, var(--bg-footer) 0%, var(--bg-deep) 100%);
  color: var(--text-primary);
  padding: 2rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--section-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-section h3 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.footer-section summary {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  text-align: center;
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.footer-section summary::-webkit-details-marker {
  display: none;
}

.footer-section summary::marker {
  content: '';
}

.footer-section summary::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--accent);
}

/* Desktop: siempre visible aunque <details> esté cerrado */
.footer-section details > :not(summary) {
  display: block;
}

.footer-section p {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  text-align: center;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-muted);
  transition: color 0.3s ease, padding-left 0.3s ease;
  position: relative;
}

.footer-section ul li a:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}


.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--white-faint);
  border-radius: 50%;
  color: white;
  transition: var(--transition-interactive);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-faint);
}

.social-links a:hover {
  background: var(--accent);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.social-links a i {
  font-size: 1.2rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info a {
  color: var(--text-muted);
  transition: var(--transition-color);
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-info i {
  color: var(--accent);
  width: 20px;
}

.footer-bottom {
  background: var(--shadow-sm);
  padding: 1.2rem 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-faint);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.9rem;
  transition: var(--transition-color);
}

.footer-links a:hover {
  color: var(--accent);
}

/* #endregion */

/* #region Animaciones */

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%   { transform: translateY(0) rotate(0); }
  50%  { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

@keyframes spin {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* #endregion */

/* #region Proceso de trabajo */

.process-card--pink {
  background: var(--process-pink);
}

.process-card--aqua {
  background: var(--process-aqua);
}

.process-card--peach {
  background: var(--process-peach);
}

.process-card--blue {
  background: var(--process-blue);
}

.process-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.process-card--pink .process-icon  { color: var(--accent); }
.process-card--aqua .process-icon  { color: var(--icon-pink); }
.process-card--peach .process-icon { color: var(--icon-purple); }
.process-card--blue .process-icon  { color: var(--icon-orange); }

/* #endregion */

/* #region FAQ y Contact cards */

.faq-card {
  padding: 1rem;
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-faq-end) 100%);
  color: var(--text-primary);
  border: 1px solid var(--accent-subtle);
  box-shadow: var(--shadow-card-sm);
  transition: var(--transition-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
}

.faq-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.faq-card:hover {
  box-shadow: 0 4px 12px var(--shadow-md);
}

.faq-swiper {
  padding: 1rem 0 3rem;
  position: relative;
}

.faq-swiper::before,
.faq-swiper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 3rem;
  width: 12%;
  z-index: 2;
  pointer-events: none;
}

.faq-swiper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-section), transparent);
}

.faq-swiper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-section), transparent);
}

.faq-swiper .swiper-slide {
  width: 70%;
  height: auto;
}

@media (max-width: 768px) {
  .faq-swiper .swiper-slide {
    width: 80vw;
  }
}

.faq-swiper .swiper-wrapper {
  align-items: stretch;
}

.faq-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.faq-swiper .faq-card {
  height: 100%;
  width: 100%;
}

.contact-card {
  padding: 1rem;
  border-radius: var(--radius-card);
  text-align: center;
  color: var(--text-primary);
  transition: var(--transition-transform);
  width: 60%;
  box-shadow: var(--shadow-card-sm);
  border: 1px solid var(--accent-border);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card--purple {
  background: var(--contact-purple);
}

.contact-card--red {
  background: var(--contact-red);
}

.contact-card--teal {
  background: var(--contact-teal);
}

.contact-card .contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-card p {
  color: var(--text-muted);
}

/* Grid layouts */

.contact-grid--services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  place-items: center;
}

.text-large {
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

/* #endregion */

/* #region Responsive Design */

@media (max-width: 768px) {

  .hamburger-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 50%;
    max-height: 100svh;
    border-left: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 0;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: var(--z-navbar);
  }

  .nav-links.nav-active {
    left: 0;
    background: var(--bg-nav-menu);
    backdrop-filter: var(--glass-blur-menu);
    -webkit-backdrop-filter: var(--glass-blur-menu);
    border: 1px solid var(--white-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--radius-section) 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.nav-active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.nav-active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.nav-active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.nav-active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.nav-active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.nav-active li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links.nav-active li:nth-child(6) { transition-delay: 0.6s; }
  .nav-links.nav-active li:nth-child(7) { transition-delay: 0.7s; }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-card);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
    color: var(--text-nav-mobile);
  }

  .nav-links a:hover {
    background: var(--accent-subtle);
    color: var(--accent);
    transform: translateX(10px);
  }

  .nav-links a::after {
    display: none;
  }

  .navbar {
    height: 70px;
    display: flex;
    align-items: center;
  }

  .nav-container {
    height: 100%;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }


  .logo-slide {
    width: 150px;
    height: 60px;
  }

  .logo-slide img {
    max-height: 50px;
    max-width: 140px;
  }

  .logo-slide.logo-square img,
  .logo-slide.logo-microsoft img,
  .logo-slide.logo-wide img,
  .logo-slide.logo-extrawide img {
    max-height: 50px;
    max-width: 140px;
  }

  .logo-slide.logo-microsoft img {
    max-height: 95px;
    max-width: 190px;
  }

  .logo-slide.logo-square img {
    max-height: 95px;
    max-width: 190px;
  }

  .logo-slide.logo-wide img {
    max-height: 75px;
    max-width: 165px;
  }

  .logo-track {
    gap: 1.5rem;
  }

  .logo-carousel::before,
  .logo-carousel::after {
    width: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-info p {
    justify-content: center;
  }

  .hero--services h1,
  .hero--microsoft h1 {
    font-size: 2.5rem;
  }

  .hero--services .subtitle,
  .hero--microsoft .subtitle {
    font-size: 1.2rem;
  }

  .contact-grid--services {
    grid-template-columns: 1fr;
  }

  .skills-grid--certs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {

  .hero {
    height: 55vh;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    padding: 0 1.5rem;
    margin-top: 2rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 0.5rem;
  }

  #services.section,
  #faq.section {
    padding: 1rem 0;
  }


  .logo-slide {
    width: 140px;
    height: 60px;
  }

  .logo-slide img {
    max-height: 50px;
    max-width: 130px;
  }

  .logo-slide.logo-square img,
  .logo-slide.logo-microsoft img,
  .logo-slide.logo-wide img,
  .logo-slide.logo-extrawide img {
    max-height: 55px;
    max-width: 130px;
  }

  .logo-slide.logo-microsoft img {
    max-height: 110px;
    max-width: 210px;
  }

  .logo-slide.logo-square img {
    max-height: 110px;
    max-width: 210px;
  }

  .logo-slide.logo-wide img {
    max-height: 60px;
    max-width: 150px;
  }

  .logo-track {
    gap: 1rem;
  }

  .logo-carousel::before,
  .logo-carousel::after {
    width: 25px;
  }

  .skills.section-card {
    padding: 0.5rem;
    margin: 0;
  }

  .faq {
    padding: 0.5rem 0.5rem;
    margin: 0;
  }

  .footer-bottom {
    padding: 0rem;
  }

  .about-content {
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .skills {
    padding: 1rem;
    margin: 0;
  }

  .contact {
    padding: 1rem;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title    title"
      "subtitle subtitle"
      "card     buttons";
    gap: 0.5rem 0.75rem;
    align-items: start;
    text-align: left;
  }

  .contact .section-title {
    grid-area: title;
    text-align: center;
  }

  .contact .text-large {
    grid-area: subtitle;
    text-align: center;
  }

  /* <p> sin clase en profile.html — ocupa ambas columnas y se centra */
  .contact > p:not([class]) {
    grid-column: 1 / -1;
    text-align: center;
  }

  .contact-grid--services {
    grid-area: card;
    margin: 0;
  }

  .contact-links {
    grid-area: buttons;
    align-items: stretch;
    gap: 0.5rem;
  }

  /* profile.html: sin tarjeta, botones en fila ocupando todo el ancho */
  .contact:not(:has(.contact-grid--services)) .contact-links {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0;
  }

  .contact:not(:has(.contact-grid--services)) .contact-link {
    flex: 1;
    min-width: unset;
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
    justify-content: center;
  }

  .contact-links .contact-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    min-width: unset;
  }

  .contact-card p {
    display: none;
  }

  .contact-card .contact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid--certs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cert-card h3 {
    font-size: 0.95rem;
  }

  .project-links {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .project-link {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
  }

  .projects.swiper {
    display: block;
    padding: 0.5rem 0rem;
    height: auto;
  }

  .projects {
    display: none;
  }

  /* Sección Soluciones Microsoft: usa solo el bloque principal, sin swiper */
  #solutions .projects {
    display: block;
  }

  /* Tarjetas de servicio: icono + título en la misma fila (solo tarjetas con icono) */
  .card-wrapper .project-card:has(.service-icon) {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
  }

  .card-wrapper .service-badge,
  .card-wrapper .project-card:has(.service-icon) p,
  .card-wrapper .skill-list,
  .card-wrapper .service-price {
    grid-column: 1 / -1;
  }

  .card-wrapper .service-icon {
    grid-column: 1;
    font-size: 1.5rem;
    margin-bottom: 0;
    align-self: center;
  }

  .card-wrapper .project-card:has(.service-icon) h3 {
    grid-column: 2;
    font-size: 1rem;
    margin-bottom: 0;
    align-self: center;
  }

  .card-wrapper .skill-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .contact-card {
    padding: 0.75rem 0.5rem;
    width: 100%;
  }

  .faq.section-card {
    padding: 0;
    border-radius: 0px;
  }

  .footer-enhanced {
    padding: 3rem 0 0;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  #projects.section {
    padding: 0.5rem 0;
  }

  /* Acordeón del footer en móvil */
  .footer-section details > :not(summary) {
    display: none;
  }

  .footer-section details[open] > :not(summary) {
    display: block;
  }

  .footer-section summary {
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    padding-bottom: 0.5rem;
  }

  .footer-section summary::after {
    /* Reemplaza el subrayado por un chevron */
    position: static;
    width: 7px;
    height: 7px;
    background: none;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: -3px;
  }

  .footer-section details[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 3px;
  }
}

/* #endregion */

/* #region Accesibilidad */

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

  html {
    scroll-behavior: auto;
  }
}

/* #endregion */

/* #region Casos Técnicos — layout editorial */

/* Barra de filtros */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-interactive);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* Contenedor de todos los casos */
.casos-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Caso individual */
.caso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: var(--bg-section);
  border-radius: var(--radius-section);
  border: 1px solid var(--section-border);
  transition: var(--transition-card);
}

.caso:hover {
  box-shadow: 0 4px 20px var(--shadow-sm);
}

.caso--reverse {
  direction: rtl;
}

.caso--reverse > * {
  direction: ltr;
}

.caso--full {
  grid-template-columns: 1fr;
}

/* Cabecera del caso */
.caso-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.caso-badge {
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.caso-badge--azure { background: rgba(0, 120, 212, 0.2); color: var(--color-azure); border: 1px solid rgba(0,120,212,0.3); }
.caso-badge--m365  { background: rgba(0, 180, 0, 0.15);  color: var(--color-m365);  border: 1px solid rgba(0,180,0,0.25); }
.caso-badge--power { background: rgba(164, 94, 255, 0.2); color: var(--icon-purple); border: 1px solid rgba(164,94,255,0.3); }

/* Contenido textual */
.caso-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.caso-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.caso-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.caso-results {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.caso-results li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.caso-results li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Lado visual */
.caso-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--accent-border);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.caso-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caso-visual iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder visual mientras no hay imagen */
.caso-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 260px;
  color: var(--text-faint);
  text-align: center;
  padding: 2rem;
}

.caso-placeholder i {
  font-size: 3rem;
  color: var(--accent-faint);
}

.caso-placeholder p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.caso-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

.caso-visual--stack {
  aspect-ratio: auto;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  height: auto;
}

.caso-figure {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.caso-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
}

.caso-figure figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
}

/* Caso full-width: visual arriba, contenido abajo en dos columnas */
.caso--full .caso-visual {
  aspect-ratio: 16/6;
}

.caso--full .caso-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Hero casos */
.hero--casos {
  background-image:
    linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(15, 22, 41, 0.92) 100%);
  min-height: 35vh;
}

.hero--casos h1      { font-size: 3rem;  margin-bottom: 1rem; }
.hero--casos .subtitle { font-size: 1.3rem; margin-bottom: 2rem; }

/* ── Soluciones Microsoft — Parte 1: grid de servicios ────────── */
/* ── Soluciones Microsoft — layout dos columnas ───────────────── */
.sol-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.sol-col-right {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  height: 100%;
}

/* Masonry con CSS columns */
.sol-services-grid {
  columns: 2;
  column-gap: 1rem;
}

.sol-services-grid .bento-card {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Azure ocupa las dos columnas — tarjeta prominente arriba */
.sol-services-grid .bento-card--azure {
  column-span: all;
  margin-bottom: 1rem;
}

.bento-card {
  background: var(--bg-section);
  border: 1px solid var(--section-border);
  border-radius: var(--radius-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: var(--transition-card);
}

.bento-card:hover       { border-color: var(--accent); }
.bento-card--azure      { border: 2px solid var(--color-azure); }
.bento-card--m365       { border: 2px solid var(--color-m365); }
.bento-card--power      { border: 2px solid var(--icon-purple); }

.bento-icon             { font-size: 2rem; }
.bento-card--azure .bento-icon { color: var(--color-azure); }
.bento-card--m365  .bento-icon { color: var(--color-m365); }
.bento-card--power .bento-icon { color: var(--icon-purple); }

.bento-card h3          { font-size: 1.3rem; color: var(--text-primary); margin: 0; }
.bento-card p           { color: var(--text-muted); line-height: 1.7; margin: 0; }
.bento-tags             { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; }

/* ── Divisor interno ───────────────────────────────────────────── */
.solutions-divider {
  border-top: 1px solid var(--section-border);
  margin: 2rem 0;
}

/* ── Soluciones Microsoft — Parte 2: puntos de valor ──────────── */
.sol-value-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sol-value-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--section-border);
}

.sol-value-item:last-child {
  border-bottom: none;
}

.sol-value-item > i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-top: 0.2rem;
  justify-self: center;
}

.sol-value-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}

.sol-value-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Value Splits (microsoft.html — Por qué un consultor) ─────── */
.value-splits           { display: flex; flex-direction: column; }

.value-split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--section-border);
}

.value-split:last-child { border-bottom: none; }

.value-number {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -3px;
  text-align: center;
}

.value-unit             { font-size: 2.5rem; }
.value-label            { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
.value-desc             { color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── Narrative Stack (microsoft.html — Stack técnico) ─────────── */
.narrative-stack        { display: flex; flex-direction: column; }

.narrative-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--section-border);
}

.narrative-block:last-child { border-bottom: none; }

.narrative-question {
  font-size: 1.7rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.narrative-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.narrative-area i  { font-size: 1.4rem; }
.narrative-area h3 { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin: 0; }

.narrative-block--azure .narrative-area i  { color: var(--color-azure); }
.narrative-block--m365  .narrative-area i  { color: var(--color-m365); }
.narrative-block--power .narrative-area i  { color: var(--icon-purple); }

.narrative-tags         { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Process Timeline (microsoft.html — Proceso) ──────────────── */
.process-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 1rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--icon-purple) 100%);
  z-index: 0;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  position: relative;
  padding: 0 0.75rem;
}

.process-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: var(--transition-card);
}

.process-step:hover .process-dot {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.process-dot i          { color: var(--accent); font-size: 1rem; }
.process-step-num       { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.process-step h3        { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; margin: 0; }
.process-step p         { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Responsive narrative + timeline */
@media (max-width: 768px) {
  .narrative-block        { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .narrative-question     { font-size: 1.3rem; }

  .process-timeline       { flex-direction: column; gap: 0; }
  .process-timeline::before {
    top: 5%; bottom: 5%; left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process-step           { flex-direction: row; text-align: left; align-items: flex-start; gap: 1.2rem; padding: 1rem 0; }
  .process-step-content   { display: flex; flex-direction: column; gap: 0.4rem; }
}

/* Responsive bento + splits */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "azure" "m365" "power" "stats";
  }
  .bento-stats-row    { flex-direction: column; gap: 2rem; padding: 1rem 0; }
  .bento-stat__num    { font-size: 2.5rem; }
  .value-split        { grid-template-columns: 1fr; gap: 0.5rem; }
  .value-number       { font-size: 3.5rem; text-align: left; }
}

@media (max-width: 768px) {
  .sol-two-col { grid-template-columns: 1fr; }
  .sol-services-grid { columns: 1; }
}

/* Hub de áreas */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--section-border);
  background: var(--bg-section);
  cursor: pointer;
  transition: var(--transition-card);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.hub-card:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-4px);
}

.hub-card--azure.active {
  border-color: var(--color-azure);
  background: rgba(96, 165, 250, 0.12);
  box-shadow: 0 0 0 1px var(--color-azure), 0 8px 24px rgba(96, 165, 250, 0.25);
  transform: translateY(-4px);
}

.hub-card--m365.active {
  border-color: var(--color-m365);
  background: rgba(74, 222, 128, 0.10);
  box-shadow: 0 0 0 1px var(--color-m365), 0 8px 24px rgba(74, 222, 128, 0.25);
  transform: translateY(-4px);
}

.hub-card--power.active {
  border-color: var(--icon-purple);
  background: rgba(192, 132, 252, 0.10);
  box-shadow: 0 0 0 1px var(--icon-purple), 0 8px 24px rgba(192, 132, 252, 0.25);
  transform: translateY(-4px);
}

.hub-card--arch.active {
  border-color: var(--icon-orange);
  background: rgba(251, 146, 60, 0.10);
  box-shadow: 0 0 0 1px var(--icon-orange), 0 8px 24px rgba(251, 146, 60, 0.25);
  transform: translateY(-4px);
}

.hub-card i        { font-size: 2.2rem; }
.hub-card h3       { font-size: 1.05rem; color: var(--text-primary); margin: 0; font-weight: 600; }
.hub-card p        { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.hub-card--azure i { color: var(--color-azure); }
.hub-card--m365  i { color: var(--color-m365); }
.hub-card--power i { color: var(--icon-purple); }
.hub-card--arch  i { color: var(--icon-orange); }

.caso-badge--arch {
  background: rgba(251, 146, 60, 0.15);
  color: var(--icon-orange);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .caso {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .caso--reverse { direction: ltr; }

  .caso--full .caso-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .casos-wrapper {
    gap: 2.5rem;
    padding: 0 1rem;
  }

  .caso-content h2  { font-size: 1.3rem; }
  .hero--casos h1   { font-size: 2.5rem; }
  .hero--casos .subtitle { font-size: 1.1rem; }
}

/* #endregion */

/* #region Recursos Técnicos — Dashboard App */

/* ── Body override ─────────────────────────────────── */
body.app-page {
  padding-top: 64px;
  background: var(--bg-deep);
}

/* ── App shell layout ──────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
  align-items: start;
}

/* ── Sidebar ───────────────────────────────────────── */
.app-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: rgba(6, 9, 18, 0.98);
  border-right: 1px solid rgba(0, 212, 255, 0.07);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.15) transparent;
}

.app-sidebar__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-sidebar__header i {
  color: var(--accent);
  font-size: 0.85rem;
}

.app-sidebar__nav {
  flex: 1;
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 0.85rem 0.6rem 0.3rem;
  margin: 0;
  opacity: 0.6;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.835rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  position: relative;
  text-decoration: none;
}

.sidebar-item:not(.sidebar-item--soon):hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-primary);
}

.sidebar-item--active {
  background: rgba(0, 212, 255, 0.1) !important;
  color: var(--accent) !important;
}

.sidebar-item--soon {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar-item__icon {
  width: 18px;
  text-align: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.sidebar-item__label {
  flex: 1;
  line-height: 1.3;
}

.sidebar-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.app-sidebar__footer {
  padding: 0.75rem 0.6rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar-footer-link:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--accent);
}

/* ── Main panel area ───────────────────────────────── */
.app-main {
  min-width: 0;
  padding: 2.5rem 2.25rem;
}

.app-panel {
  animation: panelIn 0.2s ease;
}

.app-panel--hidden {
  display: none;
}

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

.app-panel__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-panel__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.app-panel__subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.app-panel__subtitle a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Quiz wizard ───────────────────────────────────── */
.cmp-wizard {
  max-width: 640px;
}

.cmp-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cmp-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.cmp-steps {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2.25rem;
}

.cmp-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-faint);
  transition: all 0.22s;
}

.cmp-step-dot--active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.cmp-step-dot--done {
  background: var(--accent);
  border-color: var(--accent);
  color: #060912;
}

.cmp-question-stage {
  position: relative;
  min-height: 260px;
}

.cmp-question {
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
}

.cmp-question--visible     { opacity: 1; transform: translateX(0); }
.cmp-question--exit-left   { opacity: 0; transform: translateX(-36px); }
.cmp-question--exit-right  { opacity: 0; transform: translateX(36px); }
.cmp-question--enter-right { opacity: 0; transform: translateX(36px); }
.cmp-question--enter-left  { opacity: 0; transform: translateX(-36px); }

.cmp-question-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.cmp-question-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.6rem;
}

.cmp-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.cmp-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
}

.cmp-option:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--text-primary);
  transform: translateX(3px);
}

.cmp-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cmp-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  transition: all 0.15s;
}

.cmp-option:hover .cmp-option-icon {
  background: var(--accent);
  color: #060912;
}

.cmp-nav-row { display: flex; justify-content: flex-start; }

.cmp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.cmp-back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Result ────────────────────────────────────────── */
.cmp-result {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 860px;
}

.cmp-result-header { margin-bottom: 1.75rem; }

.cmp-result-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.cmp-result-eyebrow i { margin-right: 0.35rem; }

.cmp-plan-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.cmp-plan-badge span {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.45rem 1.25rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.cmp-plus {
  color: var(--text-faint);
  font-size: 1.25rem;
  font-weight: 300;
}

.cmp-result-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cmp-result-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.cmp-justification { display: flex; flex-direction: column; gap: 1rem; }

.cmp-just-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.cmp-just-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cmp-just-block p:last-child {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.cmp-addons { display: none; }

.cmp-addons-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cmp-addons-title i { color: var(--accent); }

.cmp-addon-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.cmp-addon-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.cmp-addon-name { font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; font-size: 0.9rem; }
.cmp-addon-why  { color: var(--text-muted); font-size: 0.84rem; line-height: 1.65; }

.cmp-result-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cta-button--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.cta-button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
}

/* ── Table panel controls ──────────────────────────── */
.tbl-controls {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tbl-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tbl-search-icon {
  position: absolute;
  left: 0.8rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  pointer-events: none;
}

.tbl-search-input {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.55rem 2.1rem 0.55rem 2.1rem;
  color: var(--text-primary);
  font-size: 0.855rem;
  font-family: inherit;
  width: 250px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.tbl-search-input::placeholder { color: var(--text-faint); }

.tbl-search-input:focus {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.035);
}

.tbl-search-clear {
  position: absolute;
  right: 0.55rem;
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.tbl-search-clear:hover { color: var(--text-muted); }

.tbl-col-toggles {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.tbl-col-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  opacity: 0.55;
}

.tbl-col-toggle:hover { opacity: 0.85; }

.tbl-col-toggle--active {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

.tbl-col-toggle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Table ─────────────────────────────────────────── */
.tbl-wrapper {
  overflow: auto;
  max-height: 68vh;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.15) transparent;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 11, 22, 0.98);
  backdrop-filter: blur(8px);
  padding: 0.8rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}

.cmp-table thead th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(8, 11, 22, 0.98);
  min-width: 210px;
  width: 210px;
}

.tbl-feature-label {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(6, 9, 18, 0.97);
  text-align: left !important;
  font-size: 0.82rem !important;
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  padding: 0.6rem 0.9rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035) !important;
}

.cmp-table td {
  padding: 0.6rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 0.83rem;
  transition: background 0.1s;
}

.cmp-table tbody tr:hover td { background: rgba(255, 255, 255, 0.022); }
.cmp-table tbody tr:hover .tbl-feature-label { background: rgba(12, 16, 30, 0.99); }

.cmp-col--rec {
  background: rgba(0, 212, 255, 0.04) !important;
  border-left:  1px solid rgba(0, 212, 255, 0.09);
  border-right: 1px solid rgba(0, 212, 255, 0.09);
}

.cmp-th--rec {
  background: rgba(0, 212, 255, 0.07) !important;
  border-left:  1px solid rgba(0, 212, 255, 0.18) !important;
  border-right: 1px solid rgba(0, 212, 255, 0.18) !important;
}

.cmp-cat-row td {
  background: rgba(0, 212, 255, 0.03) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: var(--text-faint) !important;
  cursor: pointer;
  user-select: none;
  position: static !important;
}

.cmp-cat-row:hover td { background: rgba(0, 212, 255, 0.055) !important; }

.cmp-cat-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cmp-cat-chevron {
  color: var(--text-faint);
  font-size: 0.7rem;
  transition: transform 0.2s;
  opacity: 0.6;
}

.cmp-cat-row--collapsed .cmp-cat-chevron { transform: rotate(-90deg); }
.cmp-feature-row--hidden                 { display: none; }

.cmp-check   { color: var(--icon-green); font-size: 0.88rem; }
.cmp-cross   { color: var(--text-faint); opacity: 0.35; font-size: 0.8rem; }
.cmp-partial { color: var(--icon-yellow); font-size: 0.75rem; font-weight: 600; }
.cmp-text    { color: var(--text-muted); font-size: 0.75rem; }

.tbl-no-results {
  text-align: center;
  padding: 3.5rem;
  color: var(--text-faint);
  font-size: 0.875rem;
  position: static !important;
  background: transparent !important;
}

.cmp-table-note {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.65;
  margin-top: 0.5rem;
}

.cmp-table-note a { color: var(--accent); text-decoration: underline; }

/* #region Diagramas de Arquitectura */

.diag-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.diag-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.diag-filter-btn:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

.diag-filter-btn--active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent);
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.diag-card {
  background: var(--card-inner);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-card);
}

.diag-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.diag-card__preview {
  background: #0f1629;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.diag-card__preview svg {
  width: 100%;
  height: 100%;
}

.diag-card__body {
  padding: 1rem 1.1rem;
}

.diag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.diag-badge--azure {
  background: rgba(96, 165, 250, 0.12);
  color: var(--color-azure);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.diag-badge--m365 {
  background: rgba(74, 222, 128, 0.1);
  color: var(--color-m365);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.diag-badge--power {
  background: rgba(192, 132, 252, 0.1);
  color: var(--icon-purple);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.diag-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.diag-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Modal */
.diag-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.diag-modal--visible {
  pointer-events: auto;
  opacity: 1;
}

.diag-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 18, 0.88);
  backdrop-filter: blur(4px);
}

.diag-modal__box {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #111827 0%, #1a2234 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: panelIn 0.2s ease;
}

.diag-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.diag-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.35rem 0 0;
}

.diag-modal__desc {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.diag-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-faint);
  cursor: pointer;
  transition: all 0.15s;
}

.diag-modal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.diag-modal__diagram {
  padding: 1.5rem;
}

.diag-modal__diagram svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* #endregion */

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.07);
  }

  .app-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.6rem;
  }

  .sidebar-section-label { display: none; }
  .sidebar-item { width: auto; }
  .app-sidebar__footer { display: none; }

  .app-main { padding: 1.5rem 1rem; }

  .cmp-result-body { grid-template-columns: 1fr; }
  .cmp-question-text { font-size: 1.15rem; }
  .tbl-search-input { width: 100%; }
  .tbl-controls { flex-direction: column; }
}

/* #endregion */

/* #region Bio */

.bio-companies-section {
  background: var(--bg-elevated);
  max-width: 100%;
  margin: 0;
  padding: 4rem 1rem 1rem;
  border-radius: 0;
  overflow-x: hidden;
}

.bio-companies-divider {
  text-align: center;
  margin-top: 3rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.5rem;
  align-items: center;
  margin: 0 6rem;
}

.bio-text {
  justify-self: center;
}

.bio-headline {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bio-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}


.bio-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-card);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bio-btn:hover {
  transform: translateY(-3px);
}

.bio-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--dark-accent));
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.bio-btn--primary:hover {
  box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.bio-btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-subtle);
}

.bio-btn--outline:hover {
  background: var(--accent-subtle);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* Tarjetas apiladas */
.bio-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.bio-stat-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  width: fit-content;
  min-width: min(473px, 90vw);
  background: var(--card-inner);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 25px var(--shadow-sm), 0 0 15px var(--accent-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-stat-card--1 {
  transform: rotate(-2deg);
}

.bio-stat-card--2 {
  transform: rotate(1.5deg) translateX(20px);
}

.bio-stat-card--3 {
  transform: rotate(-1deg);
}

.bio-stat-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.bio-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  flex-shrink: 0;
}

.bio-stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .bio-companies-section {
    padding: 2.5rem 0.5rem 0.5rem;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    margin: 0 1.8rem;
  }

  .bio-headline {
    font-size: 2rem;
  }

  .bio-description {
    max-width: 100%;
  }

  .bio-buttons {
    justify-content: center;
  }

  .bio-stat-card--1 {
    transform: rotate(-1deg);
  }

  .bio-stat-card--2 {
    transform: rotate(1deg) translateX(10px);
  }

  .bio-stat-card--3 {
    transform: rotate(-0.5deg);
  }
}

@media (max-width: 480px) {
  .bio-companies-section {
    padding: 1.5rem 0.5rem 0.5rem;
    overflow-x: hidden;
  }

  .hero--microsoft,
  .hero--services,
  .hero--casos {
    height: auto;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .hero--microsoft h1 {
    font-size: 2rem;
  }

  .projects.section-card {
    padding: 1.5rem 0.75rem;
  }

  .bio-grid {
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
  }

  .bio-headline {
    font-size: 1.4rem;
    word-break: break-word;
  }

  .bio-description {
    font-size: 1rem;
  }

  .bio-buttons {
    flex-direction: column;
    align-items: center;
  }

  .bio-stat-card {
    padding: 1rem 1.2rem;
  }

  .bio-stat-card--2 {
    transform: rotate(1deg) translateX(0);
  }

  .bio-stat-card--2:hover {
    transform: rotate(0deg) translateY(-4px);
  }

  .bio-stat-number {
    font-size: 2rem;
  }

  .bio-stat-icon {
    font-size: 1.5rem;
  }
}

/* #endregion */

.services-swiper {
  display: none;
}

@media (max-width: 768px) {
  .services-swiper {
    display: block;
    position: relative;
    padding: 1rem 0 3rem;
  }

  .services-swiper::before,
  .services-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 3rem;
    width: 12%;
    z-index: 2;
    pointer-events: none;
  }

  .services-swiper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-section), transparent);
  }

  .services-swiper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-section), transparent);
  }

  .services-swiper .swiper-wrapper {
    align-items: stretch;
  }

  .services-swiper .swiper-slide {
    width: 85%;
    height: auto;
    display: flex;
  }

  .services-swiper .project-card {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: start;
    padding: 1.2rem;
  }

  .services-swiper .service-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
  }

  .services-swiper .project-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    align-self: center;
  }

  .services-swiper .project-card p,
  .services-swiper .skill-list {
    grid-column: 1 / -1;
  }

  .services-swiper .skill-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

.projects-swiper {
  display: none;
}

@media (max-width: 768px) {
  .projects-swiper {
    display: block;
    position: relative;
    padding: 1rem 0 3rem;
  }

  .projects-swiper::before,
  .projects-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 3rem;
    width: 12%;
    z-index: 2;
    pointer-events: none;
  }

  .projects-swiper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-section), transparent);
  }

  .projects-swiper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-section), transparent);
  }

  .projects-swiper .swiper-wrapper {
    align-items: stretch;
  }

  .projects-swiper .swiper-slide {
    width: 85%;
    height: auto;
    display: flex;
  }

  .projects-swiper .project-card {
    height: 100%;
    width: 100%;
  }
}

.swiper-button-next,
.swiper-button-prev {
  width: 36px;
  height: 36px;
  background: transparent;
  color: rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  border-color: rgba(0, 212, 255, 0.6);
  color: rgba(0, 212, 255, 0.9);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.85rem;
  font-weight: 700;
}
