:root {
        --ink: #15202b;
        --ink-2: #0d3035;
        --muted: #5b6874;
        --line: #dce4ea;
        --panel: #ffffff;
        --soft: #f4f7f8;
        --warm: #fff4eb;
        --brand: #006f77;
        --brand-dark: #004b55;
        --accent: #d97435;
        --leaf: #3a795c;
        --shadow: 0 18px 50px rgba(21, 32, 43, 0.14);
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
        scroll-padding-top: 128px;
      }

      body {
        margin: 0;
        font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
        color: var(--ink);
        background: var(--soft);
        line-height: 1.5;
        font-size: 16px;
      }

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

      .topbar {
        background: var(--ink);
        color: #eef7f8;
        font-size: 0.88rem;
        font-weight: 500;
      }

      .topbar-inner,
      .nav,
      .section-inner {
        width: min(1160px, calc(100% - 32px));
        margin: 0 auto;
      }

      .topbar-inner {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 9px 0;
        flex-wrap: wrap;
      }

      .nav-wrap {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(218, 219, 217, 0.96);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(188, 197, 202, 0.8);
      }

      .nav {
        min-height: 88px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 14px;
        font-weight: 800;
        letter-spacing: 0;
      }

      .brand-logo {
        width: 300px;
        height: auto;
        object-fit: contain;
        display: block;
        border-radius: 0;
        background: transparent;
      }

      .nav-links {
        display: flex;
        align-items: center;
        gap: 22px;
        color: #31404c;
        font-weight: 650;
        font-size: 0.95rem;
      }

      .nav-links a {
        padding: 8px 0;
        border-bottom: 2px solid transparent;
        transition: color 180ms ease, border-color 180ms ease;
      }

      .nav-links a:hover {
        color: var(--brand-dark);
        border-color: var(--brand);
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 18px;
        border-radius: 8px;
        border: 1px solid transparent;
        font-weight: 700;
        white-space: nowrap;
      }

      .btn svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
      }

      .btn-primary {
        background: var(--brand);
        color: #fff;
        box-shadow: 0 10px 24px rgba(0, 111, 119, 0.24);
      }

      .btn-secondary {
        background: #fff;
        color: var(--brand-dark);
        border-color: var(--line);
      }

      .btn-whatsapp {
        background: var(--leaf);
        color: #fff;
      }

      .hero {
        position: relative;
        min-height: 650px;
        display: grid;
        align-items: start;
        overflow: hidden;
        color: #fff;
        background: var(--ink);
      }

      .page-hero {
        position: relative;
        overflow: hidden;
        color: #fff;
        background:
          linear-gradient(135deg, rgba(21, 32, 43, 0.94), rgba(0, 75, 85, 0.9)),
          url("../img/hero-it-support.png") center / cover no-repeat;
      }

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

      .page-hero h1 {
        max-width: 880px;
        font-size: clamp(2.4rem, 5vw, 4.6rem);
      }

      .page-hero p {
        max-width: 680px;
        color: #deeaec;
        font-size: 1.12rem;
      }

      .page-intro {
        background: #fff;
        border-bottom: 1px solid var(--line);
      }

      .page-intro .section-inner {
        max-width: 920px;
        text-align: center;
      }

      .page-intro p {
        color: var(--muted);
        font-size: 1.08rem;
        line-height: 1.68;
        margin-bottom: 0;
      }

      .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
          linear-gradient(90deg, rgba(9, 23, 33, 0.92) 0%, rgba(9, 23, 33, 0.69) 45%, rgba(9, 23, 33, 0.16) 100%),
          url("../img/hero-it-support.png") center / cover no-repeat;
      }

      .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 90px;
        background: linear-gradient(135deg, transparent 0 50%, #fff 50% 100%);
      }

      .hero-inner {
        position: relative;
        width: min(1160px, calc(100% - 32px));
        margin: 0 auto;
        padding: 110px 0 90px;
      }

      .eyebrow {
        color: #a7eff0;
        font-weight: 750;
        text-transform: uppercase;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        margin-bottom: 14px;
      }

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

      h1 {
        max-width: 760px;
        margin-bottom: 18px;
        font-size: clamp(2.55rem, 6vw, 5.2rem);
        line-height: 0.98;
        letter-spacing: 0;
        font-weight: 760;
      }

      .hero p {
        max-width: 640px;
        margin-bottom: 28px;
        color: #e4edf0;
        font-size: 1.18rem;
        font-weight: 450;
      }

      .hero-actions,
      .contact-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
      }

      .hero-badges {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 22px;
      }

      .hero-badge {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.24);
        color: #f3fbfb;
        font-weight: 650;
        font-size: 0.88rem;
      }

      .hero-strip {
        position: relative;
        background: #fff;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
        padding: 28px 0;
      }

      .hero-strip .section-inner {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        background: var(--line);
      }

      .trust-item {
        position: relative;
        background: #fff;
        padding: 40px 28px;
        min-height: 170px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        overflow: hidden;
        transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
      }

      .trust-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand), #46b7bd, var(--accent));
        transform: scaleX(0.35);
        transform-origin: center;
        transition: transform 220ms ease;
      }

      .trust-item::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        right: -48px;
        bottom: -58px;
        border-radius: 999px;
        background: rgba(0, 111, 119, 0.08);
        transition: transform 220ms ease, opacity 220ms ease;
      }

      .trust-item:hover {
        z-index: 1;
        transform: translateY(-6px);
        box-shadow: 0 18px 38px rgba(21, 32, 43, 0.12);
      }

      .trust-item:hover::before {
        transform: scaleX(1);
      }

      .trust-item:hover::after {
        opacity: 0.9;
        transform: scale(1.35);
      }

      .trust-item:nth-child(2) {
        background: #f8fbfc;
      }

      .trust-item:nth-child(3) {
        background: var(--warm);
      }

      .trust-item:nth-child(4) {
        background: #f8fbfc;
      }

      .trust-item strong {
        position: relative;
        z-index: 1;
        display: block;
        min-height: 30px;
        margin-bottom: 12px;
        color: var(--brand-dark);
        font-weight: 750;
        font-size: 1.18rem;
        line-height: 1.25;
      }

      .trust-item {
        color: var(--muted);
        line-height: 1.45;
      }

      section {
        padding: 76px 0;
        scroll-margin-top: 128px;
      }

      #sobre-nosotros {
        scroll-margin-top: 128px;
      }

      .section-head {
        display: flex;
        align-items: end;
        justify-content: center;
        gap: 24px;
        margin-bottom: 38px;
        text-align: center;
      }

      .section-head h2 {
        position: relative;
        font-size: clamp(2rem, 4vw, 3.2rem);
        line-height: 1.04;
        margin-bottom: 0;
        padding-bottom: 18px;
        max-width: 760px;
        font-weight: 760;
      }

      .section-head h2::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 116px;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--brand), #46b7bd, var(--accent));
        transform: translateX(-50%);
      }

      .section-head p {
        color: var(--muted);
        max-width: 390px;
        margin-bottom: 0;
      }

      .services {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px;
        align-items: stretch;
      }

      .service-card {
        position: relative;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 111, 119, 0.12);
        border-radius: 18px;
        overflow: hidden;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 14px 34px rgba(21, 32, 43, 0.08);
        transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
      }

      .service-card::after {
        content: "";
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 0;
        height: 4px;
        border-radius: 999px 999px 0 0;
        background: linear-gradient(90deg, var(--brand), #46b7bd, var(--accent));
        transform: scaleX(0.32);
        transform-origin: center;
        transition: transform 220ms ease;
      }

      .service-card:hover {
        transform: translateY(-7px);
        border-color: rgba(0, 111, 119, 0.28);
        box-shadow: 0 24px 54px rgba(21, 32, 43, 0.15);
      }

      .service-card:hover::after {
        transform: scaleX(1);
      }

      .service-image {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        display: block;
        background: #e6edf0;
        filter: saturate(0.72) contrast(1.04);
        transform: scale(1.01);
        transition: transform 220ms ease, filter 220ms ease;
      }

      .service-media {
        position: relative;
        overflow: hidden;
        background: var(--ink);
      }

      .service-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
          linear-gradient(180deg, rgba(0, 111, 119, 0.08), rgba(13, 48, 53, 0.42)),
          linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0));
        pointer-events: none;
        transition: opacity 220ms ease;
      }

      .service-card:hover .service-image {
        filter: saturate(0.92) contrast(1.08);
        transform: scale(1.05);
      }

      .service-card:hover .service-media::after {
        opacity: 0.82;
      }

      .service-body {
        padding: 26px 24px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        min-height: 230px;
      }

      .service-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        margin: -54px auto 20px;
        background: #e5f5f4;
        border: 3px solid #fff;
        color: var(--brand-dark);
        font-weight: 750;
        font-size: 1rem;
        letter-spacing: -0.02em;
        position: relative;
        z-index: 1;
        box-shadow: 0 10px 24px rgba(21, 32, 43, 0.1);
      }

      .service-card:nth-child(2) .service-icon,
      .service-card:nth-child(6) .service-icon {
        background: #eef1ff;
        color: #394985;
      }

      .service-card:nth-child(3) .service-icon,
      .service-card:nth-child(7) .service-icon {
        background: #fff0e4;
        color: #9c4c17;
      }

      .service-card:nth-child(4) .service-icon,
      .service-card:nth-child(8) .service-icon {
        background: #eaf4ec;
        color: var(--leaf);
      }

      .service-card h3 {
        font-size: 1.18rem;
        line-height: 1.25;
        min-height: 2.95em;
        margin-bottom: 12px;
        font-weight: 760;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .service-card p {
        color: var(--muted);
        max-width: 290px;
        min-height: 4.7em;
        margin: 0 auto 22px;
        font-weight: 450;
      }

      .tag {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 0 12px;
        border-radius: 999px;
        background: #fff4eb;
        color: var(--accent);
        font-weight: 750;
        font-size: 0.78rem;
        text-transform: uppercase;
      }

      .diagnosis {
        background: linear-gradient(135deg, var(--ink-2), #102332);
        color: #fff;
        padding: 56px 0;
      }

      .diagnosis-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
      }

      .diagnosis-item {
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        min-height: 190px;
        padding: 30px 24px;
        background: rgba(255, 255, 255, 0.07);
        overflow: hidden;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
      }

      .diagnosis-item::before {
        content: attr(data-step);
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        margin-bottom: 18px;
        border-radius: 8px;
        background: rgba(167, 239, 240, 0.14);
        border: 1px solid rgba(167, 239, 240, 0.34);
        color: #a7eff0;
        font-weight: 750;
      }

      .diagnosis-item::after {
        content: "";
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 0;
        height: 3px;
        background: linear-gradient(90deg, #a7eff0, var(--accent));
        transform: scaleX(0.28);
        transform-origin: center;
        transition: transform 220ms ease;
      }

      .diagnosis-item:hover {
        transform: translateY(-6px);
        background: rgba(255, 255, 255, 0.11);
        border-color: rgba(167, 239, 240, 0.42);
      }

      .diagnosis-item:hover::after {
        transform: scaleX(1);
      }

      .diagnosis-item strong {
        display: block;
        color: #a7eff0;
        min-height: 30px;
        margin-bottom: 12px;
        font-size: 1.12rem;
        line-height: 1.25;
        font-weight: 720;
      }

      .diagnosis-item span {
        color: #deeaec;
        line-height: 1.48;
      }

      .local-seo {
        position: relative;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 248, 0.94)),
          linear-gradient(135deg, rgba(0, 111, 119, 0.08), rgba(217, 116, 53, 0.06));
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
      }

      .local-seo-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 42px;
        align-items: center;
      }

      .local-seo h2 {
        position: relative;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        line-height: 1.05;
        margin-bottom: 18px;
        padding-bottom: 18px;
        font-weight: 760;
      }

      .local-seo h2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 116px;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--brand), #46b7bd, var(--accent));
      }

      .local-seo p {
        color: var(--muted);
        margin-bottom: 0;
        max-width: 620px;
        font-size: 1.05rem;
        line-height: 1.62;
      }

      .keyword-list {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        padding: 26px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 16px 42px rgba(21, 32, 43, 0.08);
      }

      .keyword-list span {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 8px;
        background: #eef6f6;
        color: var(--brand-dark);
        font-weight: 650;
        font-size: 0.9rem;
        border: 1px solid rgba(0, 111, 119, 0.12);
        transition: transform 180ms ease, background 180ms ease, color 180ms ease;
      }

      .keyword-list span:hover {
        transform: translateY(-3px);
        background: var(--brand);
        color: #fff;
      }

      .contact-band {
        position: relative;
        background:
          linear-gradient(135deg, rgba(21, 32, 43, 0.96), rgba(0, 75, 85, 0.94)),
          url("../img/hero-it-support.png") center / cover no-repeat;
        color: #fff;
      }

      .contact-band h1,
      .contact-band h2 {
        position: relative;
        max-width: 680px;
        margin-bottom: 18px;
        padding-bottom: 18px;
        font-size: clamp(2rem, 4vw, 3.15rem);
        line-height: 1.04;
        font-weight: 760;
      }

      .contact-band h1::after,
      .contact-band h2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 116px;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, #a7eff0, #46b7bd, var(--accent));
      }

      .contact-band p {
        max-width: 620px;
        color: #deeaec;
        font-size: 1.05rem;
        line-height: 1.62;
        margin-bottom: 26px;
      }

      .contact-grid {
        display: grid;
        grid-template-columns: 1fr 0.85fr;
        gap: 42px;
        align-items: center;
      }

      .contact-panel {
        position: relative;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 30px;
        overflow: hidden;
        box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
      }

      .contact-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        border-top: 4px solid #a7eff0;
        pointer-events: none;
      }

      .contact-panel dl {
        margin: 0;
        display: grid;
        gap: 14px;
      }

      .contact-panel dl > div {
        position: relative;
        padding: 18px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
      }

      .contact-panel dl > div:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(167, 239, 240, 0.38);
      }

      .contact-panel dt {
        color: #a7eff0;
        font-weight: 750;
        margin-bottom: 5px;
      }

      .contact-panel dd {
        margin: 0;
        color: #edf6f7;
        line-height: 1.45;
      }

      .contact-panel a {
        color: #fff;
        font-weight: 650;
      }

      footer {
        background: #101923;
        color: #d9e5e8;
        padding: 24px 0;
      }

      footer .section-inner {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        font-size: 0.92rem;
      }

      @media (max-width: 900px) {
        .nav {
          align-items: center;
          flex-direction: row;
          padding: 14px 0;
        }

        .nav-links {
          width: auto;
          overflow-x: auto;
          padding-bottom: 4px;
          gap: 16px;
        }

        .hero {
          min-height: 590px;
        }

        .hero-strip .section-inner,
        .diagnosis-grid,
        .local-seo-grid,
        .contact-grid {
          grid-template-columns: 1fr;
        }

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

        .local-seo h2::after {
          left: 50%;
          transform: translateX(-50%);
        }

        .local-seo {
          text-align: center;
        }

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

      @media (max-width: 620px) {
        .topbar-inner {
          display: none;
        }

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

        .brand-logo {
          width: min(100%, 270px);
          height: auto;
        }

        .nav-links {
          width: 100%;
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 14px;
          font-size: 0.88rem;
          overflow: visible;
        }

        .nav-links a {
          min-height: 38px;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 8px 10px;
          border: 1px solid rgba(0, 111, 119, 0.14);
          border-radius: 8px;
          background: rgba(255, 255, 255, 0.58);
          text-align: center;
        }

        .hero-inner {
          padding: 74px 0 54px;
        }

        .page-hero .section-inner {
          padding: 64px 0 54px;
        }

        .hero-actions .btn,
        .contact-actions .btn {
          width: 100%;
        }

        section {
          padding: 54px 0;
        }

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


/* Responsive profesional + experiencia tipo app móvil */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}

.service-card {
  flex: 1 1 255px;
  max-width: 360px;
}

.service-body > div {
  width: 100%;
}

.mobile-app-nav {
  display: none;
}

@media (min-width: 1180px) {
  .service-card {
    flex-basis: calc(25% - 18px);
    max-width: calc(25% - 18px);
  }
}

@media (min-width: 760px) and (max-width: 1179px) {
  .service-card {
    flex-basis: calc(50% - 14px);
    max-width: calc(50% - 14px);
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  html {
    scroll-padding-top: 96px;
  }

  .nav-wrap {
    border-bottom: 1px solid rgba(0, 111, 119, 0.12);
  }

  .nav {
    min-height: 78px;
    justify-content: center;
  }

  .brand-logo {
    width: min(76vw, 270px);
  }

  .nav-links {
    display: none;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .mobile-app-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(0, 111, 119, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(21, 32, 43, 0.22);
    backdrop-filter: blur(18px);
  }

  .mobile-app-nav a {
    min-height: 54px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-2);
    font-size: 0.74rem;
    font-weight: 760;
    text-align: center;
  }

  .mobile-app-nav a:active,
  .mobile-app-nav a:hover {
    background: #e5f5f4;
    color: var(--brand-dark);
  }

  .mobile-app-nav span {
    font-size: 1.18rem;
    line-height: 1;
  }

  .hero {
    min-height: auto;
    border-radius: 0 0 28px 28px;
  }

  .hero::after {
    display: none;
  }

  .hero-inner {
    padding: 70px 0 62px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn {
    min-height: 50px;
    border-radius: 14px;
  }

  .section-inner,
  .topbar-inner,
  .nav {
    width: min(100% - 24px, 1160px);
  }

  section {
    padding: 58px 0;
  }
}

@media (max-width: 759px) {
  .services {
    gap: 16px;
  }

  .service-card {
    flex-basis: 100%;
    max-width: 100%;
    border-radius: 22px;
  }

  .service-image {
    aspect-ratio: 18 / 10;
  }

  .service-body {
    min-height: auto;
    padding: 24px 20px 22px;
  }

  .service-card h3 {
    min-height: auto;
    margin-bottom: 10px;
  }

  .service-card p {
    min-height: auto;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .diagnosis-grid,
  .hero-strip .section-inner,
  .contact-grid,
  .local-seo-grid {
    gap: 14px;
  }

  .diagnosis-item,
  .trust-item,
  .contact-panel,
  .local-seo {
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.05rem);
  }

  .hero p,
  .page-hero p {
    font-size: 1rem;
  }

  .mobile-app-nav {
    left: 8px;
    right: 8px;
    border-radius: 18px;
  }

  .mobile-app-nav a {
    min-height: 50px;
    font-size: 0.68rem;
  }
}


/* Ajuste final: servicios sin SEO/SEM como tarjetas y responsive adaptativo */
#servicios .services {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
  justify-content: center;
}
#servicios .service-card {
  width: 100%;
  max-width: none !important;
  flex: initial !important;
  min-width: 0;
}
#servicios .service-body {
  height: 100%;
}
#servicios .service-card h3,
#servicios .service-card p {
  overflow-wrap: anywhere;
}

