:root {
    --basalt: #16171A;
    --basalt-soft: #1F2023;
    --cloud: #F6F4EF;
    --cloud-dim: #E8E4DA;
    --teal: #2E6E62;
    --teal-bright: #3D8C7D;
    --amber: #C98A3D;
    --stone: #6B675E;
    --stone-light: #9B9689;

    --display: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--body);
    background: var(--cloud);
    color: var(--basalt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

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

  img { max-width: 100%; display: block; }

  .wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- HUD / signature frame ---------- */
  .hud {
    position: relative;
    overflow: hidden;
  }
  .hud::before, .hud::after,
  .hud .corner-tl, .hud .corner-br {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--cloud);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
  }
  .hud::before { top: 16px; left: 16px; border-right: none; border-bottom: none; }
  .hud::after { bottom: 16px; right: 16px; border-left: none; border-top: none; }
  .hud .corner-tl { top: 16px; right: 16px; border-left: none; border-bottom: none; }
  .hud .corner-br { bottom: 16px; left: 16px; border-right: none; border-top: none; }

  .telemetry {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--cloud);
    text-transform: uppercase;
    opacity: 0.9;
  }
  .telemetry.bl { bottom: 26px; left: 26px; }
  .telemetry.tr { top: 26px; right: 26px; text-align: right; }

  /* ---------- Header ---------- */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(22, 23, 26, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(246, 244, 239, 0.08);
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
  }
  .brand {
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    color: var(--cloud);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .brand span { color: var(--teal-bright); }
  .brand-mark {
    height: auto;
    width: 96px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
  }
  .navlinks {
    display: flex;
    gap: 40px;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--cloud-dim);
  }
  .navlinks a { position: relative; padding: 4px 0; transition: color 0.2s; }
  .navlinks a:hover { color: var(--cloud); }
  .navlinks a.active { color: var(--cloud); }
  .navlinks a.active::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--amber);
  }
  .nav-cta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--basalt);
    background: var(--cloud);
    padding: 10px 18px;
    border-radius: 2px;
    letter-spacing: 0.02em;
    transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--teal-bright); color: var(--cloud); }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cloud);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 780px) {
    .nav-toggle { display: flex; }
    .navlinks {
      position: fixed;
      top: 92px;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: rgba(22, 23, 26, 0.98);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(246, 244, 239, 0.08);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      z-index: 49;
    }
    .navlinks.open { max-height: 320px; }
    .navlinks li { width: 100%; }
    .navlinks a { display: block; padding: 16px 32px; }
    .navlinks a.active::after { display: none; }
    .navlinks a.active { background: rgba(246,244,239,0.06); }
    .brand-mark { width: 64px; }
    .nav-cta { font-size: 11px; padding: 9px 14px; }
  }

  @media (max-width: 400px) {
    .nav-cta { display: none; }
  }

  /* ---------- Hero ---------- */
  .hero {
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(22,23,26,0.45) 0%, rgba(22,23,26,0.2) 40%, rgba(22,23,26,0.92) 100%),
      url('assets/hero-publicidad.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .hero-watermark {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    z-index: 2;
    opacity: 0.5;
    filter: brightness(0) invert(1);
  }
  .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 88px;
  }
  .hero-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--teal-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal-bright);
    box-shadow: 0 0 0 4px rgba(61,140,125,0.2);
  }
  .hero h1 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--cloud);
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    max-width: 850px;
  }
  .hero p {
    margin-top: 24px;
    font-size: 18px;
    color: var(--cloud-dim);
    max-width: 480px;
    font-weight: 400;
  }
  .hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
  }
  .btn-primary {
    background: var(--teal-bright);
    color: var(--cloud);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s;
  }
  .btn-primary:hover { background: var(--amber); transform: translateY(-1px); }
  .btn-secondary {
    color: var(--cloud);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(246,244,239,0.3);
    padding-bottom: 3px;
  }

  /* ---------- Section basics ---------- */
  section { padding: 120px 0; }
  .section-head {
    max-width: 620px;
    margin-bottom: 64px;
  }
  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.015em;
    line-height: 1.1;
  }
  .section-head p {
    margin-top: 18px;
    color: var(--stone);
    font-size: 16px;
    max-width: 520px;
  }

  /* ---------- Services ---------- */
  .services { background: var(--basalt); }
  .services .eyebrow { color: var(--teal-bright); }
  .services h2, .services p.lead { color: var(--cloud); }
  .services .section-head p { color: var(--stone-light); }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(246,244,239,0.08);
    border: 1px solid rgba(246,244,239,0.08);
  }
  @media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
  }
  .service-card {
    background: var(--basalt);
    padding: 0 0 36px;
    transition: background 0.25s;
  }
  .service-card:hover { background: var(--basalt-soft); }
  .service-media {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    margin-bottom: 28px;
    position: relative;
  }
  .service-body { padding: 0 36px; }
  .service-index {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--stone-light);
    margin-bottom: 16px;
    display: block;
  }
  .service-card h3 {
    font-family: var(--display);
    font-size: 21px;
    font-weight: 600;
    color: var(--cloud);
    margin-bottom: 12px;
  }
  .service-card p {
    color: var(--stone-light);
    font-size: 14.5px;
    margin-bottom: 24px;
  }
  .service-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--teal-bright);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* ---------- About teaser ---------- */
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }
  @media (max-width: 900px) {
    .about { grid-template-columns: 1fr; gap: 48px; }
  }
  .about-media {
    aspect-ratio: 4/5;
    background: url('assets/hero-equipo.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    position: relative;
  }
  .about-text p {
    color: var(--stone);
    font-size: 16px;
    margin-bottom: 20px;
  }
  .about-text p:last-of-type { margin-bottom: 32px; }
  .stat-row {
    display: flex;
    gap: 40px;
    margin-top: 8px;
    border-top: 1px solid var(--cloud-dim);
    padding-top: 28px;
  }
  .stat b {
    font-family: var(--mono);
    display: block;
    font-size: 26px;
    color: var(--basalt);
  }
  .stat span {
    font-size: 12.5px;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* ---------- CTA / contact ---------- */
  .cta {
    background: var(--cloud-dim);
    text-align: center;
  }
  .cta-inner { max-width: 560px; margin: 0 auto; }
  .cta h2 { margin-bottom: 18px; }
  .cta p { color: var(--stone); font-size: 16px; margin-bottom: 36px; }

  /* ---------- Footer ---------- */
  footer {
    background: var(--basalt);
    color: var(--stone-light);
    padding: 56px 0 32px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(246,244,239,0.08);
  }
  .footer-logo {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
  }
  .footer-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    font-size: 14px;
  }
  .footer-nav a:hover { color: var(--cloud); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom span.mono { font-family: var(--mono); }
  .footer-legal { display: flex; gap: 20px; list-style: none; }
  .footer-legal a:hover { color: var(--cloud); }

  @media (max-width: 640px) {
    section { padding: 80px 0; }
    .wrap { padding: 0 20px; }
    .hero-content { padding-bottom: 56px; }
  }

  /* ---------- WhatsApp floating button ---------- */
  .whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
    z-index: 55;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .whatsapp-fab:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(0,0,0,0.34); }
  @media (max-width: 640px) {
    .whatsapp-fab { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  }
