html {
  scroll-padding-top: 5rem;
}

/* --- Base --- */
.noise-layer {
  opacity: 0.22;
  background-image: radial-gradient(circle at 1px 1px, rgba(24, 24, 27, 0.09) 1px, transparent 0);
  background-size: 24px 24px;
}

.dark .noise-layer {
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 244, 245, 0.14) 1px, transparent 0);
}

/* --- Navbar --- */
#navbar.scrolled {
  background: rgba(250, 250, 250, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
}

.dark #navbar.scrolled {
  background: rgba(9, 9, 11, 0.82);
  border-bottom: 1px solid rgba(39, 39, 42, 0.9);
}

#mobile-menu {
  transition: opacity 0.2s ease;
}

#mobile-menu:not(.hidden) {
  display: block;
}

.tactile {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tactile:active {
  transform: scale(0.98) translateY(1px);
}

/* --- Hero --- */
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.22;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.hero-orb-a {
  width: 20rem;
  height: 20rem;
  right: 4vw;
  top: 16vh;
  background: #06b6d4;
}

.hero-orb-b {
  width: 16rem;
  height: 16rem;
  left: 2vw;
  bottom: 10vh;
  background: #10b981;
  animation-delay: -4s;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

/* --- Hero operational map --- */
.op-map {
  border: 1px solid rgba(212, 212, 216, 0.7);
  border-radius: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 50px -30px rgba(24, 24, 27, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

.dark .op-map {
  border-color: rgba(63, 63, 70, 0.85);
  background: rgba(24, 24, 27, 0.68);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.op-map-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0e7490;
  margin-bottom: 1.25rem;
}

.dark .op-map-hint {
  color: #22d3ee;
}

.op-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.op-module {
  display: flex;
  gap: 0.65rem;
}

.op-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0e7490;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.dark .op-num {
  color: #22d3ee;
}

.op-module strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.op-module span {
  display: block;
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.5;
}

.dark .op-module span {
  color: #a1a1aa;
}

.op-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
  padding-top: 0.3rem;
}

.op-footnote {
  font-size: 0.76rem;
  color: #a1a1aa;
  line-height: 1.6;
  padding-top: 0.75rem;
  border-top: 1px solid #e4e4e7;
}

.dark .op-footnote {
  border-top-color: #27272a;
  color: #71717a;
}

/* --- Sections --- */
.section-block {
  padding: 7rem 1.25rem;
}

.section-kicker {
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0e7490;
}

.dark .section-kicker {
  color: #22d3ee;
}

.section-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.section-note {
  font-size: 0.88rem;
  line-height: 1.7;
}

.sticky-copy {
  position: sticky;
  top: 7rem;
}

/* --- Services (rows) --- */
.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid #e4e4e7;
}

.dark .service-row {
  border-color: #27272a;
}

.service-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-row:first-child {
  padding-top: 0;
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0e7490;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dark .service-num {
  color: #22d3ee;
}

.service-head h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.service-body p {
  color: #52525b;
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.dark .service-body p {
  color: #a1a1aa;
}

.service-detail {
  font-size: 0.85rem;
  color: #a1a1aa;
  line-height: 1.6;
}

.dark .service-detail {
  color: #71717a;
}

.service-for {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #0e7490;
  font-weight: 600;
}

.dark .service-for {
  color: #67e8f9;
}

.service-action {
  display: flex;
  justify-content: flex-end;
}

/* --- Problemas --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
}

.problem-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e4e4e7;
}

.dark .problem-item {
  border-color: #27272a;
}

.problem-item:last-child {
  border-bottom: 0;
}

.problem-item:first-child {
  padding-top: 0;
}

.problem-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0e7490;
  flex-shrink: 0;
  width: 1.8rem;
}

.dark .problem-icon {
  color: #22d3ee;
}

.problem-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.problem-item p {
  font-size: 0.88rem;
  color: #71717a;
  line-height: 1.6;
}

.dark .problem-item p {
  color: #a1a1aa;
}

/* --- Service CTA (WhatsApp icon pill for services) --- */
.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  background: #18181b;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-cta::before {
  content: '';
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.4rem;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.service-cta:hover {
  background: #0e7490;
  transform: translateY(-1px);
}

.service-cta:active {
  transform: scale(0.98);
}

.dark .service-cta {
  background: #fafafa;
  color: #18181b;
}

.dark .service-cta:hover {
  background: #a5f3fc;
}

/* --- Examples (case gallery) --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-frame {
  border-radius: 1.35rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .case-frame {
  background: #18181b;
  border-color: #27272a;
}

.case-frame-browser {
  padding-top: 1.85rem;
}

.case-dots {
  position: absolute;
  top: 0.6rem;
  left: 0.8rem;
  display: flex;
  gap: 0.35rem;
}

.case-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #d4d4d8;
  display: block;
}

.dark .case-dots i {
  background: #52525b;
}

.case-titlebar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.45rem 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  color: #71717a;
  letter-spacing: 0.06em;
  background: #f4f4f5;
  border-bottom: 1px solid #e4e4e7;
}

.dark .case-titlebar {
  background: #27272a;
  border-color: #3f3f46;
  color: #a1a1aa;
}

.case-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.case-tag {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  background: rgba(24, 24, 27, 0.82);
  color: #fafafa;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.case-info {
  padding: 1.25rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0e7490;
  margin-bottom: 0.35rem;
}

.dark .case-label {
  color: #22d3ee;
}

.case-title {
  font-size: clamp(1.3rem, 1.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.case-result {
  color: #52525b;
  line-height: 1.65;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.case-result:last-child {
  margin-bottom: 0;
}

.dark .case-result {
  color: #a1a1aa;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.case-actions .service-cta {
  margin-top: 1rem;
}

.case-link {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0e7490;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s ease;
}

.case-link:hover {
  color: #155e75;
}

.case-link span {
  font-size: 0.75rem;
}

.dark .case-link {
  color: #67e8f9;
}

.dark .case-link:hover {
  color: #a5f3fc;
}

/* --- Sobre mí --- */
.trust-attrs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-attrs li {
  border-top: 1px solid #d4d4d8;
  padding-top: 1rem;
}

.dark .trust-attrs li {
  border-color: #3f3f46;
}

.trust-attrs strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.trust-attrs span {
  display: block;
  font-size: 0.88rem;
  color: #71717a;
  line-height: 1.6;
}

.dark .trust-attrs span {
  color: #a1a1aa;
}

/* --- Proceso (track) --- */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-track::before {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: 0;
  right: 0;
  height: 1px;
  background: #d4d4d8;
}

.dark .process-track::before {
  background: #3f3f46;
}

.process-stop {
  position: relative;
  padding-top: 2.5rem;
  text-align: left;
  padding-right: 1rem;
}

.process-stop::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #0e7490;
  border: 2px solid #fafafa;
  z-index: 1;
}

.dark .process-stop::before {
  border-color: #18181b;
}

.process-stop-num {
  position: absolute;
  top: -0.2rem;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0e7490;
  letter-spacing: 0.06em;
}

.dark .process-stop-num {
  color: #22d3ee;
}

.process-stop h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.process-stop p {
  font-size: 0.88rem;
  color: #71717a;
  line-height: 1.6;
}

.dark .process-stop p {
  color: #a1a1aa;
}

/* --- Contacto --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-primary {
  display: flex;
  flex-direction: column;
}

.contact-sub {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #71717a;
  line-height: 1.6;
}

.whatsapp-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #16a34a;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -15px rgba(22, 163, 74, 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.whatsapp-promo:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.whatsapp-promo:active {
  transform: scale(0.98);
}

.contact-link {
  display: inline-flex;
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: #3f3f46;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  color: #0891b2;
  border-color: #0891b2;
}

.dark .contact-link {
  color: #d4d4d8;
}

.dark .contact-link:hover {
  color: #67e8f9;
  border-color: #67e8f9;
}

.contact-form {
  border: 1px solid rgba(212, 212, 216, 0.7);
  border-radius: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.dark .contact-form {
  border-color: rgba(63, 63, 70, 0.85);
  background: rgba(24, 24, 27, 0.65);
}

.form-block {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.form-block label {
  font-size: 0.82rem;
  font-weight: 700;
}

.form-block input,
.form-block textarea,
.form-block select {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 0.85rem;
  outline: none;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-block input:focus,
.form-block textarea:focus,
.form-block select:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.dark .form-block input,
.dark .form-block textarea,
.dark .form-block select {
  border-color: #3f3f46;
  background: rgba(39, 39, 42, 0.7);
  color: #fafafa;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid #e4e4e7;
  padding: 1rem 0;
}

.dark .faq-item {
  border-color: #27272a;
}

.faq-item:first-child {
  border-top: 1px solid #e4e4e7;
}

.dark .faq-item:first-child {
  border-top-color: #27272a;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: #a1a1aa;
  margin-left: 1rem;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin-top: 0.75rem;
  color: #52525b;
  line-height: 1.7;
  font-size: 0.92rem;
}

.dark .faq-item p {
  color: #a1a1aa;
}

/* --- WhatsApp float button --- */
.whatsapp-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  color: white;
  background: #16a34a;
  box-shadow: 0 18px 35px -20px rgba(22, 163, 74, 0.9);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px) scale(1.03);
  background: #15803d;
}

.whatsapp-button:active {
  transform: scale(0.98);
}

/* --- Scroll reveal --- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .status-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 0) scale(1.03); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12); }
  50% { transform: scale(0.85); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.06); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .section-block {
    padding: 5rem 1.25rem;
  }

  .sticky-copy {
    position: static;
  }

  .section-title {
    max-width: 14ch;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }

  .service-action {
    justify-content: flex-start;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-attrs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-track::before {
    display: none;
  }

  .process-stop {
    padding-top: 0;
    padding-left: 2.5rem;
    padding-bottom: 1.25rem;
    border-left: 1px solid #d4d4d8;
  }

  .dark .process-stop {
    border-left-color: #3f3f46;
  }

  .process-stop::before {
    top: 0.25rem;
    left: -0.55rem;
  }

  .process-stop-num {
    top: 0.35rem;
    left: -2.1rem;
  }

  .process-stop:last-child {
    border-left: 0;
    padding-bottom: 0;
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .op-track {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .op-arrow {
    display: none;
  }
}