:root {
  --bg: #101512;
  --bg-2: #18211d;
  --panel: #f5f1e8;
  --panel-2: #e6edf0;
  --ink: #f8f5ee;
  --text: #17201b;
  --muted: #c6d0ca;
  --muted-dark: #4a5750;
  --emerald: #24d083;
  --emerald-dark: #17725a;
  --cyan: #54c7e8;
  --amber: #f0b35a;
  --line: rgba(255,255,255,.16);
  --line-dark: rgba(23,32,27,.14);
  --shadow: 0 28px 70px rgba(0,0,0,.35);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(16, 21, 18, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logos {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36,208,131,.18), rgba(84,199,232,.08)),
    rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.18);
}

.brand__logo {
  display: block;
  height: 40px;
  border-radius: 6px;
  background: #fff;
}

.brand__logo--xde {
  width: 28px;
  object-fit: cover;
  opacity: .88;
}

.brand__logo--green {
  width: 154px;
  object-fit: cover;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: .98rem;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: .74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 70px;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(16,21,18,.98) 0%, rgba(16,21,18,.82) 38%, rgba(16,21,18,.38) 72%, rgba(16,21,18,.5) 100%),
    linear-gradient(180deg, rgba(16,21,18,.22), rgba(16,21,18,.96));
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  text-align: left;
  padding-left: 30px;
  border-left: 3px solid var(--emerald);
}

.hero__content h1,
.hero__content .hero__lead,
.hero__content .hero__motto,
.hero__content .eyebrow {
  margin-left: 0;
  margin-right: 0;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(620px, 100%);
  margin-bottom: 26px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36,208,131,.2), rgba(84,199,232,.1)),
    rgba(16,21,18,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.hero-brand__label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  overflow: hidden;
}

.hero-brand__mark img {
  display: block;
  object-position: center;
}

.hero-brand__mark--xde {
  width: 50px;
}

.hero-brand__mark--xde img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.hero-brand__mark--green {
  width: clamp(150px, 25vw, 240px);
}

.hero-brand__mark--green img {
  width: 100%;
  height: 50px;
  object-fit: cover;
}

.hero-brand__connector {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  box-shadow: 0 0 18px rgba(84,199,232,.5);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__lead {
  max-width: 660px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero__motto {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
}

.hero__actions,
.footer__grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin: 30px 0 34px;
  width: min(560px, 100%);
  justify-content: flex-start;
}

.hero__actions .button {
  flex: 1 1 0;
  min-width: 200px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--emerald);
  color: #07110c;
}

.button--primary:hover {
  background: #37e397;
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}