@media (min-width: 760px) and (max-width: 1080px) {
  #servicios .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  body {
    overflow-x: hidden;
    background: #f4f8f9;
  }
  #servicios .services {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #servicios .service-card {
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(21, 32, 43, 0.10);
  }
  #servicios .service-image {
    aspect-ratio: 19 / 10;
  }
  #servicios .service-body {
    padding: 24px 18px 22px;
    min-height: auto;
  }
  .hero,
  .page-hero,
  .diagnosis,
  .local-seo,
  .contact-band {
    border-radius: 0 0 28px 28px;
  }
  .section-inner {
    width: min(100% - 22px, 1160px);
  }
}

@media (max-width: 380px) {
  .mobile-app-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px;
    gap: 4px;
  }
  .mobile-app-nav a {
    font-size: 0.62rem;
    min-width: 0;
  }
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 0.86rem;
  }
}


/* Textos legales y banner de cookies */
footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer .footer-inner > div {
  display: grid;
  gap: 4px;
}
.legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.legal-links a {
  font-weight: 700;
  color: #eef7f8;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(960px, calc(100% - 24px));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: rgba(21, 32, 43, .96);
  color: #eef7f8;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
}
.cookie-banner[hidden] { display: none; }
.cookie-text { display: grid; gap: 4px; }
.cookie-text p { margin: 0; color: rgba(238,247,248,.88); }
.cookie-actions, .cookie-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-cookie {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
}
.btn-cookie-primary { background: var(--accent); color: #fff; }
.btn-cookie-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.cookie-modal {
  border: 0;
  border-radius: 24px;
  padding: 0;
  max-width: 620px;
  width: min(620px, calc(100% - 24px));
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.cookie-modal::backdrop { background: rgba(13, 48, 53, .55); }
.cookie-modal form {
  padding: 26px;
  display: grid;
  gap: 16px;
  background: #fff;
  color: var(--ink);
}
.cookie-modal h2, .cookie-modal p { margin: 0; }
.cookie-option {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.cookie-option input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; }
.cookie-option span { display: grid; gap: 3px; }
.cookie-option small { color: var(--muted); }
.legal-page {
  background: linear-gradient(180deg, #f4f8f9 0%, #ffffff 100%);
}
.legal-document {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}
.legal-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand);
  font-weight: 800;
}
.legal-title {
  padding: clamp(26px, 5vw, 46px);
  border-radius: 30px;
  background: var(--ink);
  color: #eef7f8;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.legal-title h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.legal-title p { margin: 0; color: rgba(238,247,248,.88); }
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 32px);
  margin: 18px 0;
  box-shadow: 0 14px 40px rgba(21,32,43,.08);
}
.legal-card h2 { margin-top: 0; color: var(--ink-2); }
.legal-card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-card li + li { margin-top: 8px; }
@media (max-width: 759px) {
  footer .footer-inner { align-items: flex-start; padding-bottom: 84px; }
  .legal-links { gap: 10px; flex-direction: column; align-items: flex-start; }
  .cookie-banner {
    bottom: calc(76px + env(safe-area-inset-bottom));
    display: grid;
    padding: 16px;
  }
  .cookie-actions { justify-content: stretch; }
  .btn-cookie { flex: 1; }
  .cookie-modal form { padding: 20px; }
}


