:root {
  --default-font: "Manrope", system-ui, sans-serif;
  --heading-font: "Syne", system-ui, sans-serif;
  --nav-font: "Manrope", system-ui, sans-serif;
  --motion-ease: cubic-bezier(0.32, 0.72, 0, 1);
  /* Superficie única de landing — sin bandas blanco/gris entre pestañas */
  --landing-surface: #ffffff;
  --section-atmosphere: none;
  --float-surface: #ffffff;
  --float-border: color-mix(in srgb, var(--default-color, #212529) 10%, transparent);
  --float-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --float-blur: 0;
}

:root {
  --sidebar-width: 220px;
  --sidebar-collapsed-width: 80px;
  --sidebar-bg-open: rgba(15, 23, 42, 0.25);
  --sidebar-bg-collapsed: rgba(15, 23, 42, 0.3);
  --sidebar-accent: var(--accent-turquoise, #00d4ff);
  --sidebar-accent-hover: var(--accent-turquoise-dark, #0099cc);
  --sidebar-text: #e2e8f0;
  --sidebar-text-muted: #94a3b8;
  --sidebar-border: rgba(148, 163, 184, 0.1);
  --sidebar-glow: rgba(0, 212, 255, 0.15);
  --tech-gradient: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  --cyber-gradient: var(--gradient-turquoise, linear-gradient(135deg, #00d4ff 0%, #0099cc 100%));
}
.sidebar, .sidebar-header, .sidebar-footer {
  background: var(--sidebar-bg-open) !important;
  background-color: var(--sidebar-bg-open) !important;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: rgba(20,20,30,61%) !important;
  color: var(--text-inverse, #fff);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar.scrolled {
  /* background: rgba(15, 23, 42, 0.95) !important; */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.sidebar.collapsed {
  /* background: rgba(15, 23, 42, 0.9) !important; */
  width: var(--sidebar-collapsed-width);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  min-height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
  user-select: none;
}

.logo-container:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.logo-container:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.sidebar:hover .sidebar-logo {
  transform: scale(1.05);
}

.logo-container:hover .sidebar-logo {
  transform: scale(1.1);
}
.sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-inverse, #fff);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.sidebar.collapsed .sidebar-title {
  opacity: 0;
  width: 0;
  overflow: hidden;
  padding: 0;
}
.sidebar-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-inverse, #fff);
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.toggle-icon span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
  display: block;
}

.sidebar.collapsed .toggle-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.sidebar.collapsed .toggle-icon span:nth-child(2) {
  opacity: 0;
}

.sidebar.collapsed .toggle-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.sidebar-toggle i {
  transition: color 0.3s, transform 0.3s;
}
.sidebar.collapsed .sidebar-toggle i {
  /* Flecha apunta a la derecha */
  transform: rotate(0deg);
}
.sidebar:not(.collapsed) .sidebar-toggle i {
  /* Flecha apunta a la izquierda */
  transform: rotate(0.0turn);
}
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  padding: 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.nav-section {
  margin-bottom: 18px;
}

.nav-section:last-child {
  margin-bottom: 0;
}

.nav-section-title {
  font-size: 0.65em;
  font-weight: 400;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: none;
  background: none;
}
.sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9em;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  border-left: 2px solid transparent;
}

.link-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-link i {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.link-indicator {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}
.sidebar-link.active, .sidebar-link:hover {
  color: var(--text-inverse, #fff);
  border-left-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active i,
.sidebar-link:hover i {
  color: var(--text-inverse, #fff);
}

.sidebar-link.active span,
.sidebar-link:hover span {
  color: var(--text-inverse, #fff);
}

.sidebar-link.active .link-indicator,
.sidebar-link:hover .link-indicator {
  opacity: 1;
}

.sidebar-link span {
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}
.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 12px 0;
}

.sidebar.collapsed .sidebar-link span {
  display: none;
}

.sidebar.collapsed .link-indicator {
  display: none;
}

.sidebar.collapsed .nav-section-title {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.sidebar.collapsed .nav-section {
  margin-bottom: 8px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0,0,0,0.05) !important;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.5);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.copyright {
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.sidebar.collapsed .footer-content {
  align-items: center;
}

.sidebar.collapsed .tech-status span {
  display: none;
}

.sidebar.collapsed .copyright {
  font-size: 0.6em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sidebar.collapsed .sidebar-footer {
  font-size: 0.7em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0;
  padding-right: 0;
}

/* Sidebar Social Links */
.sidebar-social {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-social .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  flex-wrap: wrap;
}

.sidebar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse, #fff);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-social-link i {
  font-size: 1.1em;
}

.sidebar.collapsed .sidebar-social .nav-section-title {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.sidebar.collapsed .sidebar-social .social-links {
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
}

.sidebar.collapsed .sidebar-social-link {
  width: 32px;
  height: 32px;
}

/* Tooltip styles */
.sidebar-tooltip {
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  color: var(--sidebar-text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 500;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.sidebar-tooltip::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 4px solid rgba(15, 23, 42, 0.95);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }
  
  .sidebar:not(.collapsed) {
    width: var(--sidebar-width);
  }
  
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }
}

@media (max-width: 991px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }
  
  .sidebar:not(.collapsed) {
    width: var(--sidebar-width);
  }
  
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }
}

@media (max-width: 767px) {
  /* Legacy sidebar: mostrar toggle flotante */
  body:not(.top-nav-page) .mobile-menu-toggle {
    display: flex;
  }
  
  /* Ocultar sidebar por defecto en móviles */
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 3000;
    transition: left 0.3s ease;
    transform: none;
  }
  
  /* Cuando la sidebar está activa en móviles */
  .sidebar.mobile-active {
    left: 0;
  }
  
  /* Estado oculto para móviles */
  .sidebar.mobile-hidden {
    left: -100%;
  }
  
  /* Ocultar el toggle original en móviles */
  .sidebar-toggle {
    display: none;
  }
  
  /* Mostrar overlay cuando sidebar está activa */
  .sidebar-overlay.active {
    display: block;
  }
  
  /* Asegurar que el contenido principal no tenga margen en móviles */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-left: 0 !important;
  }
  
  /* Ajustar el contenido cuando la sidebar está activa */
  .sidebar.mobile-active ~ .main-content {
    margin-left: 0 !important;
  }
}
.main-content {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
  transition: margin-left 0.3s ease, width 0.3s ease;
}
.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}
.sidebar:not(.collapsed) ~ .main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}
@media (max-width: 991px) {
  .main-content,
  .sidebar:not(.collapsed) ~ .main-content,
  .sidebar.collapsed ~ .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
}
.sidebar-toggle i.white-arrow {
  color: #fff !important;
  transition: color 0.3s;
}
.sidebar-toggle i.black-arrow {
  color: #222 !important;
  transition: color 0.3s;
}
.sidebar.collapsed .sidebar-title {
  display: none;
}

/* Contenedor principal */
.wizard-container {
  height: calc(100vh - 90px);
  min-height: calc(100vh - 90px);
  max-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
}

.wizard-step {
  display: none;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.4s, transform 0.4s;
  overflow: visible;
}

.wizard-step.active {
  display: flex;
  opacity: 1;
  z-index: 2;
}

.wizard-nav {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.wizard-card {
  width: 85%;
  max-width: 95%;
  height: 85%;
  max-height: 95%;
  margin: 0 auto;
  background-color: white !important;
  border: 2px solid var(--primary, #0066FF);
  border-radius: 10px;
  z-index: 1;
  padding: 2rem 2rem;
  box-shadow: 0 4px 32px rgba(0, 102, 255, 0.2);
  transition: width 0.4s, height 0.4s, max-width 0.4s, max-height 0.4s;
  position: relative;
}

.tools {
  display: flex;
  align-items: center;
  padding: 9px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  gap: 12px;
}

.circle {
  padding: 0 6px;
}

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.2em;
  border: 2px solid white;
}

.red { background-color: #ff605c; }
.red:hover { background-color: #ff4444; }
.yellow { background-color: #ffffff; }
.yellow:hover { background-color: #ffffff; }
.green { background-color: #ffffff; }
.green:hover { background-color: #ffffff; }

.box svg {
  width: 18px;
  height: 18px;
  color: white;
  pointer-events: none;
}

.wizard-card-content {
  padding-top: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding: 1rem;
  overflow: visible;
  flex: 1;
  height: 100%;
}

.card {
  width: 100%;
  max-width: 260px;
  background: white;
  color: #333;
  border: 2px solid var(--primary, #0066FF);
  border-radius: 2.5em;
  padding: 1.2em;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 180px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2em;
  z-index: 1;
  height: 100%;
  transition: transform 0.4s ease;
  padding-top: 0;
}

.card .card-top,
.card .card-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card .card-top p,
.card .card-top .card-title,
.card .card-bottom p,
.card .card-bottom .card-title {
  margin: 0;
  font-size: 0.9em;
  text-align: center;
  width: 100%;
}

.card .card-title {
  font-weight: bold;
}

.card .card-top p,
.card .card-bottom p {
  font-weight: 600;
}

.card .card-bottom {
  align-items: flex-end;
}

.card .card-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.card .card-image svg {
  width: 3em;
  height: 3em;
  transition: transform 0.4s ease;
  stroke: var(--primary, #0066FF);
}

.card:hover {
  transform: scale(0.97);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.2);
  border-color: #0044CC;
}

.card:hover .card-content {
  transform: scale(0.96);
}

.card:hover .card-image svg {
  transform: scale(1.05);
}

.card:active {
  transform: scale(0.9);
}

.card.selected {
  background: var(--primary, #0066FF);
  color: white;
  border-color: var(--primary, #0066FF);
}

.card.selected .card-content * {
  color: white;
}

.card.selected .card-image svg {
  stroke: white;
  fill: white;
}

.wizard-card.paso3-activo {
  width: 85%;
  height: auto;
  max-width: 85%;
  max-height: none;
  overflow: visible;
  border-color: var(--primary, #0066FF);
}

.wizard-card.step3-container-mode {
  background: white;
  box-shadow: none;
  border: 2px solid var(--primary, #0066FF);
  padding: 0;
}

.wizard-card.paso2-activo {
  width: 70%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  border-color: var(--primary, #0066FF);
}

.wizard-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary, #0066FF);
}

.form-control,
.form-select {
  background: white;
  color: #333;
  border: 1px solid var(--primary, #0066FF);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary, #0066FF);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

.btn-primary {
  background: var(--primary, #0066FF);
  border: 1px solid var(--primary, #0066FF);
}

.btn-primary:hover {
  background: var(--btn-primary-hover, var(--primary-600, #0052CC));
  border-color: var(--btn-primary-hover, var(--primary-600, #0052CC));
}

.btn-secondary {
  background: var(--btn-secondary, var(--neutral-500, #64748B));
  border: 1px solid var(--btn-secondary, var(--neutral-500, #64748B));
  color: var(--btn-secondary-text, var(--text-inverse, #fff));
}

.summary-list {
  list-style: none;
  padding: 0;
  color: var(--text-primary, #0F172A);
  max-height: calc(100% - 200px);
  overflow-y: auto;
}

.summary-list li {
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--primary, #0066FF);
  padding-bottom: 0.3rem;
}

.summary-list li strong {
  color: var(--primary, #0066FF);
}

.form-check-input:checked {
  background-color: #0066FF;
  border-color: var(--primary, #0066FF);
}

.form-check-input {
  background-color: white;
  border-color: var(--primary, #0066FF);
}

.card-tooltip {
  min-width: 130%;
  max-width: 150%;
  background: white;
  padding: 0.25em 0.7em;
  text-align: center;
  position: absolute;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  color: #333;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 102, 255, 0.1);
  z-index: 9999;
  transform-origin: center top;
  transition: opacity 0.3s, top 0.3s, bottom 0.3s, transform 0.3s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  border: 1px solid var(--primary, #0066FF);
}

.card-tooltip.abajo {
  top: 105%;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
}

.card-tooltip.abajo::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 7px 8px 7px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.card:hover .card-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .wizard-card {
    width: 90%;
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  
  .wizard-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .wizard-card {
    padding: 1.5rem;
  }
  
  .card {
    height: 160px;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .wizard-container {
    height: 100vh;
    min-height: -webkit-fill-available;
    border-radius: 0;
  }
  
  .wizard-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.5rem;
  }
  
  .card {
    height: 140px;
    border-radius: 2em;
  }
  
  .wizard-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .wizard-nav {
    margin-top: 1.5rem;
  }
  
  @media (max-height: 700px) {
    .card {
      height: 120px;
    }
    
    .wizard-title {
      font-size: 1.3rem;
    }
  }
}

@media (max-width: 992px) {
  .wizard-card {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .wizard-card-content {
    min-height: min-content;
  }
}

@supports (-webkit-touch-callout: none) {
  .wizard-container {
    height: -webkit-fill-available;
  }
}
/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: var(--bg-primary, #ffffff); /* Background color for the entire website, including individual sections */
  --default-color: var(--text-secondary, #475569); /* Default color used for the majority of the text content across the entire website */
  --heading-color: var(--text-primary, #0F172A); /* Color for headings, subheadings and title throughout the website */
  --accent-color: var(--primary, #0066FF); /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: var(--card-bg, #ffffff); /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: var(--text-inverse, #ffffff); /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: var(--nav-text, rgba(255, 255, 255, 0.605));  /* The default color of the main navmenu links */
  --nav-hover-color: var(--primary, #0066FF); /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: var(--nav-bg, #ffffff); /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: var(--nav-dropdown-background-color, #ffffff); /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: var(--text-secondary, #475569); /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: var(--primary, #0066FF); /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body, .main-content {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--default-color);
  font-family: var(--default-font);
}

/* ponytail: fondo único en toda la landing (evita interferencia blanco/gris por pestaña) */
html:has(body.top-nav-page),
body.top-nav-page {
  background-color: var(--landing-surface, #fff) !important;
  background-image: none !important;
}

body.top-nav-page .main-content,
body.top-nav-page .main {
  background-color: var(--landing-surface, #fff) !important;
  background-image: none !important;
}

body.top-nav-page .snap-panel:not(#hero),
body.top-nav-page .services.section,
body.top-nav-page .about.section,
body.top-nav-page .clients.section,
body.top-nav-page .portfolio.section,
body.top-nav-page .faq.section,
body.top-nav-page #about.about-trust,
body.top-nav-page #faq.faq-footer-snap {
  background-color: var(--landing-surface, #fff) !important;
  background-image: none !important;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

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

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.8);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: var(--text-inverse, #fff);
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background: linear-gradient(135deg, var(--bg-dark, rgba(15, 23, 42, 0.95)) 0%, var(--bg-dark-secondary, rgba(30, 41, 59, 0.95)) 100%), url('../img/fondo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-size: 14px;
  position: relative;
}

.footer .footer-newsletter {
  background-color: color-mix(in srgb, var(--default-color), transparent 97%);
  padding: 50px 0;
}

.footer .footer-newsletter h4 {
  font-size: 24px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  transition: 0.3s;
  border-radius: 50px;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--surface-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 50px;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

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

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  margin-right: 3px;
  font-size: 12px;
  line-height: 0;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1;
}

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

.footer .footer-about a {
  color: var(--heading-color);
  font-size: 24px;
  font-weight: 600;
  font-family: var(--heading-font);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  background: var(--neutral-800, #1E293B);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg, 0 4px 24px rgba(0, 0, 0, 0.15)), 0 0 0 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  cursor: pointer;
}

.scroll-top i {
  font-size: 2.2em;
  color: var(--text-inverse, #fff);
  filter: drop-shadow(0 0 8px rgba(30, 41, 59, 0.53));
  transition: transform 0.2s, filter 0.2s;
}

.scroll-top:hover {
  background: var(--neutral-900, #0F172A);
  box-shadow: var(--shadow-xl, 0 6px 32px rgba(0, 0, 0, 0.2)), 0 0 0 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.08) translateY(-4px);
}

.scroll-top:hover i {
  filter: drop-shadow(0 0 16px rgba(30, 41, 59, 0.8));
  transform: scale(1.15) rotate(-8deg);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 160px 0 60px 0;
  text-align: center;
  position: relative;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2, .section-title h2.about-title-gradient, .section-title h2.gallery-title-gradient {
  background: var(--gradient-sky, linear-gradient(90deg, #00c6fb 0%, #005bea 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
}

.section-title p {
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
}

.section-title-blue {
  background: var(--gradient-turquoise, linear-gradient(90deg, #00d4ff 0%, #0099cc 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  width: 100%;
  /* Un viewport exacto: evita scroll muerto arriba + snap que “recentra” */
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  color: var(--text-inverse, #fff);
  background: #0f172a;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
  pointer-events: none;
}

/* Demo: cielo nocturno bajo la foto (legible si falla el webp) */
.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 74% 22%, rgba(0, 102, 255, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #050b18 0%, #0a1730 42%, #12294d 72%, #0f172a 100%);
}

.hero__photo,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  transform: scale(1.06);
}

/* Tint medido del demo: contraste del copy sin aplastar la ciudad */
.hero__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.48) 0%, rgba(15, 23, 42, 0.22) 38%, rgba(15, 23, 42, 0.9) 100%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.6) 0%, rgba(0, 102, 255, 0.34) 45%, rgba(0, 212, 255, 0.2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 28%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: min(52vw, 420px);
  height: min(36vh, 260px);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28) 0%, transparent 70%);
  opacity: 0.75;
  filter: blur(36px);
  z-index: 1;
  pointer-events: none;
}

.hero .overlay {
  display: none; /* ponytail: tint vive en .hero__tint */
}

.hero .container {
  position: relative;
  z-index: 2;
  /* Espacio bajo header fijo (el hero es full-bleed 100svh) */
  padding-block: calc(var(--header-height, 60px) + clamp(1.5rem, 4vh, 3rem)) 3rem;
}

.hero-content {
  max-width: min(42rem, 100%);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  font-size: clamp(0.68rem, 1.6vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d4ff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-kicker--under {
  margin: -0.35rem 0 0.85rem;
}

.hero-slider {
  width: 100%;
  margin-top: 0.35rem;
}

/* Carrusel secundario bajo el lead: menos peso tipográfico */
.hero-slider--compact {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  max-width: 34rem;
  margin-inline: auto;
}

.hero-slider--compact .hero-headline--slide {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: rgba(226, 232, 240, 0.92);
}

.hero-slider--compact .hero-subtitle--slide {
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  margin-bottom: 0.85rem;
  max-width: 32rem;
}

.hero-slider--compact .btn-hero-primary--compact,
.hero-slider--compact .btn-hero-primary {
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
}

.hero-slider .swiper-slide {
  opacity: 0 !important;
  pointer-events: none;
  box-sizing: border-box;
  padding-inline: 0.25rem;
}

.hero-slider .swiper-slide-active {
  opacity: 1 !important;
  pointer-events: auto;
}

.hero-slider .hero-headline {
  margin-bottom: 0.75rem;
}

.hero-slider .hero-subtitle {
  margin-bottom: 1.25rem;
}

.hero-slider__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.hero-slider__dots.swiper-pagination {
  position: static;
  width: auto;
  display: inline-flex;
  gap: 0.45rem;
}

.hero-slider__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  cursor: grab;
}

.hero-slider__dots .swiper-pagination-bullet-active {
  background: #00d4ff;
  transform: scale(1.15);
}

@media (max-width: 575.98px) {
  .hero-slider .hero-headline {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
  }

  .hero-slider .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero-cta-group {
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .swiper-slide {
    transition: none !important;
  }
}

.hero-logo {
  filter: drop-shadow(0 8px 28px rgba(0, 102, 255, 0.45));
  width: clamp(88px, 18vw, 140px);
  height: auto;
  margin-bottom: 1.25rem;
}

.hero-brand {
  font-family: var(--heading-font);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}

.hero-pillar {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--default-font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-pillar:nth-child(1) {
  background: color-mix(in srgb, var(--primary, #0066ff) 28%, transparent);
  border-color: rgba(0, 102, 255, 0.45);
}

.hero-pillar:nth-child(2) {
  background: color-mix(in srgb, var(--accent-turquoise, #00d4ff) 18%, transparent);
  border-color: rgba(0, 212, 255, 0.4);
}

.hero-pillar:nth-child(3) {
  background: color-mix(in srgb, var(--accent-turquoise, #00d4ff) 22%, transparent);
  border-color: rgba(0, 212, 255, 0.5);
}

.hero-headline {
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: rgba(226, 232, 240, 0.95);
}

.hero-subtitle {
  font-family: var(--default-font);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 2rem;
  color: var(--neutral-300, #CBD5E1);
  max-width: 34rem;
  margin-inline: auto;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  justify-content: center;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  color: var(--cta-fg, #041018);
  background: var(--cta-bg, linear-gradient(135deg, #00d4ff 0%, #00c6fb 52%, #0099cc 100%));
  border: 1px solid var(--cta-border, rgba(255, 255, 255, 0.38));
  text-decoration: none;
  box-shadow: var(--cta-shadow, 0 8px 28px rgba(0, 212, 255, 0.42));
  transition: background 0.25s var(--motion-ease), border-color 0.25s var(--motion-ease), transform 0.2s var(--motion-ease), filter 0.2s ease, box-shadow 0.25s ease;
}

.btn-hero-primary:hover {
  color: var(--cta-fg, #041018);
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: var(--cta-shadow-hover, 0 12px 32px rgba(0, 212, 255, 0.55));
  text-decoration: none;
}

.btn-hero-primary:focus-visible {
  outline: 2px solid var(--accent-turquoise, #00d4ff);
  outline-offset: 3px;
}

.btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(1px);
  text-decoration: none;
}

/* Hero interactivo — casa + servicios (NexSecure / index_camaras) */
.hero--with-house {
  min-height: min(100vh, 1100px);
  padding-top: 100px;
  padding-bottom: 48px;
}

.hero-house-wrapper {
  max-width: 1140px;
}

.hero-logo--compact {
  width: 100%;
  max-width: 180px;
}

.hero-title--h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  opacity: 0.95;
}

.hero-subtitle--compact {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1rem;
}

.hero-house-visual {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 2730 / 1536; /* hero-casa-nexsecure.png (Gemini render) */
  background: rgba(15, 23, 42, 0.5);
}

.hero-house-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-house-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-house-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  text-align: center;
  font-family: inherit;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.hero-house-hotspot:focus {
  outline: none;
}

.hero-house-hotspot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 8px;
}

.hero-house-hotspot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #38bdf8, #0066ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(0, 102, 255, 0.55);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-house-hotspot:hover .hero-house-hotspot-dot,
.hero-house-hotspot:focus-visible .hero-house-hotspot-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 6px 20px rgba(0, 102, 255, 0.65);
}

.hero-house-hotspot-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  max-width: 7.5rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .hero-house-hotspot-label {
    display: none;
  }

  .hero-house-hotspot {
    min-width: 52px;
    min-height: 52px;
  }

  .hero-house-hotspot-dot {
    width: 18px;
    height: 18px;
  }
}

.btn-get-started {
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  transition: background 0.25s var(--motion-ease), color 0.25s var(--motion-ease), box-shadow 0.25s var(--motion-ease), transform 0.2s var(--motion-ease), border-color 0.25s ease;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.28);
  text-decoration: none;
}

.btn-get-started:hover {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.34), 0 0 0 3px rgba(255, 122, 69, 0.28);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-get-started:focus-visible {
  outline: 2px solid #ff7a45;
  outline-offset: 3px;
}

.btn-hero-secondary {
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  color: var(--cta-fg, #fff);
  background: var(--cta-bg, linear-gradient(135deg, #0066ff 0%, #0052cc 100%));
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: var(--cta-shadow, 0 8px 24px rgba(0, 102, 255, 0.35));
  transition: background 0.25s var(--motion-ease), border-color 0.25s var(--motion-ease), transform 0.2s var(--motion-ease), filter 0.2s ease, box-shadow 0.25s ease;
}

.btn-hero-secondary:hover {
  color: var(--cta-fg, #fff);
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: var(--cta-shadow-hover, 0 12px 28px rgba(0, 102, 255, 0.45));
}

/* Legacy class kept for other templates */
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
  }

  .btn-get-started,
  .btn-hero-secondary,
  .btn-hero-primary {
    width: min(100%, 300px);
    text-align: center;
    justify-content: center;
  }
}

/* Section atmosphere (light panels) — unificado: sin degradé que deje bandas */
.top-nav-page .services.section,
.top-nav-page .about.section,
.top-nav-page .clients.section,
.top-nav-page .portfolio.section,
.top-nav-page .faq.section {
  background-image: none;
  background-color: var(--landing-surface, #fff);
}

.top-nav-page .section-title h2 {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

/* Reveal: visible por defecto. Motion solo anima si carga bien. */
[data-motion-reveal] {
  opacity: 1;
  transform: none;
}

html.motion-ready [data-motion-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready [data-motion-reveal]:not(.is-revealed),
  [data-motion-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__media {
    will-change: auto;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.about .content .fst-italic {
  color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 10px 0 0 0;
  display: flex;
}

.about .content ul i {
  color: var(--accent-color);
  margin-right: 0.5rem;
  line-height: 1.2;
  font-size: 1.25rem;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.img-hover-zoom img {
  transition: transform 0.4s ease;
}

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

.about .btn {
  transition: all 0.3s ease;
}

.about .btn:hover {
  background-color: #004aad;
  box-shadow: 0 0.5rem 1rem rgba(0, 74, 173, 0.25);
}


/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients {
  background-color: #ffffff;
  padding: 60px 0;
}

.clients .swiper {
  padding: 10px 0;
}

.clients .swiper-wrapper {
  height: auto;
  align-items: center;
}

.clients .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

.clients .swiper-slide img {
  max-height: 80px;
  width: auto;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

.clients .swiper-slide img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: none;
}

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-services .card {
  background-color: var(--background-color);
  color: var(--default-color);
  border: none;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 500px;
}

.featured-services .card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 25%, rgba(0, 0, 0, 0.9) 75%);
  z-index: 2;
}

.featured-services .card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.featured-services .card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 30px;
}

.featured-services .card .card-body h3 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-color);
}

.featured-services .card .card-body h3 a {
  color: var(--contrast-color);
}

.featured-services .card .card-body .card-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.5s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.featured-services .card .card-body .card-content p {
  font-size: 15px;
  padding-top: 10px;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--contrast-color);
}

.featured-services .card:hover .card-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 120px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  color: var(--default-color);
  font-size: 28px;
  font-weight: 700;
}

.call-to-action p {
  color: var(--default-color);
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
  padding-top: 40px;
}

.services .service-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.services .service-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  border-right: 5px solid var(--background-color);
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-right: 50px;
  line-height: 0;
}

.services .service-item .icon i {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 56px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
}

.services .service-item .icon:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  background: color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 50px;
  z-index: 1;
  bottom: -15px;
  right: -15px;
  transition: 0.3s;
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

.services .service-item.service-card {
  padding-top: 0;
}

.services .service-item.service-card .icon {
  width: 34px;
  height: 34px;
  margin-right: 0;
  line-height: normal;
}

.services .service-item.service-card .icon i {
  font-size: 1.05rem;
  color: var(--accent-color);
}

.services .service-item.service-card .icon:before {
  display: none;
}

/* Landing #services: título con aire bajo header + galería */
.top-nav-page #services.snap-panel {
  height: calc(100svh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--section-inset-top);
  padding-bottom: var(--section-inset-bottom);
  box-sizing: border-box;
}

/* Encuadre común — tipografía + superficie, mismo hilo NexSecure */
.top-nav-page .section-stage {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--section-stack-gap);
  flex: 1 1 auto;
  min-height: 0;
  padding-inline: var(--section-inset-x);
  justify-content: flex-start;
}

.top-nav-page .section-stage--tight {
  gap: calc(var(--section-stack-gap) * 0.85);
  max-width: 1040px;
}

/* Cabecera tipográfica (sin caja flotante) */
.top-nav-page .section-heading {
  flex: 0 0 auto;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
  padding: var(--section-heading-to-content, 0.85rem) 0.5rem calc(var(--section-heading-to-content) + 0.15rem);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.top-nav-page #services .section-heading,
.top-nav-page #about .section-heading,
.top-nav-page #faq .section-heading,
.top-nav-page #portfolio .section-heading {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: 0.35rem 0.5rem var(--section-heading-to-content);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.top-nav-page .section-heading--sm {
  padding-bottom: 0.55rem;
  max-width: 34rem;
}

.top-nav-page .section-heading h2,
.top-nav-page .section-heading h2.about-title-gradient,
.top-nav-page .section-heading h2.section-title-blue,
.top-nav-page .section-heading h2.clients-title {
  margin: 0 0 0.55rem;
  padding-bottom: 0.65rem;
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: #0f172a;
  text-fill-color: #0f172a;
  position: relative;
}

.top-nav-page .section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary, #0066ff) 0%, var(--accent-turquoise, #00d4ff) 100%);
}

.top-nav-page .section-heading h2.about-title-gradient,
.top-nav-page .section-heading h2.section-title-blue {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  text-fill-color: #0f172a;
}

.top-nav-page .section-heading p {
  margin: 0 auto;
  max-width: 34rem;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #64748b !important;
  opacity: 1;
}

/* Contenedores de sección: sin caja externa — tarjetas flotan sobre el fondo */
/* ponytail: densidad cards = ref be93d58 (pre-WIP stash); colorimetría intacta */
.top-nav-page .section-panel,
.top-nav-page .services-gallery {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.top-nav-page #services .section-stage,
.top-nav-page #portfolio .section-stage,
.top-nav-page #about .about--compact .section-stage {
  justify-content: flex-start;
}

.top-nav-page .section-panel--gallery {
  overflow: auto;
}

#services .services-filter-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: flex-start;
  overflow: auto;
}

#services .services-grid {
  --svc-cols: 3;
  --svc-track: 3;
  --svc-gap-row: 1.15rem;
  --svc-gap-col: 1.15rem;
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--svc-cols), minmax(0, 1fr));
  grid-auto-rows: min-content;
  row-gap: var(--svc-gap-row);
  column-gap: var(--svc-gap-col);
  padding: 0.35rem 0 0.15rem;
  overflow: visible;
  justify-content: stretch;
  align-content: start;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

#services .service-grid-item {
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  opacity: 1;
}

#services .service-grid-item.is-shown {
  opacity: 1;
}

#services .services-grid.is-filtering .service-grid-item.is-shown {
  transition: none;
  opacity: 1;
}

#services .service-grid-item.is-hidden,
#services .service-grid-item[hidden] {
  display: none !important;
  opacity: 0;
}

#services .services-grid.is-single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

#services .services-grid.is-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
}

/* ponytail: is-pair no debe forzar 2 cols en teléfono */
@media (max-width: 639.98px) {
  #services .services-grid.is-pair {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }
}

#services .service-card--vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  max-width: none;
  max-height: none;
  min-height: 0;
  position: relative;
  padding: 0 !important;
  margin: 0;
  border: 1px solid var(--float-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--float-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--float-shadow);
  align-self: stretch;
}

#services .service-card--vertical:before,
#services .service-card--vertical:after {
  display: none !important;
  content: none !important;
}

#services .service-card__media {
  flex: 0 0 auto;
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #e8eef5;
  position: relative;
}

#services .service-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

#services .service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  background: #e8eef5;
}

#services .service-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem 0.95rem;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0;
}

#services .service-card__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

#services .service-card--vertical .icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 0 !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary, #0066ff) 12%, #fff);
  position: relative;
}

#services .service-card--vertical .icon i {
  font-size: 1rem !important;
  color: var(--primary, #0066ff);
  position: static !important;
  z-index: 1;
}

#services .service-card--vertical .icon:before {
  display: none !important;
  content: none !important;
}

#services .service-card--vertical .title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

#services .service-card--vertical .description {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
  overflow: visible;
}

/* Desktop: copy completo; móvil: versión corta */
#services .service-copy--mobile {
  display: none;
}

@media (max-width: 991.98px) {
  .top-nav-page #services.snap-panel {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--header-height));
    overflow: visible;
    scroll-snap-align: start;
    scroll-margin-top: var(--header-height);
  }

  #services .services-grid {
    --svc-gap-row: 0.9rem;
    --svc-gap-col: 0.85rem;
    --svc-track: 2;
    width: 100%;
    grid-template-columns: repeat(var(--svc-cols), minmax(0, 1fr));
  }

  #services .service-card__media {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    aspect-ratio: auto;
  }

  /* Textos cortos: legibles en tablet/móvil */
  #services .service-copy--full {
    display: none;
  }

  #services .service-copy--mobile {
    display: inline;
  }

  #services .service-card--vertical .title {
    font-size: clamp(0.95rem, 2.4vw, 1.08rem);
    line-height: 1.25;
  }

  #services .service-card--vertical .description {
    font-size: clamp(0.86rem, 2.1vw, 0.95rem);
    line-height: 1.45;
    color: #475569;
  }

  .top-nav-page {
    --section-inset-x: 1rem;
    --section-inset-top: clamp(1.15rem, 3vh, 1.85rem);
    --section-inset-bottom: clamp(0.85rem, 2vh, 1.35rem);
    --section-title-air: var(--header-height);
  }

  @media (max-width: 575.98px) {
    .top-nav-page {
      --section-inset-x: 0.75rem;
    }
  }

  .top-nav-page .snap-panel:not(#hero) {
    min-height: calc(100dvh - var(--header-height));
    scroll-margin-top: var(--header-height);
  }

  .top-nav-page #hero.snap-panel {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .top-nav-page .section-heading {
    max-width: 36rem;
    padding-inline: 0.35rem;
  }

  .top-nav-page .section-heading h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.2;
  }

  .top-nav-page .section-heading p {
    font-size: clamp(0.9rem, 3.4vw, 1.05rem);
    line-height: 1.45;
  }
}

#services .portfolio-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: 0.4rem 0.55rem;
  padding: 0 0.25rem 0.35rem;
  margin: 0 auto 0.85rem;
  flex: 0 0 auto;
  list-style: none;
  text-align: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#services .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  flex: 0 0 auto;
  padding: 7px 12px 8px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 50px;
  transition: color 0.25s ease, background-color 0.25s ease;
  font-family: var(--heading-font);
  color: color-mix(in srgb, var(--default-color, #212529) 78%, transparent);
  scroll-margin-inline: 0.75rem;
}

#services .portfolio-filters li:hover,
#services .portfolio-filters li.filter-active {
  color: var(--contrast-color, #fff);
  background-color: var(--accent-color, #0066ff);
}

@media (max-width: 575px) {
  #services .portfolio-filters {
    gap: 0.35rem 0.4rem;
  }

  #services .portfolio-filters li {
    font-size: 0.82rem;
    padding: 6px 10px 7px;
  }
}

@media (hover: none) {
  .services .service-card__media img {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Móvil: tarjetas de servicio, imágenes y safe areas (iOS / Android) */
@media (max-width: 767.98px) {
  html {
    overflow-x: clip;
  }

  /* Safe-area en el header, no en body (evita “lining” / hueco lateral) */
  body.index-page.top-nav-page {
    padding-left: 0;
    padding-right: 0;
  }

  /* No pisar padding de paneles snap de la landing */
  body:not(.top-nav-page) section,
  body:not(.top-nav-page) .section {
    padding: 44px 0;
    scroll-margin-top: calc(var(--header-height, 60px) + env(safe-area-inset-top, 0px) + 8px);
  }

  .top-nav-page .hero,
  .top-nav-page #hero.snap-panel {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0;
  }

  .hero::after {
    left: 50%;
    top: 38%;
    width: min(90vw, 360px);
    height: 220px;
  }

  .hero__photo,
  .hero__media img {
    object-position: 62% 64%;
  }

  .hero-slider--compact {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .hero-logo {
    width: clamp(72px, 22vw, 110px);
  }

  .hero-brand {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .hero-headline {
    font-size: clamp(1.05rem, 4.2vw, 1.3rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    margin-bottom: 1.35rem;
    font-size: clamp(0.92rem, 3.6vw, 1.05rem);
    line-height: 1.5;
    padding-inline: 0.25rem;
  }

  .hero .container {
    padding-block: calc(var(--header-height, 60px) + env(safe-area-inset-top, 0px) + clamp(0.75rem, 2.5vh, 1.75rem)) 1.75rem;
    padding-inline: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  .hero-pillars {
    gap: 0.4rem;
    margin-bottom: 0.9rem;
  }

  .hero-pillar {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 18rem;
    margin-inline: auto;
    gap: 0.7rem;
  }

  .btn-hero-primary,
  .btn-hero-link {
    width: 100%;
    justify-content: center;
  }

  .btn-hero-primary {
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
  }

  /* Aire inferior para no tapar CTAs con WhatsApp/chat */
  .top-nav-page #hero .hero-content {
    padding-bottom: 0.5rem;
  }

  .top-nav-page .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  }

  .top-nav-page .main-content {
    padding-top: 0;
  }

  .services .services-cards-container {
    padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
  }

  .services .services-cards-row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  .services .service-item.service-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .services .service-card__media {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    aspect-ratio: auto;
    align-self: auto;
  }

  .services .service-card__media img {
    transform: none;
    -webkit-transform: none;
    opacity: 1;
    filter: none;
  }

  .services .service-card__body {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.75rem 0.85rem 0.9rem;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .services .service-card__head {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
  }

  .services .service-card .icon {
    width: 26px;
    height: 26px;
  }

  .services .service-card .icon i {
    font-size: 0.85rem;
  }

  .services .service-card .title {
    font-size: clamp(0.92rem, 3.6vw, 1.05rem);
    line-height: 1.25;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
  }

  .services .service-card .description {
    display: block;
    font-size: clamp(0.84rem, 3.2vw, 0.95rem);
    line-height: 1.45;
    text-align: left;
    color: #475569;
  }

  .services .service-card--vertical .cotiza-badge {
    display: none;
  }

  #services .service-card__media {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
  }

  #services .service-card__body {
    padding: 0.8rem 0.95rem 1rem;
    gap: 0.4rem;
  }

  #services .service-card--vertical .title {
    font-size: clamp(0.95rem, 3.8vw, 1.08rem);
  }

  #services .service-card--vertical .description {
    font-size: clamp(0.84rem, 3.2vw, 0.95rem);
    line-height: 1.45;
  }

  .about-hydrant-style {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .about-hydrant-style .about-text,
  .about-hydrant-style .about-image {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .about-hydrant-style .about-text p {
    text-align: left !important;
    font-size: 1rem !important;
  }

  .portfolio .portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
}

@media (hover: none) and (max-width: 767.98px) {
  .services .service-card__media img {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 380px) {
  #services .service-card__media,
  .services .service-card__media {
    height: 118px;
    min-height: 118px;
    max-height: 118px;
  }

  .services .service-card .title,
  #services .service-card--vertical .title {
    font-size: 0.92rem;
  }

  .services .service-card .description,
  #services .service-card--vertical .description {
    font-size: 0.82rem;
  }

  .top-nav-page .header-cta {
    max-width: 6.75rem;
    padding: 0.38rem 0.7rem;
  }

  .top-nav-page .header-cta__label::before {
    font-size: 0.72rem;
  }
}

/* Top header nav (index cámaras) */
/* ponytail: proximity (no mandatory) — evita rebote al pie / scroll libre en FAQ+footer */
html:has(body.top-nav-page) {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

/* Durante navegación por menú: sin snap (evita pelear con scrollTo) */
html.nav-scrolling:has(body.top-nav-page) {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.top-nav-page) {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

.top-nav-page {
  --header-height: 60px;
  /* Regla de márgenes compartida entre vistas snap */
  --section-inset-x: 1.15rem;
  --section-inset-top: clamp(1.5rem, 3.5vh, 2.35rem);
  --section-inset-bottom: clamp(1rem, 2.4vh, 1.75rem);
  --section-stack-gap: clamp(0.9rem, 2vh, 1.35rem);
  --section-heading-to-content: 0.85rem;
  /* Aire bajo el header fijo = altura real del header (el padding de sección da el resto) */
  --section-title-air: var(--header-height);
}

/* Header más bajo al scrollear: propaga a paneles / scroll-margin */
.top-nav-page:has(.site-header.is-scrolled) {
  --header-height: 56px;
}

.top-nav-page .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  /* Hero full-bleed bajo header fijo — sin padding extra (causaba scroll muerto) */
  padding-top: 0;
}

.top-nav-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  height: var(--header-height);
  background: linear-gradient(
    135deg,
    var(--neutral-900, #0f172a) 0%,
    color-mix(in srgb, var(--primary, #0066ff) 32%, var(--neutral-900, #0f172a)) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height 0.28s cubic-bezier(0.32, 0.72, 0, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.top-nav-page .site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.top-nav-page .site-header__inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav-page .site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.top-nav-page .site-header__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.top-nav-page .site-header__title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.top-nav-page .site-header__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.top-nav-page .header-nav-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* Pill deslizante: se autoajusta al botón activo al cambiar de título/sección */
.top-nav-page .header-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary, #0066ff) 82%, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--motion-ease), width 0.3s var(--motion-ease), height 0.3s var(--motion-ease);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width, height;
}

.top-nav-page .header-link {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: var(--nav-font);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.top-nav-page .header-link:hover {
  color: #fff;
}

.top-nav-page .header-link.active {
  color: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.top-nav-page .site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  /* Ancla a la derecha sin desplazar el nav centrado */
  margin-left: auto;
}

/* En desktop, espejo del brand para centrar el nav de verdad */
@media (min-width: 992px) {
  .top-nav-page .site-header__nav {
    flex: 1 1 auto;
    justify-content: center;
  }

  .top-nav-page .site-header__actions {
    min-width: 11.5rem;
    justify-content: flex-end;
  }

  .top-nav-page .site-header.is-at-hero .site-header__actions {
    min-width: 11.5rem;
  }
}

.top-nav-page .header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cta-fg, #fff);
  background: var(--cta-bg, linear-gradient(135deg, #0066ff 0%, #0052cc 100%));
  box-shadow: var(--cta-shadow, 0 4px 14px rgba(0, 102, 255, 0.4));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
    max-width 0.28s var(--motion-ease), padding 0.28s ease,
    opacity 0.28s ease, visibility 0.28s ease, margin 0.28s ease;
  max-width: 11.5rem;
  overflow: hidden;
}

.top-nav-page .header-cta__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* En hero el CTA vive solo en la primera pantalla; al scrollear aparece en el navbar */
.top-nav-page .site-header.is-at-hero .header-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  transform: translateY(-4px);
}
.top-nav-page .site-header:not(.is-at-hero) .header-cta {
  max-width: 14rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-cta__badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
}

.top-nav-page .header-cta:hover {
  color: var(--cta-fg, #fff);
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: var(--cta-shadow-hover, 0 6px 18px rgba(0, 102, 255, 0.5));
}

/* Paneles de scroll — secciones del menú */
.top-nav-page .snap-panel {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: var(--section-title-air);
  min-height: calc(100svh - var(--header-height));
  box-sizing: border-box;
}

.top-nav-page #hero.snap-panel {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  scroll-margin-top: 0;
  scroll-snap-stop: always;
}

.top-nav-page .mobile-menu-toggle {
  display: none;
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.top-nav-page .header-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 3990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.top-nav-page .header-overlay.active {
  opacity: 1;
  visibility: visible;
}

.top-nav-page.nav-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .top-nav-page .site-header.is-nav-open {
    height: auto;
    min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  }

  .top-nav-page .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0 max(0.85rem, env(safe-area-inset-right, 0px)) 0 max(0.85rem, env(safe-area-inset-left, 0px));
    gap: 0.5rem;
  }

  .top-nav-page .site-header.is-nav-open .site-header__inner {
    align-items: stretch;
    padding-bottom: 0.85rem;
  }

  /* Cerrado: no robar flex (antes empujaba Cotizar/hamburguesa) */
  .top-nav-page .site-header__nav {
    position: static;
    flex: 0 0 0;
    order: 3;
    width: 0;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: 0;
    transition: max-height 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease, visibility 0.22s ease;
  }

  .top-nav-page .site-header__nav.is-open {
    flex: 1 1 100%;
    width: 100%;
    max-height: min(70dvh, 420px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .top-nav-page .header-nav-track {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
  }

  .top-nav-page .header-nav-indicator {
    display: none !important;
  }

  .top-nav-page .header-link {
    width: 100%;
    text-align: left;
    padding: 0.72rem 0.95rem;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }

  .top-nav-page .header-link.active {
    background: color-mix(in srgb, var(--primary, #0066ff) 78%, #0b1220);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  /* CTA cotizador: pegado a la derecha junto al menú tras salir del hero */
  .top-nav-page .header-cta {
    display: inline-flex;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    max-width: 7.5rem;
    order: 1;
  }

  .top-nav-page .site-header:not(.is-at-hero) .header-cta {
    max-width: 7.5rem;
  }

  .top-nav-page .header-cta__label {
    font-size: 0;
  }

  .top-nav-page .header-cta__label::before {
    content: "Cotizar";
    font-size: 0.78rem;
  }

  .top-nav-page .mobile-menu-toggle {
    display: inline-flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    order: 2;
    flex-shrink: 0;
    /* sin caja/borde: evita “lining” visual a la derecha */
    border: none !important;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .top-nav-page .mobile-menu-toggle:hover,
  .top-nav-page .mobile-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  /* No ocultar el toggle al abrir (legacy sidebar lo escondía) */
  .top-nav-page .mobile-menu-toggle.active {
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .top-nav-page .site-header__actions {
    margin-left: auto;
    gap: 0.45rem;
    order: 2;
  }

  .top-nav-page .site-header__brand {
    order: 1;
  }

  .top-nav-page .site-header__title {
    font-size: 0.92rem;
  }

  .top-nav-page .header-overlay {
    display: block;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  align-items: center;
  gap: 0.4rem 0.55rem;
  padding: 0 0.25rem 0.35rem;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  flex: 0 0 auto;
  padding: 7px 12px 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 50px;
  transition: color 0.25s ease, background-color 0.25s ease;
  font-family: var(--heading-font);
  scroll-margin-inline: 0.75rem;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters {
    gap: 0.35rem 0.4rem;
  }

  .portfolio .portfolio-filters li {
    font-size: 14px;
    padding: 6px 10px 7px;
  }
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding: 80px 0;
  position: relative;
}

.testimonials .testimonials-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.testimonials .container {
  position: relative;
  z-index: 3;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  border-radius: 50%;
  border: 6px solid color-mix(in srgb, var(--default-color), transparent 85%);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  margin: 0 0 15px 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.testimonials .testimonial-item .stars {
  margin-bottom: 15px;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 50%);
  opacity: 0.5;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--default-color);
  opacity: 1;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: var(--surface-color);
  box-shadow: 0 3px 20px -2px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--background-color);
  padding: 60px 40px;
  height: 100%;
  border-radius: 5px;
}

.pricing h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
}

.pricing h4 {
  color: var(--accent-color);
  font-size: 48px;
  font-weight: 400;
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.pricing h4 sup {
  font-size: 28px;
}

.pricing h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
}

.pricing ul {
  padding: 20px 0;
  list-style: none;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul i {
  color: #059652;
  font-size: 24px;
  padding-right: 3px;
}

.pricing ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na i {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .buy-btn {
  color: var(--accent-color);
  display: inline-block;
  padding: 8px 35px 10px 35px;
  border-radius: 50px;
  transition: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
  transition: 0.3s;
  border: 1px solid var(--accent-color);
}

.pricing .buy-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.pricing .featured {
  border-top-color: var(--accent-color);
}

.pricing .featured .buy-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}



@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team h3 {
  font-size: 20px;
}

.team .team h3 a {
  color: var(--heading-color);
}

.team .team .pic {
  margin-bottom: 30px;
}

.team .team .pic img {
  border-radius: 4px;
}

.team .team .position {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  color: color-mix(in srgb, var(--heading-color), transparent 30%);
}

.team p {
  line-height: 1.7;
  color: var(--default-color);
}

.team .more {
  position: relative;
  padding-right: 30px;
  display: inline-block;
}

.team .more span {
  position: absolute;
  top: 50%;
  right: 0;
  font-size: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: transparent;
  color: var(--contrast-color);
  line-height: 1.6;
  text-align: center;
  transition: 0.3s all ease;
}

.team .more span:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.team .more:hover {
  color: var(--contrast-color);
}

.team .more:hover span {
  background: var(--accent-color);
}

.team .more.dark {
  color: var(--default-color);
}

.team .more.dark>span {
  color: var(--default-color);
}

.team .more.dark:hover {
  color: var(--accent-color);
}

.team .more.dark:hover span {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.team .swiper-wrapper {
  height: auto;
}

.team .slider-nav a {
  width: 40px;
  height: 40px;
  position: relative;
  background: var(--accent-color);
  border-radius: 4px;
  transition: 0.2s all ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .slider-nav a i {
  color: var(--contrast-color);
}

.team .slider-nav a:hover {
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

.team .slider-nav a:first-child {
  margin-right: 5px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.blog-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.blog-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}

.blog-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.blog-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.blog-posts .title a:hover {
  color: var(--accent-color);
}

.blog-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.blog-posts .post-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.blog-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  margin: 60px 0 30px 0;
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 0 10px;
  margin: 0 0 20px 0;
  border-left: 4px solid var(--accent-color);
}

.widget-item {
  margin-bottom: 30px;
  background-color: color-mix(in srgb, var(--default-color), transparent 98%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 30px;
  border-radius: 5px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.blog-author-widget img {
  max-width: 160px;
}

.blog-author-widget h4 {
  font-weight: 600;
  font-size: 24px;
  margin: 15px 0 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget .social-links {
  margin: 5px 0;
}

.blog-author-widget .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin: 0 3px;
  font-size: 18px;
}

.blog-author-widget .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 10px 0 0 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 3px 10px;
  position: relative;
  border-radius: 50px;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: none;
  color: var(--default-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 16px;
  transition: 0.3s;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  color: var(--accent-color);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  padding-bottom: 10px;
}

.categories-widget ul li:last-child {
  padding-bottom: 0;
}

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover {
  color: var(--accent-color);
}

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

.logo-visible {
  background: rgba(20, 30, 50, 0.85) !important;
  border: 2px solid var(--accent-turquoise, #00d4ff) !important;
  box-shadow: 0 0 16px 2px rgba(0, 212, 255, 0.4), var(--shadow-md, 0 2px 8px rgba(0,0,0,0.25));
  padding: 6px !important;
  border-radius: 12px !important;
  transition: all 0.3s;
}

/* ==== CTA Glass Card Modern Section ==== */
.cta-glass-card {
  background: rgba(15, 23, 42, 0.42);
  border-radius: 2.2rem;
  box-shadow: 0 8px 40px 0 rgba(0, 212, 255, 0.13), var(--shadow-sm, 0 1.5px 8px 0 rgba(0,0,0,0.10));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(0,212,255,0.18);
  padding: 2.5rem 2.5rem 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 700px;
  width: 100%;
  margin: 2.5rem auto 2.5rem auto;
  position: relative;
  overflow: hidden;
}
.cta-icon-bg {
  min-width: 80px;
  min-height: 80px;
  background: var(--gradient-turquoise, linear-gradient(135deg, #00d4ff 0%, #0099cc 100%));
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.27);
  font-size: 2.8rem;
  color: var(--text-inverse, #fff);
  margin-right: 1.2rem;
}
.cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.cta-title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-turquoise, linear-gradient(90deg, #00d4ff 0%, #0099cc 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}
.cta-desc {
  color: #e2e8f0;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.cta-highlight {
  color: var(--accent-turquoise, #00d4ff);
  font-weight: 600;
}
.cta-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: none;
  border: 2px solid var(--accent-turquoise, #00d4ff);
  color: var(--accent-turquoise, #00d4ff);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 2em;
  padding: 0.7em 2.1em;
  margin-top: 0.5em;
  box-shadow: var(--shadow-md, 0 2px 16px rgba(0, 212, 255, 0.13));
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cta-btn-modern:hover, .cta-btn-modern:focus {
  background: var(--gradient-turquoise, linear-gradient(90deg, #00d4ff 0%, #0099cc 100%));
  color: var(--text-inverse, #fff);
  border-color: var(--accent-turquoise, #00d4ff);
  box-shadow: var(--shadow-primary-glow, 0 4px 32px rgba(0, 212, 255, 0.27));
}
.cta-btn-modern i {
  font-size: 1.3em;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.cta-btn-modern:hover i {
  transform: translateX(6px) scale(1.12);
}
@media (max-width: 700px) {
  .cta-glass-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.2rem 1rem 1.2rem 1rem;
    max-width: 98vw;
  }
  .cta-icon-bg {
    margin: 0 auto 0.5rem auto;
  }
  .cta-content {
    align-items: center;
    text-align: center;
  }
}

/* ==== CTA Banda Horizontal ==== */
.call-to-action-band {
  width: 100vw;
  max-width: 100%;
  background: var(--bg-dark-secondary, #1E293B);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid rgba(0, 212, 255, 0.1);
  border-bottom: 1.5px solid rgba(0, 212, 255, 0.1);
  box-shadow: 0 4px 32px 0 rgba(0, 212, 255, 0.07);
  padding: 3.5rem 0 3.5rem 0;
  margin: 0 auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cta-band-content {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}
.cta-band-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-turquoise, linear-gradient(90deg, #00d4ff 0%, #0099cc 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}
.cta-band-desc {
  color: var(--neutral-200, #E2E8F0);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.cta-band-highlight {
  color: var(--accent-turquoise, #00d4ff);
  font-weight: 600;
}
.cta-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--gradient-turquoise, linear-gradient(90deg, #0099cc 0%, #00d4ff 100%));
  border: none;
  color: var(--text-inverse, #fff);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 2em;
  padding: 0.7em 2.1em;
  margin-top: 0.5em;
  box-shadow: var(--shadow-md, 0 2px 16px rgba(0, 212, 255, 0.13));
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cta-band-btn:hover, .cta-band-btn:focus {
  background: var(--gradient-turquoise, linear-gradient(90deg, #0099cc 0%, #00d4ff 100%));
  color: var(--text-inverse, #fff);
  box-shadow: var(--shadow-primary-glow, 0 4px 32px rgba(0, 212, 255, 0.4));
}
.cta-band-btn i {
  font-size: 1.3em;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.cta-band-btn:hover i {
  transform: translateX(6px) scale(1.12);
}
@media (max-width: 700px) {
  .call-to-action-band {
    padding: 2rem 0 2rem 0;
  }
  .cta-band-content {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
  .cta-band-title {
    font-size: 1.3rem;
  }
  .cta-band-desc {
    font-size: 1rem;
  }
}

/* ==== Sobre Nosotros Moderno ==== */
.about-title-gradient {
  font-size: 2.3rem;
  font-weight: 800;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2em;
  letter-spacing: 0.5px;
  background: var(--gradient-turquoise, linear-gradient(90deg, #00d4ff 0%, #0099cc 100%));
  -webkit-background-clip: text;
  background-clip: text;
  text-fill-color: transparent;
}
.about-main-row {
  margin-top: 1.2rem;
}
.about-img-glass {
  background: rgba(0, 212, 255, 0.08);
  border: 2.5px solid rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-md, 0 4px 32px rgba(0, 212, 255, 0.13));
  padding: 0.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-blocks-grid {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.about-block-card {
  background: #f8fafc;
  border-radius: 1.2rem;
  box-shadow: var(--shadow-sm, 0 2px 16px rgba(0, 212, 255, 0.07));
  border: 1.5px solid #e0f7fa;
  padding: 0.8rem 1rem 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 180px;
  flex: 1 1 0;
  max-width: 240px;
  height: auto;
  transition: box-shadow 0.18s;
}
.about-block-card:hover {
  box-shadow: var(--shadow-lg, 0 4px 32px rgba(0, 212, 255, 0.2));
  border-color: var(--accent-turquoise, #00d4ff);
}
.about-block-icon {
  font-size: 2.1rem;
  color: var(--accent-turquoise, #00d4ff);
  background: #e0f7fa;
  border-radius: 0.7em;
  padding: 0.4em 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.2em;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 212, 255, 0.13));
}
.about-block-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #162032;
  margin-bottom: 0.3em;
}
.about-block-card p {
  color: #4b5563;
  font-size: 0.97rem;
  margin-bottom: 0;
  line-height: 1.35;
}
.about-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.about-values-list li {
  color: var(--accent-turquoise-dark, #0099cc);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.about-values-list i {
  color: var(--accent-turquoise, #00d4ff);
  font-size: 1.1em;
}
.about-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--gradient-turquoise, linear-gradient(90deg, #00d4ff 0%, #0099cc 100%));
  border: none;
  color: var(--text-inverse, #fff);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 2em;
  padding: 0.7em 2.1em;
  margin-top: 0.5em;
  box-shadow: var(--shadow-md, 0 2px 16px rgba(0, 212, 255, 0.13));
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.about-btn-modern:hover, .about-btn-modern:focus {
  background: var(--gradient-turquoise, linear-gradient(90deg, #0099cc 0%, #00d4ff 100%));
  color: var(--text-inverse, #fff);
  box-shadow: var(--shadow-primary-glow, 0 4px 32px rgba(0, 212, 255, 0.27));
}
.about-btn-modern i {
  font-size: 1.3em;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.about-btn-modern:hover i {
  transform: translateX(6px) scale(1.12);
}
@media (max-width: 991px) {
  .about-main-row {
    flex-direction: column;
    margin-top: 0.7rem;
  }
  .about-blocks-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .about-block-card {
    max-width: 100%;
    min-width: 0;
    height: auto;
  }
}

.confian-logos img.confian-logo {
  filter: grayscale(1) brightness(0.9);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
  margin: 0 18px 18px 0;
}
.confian-logos img.confian-logo:hover {
  filter: grayscale(0) brightness(1.1);
  opacity: 1;
  transform: scale(1.07);
}
@media (max-width: 600px) {
  .confian-logos img.confian-logo {
    height: 38px;
    max-width: 90px;
    margin: 0 10px 12px 0;
  }
}

/* Minimal gallery card styles - versión clara */
.gallery-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s;
  border: none;
}
.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #f5f5f5;
  box-shadow: none;
  transition: transform 0.18s;
}
.gallery-card-title {
  font-family: var(--heading-font, 'Montserrat', sans-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: #232323;
  text-align: center;
  padding: 14px 0 10px 0;
  letter-spacing: 0.01em;
  background: none;
  margin: 0;
  border: none;
}
.gallery-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.gallery-card:hover img {
  transform: scale(1.035);
}

/* Swiper navigation minimal */
.minimal-gallery-swiper .swiper-button-next,
.minimal-gallery-swiper .swiper-button-prev {
  color: #232323;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s;
}
.minimal-gallery-swiper .swiper-button-next:hover,
.minimal-gallery-swiper .swiper-button-prev:hover {
  background: #fff;
}
.minimal-gallery-swiper .swiper-pagination-bullet {
  background: #232323;
  opacity: 0.3;
  transition: opacity 0.2s;
}
.minimal-gallery-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-card img {
    height: 140px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }
  .gallery-card-title {
    font-size: 1rem;
    padding: 10px 0 8px 0;
  }
  .gallery-card {
    border-radius: 14px;
  }
}

/* Botón hamburguesa — base compartida (X al abrir) */
.mobile-menu-toggle {
  display: none;
  z-index: 3000;
  border-radius: 8px;
  color: var(--text-inverse, #fff);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  outline: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Legacy sidebar: flotante a la izquierda (no afecta top-nav) */
body:not(.top-nav-page) .mobile-menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: none !important;
  width: 50px;
  height: 50px;
}

.mobile-menu-toggle:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle .hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle .hamburger-icon span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay para móviles */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
}

@media (max-width: 991px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }
  
  .sidebar:not(.collapsed) {
    width: var(--sidebar-width);
  }
  
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }
}

@media (max-width: 767px) {
  body:not(.top-nav-page) .mobile-menu-toggle {
    display: flex;
  }
  
  /* Ocultar sidebar por defecto en móviles */
  .sidebar {
    left: -100%;
    width: 260px !important;
    background: #182848 !important;
    z-index: 3002 !important;
    color: var(--text-inverse, #fff);
    transition: left 0.3s;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  }
  
  /* Cuando la sidebar está activa en móviles */
  .sidebar.mobile-active {
    left: 0 !important;
  }
  
  /* Estado oculto para móviles */
  .sidebar.mobile-hidden {
    left: -100%;
  }
  
  /* Ocultar el toggle original en móviles */
  .sidebar-toggle {
    display: none;
  }
  
  /* Mostrar overlay cuando sidebar está activa */
  .sidebar-overlay.active {
    display: block;
  }
  
  /* Asegurar que el contenido principal no tenga margen en móviles */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-left: 0 !important;
  }
  
  /* Ajustar el contenido cuando la sidebar está activa */
  .sidebar.mobile-active ~ .main-content {
    margin-left: 0 !important;
  }

  /* Solo legacy sidebar: esconder toggle al abrir drawer */
  body:not(.top-nav-page) .mobile-menu-toggle.active {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body:not(.top-nav-page) .mobile-menu-toggle {
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
  }
  
  .sidebar {
    width: 260px;
  }
}

/* FAQ Moderno Minimalista */
.faq-modern .faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.faq-modern .faq-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(24,33,51,0.06);
  padding: 0.5rem 1.5rem;
  transition: box-shadow 0.2s;
  border: 1px solid #f2f3f7;
}
.faq-modern .faq-card.open {
  box-shadow: 0 4px 24px 0 rgba(24,33,51,0.10);
  border-color: #e0e3ea;
}
.faq-modern .faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: #182133;
  text-align: left;
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-modern .faq-question:hover {
  color: var(--primary, #0066FF);
}
.faq-modern .faq-toggle-icon {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}
.faq-modern .faq-card.open .faq-toggle-icon {
  transform: rotate(180deg);
}
.faq-modern .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(.4,2,.6,1), opacity 0.25s;
  color: #444;
  font-size: 1.05rem;
  padding: 0 0;
}
.faq-modern .faq-card.open .faq-answer {
  opacity: 1;
  max-height: 420px;
  padding-bottom: 1rem;
}
@media (max-width: 767px) {
  .faq-modern .faq-list {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .faq-modern .faq-card {
    padding: 0.5rem 0.7rem;
  }
  .faq-modern .faq-question {
    font-size: 1rem;
    padding: 1rem 0;
  }
}

.faq-modern .faq-list.faq-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.faq-modern .faq-card {
  min-width: 0;
  padding: 1.2rem 1.5rem;
}
@media (max-width: 1199px) {
  .faq-modern .faq-list.faq-grid {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .faq-modern .faq-list.faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .faq-modern .faq-card {
    padding: 1rem 0.7rem;
  }
}
/* ==== Landing v2 — About / Clients: espacio para el contenido completo ==== */
.top-nav-page #about.about-trust.snap-panel {
  height: auto;
  min-height: calc(100svh - var(--header-height));
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: var(--section-inset-top) 0 var(--section-inset-bottom);
  box-sizing: border-box;
  overflow: visible;
}

.about-trust .about--compact,
.about-trust .clients--compact {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.about-trust .about--compact {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: 0.35rem 0.75rem;
}

.about-trust .clients--compact {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding-block: 0.65rem 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color, #212529) 8%, transparent);
  background: var(--landing-surface, #fff);
}

.about-trust .clients--compact .clients-title {
  margin-bottom: 0.15rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.about-trust .clients--compact .clients-lead {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.about-trust .clients--compact .section-heading {
  margin-bottom: 0.45rem;
}

.about-trust .clients--compact .confian-logos {
  margin-top: 0.35rem;
  padding-top: 0;
  gap: 1rem !important;
}

.about-trust .clients--compact .confian-logo {
  height: 36px;
  max-width: 110px;
}

/* FAQ + footer: altura libre — scroll al pie sin rebote */
.top-nav-page #faq.faq-footer-snap.snap-panel {
  height: auto;
  min-height: calc(100svh - var(--header-height));
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
  background: var(--bg-primary, #fff);
  scroll-snap-stop: normal;
}

.top-nav-page #faq .faq--in-snap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--section-inset-top) 0 var(--section-stack-gap);
  overflow: visible;
  background-color: var(--landing-surface, #fff);
  background-image: none;
}

.top-nav-page #faq .faq--in-snap .section-stage {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 1180px;
  height: auto;
  gap: var(--section-stack-gap);
  overflow: visible;
}

.top-nav-page #faq .faq--in-snap .section-heading {
  flex: 0 0 auto;
  padding-bottom: var(--section-heading-to-content);
}

.top-nav-page #faq .faq--in-snap .section-heading h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: 0.35rem;
  padding-bottom: 0.45rem;
}

.top-nav-page #faq .faq--in-snap .section-heading p {
  font-size: 0.88rem;
}

.top-nav-page #faq .section-panel.faq-modern.faq-board,
.top-nav-page #faq .faq-board {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* FAQ shell — intro + acordeón alineado a la marca */
.faq-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.faq-shell__intro {
  position: sticky;
  top: calc(var(--header-height, 64px) + 1rem);
  padding: 0.25rem 0;
}

.faq-shell__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary, #0066ff);
}

.faq-shell__title {
  margin: 0 0 0.55rem;
  font-family: var(--heading-font);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color, #0f172a);
}

.faq-shell__lead {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  max-width: 28rem;
}

.faq-shell__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0066ff 0%, #00a8e8 100%);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.22);
}

.faq-shell__cta:hover {
  color: #fff;
  filter: brightness(1.05);
  text-decoration: none;
}

.faq-shell__list {
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--primary, #0066ff) 12%, #e2e8f0);
  border-radius: 16px;
  background: color-mix(in srgb, #fff 92%, var(--primary, #0066ff) 3%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid color-mix(in srgb, var(--default-color, #212529) 8%, transparent);
}

.faq-item__q {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--heading-color, #0f172a);
}

.faq-item__q:hover .faq-item__label {
  color: var(--primary, #0066ff);
}

.faq-item__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary, #0066ff);
  opacity: 0.85;
}

.faq-item__label {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.faq-item__icon {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #0066ff) 10%, #fff);
  color: var(--primary, #0066ff);
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--primary, #0066ff) 18%, #fff);
}

.faq-item__a {
  display: none;
  padding: 0 1.1rem 1rem 3.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
}

.faq-item.is-open .faq-item__a {
  display: block;
}

@media (max-width: 991.98px) {
  .faq-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .faq-shell__intro {
    position: static;
  }

  .faq-item__a {
    padding-left: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .faq-item__q {
    padding: 0.85rem 0.9rem;
    gap: 0.55rem;
  }

  .faq-item__label {
    font-size: 0.9rem;
  }
}

.top-nav-page #faq .faq-board__grid.faq-list.faq-grid {
  display: none;
}

.top-nav-page #faq .faq-board .faq-card {
  display: none;
}

.top-nav-page .footer.footer--in-snap {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  isolation: isolate;
  background-attachment: scroll !important;
  background-size: cover;
  background-position: center;
  padding: var(--section-stack-gap) 0 calc(var(--section-inset-bottom) + 0.35rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -6px 18px rgba(2, 6, 23, 0.16);
}

.top-nav-page .footer.footer--in-snap .footer-top {
  padding-top: 0;
  padding-bottom: 0;
}

.top-nav-page .footer.footer--in-snap .row {
  --bs-gutter-y: 0.4rem;
}

.top-nav-page .footer.footer--in-snap .copyright {
  margin-top: 0.15rem !important;
  padding-bottom: 0;
  font-size: 0.74rem;
}

.top-nav-page .footer.footer--in-snap h4 {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.top-nav-page .footer.footer--in-snap .footer-links ul li {
  margin-bottom: 0.1rem;
}

.top-nav-page .footer.footer--in-snap .footer-contact p,
.top-nav-page .footer.footer--in-snap p {
  font-size: 0.74rem;
  margin-bottom: 0.1rem;
}

.top-nav-page .footer.footer--in-snap .social-links a {
  width: 30px;
  height: 30px;
}

@media (max-width: 991.98px) {
  .top-nav-page #faq.faq-footer-snap.snap-panel {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--header-height));
    overflow: visible;
  }

  .top-nav-page #faq .faq--in-snap {
    overflow: visible;
  }

  .top-nav-page #faq .section-panel.faq-modern.faq-board,
  .top-nav-page #faq .faq-board {
    max-width: 100%;
  }
}


.top-nav-page #portfolio.snap-panel {
  display: flex;
  flex-direction: column;
  height: calc(100svh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  padding-top: var(--section-inset-top);
  padding-bottom: var(--section-inset-bottom);
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .top-nav-page #portfolio.snap-panel {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--header-height));
    overflow: visible;
  }

  .top-nav-page #about.about-trust.snap-panel {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--header-height));
    overflow: visible;
  }
}

.top-nav-page #portfolio .section-stage {
  height: 100%;
}

.about-hydrant-style {
  max-width: 1100px;
  gap: 1.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.about-hydrant-style .about-text {
  min-width: 270px;
  max-width: 500px;
}

.about-hydrant-style .about-image {
  min-width: 200px;
  max-width: 300px;
}

.about-lead {
  font-size: 1rem;
  max-width: 40rem;
  margin: 0.35rem auto 0;
  line-height: 1.45;
}

.about-copy {
  font-size: 0.95rem;
  margin-bottom: 0;
  text-align: left;
  line-height: 1.5;
  color: var(--text-secondary, #475569);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 280px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
}

.about-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.about-mv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.about-mv__card,
.about-value {
  background: color-mix(in srgb, #fff 88%, var(--primary, #0066ff) 4%);
  border: 1px solid color-mix(in srgb, var(--primary, #0066ff) 12%, #e2e8f0);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  overflow: visible;
  height: auto;
  min-height: 0;
}

.about-mv__label,
.about-value__title {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading-color, #0f172a);
  margin: 0 0 0.4rem;
}

.about-mv__text,
.about-value__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary, #475569);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.about-value {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
}

.about-value__index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary, #0066ff);
}

.about-layout__media {
  justify-self: center;
  width: 100%;
  max-width: 280px;
}

.about-photo {
  width: 100%;
  height: auto;
  max-height: min(320px, 40vh);
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

@media (max-width: 991.98px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout__media {
    order: -1;
    max-width: 240px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-height: 200px;
  }
}

@media (max-width: 767.98px) {
  .about-mv {
    grid-template-columns: 1fr;
  }

  .about-mv__card,
  .about-value {
    padding: 0.9rem 0.95rem;
  }

  .about-lead {
    font-size: 0.95rem;
    padding-inline: 0.25rem;
  }
}

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

  .about-value__text {
    font-size: 0.85rem;
  }
}

.about-title-gradient,
.clients-title {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

.about-trust .about-title-gradient {
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin-bottom: 0.15em;
}

.clients-title {
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  margin-bottom: 0.25rem;
}

.clients-lead {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.45;
}

.confian-logos {
  max-width: 900px;
  margin-inline: auto;
}

.confian-logos img.confian-logo {
  height: 48px;
  max-width: 140px;
  width: auto;
}

@media (max-width: 767.98px) {
  .top-nav-page #about.about-trust.snap-panel {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--header-height));
    overflow: visible;
  }

  .about-trust .about--compact {
    flex: 1 1 auto;
    padding-block: 1.15rem 0.75rem;
  }

  .about-trust .clients--compact {
    flex: 0 0 auto;
    padding-block: 0.75rem 0.5rem;
  }

  .about-layout__media {
    max-width: 220px;
  }

  .about-photo {
    max-height: 180px;
  }

  .top-nav-page #portfolio.snap-panel {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--header-height));
    overflow: visible;
  }

  .top-nav-page #faq.faq-footer-snap.snap-panel {
    min-height: calc(100dvh - var(--header-height));
  }
}

.cta-band-title {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

.services .service-card.service-item-clickable {
  will-change: transform;
}

/* Sticky inferior retirado: el CTA vive en el navbar tras el hero */
.mobile-cotizar-sticky {
  display: none !important;
}

/* Temas Cotizar (probador) */
:root,
[data-cta-theme="azul"] {
  --cta-fg: #fff;
  --cta-bg: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  --cta-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
  --cta-shadow-hover: 0 6px 18px rgba(0, 102, 255, 0.52);
}

[data-cta-theme="turquesa"] {
  --cta-fg: #0f172a;
  --cta-bg: linear-gradient(135deg, #00d4ff 0%, #38bdf8 100%);
  --cta-shadow: 0 4px 14px rgba(0, 212, 255, 0.38);
  --cta-shadow-hover: 0 6px 18px rgba(0, 212, 255, 0.5);
}

[data-cta-theme="ambar"] {
  --cta-fg: #0f172a;
  --cta-bg: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --cta-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  --cta-shadow-hover: 0 6px 18px rgba(245, 158, 11, 0.52);
}

[data-cta-theme="coral"] {
  --cta-fg: #fff;
  --cta-bg: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  --cta-shadow: 0 4px 14px rgba(255, 107, 107, 0.4);
  --cta-shadow-hover: 0 6px 18px rgba(255, 107, 107, 0.52);
}

.cta-color-trial {
  position: fixed;
  left: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 99991;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

.cta-color-trial__label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.2rem;
}

.cta-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.cta-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.cta-swatch[data-cta="azul"] { background: linear-gradient(135deg, #0066ff, #0052cc); }
.cta-swatch[data-cta="turquesa"] { background: linear-gradient(135deg, #00d4ff, #38bdf8); }
.cta-swatch[data-cta="ambar"] { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.cta-swatch[data-cta="coral"] { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); }

@media (max-width: 575.98px) {
  .cta-color-trial {
    left: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

/*--------------------------------------------------------------
# Proyectos (ex Galería)
--------------------------------------------------------------*/
.proyectos-grid {
  /* auto-fill + tope: con 1–2 ítems no se estiran a pantallazo */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 240px));
  gap: 0.85rem;
  width: 100%;
  padding-bottom: 1rem;
  justify-content: center;
  justify-items: stretch;
}

.top-nav-page #portfolio .section-convert {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0.75rem 0 0;
  text-align: center;
}

.top-nav-page #portfolio .section-convert__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary, #0066ff);
  background: color-mix(in srgb, var(--primary, #0066ff) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary, #0066ff) 28%, #e2e8f0);
  text-decoration: none;
}

.top-nav-page #portfolio .section-convert__cta:hover {
  background: color-mix(in srgb, var(--primary, #0066ff) 14%, #fff);
  text-decoration: none;
}

.top-nav-page #portfolio .section-panel--gallery {
  align-items: stretch;
}

.proyectos-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: color-mix(in srgb, var(--default-color, #212529) 55%, transparent);
  margin: 1rem 0 2rem;
}

.proyecto-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid var(--float-border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: var(--float-surface);
  backdrop-filter: blur(var(--float-blur));
  -webkit-backdrop-filter: blur(var(--float-blur));
  box-shadow: var(--float-shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.proyecto-card__media {
  height: 128px;
  overflow: hidden;
  background: #0f172a;
}

.proyecto-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

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

/* Sin foto real: bloque de marca, misma altura que las cards con imagen */
.proyecto-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(0, 212, 255, 0.35), transparent 55%),
    linear-gradient(145deg, #0b1f44 0%, #0066ff 62%, #00a8e8 100%);
  color: #f8fafc;
}

.proyecto-card__placeholder i {
  font-size: 1.65rem;
  line-height: 1;
  opacity: 0.95;
}

.proyecto-card__placeholder-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.proyecto-card--no-photo .proyecto-card__meta {
  font-style: italic;
}

.proyecto-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1.05rem;
}

.proyecto-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-color, #0066ff);
}

.proyecto-card__title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color, #0f172a);
}

.proyecto-card__meta {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color, #212529) 55%, transparent);
}

.proyecto-modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Lightbox propio — un solo overlay, sin Bootstrap Modal */
.proyecto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.proyecto-lightbox[hidden] {
  display: none !important;
}

.proyecto-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.proyecto-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.proyecto-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.proyecto-lightbox__title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.proyecto-lightbox__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.proyecto-lightbox__close:hover {
  background: rgba(0, 102, 255, 0.12);
  color: var(--accent-color, #0066ff);
}

.proyecto-lightbox__body {
  padding: 0 0 1.15rem;
}

body.proyecto-lightbox-open {
  overflow: hidden;
}

.proyecto-modal-stage {
  position: relative;
  background: #0f172a;
}

.proyecto-modal-stage .swiper {
  width: 100%;
}

.proyecto-modal-frame {
  aspect-ratio: 16 / 10;
  width: 100%;
  max-height: min(38vh, 300px);
  overflow: hidden;
  background: #0f172a;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proyecto-modal-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.proyecto-modal-frame--empty {
  aspect-ratio: auto;
  min-height: 160px;
  max-height: 200px;
}

.proyecto-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: rgba(248, 250, 252, 0.9);
  text-align: center;
}

.proyecto-modal-empty i {
  font-size: 2rem;
  opacity: 0.85;
}

.proyecto-modal-empty p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 22rem;
  line-height: 1.45;
  opacity: 0.88;
}

.proyecto-modal-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  overflow-x: auto;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.proyecto-modal-thumbs[hidden] {
  display: none !important;
}

.proyecto-modal-thumbs::-webkit-scrollbar {
  height: 4px;
}

.proyecto-modal-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
}

.proyecto-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proyecto-modal-thumb.is-active {
  border-color: #00d4ff;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35);
}

.proyecto-modal-thumb:hover {
  border-color: rgba(0, 212, 255, 0.55);
}

.proyecto-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  cursor: pointer;
}

.proyecto-modal-nav:hover {
  background: rgba(0, 102, 255, 0.9);
}

.proyecto-modal-nav--prev { left: 0.75rem; }
.proyecto-modal-nav--next { right: 0.75rem; }

.proyecto-modal-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.proyecto-modal-meta {
  padding: 1rem 1.25rem 0;
}

.proyecto-modal-desc {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--default-color, #212529) 78%, transparent);
}

.proyecto-modal-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.proyecto-modal-services__label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color, #212529) 55%, transparent);
  margin-bottom: 0.15rem;
}

.proyecto-modal-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color, #0066ff) 12%, #fff);
  color: var(--accent-color, #0066ff);
  font-size: 0.78rem;
  font-weight: 600;
}

/* --- Trust bar + how-we-work (demo copy) --- */
.trustbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--neutral-900, #0F172A);
  border-top: 1px solid color-mix(in srgb, var(--accent-turquoise, #00D4FF) 22%, transparent);
  color: var(--neutral-300, #CBD5E1);
}

.trustbar__item {
  padding: 1.35rem 1.25rem;
  border-left: 1px solid color-mix(in srgb, var(--neutral-400, #94A3B8) 22%, transparent);
  font-size: 0.9rem;
  line-height: 1.45;
}

.trustbar__item:first-child {
  border-left: 0;
}

.trustbar__item b {
  display: block;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.trustbar__accent {
  color: var(--accent-turquoise, #00D4FF);
}

@media (max-width: 900px) {
  .trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trustbar__item:nth-child(2n + 1) {
    border-left: 0;
  }

  .trustbar__item:nth-child(-n + 2) {
    border-bottom: 1px solid color-mix(in srgb, var(--neutral-400, #94A3B8) 18%, transparent);
  }
}

@media (max-width: 520px) {
  .trustbar {
    grid-template-columns: 1fr;
  }

  .trustbar__item {
    border-left: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--neutral-400, #94A3B8) 18%, transparent);
  }

  .trustbar__item:last-child {
    border-bottom: 0;
  }
}

.how-we-work {
  padding: 4.5rem 0 3.5rem;
  background: var(--neutral-50, #F8FAFC);
}

.how-we-work__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: Syne, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary, #0066FF);
}

.how-we-work__kicker::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.how-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  counter-reset: how;
}

.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.how-steps__num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--neutral-900, #0F172A);
  background: linear-gradient(135deg, var(--accent-turquoise, #00D4FF), #38BDF8);
  flex: none;
}

.how-steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--neutral-900, #0F172A);
}

.how-steps p {
  margin: 0;
  color: var(--neutral-600, #475569);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 62ch;
}

.how-we-work__note {
  margin: 1.75rem 0 0;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--primary, #0066FF);
  background: color-mix(in srgb, var(--primary, #0066FF) 6%, #fff);
  border-radius: 0 10px 10px 0;
  color: var(--neutral-700, #334155);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 68ch;
}

.section-convert--how {
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .how-steps li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