.button--ghost:hover {
  border-color: var(--cyan);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero__metrics div {
  padding: 16px;
  background: rgba(16,21,18,.72);
}

.hero__metrics dt {
  color: var(--emerald);
  font-size: 1.45rem;
  font-weight: 900;
}

.hero__metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.section {
  padding: 92px 0;
}

.section--light {
  background: var(--panel);
  color: var(--text);
}

.section--light p,
.section--light li {
  color: var(--muted-dark);
}

.section--dark {
  background: #0b1110;
}

.intro {
  background: var(--bg-2);
}

.intro__grid,
.split,
.software__grid,
.estimator,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.intro__grid p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-title {
  margin-bottom: 34px;
}

.service-grid,
.maintenance-grid,
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.maintenance-grid article,
.plan,
.feature-list article,
.estimator__panel,
.contact-form,
.diagnostic-form {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.service-card {
  min-height: 250px;
  padding: 24px;
  background: #fffaf0;
}

.service-card--link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.service-card--link:hover {
  border-color: var(--emerald);
}

.service-card__index {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--emerald-dark);
  font-weight: 900;
}

.service-card h3,
.plan h3,
.feature-list h3 {
  color: var(--text);
}

.feature-list p {
  font-weight: 700;
  color: var(--text);
}

.split {
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list article {
  padding: 22px;
  background: #f7f2e8;
}

.maintenance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maintenance-grid article {
  padding: 24px;
  border-color: var(--line);
  background: rgba(255,255,255,.05);
}

.maintenance-grid h3 {
  color: var(--ink);
}

.software {
  background: #172018;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px 18px 18px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 25px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
  padding: 28px;
  background: #fffaf0;
  color: var(--text);
}

.plan p,
.plan li {
  color: var(--muted-dark);
  font-weight: 700;
}

.plan--featured {
  background: #14201a;
  color: var(--ink);
  border-color: rgba(36,208,131,.5);
  box-shadow: var(--shadow);
}

.plan--featured h3,
.plan--featured p,
.plan--featured li {
  color: var(--ink);
}

.plan__label {
  color: var(--emerald-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan--featured .plan__label {
  color: var(--emerald);
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
}

.plan .button {
  margin-top: 22px;
}

.plan__ideal {
  margin: 18px 0 0;
  font-size: .92rem;
  color: var(--muted-dark);
}

.plan--featured .plan__ideal {
  color: var(--muted);
}

.plan .price small {
  color: var(--muted-dark);
  font-weight: 700;
}

.plan .price {
  color: var(--emerald-dark);
}

.plan--featured .price {
  color: var(--emerald);
}

.plan--featured .price small {
  color: var(--muted);
}

.estimator-section {
  background: #eef4f3;
  color: var(--text);
}

.estimator-section p {
  color: var(--muted-dark);
}

.estimator-section .eyebrow {
  color: var(--emerald-dark);
}

.estimator__panel,
.contact-form,
.diagnostic-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fffaf0;
  color: var(--text);
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus,
.button:focus,
.site-nav a:focus {
  outline: 3px solid rgba(84,199,232,.35);
  outline-offset: 2px;
}

.toggle-row {
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.estimate-result {
  display: block;
  padding: 16px;
  border-radius: 8px;
  background: #14201a;
  color: var(--ink);
  font-weight: 900;
}

.process {
  background: #121a16;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--amber);
  font-weight: 900;
}

.section--light .timeline span,
.page-section--light .timeline span {
  color: var(--emerald-dark);
}

.contact {
  background: var(--panel);
  color: var(--text);
}

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

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
}

.contact-mail,
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-mail {
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #edf5f1);
  box-shadow: 0 16px 32px rgba(23,32,27,.08);
}

.contact-mail__mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.contact-mail__mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.contact-phone {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffaf0;
}

.form-note {
  margin: -6px 0 0;
  color: var(--muted-dark);
  font-size: .82rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.consent-row a {
  color: var(--emerald-dark);
}

.form-status--pending {
  color: var(--muted-dark);
}

.form-status--success {
  color: var(--emerald-dark);
  font-weight: 700;
}

.form-status--error {
  color: #a64718;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  gap: 16px;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 33, 29, .97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-banner--visible {
  display: flex;
}

.cookie-banner p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--cyan);
}

.cookie-banner .button {
  flex-shrink: 0;
}

.site-footer {
  padding: 30px 0;
  background: #0b1110;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 44px;
  width: 44px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.footer-brand img:nth-child(2) {
  width: 124px;
  object-position: center;
}

.site-footer p {
  margin: 0;
  font-size: .92rem;
}

.site-footer a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .service-grid,
  .maintenance-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro__grid,
  .split,
  .software__grid,
  .estimator,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    gap: 8px;
  }

  .brand__logo {
    height: 34px;
  }

  .brand__logo--green {
    width: 126px;
  }

  .brand__copy {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    top: 69px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16,21,18,.97);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(16,21,18,.94) 0%, rgba(16,21,18,.78) 46%, rgba(16,21,18,.98) 100%);
  }

  .hero__metrics,
  .service-grid,
  .maintenance-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-brand__connector {
    width: 1px;
    height: 18px;
    margin-left: 24px;
  }

  .section {
    padding: 68px 0;
  }

  .container,
  .hero__content {
    width: min(100% - 28px, 1120px);
  }

  .hero__content {
    padding-left: 18px;
  }

  .footer__grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

/* ===== Páginas internas ===== */

.page {
  padding-top: 118px;
}

.page-hero {
  padding: 70px 0 66px;
  background:
    radial-gradient(1100px 460px at 88% -10%, rgba(36,208,131,.16), transparent 62%),
    radial-gradient(700px 320px at 8% 110%, rgba(84,199,232,.1), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-bottom: 18px;
}

.page-hero .lead {
  max-width: 640px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .84rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--muted);
  opacity: .55;
}

.page-section {
  padding: 88px 0;
}

.page-section--light {
  background: var(--panel);
  color: var(--text);
}

.page-section--light p,
.page-section--light li {
  color: var(--muted-dark);
}

.page-section__head {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-section__head .eyebrow {
  color: var(--emerald);
}

.page-section--light .eyebrow {
  color: var(--emerald-dark);
}

.page-section__head h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.page-section__head p {
  margin-bottom: 0;
}

#servicios .page-section__head p {
  font-weight: 700;
}

#equipo p {
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fffaf0;
}

.card h3 {
  color: var(--text);
}

.card p,
.card li {
  color: var(--muted-dark);
}

.card--dark {
  border-color: var(--line);
  background: rgba(255,255,255,.05);
}

.card--dark h3 {
  color: var(--ink);
}

.card--dark p,
.card--dark li {
  color: var(--muted);
}

.card.bio p {
  font-weight: 700;
}

.card.bio {
  background:
    linear-gradient(160deg, rgba(36,208,131,.14) 0%, rgba(16,24,20,0) 45%),
    #0c1d15;
  border-color: rgba(36,208,131,.5);
  border-left: 3px solid var(--emerald);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.card.bio h3 {
  color: #ffffff;
  font-size: 1.35rem;
}

.card.bio p {
  color: #dce6df;
}

.page-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  position: relative;
  padding: 14px 16px 14px 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fffaf0;
  color: var(--muted-dark);
}

.page-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
}

.page-list--strong li {
  color: var(--text);
  font-weight: 700;
}

.page-list--dark li {
  border-color: var(--line);
  background: rgba(255,255,255,.05);
}

.page-list--dark li {
  color: var(--muted);
}

.price {
  margin: 14px 0 20px;
  color: var(--emerald);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.page-section--light .price {
  color: var(--emerald-dark);
}

.section--light .price small,
.page-section--light .price small,
.estimator-section .price small {
  color: var(--muted-dark);
}

.price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-link {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  text-decoration: none;
}

.related-link:hover {
  border-color: var(--cyan);
  background: rgba(84,199,232,.09);
}

.related-link strong {
  display: block;
  margin-bottom: 5px;
}

.related-link small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.related-link--card {
  background: #fffaf0;
  border-color: var(--line-dark);
  color: var(--text);
}

.related-link--card:hover {
  border-color: var(--emerald);
  background: #fffaf0;
  transform: translateY(-2px);
}

.related-link--card strong {
  color: var(--text);
}

.related-link--card small {
  color: var(--muted-dark);
}

.related-link--card::after {
  content: "→";
  display: block;
  margin-top: 12px;
  color: var(--emerald-dark);
  font-weight: 800;
}

.project-grid {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  max-width: 840px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(36,208,131,.1), rgba(84,199,232,.05)), rgba(255,255,255,.04);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}

.project-card:hover {
  border-color: var(--emerald);
  background: linear-gradient(135deg, rgba(36,208,131,.16), rgba(84,199,232,.08)), rgba(255,255,255,.05);
  transform: translateY(-2px);
}

.project-card__logo {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.project-card__tag {
  color: var(--emerald);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 6px 0 8px;
  color: #ffffff;
}

.project-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.project-card__cta {
  color: var(--emerald);
  font-weight: 900;
}

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

.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.local-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
}

.local-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.local-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.cta-band {
  padding: 78px 0;
  background:
    radial-gradient(800px 380px at 50% -30%, rgba(36,208,131,.22), transparent 60%),
    #0b1110;
  text-align: center;
}

.cta-band h2 {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.6;
}

.cta-band .button {
  margin: 0 6px;
}

.project-card {
  overflow: hidden;
}

.project-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-card__meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36,208,131,.14);
  color: var(--emerald);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.post-card__tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--emerald);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

a.post-card .post-card__tag {
  color: var(--emerald-dark);
}

.footer__grid {
  flex-wrap: wrap;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .related-grid,
  .local-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    padding-top: 106px;
  }

  .page-hero {
    padding: 48px 0 52px;
  }

  .page-section {
    padding: 66px 0;
  }

  .cta-band {
    padding: 60px 0;
  }
}

/* Tarjetas locales sobre secciones claras */
.page-section--light .local-card {
  border-color: var(--line-dark);
  background: #fffaf0;
}

.page-section--light .local-card h3 {
  color: var(--text);
}

.page-section--light .local-card p {
  color: var(--muted-dark);
}

.form-note.form-status--pending {
  color: var(--muted-dark);
}

/* Entradas de blog */
.post {
  max-width: 820px;
  margin: 0 auto;
}

.post p {
  margin-bottom: 18px;
  line-height: 1.75;
}

.post h2 {
  margin: 44px 0 16px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.post h2:first-of-type {
  margin-top: 8px;
}

.post .page-list {
  margin: 0 0 24px;
}

.post ul.page-list li {
  line-height: 1.55;
}

.post strong {
  color: var(--text);
}

a.post-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}

a.post-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

a.post-card h3 {
  color: var(--text);
}

a.post-card p {
  color: var(--muted-dark);
}

/* Tarjetas "Te puede interesar" sobre secciones claras: paleta clara legible */
.page-section--light .related-link {
  background: #fffaf0;
  border-color: var(--line-dark);
  color: var(--text);
}

.page-section--light .related-link:hover {
  border-color: var(--emerald);
  background: #fffaf0;
  transform: translateY(-2px);
}

.page-section--light .related-link strong {
  color: var(--text);
}

.page-section--light .related-link small {
  color: var(--muted-dark);
}

