:root {
    --bg: #F7F5F0;
    --bg2: #EDEAE3;
    --surface: #FFFFFF;
    --surface2: #F2EFE9;
    --ink: #1A1714;
    --ink2: #3D3730;
    --muted: #8C8479;
    --gold: #C8820A;
    --gold-light: #F5A623;
    --gold-bg: #FEF3DC;
    --teal: #0B7A75;
    --teal-bg: #E0F4F3;
    --border: rgba(26,23,20,0.1);
    --border-strong: rgba(26,23,20,0.18);
    --shadow: 0 2px 16px rgba(26,23,20,0.08);
    --shadow-lg: 0 8px 40px rgba(26,23,20,0.12);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Bricolage Grotesque', sans-serif;
    overflow-x: hidden;
  }

  /* â”€â”€ SUBTLE TEXTURE â”€â”€ */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: .6;
  }

  /* â”€â”€ NAV â”€â”€ */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 6%;
    background: rgba(247,245,240,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .logo {
    font-family: 'DM Mono', monospace;
    font-size: 1.35rem; font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.5px;
  }
  .logo span { color: var(--gold); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    color: var(--muted); text-decoration: none; font-size: .88rem;
    font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    background: var(--ink); color: var(--bg);
    padding: .6rem 1.4rem; border-radius: 100px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .85rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: all .2s; letter-spacing: .02em;
    border: 2px solid var(--ink);
  }
  .nav-cta:hover { background: var(--gold); border-color: var(--gold); color: white; transform: translateY(-1px); }

  /* â”€â”€ HERO â”€â”€ */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 6% 5rem;
    position: relative; overflow: hidden;
    gap: 3rem;
  }
  .hero-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(26,23,20,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 70% at 60% 40%, black 30%, transparent 80%);
  }
  .hero-content { position: relative; }

  /* â”€â”€ HERO ILLUSTRATION â”€â”€ */
  .hero-visual {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    animation: fadeUp .9s .4s ease both;
  }
  .hero-visual svg { width: 100%; max-width: 480px; height: auto; }

  /* Robot body float */
  .robot-body { animation: robotFloat 4s ease-in-out infinite; transform-origin: center; }
  @keyframes robotFloat {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
  }
  /* Eyes blink */
  .robot-eye-l, .robot-eye-r {
    animation: eyeBlink 5s ease-in-out infinite;
    transform-origin: center;
  }
  .robot-eye-r { animation-delay: .08s; }
  @keyframes eyeBlink {
    0%,92%,100% { transform: scaleY(1); }
    95% { transform: scaleY(0.05); }
  }
  /* Antenna pulse */
  .robot-antenna-dot { animation: antennaPulse 2s ease-in-out infinite; }
  @keyframes antennaPulse {
    0%,100% { opacity: 1; r: 5; }
    50% { opacity: .3; r: 7; }
  }
  /* Screen typing */
  .robot-screen-bar1 { animation: barTyping 2.4s ease-in-out infinite; transform-origin: left center; }
  .robot-screen-bar2 { animation: barTyping 2.4s .4s ease-in-out infinite; transform-origin: left center; }
  .robot-screen-bar3 { animation: barTyping 2.4s .8s ease-in-out infinite; transform-origin: left center; }
  @keyframes barTyping {
    0% { transform: scaleX(0.2); opacity:.4; }
    60% { transform: scaleX(1); opacity:1; }
    100% { transform: scaleX(0.2); opacity:.4; }
  }
  /* Arm wave */
  .robot-arm-r { animation: armWave 3s ease-in-out infinite; transform-origin: 78% 48%; }
  @keyframes armWave {
    0%,100% { transform: rotate(0deg); }
    30% { transform: rotate(-18deg); }
    60% { transform: rotate(8deg); }
  }
  /* Gear spin */
  .gear1 { animation: gearSpin 6s linear infinite; transform-origin: 82% 78%; }
  .gear2 { animation: gearSpin 4s linear infinite reverse; transform-origin: 20% 82%; }
  @keyframes gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  /* Orbit rings */
  .orbit-ring { animation: orbitSpin 10s linear infinite; transform-origin: center; }
  .orbit-ring2 { animation: orbitSpin 14s linear infinite reverse; transform-origin: center; }
  @keyframes orbitSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
  /* Floating particles */
  .particle { animation: particleFloat 3s ease-in-out infinite; }
  .particle:nth-child(1) { animation-delay: 0s; }
  .particle:nth-child(2) { animation-delay: .8s; }
  .particle:nth-child(3) { animation-delay: 1.6s; }
  @keyframes particleFloat {
    0%,100% { transform: translateY(0) scale(1); opacity:.7; }
    50% { transform: translateY(-12px) scale(1.2); opacity:1; }
  }
  /* Shadow pulse */
  .robot-shadow { animation: shadowScale 4s ease-in-out infinite; transform-origin: center; }
  @keyframes shadowScale {
    0%,100% { transform: scaleX(1); opacity:.12; }
    50% { transform: scaleX(.7); opacity:.06; }
  }

  @media (max-width: 900px) {
    #hero { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--gold-bg); border: 1px solid rgba(200,130,10,0.25);
    padding: .4rem 1rem; border-radius: 100px;
    font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--gold);
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.8rem;
    animation: fadeUp .7s ease both;
  }
  .hero-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
  h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -2.5px; color: var(--ink);
    animation: fadeUp .7s .1s ease both;
  }
  h1 .accent { color: var(--gold); }
  h1 .accent2 {
    color: var(--teal);
    text-decoration: underline;
    text-decoration-color: rgba(11,122,117,0.3);
    text-underline-offset: 6px;
  }
  .hero-sub {
    margin-top: 1.5rem; font-size: 1.1rem; color: var(--muted);
    max-width: 520px; line-height: 1.75; font-weight: 400;
    animation: fadeUp .7s .2s ease both;
  }
  .hero-actions {
    margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeUp .7s .3s ease both;
  }
  .btn-primary {
    background: var(--ink); color: var(--bg);
    padding: .9rem 2.2rem; border-radius: 100px; border: 2px solid var(--ink);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-block;
    transition: all .2s;
  }
  .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,130,10,0.25); }
  .btn-outline {
    background: transparent; color: var(--ink);
    padding: .9rem 2.2rem; border-radius: 100px;
    border: 2px solid var(--border-strong);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    text-decoration: none; display: inline-block;
    transition: all .2s;
  }
  .btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

  .hero-stats {
    margin-top: 4rem; display: flex; gap: 3rem; flex-wrap: wrap;
    animation: fadeUp .7s .45s ease both;
  }
  .stat-item {}
  .stat-num {
    font-family: 'DM Mono', monospace;
    font-size: 2rem; font-weight: 500; color: var(--gold);
  }
  .stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .15rem; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* â”€â”€ SECTIONS COMMON â”€â”€ */
  section { padding: 6rem 6%; position: relative; }
  .section-tag {
    font-family: 'DM Mono', monospace; font-size: .72rem;
    color: var(--gold); letter-spacing: .18em; text-transform: uppercase;
    margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem;
  }
  .section-tag::before { content: ''; width: 20px; height: 2px; background: var(--gold); display: inline-block; }
  h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; color: var(--ink);
  }
  .section-sub { color: var(--muted); margin-top: .8rem; font-size: 1rem; line-height: 1.75; max-width: 500px; }

  /* â”€â”€ SERVICES â”€â”€ */
  #servicios { background: var(--surface); }
  .services-header { margin-bottom: 3.5rem; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .service-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    transition: all .25s;
    position: relative; overflow: hidden;
  }
  .service-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    opacity: 0; transition: opacity .3s;
  }
  .service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .service-card:hover::after { opacity: 1; }
  .service-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: var(--gold-bg); border: 1px solid rgba(200,130,10,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.4rem;
  }
  .service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .7rem; color: var(--ink); }
  .service-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
  .service-tags { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
  .tag {
    font-family: 'DM Mono', monospace; font-size: .65rem;
    padding: .25rem .65rem; border-radius: 4px;
    background: var(--teal-bg); border: 1px solid rgba(11,122,117,0.2);
    color: var(--teal); text-transform: uppercase; letter-spacing: .04em;
  }

  /* â”€â”€ PROCESS â”€â”€ */
  #proceso { background: var(--bg2); }
  .process-header { margin-bottom: 3.5rem; }
  .process-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  .step {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px; padding: 2.2rem 2rem;
    transition: all .25s; position: relative;
  }
  .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .step-num {
    font-family: 'DM Mono', monospace;
    font-size: 3rem; font-weight: 500;
    color: rgba(26,23,20,0.07); line-height: 1;
    margin-bottom: 1rem;
  }
  .step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: var(--gold); }
  .step p { color: var(--muted); font-size: .88rem; line-height: 1.65; }

  /* â”€â”€ TECH â”€â”€ */
  #tecnologias { background: var(--surface); }
  .tech-header { margin-bottom: 3rem; }
  .tech-scroll { display: flex; gap: .8rem; flex-wrap: wrap; }
  .tech-pill {
    font-family: 'DM Mono', monospace; font-size: .78rem;
    padding: .55rem 1.1rem; border-radius: 8px;
    background: var(--bg); border: 1.5px solid var(--border);
    color: var(--ink2); transition: all .2s; cursor: default;
  }
  .tech-pill:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); transform: translateY(-2px); }

  /* â”€â”€ CONTACT â”€â”€ */
  #contacto { background: var(--bg2); }
  .contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
  }
  .contact-left h2 { margin-bottom: 1rem; }
  .contact-options { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
  .contact-option {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 12px; cursor: pointer; text-decoration: none;
    transition: all .25s;
  }
  .contact-option:hover { border-color: var(--gold); transform: translateX(5px); box-shadow: var(--shadow); }
  .option-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    background: var(--gold-bg); display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
  }
  .option-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
  .option-desc { color: var(--muted); font-size: .82rem; margin-top: .1rem; }

  /* FORM */
  .contact-form {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px; padding: 2.5rem;
    box-shadow: var(--shadow);
  }
  .form-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
  .form-sub { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { margin-bottom: 1.2rem; }
  label {
    display: block; font-size: .78rem; font-weight: 700;
    color: var(--ink2); margin-bottom: .45rem;
    text-transform: uppercase; letter-spacing: .07em;
  }
  input, select, textarea {
    width: 100%; background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px; padding: .75rem 1rem;
    color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s;
    resize: vertical;
  }
  input::placeholder, textarea::placeholder { color: var(--muted); }
  input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,130,10,0.1);
    background: white;
  }
  select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C8479' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
  .btn-submit {
    width: 100%; background: var(--ink); color: white;
    padding: 1rem; border-radius: 100px; border: 2px solid var(--ink);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem; font-weight: 700;
    cursor: pointer; letter-spacing: .02em;
    transition: all .2s; margin-top: .5rem;
  }
  .btn-submit:hover { background: var(--gold); border-color: var(--gold); box-shadow: 0 8px 24px rgba(200,130,10,0.25); transform: translateY(-1px); }
  .form-success {
    display: none; text-align: center; padding: 2rem;
  }
  .form-success .check { font-size: 3rem; margin-bottom: 1rem; }
  .form-success h3 { font-size: 1.3rem; color: var(--gold); margin-bottom: .5rem; }
  .form-success p { color: var(--muted); font-size: .9rem; }

  /* â”€â”€ FOOTER â”€â”€ */
  footer {
    background: var(--ink);
    color: rgba(247,245,240,0.8);
    padding: 3rem 6%;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1.5rem;
  }
  .footer-logo { font-family: 'DM Mono', monospace; font-size: 1.2rem; color: white; }
  .footer-logo span { color: var(--gold-light); }
  .footer-copy { font-size: .82rem; color: rgba(247,245,240,0.45); }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a {
    color: rgba(247,245,240,0.5); text-decoration: none; font-size: .82rem;
    transition: color .2s;
  }
  .footer-links a:hover { color: var(--gold-light); }

  /* â”€â”€ WHATSAPP FLOAT â”€â”€ */
  .wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; }
  .wa-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: all .25s; text-decoration: none;
    animation: waEntrance 1s 1s ease both;
  }
  .wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.45); }
  .wa-btn svg { width: 28px; height: 28px; fill: white; }
  @keyframes waEntrance { from{opacity:0;transform:scale(0)} to{opacity:1;transform:scale(1)} }
  .wa-pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(37,211,102,0.2);
    animation: waPulse 2s infinite;
  }
  @keyframes waPulse { 0%{transform:scale(1);opacity:.5} 100%{transform:scale(1.5);opacity:0} }
  .wa-tooltip {
    position: absolute; right: 75px; top: 50%; transform: translateY(-50%);
    background: var(--ink); color: white;
    font-size: .82rem; font-weight: 600;
    padding: .5rem 1rem; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .2s;
    box-shadow: var(--shadow);
  }
  .wa-tooltip::after {
    content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: var(--ink);
  }
  .wa-float:hover .wa-tooltip { opacity: 1; }

  /* â”€â”€ MOBILE â”€â”€ */
  @media (max-width: 768px) {
    nav { padding: 1rem 5%; }
    .nav-links { display: none; }
    section { padding: 4rem 5%; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 2rem; }
    footer { flex-direction: column; text-align: center; }
    .hero-blob { opacity: .3; }
  }

  /* â”€â”€ SCROLL REVEAL â”€â”€ */
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }