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

    :root {
      --bg:        #f4f7fb;
      --white:     #ffffff;
      --border:    rgba(15,23,42,0.09);
      --shadow:    0 1px 4px rgba(15,23,42,0.06), 0 6px 20px rgba(15,23,42,0.05);
      --shadow-h:  0 8px 24px rgba(15,23,42,0.10), 0 20px 56px rgba(15,23,42,0.08);
      --ink:       #0f172a;
      --ink-soft:  #475569;
      --ink-mute:  #94a3b8;
      --accent:    #2563eb;
      --accent-d:  #1d4ed8;
      --accent-bg: #eff6ff;
      --wa:        #25d366;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 16px;
      color: var(--ink);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
      min-height: 100dvh;
      overflow-x: hidden;
    }

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

    /* ══════ HEADER ══════ */
    .site-header {
      background: rgba(255,255,255,0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 40px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .site-header__logo { height: 36px; width: auto; }

    .header-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--wa);
      color: #fff;
      font-size: 0.85rem;
      font-weight: 600;
      border-radius: 999px;
      padding: 9px 20px;
      transition: background 0.2s, transform 0.15s;
    }

    .header-cta:hover { background: #1ebe5d; transform: translateY(-1px); }

    /* ══════ HERO ══════ */
    .hero {
      position: relative;
      border-bottom: 1px solid var(--border);
      padding: 84px 40px 36px;
      text-align: center;
      overflow: hidden;
      background:
        radial-gradient(ellipse 60% 50% at 18% 0%,  rgba(37,99,235,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 85% 20%, rgba(37,211,102,0.10) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    }

    /* grid tech sutil de fondo */
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
      -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
      pointer-events: none;
    }

    .hero__inner {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
    }

    .hero h1 {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: clamp(2.4rem, 6.5vw, 4rem);
      font-weight: 700;
      letter-spacing: -0.035em;
      line-height: 1.05;
      color: var(--ink);
    }

    .hero h1 .rot-wrap {
      display: inline-block;
      position: relative;
      color: var(--accent);
    }

    .rot-word {
      display: inline-block;
      animation: rotIn 0.5s ease;
    }

    .rot-word::after {
      content: "";
      display: block;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent), var(--wa));
      margin-top: 4px;
      transform-origin: left;
      animation: underline 0.5s ease;
    }

    @keyframes rotIn {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes underline {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }

    .hero__sub {
      font-size: 1.1rem;
      color: var(--ink-soft);
      max-width: 580px;
      line-height: 1.6;
    }

    .hero__actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 4px;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: var(--wa);
      color: #fff;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 999px;
      padding: 15px 34px;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 4px 16px rgba(37,211,102,0.25);
    }

    .btn-primary:hover {
      background: #1ebe5d;
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(37,211,102,0.38);
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: var(--white);
      border: 1.5px solid var(--border);
      color: var(--ink-soft);
      font-size: 1rem;
      font-weight: 500;
      border-radius: 999px;
      padding: 15px 32px;
      transition: border-color 0.2s, color 0.2s, transform 0.15s;
    }

    .btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

    /* stats */
    .hero__stats {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin-top: 24px;
    }

    .stat {
      background: rgba(255,255,255,0.7);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px 22px;
      min-width: 130px;
      backdrop-filter: blur(8px);
    }

    .stat__num {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--accent);
      line-height: 1;
    }

    .stat__label {
      font-size: 0.74rem;
      color: var(--ink-soft);
      margin-top: 5px;
      line-height: 1.3;
    }

    /* scroll hint */
    .scroll-hint {
      margin: 20px auto 0;
      display: flex;
      justify-content: center;
      color: var(--ink-mute);
      opacity: 0.55;
      transition: opacity 0.5s ease;
      animation: arrowBounce 1.8s ease-in-out infinite;
    }

    .scroll-hint--hidden {
      opacity: 0;
      pointer-events: none;
    }

    @keyframes arrowBounce {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(6px); }
    }

    /* ══════ SECCIONES ══════ */
    .section {
      max-width: 1080px;
      margin: 0 auto;
      padding: 80px 24px;
    }

    .section--alt {
      background: var(--white);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      max-width: none;
    }

    .section--alt > .section-inner {
      max-width: 1080px;
      margin: 0 auto;
      padding: 80px 24px;
    }

    .section__header { max-width: 580px; margin-bottom: 44px; }
    .section__header--center { margin-left: auto; margin-right: auto; text-align: center; }

    .section__eyebrow {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 10px;
      display: block;
    }

    .section__title {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--ink);
      line-height: 1.18;
    }

    .section__desc {
      margin-top: 12px;
      font-size: 0.97rem;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    /* ══════ RUBROS ══════ */
    .rubros {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }

    .rubro {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 11px 20px;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--ink-soft);
      box-shadow: var(--shadow);
      transition: transform 0.15s, border-color 0.2s, color 0.2s;
    }

    .rubro:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
    .rubro svg { color: var(--accent); }

    /* ══════ SERVICIOS ══════ */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    @media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

    .service-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px 24px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }

    .service-card__icon {
      width: 46px;
      height: 46px;
      background: var(--accent-bg);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    .service-card h3 {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--ink);
    }

    .service-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }

    /* ══════ CÓMO TRABAJAMOS ══════ */
    .steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      counter-reset: step;
    }

    @media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

    .step {
      position: relative;
      padding-top: 8px;
    }

    .step__num {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--accent);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 16px;
      box-shadow: 0 6px 16px rgba(37,99,235,0.3);
    }

    .step h3 {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .step p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }

    /* ══════ PROYECTOS ══════ */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

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

    .project-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
    }

    .project-card:hover {
      background: var(--white);
      box-shadow: var(--shadow-h);
      transform: translateY(-3px);
      border-color: rgba(37,99,235,0.2);
    }

    .project-card__name {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--ink);
    }

    .project-card__desc { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }

    .chips { display: flex; flex-wrap: wrap; gap: 5px; }

    .chip {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 0.7rem;
      font-weight: 500;
      color: var(--ink-soft);
    }

    .project-card__link {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--accent);
      margin-top: 4px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: gap 0.2s;
    }

    .project-card:hover .project-card__link { gap: 9px; }

    /* ══════ POR QUÉ ══════ */
    .reasons-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    @media (max-width: 800px) { .reasons-grid { grid-template-columns: 1fr; } }

    .reason { display: flex; flex-direction: column; gap: 10px; }

    .reason__icon {
      width: 46px;
      height: 46px;
      border-radius: 12px;
      background: var(--accent-bg);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
    }

    .reason h3 {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--ink);
    }

    .reason p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

    /* ══════ FAQ ══════ */
    .faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

    .faq-item {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .faq-q {
      width: 100%;
      text-align: left;
      background: none;
      border: none;
      cursor: pointer;
      padding: 20px 22px;
      font-size: 0.97rem;
      font-weight: 600;
      color: var(--ink);
      font-family: inherit;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .faq-q svg { flex-shrink: 0; color: var(--accent); transition: transform 0.25s; }
    .faq-item.open .faq-q svg { transform: rotate(45deg); }

    .faq-a {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .faq-a p {
      padding: 0 22px 20px;
      font-size: 0.9rem;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    /* ══════ RESEÑAS ══════ */
    .reviews-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    @media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } }

    .review-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 28px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      box-shadow: var(--shadow);
    }

    .review-card__icon { opacity: 0.5; flex-shrink: 0; }

    .review-card__text {
      font-size: 0.95rem;
      color: var(--ink-soft);
      line-height: 1.7;
      flex: 1;
    }

    .review-card__text strong { color: var(--ink); font-weight: 600; }

    .review-card__author {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 4px;
    }

    .review-card__avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--accent-bg);
      color: var(--accent);
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-weight: 700;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .review-card__name {
      display: block;
      font-weight: 600;
      font-size: 0.88rem;
      color: var(--ink);
    }

    .review-card__role {
      display: block;
      font-size: 0.78rem;
      color: var(--ink-mute);
    }

    /* ══════ CONTACTO FINAL ══════ */
    .contact-section {
      position: relative;
      overflow: hidden;
      background: var(--ink);
      padding: 88px 24px;
      text-align: center;
    }

    .contact-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 50% 60% at 20% 0%, rgba(37,99,235,0.4) 0%, transparent 55%),
        radial-gradient(ellipse 45% 50% at 85% 100%, rgba(37,211,102,0.25) 0%, transparent 55%);
      pointer-events: none;
    }

    .contact-section__inner {
      position: relative;
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    .contact-section h2 {
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: clamp(1.7rem, 5vw, 2.4rem);
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }

    .contact-section p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

    .contact-section__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

    .btn-wa {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--wa);
      color: #fff;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 999px;
      padding: 15px 34px;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }

    .btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.4); }

    .btn-mail {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.85);
      font-size: 0.92rem;
      font-weight: 500;
      border-radius: 999px;
      padding: 15px 28px;
      transition: background 0.2s;
    }

    .btn-mail:hover { background: rgba(255,255,255,0.18); }

    /* ══════ WHATSAPP FLOTANTE ══════ */
    .wa-float {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 200;
      width: 58px;
      height: 58px;
      background: var(--wa);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: 0 4px 20px rgba(37,211,102,0.45);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .wa-float::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 2px solid var(--wa);
      animation: waPulse 2s ease-out infinite;
    }

    @keyframes waPulse {
      0%   { transform: scale(1);   opacity: 0.7; }
      100% { transform: scale(1.6); opacity: 0; }
    }

    .wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }

    /* ══════ FOOTER ══════ */
    footer {
      background: var(--ink);
      border-top: 1px solid rgba(255,255,255,0.07);
      padding: 28px 24px;
      text-align: center;
      font-size: 0.78rem;
      color: rgba(255,255,255,0.4);
    }

    /* ══════ SPOTLIGHT LUBRICENTROS ══════ */
    .lubri-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 8px;
    }

    @media (max-width: 900px) { .lubri-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 520px) { .lubri-grid { grid-template-columns: 1fr; } }

    .lubri-feat {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 20px;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .lubri-feat:hover {
      border-color: rgba(37,99,235,0.25);
      box-shadow: var(--shadow);
    }

    .lubri-feat__icon {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      background: var(--accent-bg);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    .lubri-feat strong {
      display: block;
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 4px;
    }

    .lubri-feat p {
      font-size: 0.82rem;
      color: var(--ink-soft);
      line-height: 1.5;
      margin: 0;
    }

    .lubri-cta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--accent);
      border: 1.5px solid var(--accent);
      border-radius: 999px;
      padding: 12px 28px;
      transition: background 0.2s, color 0.2s;
      margin-right: 12px;
    }

    .lubri-cta:hover { background: var(--accent); color: #fff; }

    .lubri-wa {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 0.95rem;
      background: var(--wa);
      color: #fff;
      border-radius: 999px;
      padding: 12px 28px;
      transition: background 0.2s;
    }

    .lubri-wa:hover { background: #1ebe5d; }

    @media (max-width: 520px) {
      .lubri-cta, .lubri-wa { display: flex; width: 100%; justify-content: center; margin-right: 0; margin-bottom: 8px; }
    }

    /* ══════ ANIMACIÓN ON-SCROLL ══════ */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.in { opacity: 1; transform: translateY(0); }

    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; }
      *, *::before, *::after { animation: none !important; }
    }

    /* ══════ RESPONSIVE ══════ */
    @media (max-width: 640px) {
      .site-header { padding: 0 18px; }
      .header-cta span { display: none; }
      .hero { padding: 64px 20px 64px; }
      .section { padding: 56px 20px; }
      .section--alt > .section-inner { padding: 56px 20px; }
      .contact-section { padding: 64px 20px; }
      .wa-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
    }