.page-section--light .related-link::after {
  content: "→";
  display: block;
  margin-top: 12px;
  color: var(--emerald-dark);
  font-weight: 800;
}

/* ===== Home: tecnología con inteligencia humana ===== */
.pillar-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.pillar-card {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  text-align: center;
}

  .pillar-hub {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    color: var(--emerald);
    font-weight: 900;
    font-size: .85rem;
    letter-spacing: .2em;
    text-align: center;
    justify-content: center;
  }

  .page-section--light .pillar-hub {
    color: var(--emerald-dark);
  }

.pillar-hub::before,
.pillar-hub::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--emerald));
}

.pillar-hub::after {
  background: linear-gradient(90deg, var(--emerald), transparent);
}

.pillar-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
}

.page-section--light .pillar-card {
  background: #fffaf0;
  border-color: var(--line-dark);
}

.page-section--light .pillar-card h3 {
  color: var(--text);
}

.page-section--light .pillar-card p {
  color: var(--muted-dark);
  font-weight: 700;
}

.philosophy {
  background: radial-gradient(120% 90% at 50% 0%, #12211b 0%, #0a0f0d 55%, #060907 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.philosophy .section-title {
  max-width: 900px;
  margin: 0;
  text-align: left;
  padding-left: 26px;
  border-left: 3px solid var(--emerald);
}

.philosophy .eyebrow {
  color: var(--emerald);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(36, 208, 131, .5);
}

.philosophy h2 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.philosophy p {
  color: #dde7e1;
  font-weight: 500;
  margin: 18px 0 0;
  font-size: 1.05rem;
  max-width: 720px;
}

.philosophy__values {
  justify-content: flex-start;
  margin-top: 24px;
}

.philosophy .philosophy__values li {
  border: 1px solid rgba(36, 208, 131, .55);
  background: linear-gradient(135deg, rgba(36, 208, 131, .18), rgba(84, 199, 232, .18));
  color: #ffffff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(36, 208, 131, .14), 0 0 18px rgba(36, 208, 131, .12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.philosophy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  width: min(560px, 100%);
  margin: 26px 0 0;
}

.philosophy__actions .button {
  flex: 1 1 0;
  min-width: 220px;
}

.neuro .split {
  gap: 44px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}

/* Tag-list sobre secciones claras: texto oscuro legible */
.section--light .tag-list li,
.page-section--light .tag-list li {
  border-color: var(--line-dark);
  background: #fffaf0;
  color: var(--text);
}

/* Light panels: force dark text when a future content edit adds new copy. */
.service-card,
.feature-list article,
.plan:not(.plan--featured),
.card:not(.card--dark):not(.bio),
.page-section--light .local-card,
.page-section--light .related-link,
.page-section--light .pillar-card,
.section--light .tag-list li,
.page-section--light .tag-list li,
.contact-mail,
.contact-phone {
  color: var(--text);
}

.service-card :where(p, li, small),
.feature-list article :where(p, li, small),
.plan:not(.plan--featured) :where(p:not(.plan__label), li, small),
.card:not(.card--dark):not(.bio) :where(p, li, small),
.page-section--light .local-card :where(p, li, small),
.page-section--light .related-link :where(p, small),
.page-section--light .pillar-card :where(p, li, small) {
  color: var(--muted-dark);
}

/* ===== Diagnóstico gratuito ===== */
.diagnostic {
  background: #0b1110;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic .section-title {
  max-width: 760px;
}

.diagnostic .section-title p {
  color: var(--muted);
}

.diagnostic-form {
  max-width: 860px;
  margin: 0 auto;
}

.diagnostic-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.diagnostic-form__full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .diagnostic-form__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 800;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* Mobile conversion CTA */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 720px) {
  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(11, 17, 16, .96);
    backdrop-filter: blur(16px);
  }

  .mobile-sticky-cta .button {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding-inline: 10px;
    font-size: .86rem;
  }

  body {
    padding-bottom: 72px;
  }
}

/* Maqueta de navegador para casos de estudio */
.browser-shot {
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1412;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.browser-shot__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.browser-shot__dots {
  display: flex;
  gap: 7px;
}

.browser-shot__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-shot__dots span:nth-child(1) { background: #ff5f57; }
.browser-shot__dots span:nth-child(2) { background: #febc2e; }
.browser-shot__dots span:nth-child(3) { background: #28c840; }

.browser-shot__url {
  flex: 1;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.browser-shot__url a:hover {
  color: var(--emerald);
}

.browser-shot__img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.shot-caption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.shot-caption a {
  color: var(--emerald);
}

@media (max-width: 560px) {
  .browser-shot__url {
    font-size: .68rem;
  }
}