/* Estructura responsive profesional */
.diagnosis-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}
.diagnosis-item {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.services {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}
.service-card {
  height: 100%;
}
.service-body {
  min-height: 220px;
}
@media (max-width: 1024px) {
  .nav { min-height: 78px; }
  .brand-logo { width: clamp(190px, 32vw, 260px); }
  .nav-links { gap: 14px; font-size: .9rem; }
  .hero { min-height: 560px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .topbar { display: none; }
  .nav-wrap { top: 0; }
  .nav { min-height: 70px; justify-content: center; }
  .nav-links { display: none; }
  .brand-logo { width: min(78vw, 330px); }
  .hero { min-height: auto; border-radius: 0 0 28px 28px; }
  .hero::after { display: none; }
  .hero-inner { padding: 64px 0 76px; }
  .hero-actions, .contact-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; border-radius: 14px; }
  section, .page-hero .section-inner { padding-block: 54px; }
  .diagnosis-grid, .services, .local-seo-grid, .contact-grid { grid-template-columns: 1fr; }
  .diagnosis-item, .service-card, .contact-panel { border-radius: 22px; }
  .service-media { aspect-ratio: 16 / 9; }
  .service-body { min-height: auto; }
  .mobile-app-nav { display: grid; }
}
@media (min-width: 761px) {
  .mobile-app-nav { display: none; }
}


/* Refinamiento final: logo, bloque de necesidades y responsive adaptativo */
.nav-wrap {
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 32px rgba(15, 31, 46, .06);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  min-height: 82px;
}
.brand {
  min-width: 0;
}
.brand-logo {
  width: clamp(210px, 24vw, 330px);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}
.nav-links {
  color: #24384a;
  font-size: clamp(.9rem, 1vw, 1rem);
  gap: clamp(12px, 1.7vw, 24px);
}
.nav-links a {
  color: #24384a;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #0077d9;
}
.diagnosis {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.diagnosis-item {
  position: relative;
  min-height: 210px;
  padding: 24px 20px 22px;
  border: 1px solid rgba(0, 119, 217, .12);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 46px rgba(20, 39, 61, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}
.diagnosis-item::before {
  content: attr(data-step);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #0077d9, #11a5ff);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .03em;
  box-shadow: 0 12px 24px rgba(0,119,217,.22);
}
.diagnosis-item::after {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(0,119,217,.07);
}
.diagnosis-item strong {
  color: #102235;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.2;
}
.diagnosis-item span {
  color: #5a6a78;
  font-size: .96rem;
  line-height: 1.55;
}
@media (max-width: 1180px) {
  .diagnosis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diagnosis-item { min-height: 190px; }
  .nav-links { font-size: .88rem; }
}
@media (max-width: 900px) {
  .nav { min-height: 76px; justify-content: center; }
  .brand-logo { width: min(58vw, 310px); max-height: 58px; object-position: center; }
  .nav-links { display: none; }
  .diagnosis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .diagnosis-item:nth-child(5) { grid-column: 1 / -1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .nav-wrap { top: 0; }
  .nav { width: min(100% - 24px, 1180px); min-height: 68px; }
  .brand-logo { width: min(82vw, 330px); max-height: 52px; }
  .hero-inner { width: min(100% - 28px, 1160px); padding: 48px 0 66px; }
  .diagnosis-grid, .services, .local-seo-grid, .contact-grid { grid-template-columns: 1fr; }
  .diagnosis-item:nth-child(5) { grid-column: auto; }
  .diagnosis-item { min-height: auto; padding: 22px; border-radius: 22px; }
  .diagnosis-item::before { width: 38px; height: 38px; border-radius: 13px; }
  .mobile-app-nav { display: grid; }
}
