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

  :root {
    --black: #0D0D0D;
    --near-black: #1A1A1A;
    --ink: #2C2C2C;
    --mid: #6B6B6B;
    --muted: #9B9B9B;
    --border: #E8E8E8;
    --surface: #F7F7F5;
    --white: #FFFFFF;
    --accent: #1A3A5C;
    --accent-light: #EAF0F7;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--mid);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--black); }

  /* SECTIONS */
  section { padding: 100px 2rem; }
  .container { max-width: 960px; margin: 0 auto; }

  /* HERO */
  #hero {
    padding-top: 160px;
    padding-bottom: 120px;
    border-bottom: 1px solid var(--border);
  }
  .hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
  }
  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 32px;
    max-width: 700px;
  }
  .hero-title em {
    font-style: italic;
    color: var(--accent);
  }
  .hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--mid);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 48px;
  }
  .hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 2px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    padding: 14px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
  }
  .btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

  .hero-stats {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 48px;
  }
  .stat-item {
    padding-right: 2rem;
    border-right: 1px solid var(--border);
    padding-left: 0;
  }
  .stat-item:last-child { border-right: none; }
  .stat-item:not(:first-child) { padding-left: 2rem; }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--black);
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* SOBRE MÍ */
  #sobre { background: var(--white); border-bottom: 1px solid var(--border); }
  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .sobre-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 24px;
  }
  .sobre-text p {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 16px;
  }
  .sobre-items { padding-top: 8px; }
  .sobre-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }
  .sobre-item:first-child { border-top: 1px solid var(--border); }
  .sobre-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 15px;
  }
  .sobre-item-content strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 2px;
  }
  .sobre-item-content span {
    font-size: 13px;
    color: var(--muted);
  }

  /* SERVICIOS */
  #servicios { background: var(--surface); border-bottom: 1px solid var(--border); }
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .servicio-card {
    background: var(--white);
    padding: 40px 36px;
    transition: background 0.2s;
  }
  .servicio-card:hover { background: var(--accent-light); }
  .servicio-num {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
  }
  .servicio-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.25;
  }
  .servicio-desc {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.75;
    margin-bottom: 24px;
  }
  .servicio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tag {
    font-size: 11px;
    padding: 3px 10px;
    background: var(--surface);
    color: var(--mid);
    border-radius: 1px;
    letter-spacing: 0.03em;
  }

  /* PROYECTOS */
  #proyectos { background: var(--white); border-bottom: 1px solid var(--border); }
  .proyectos-list { display: flex; flex-direction: column; }
  .proyecto-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
  }
  .proyecto-row:first-child { border-top: 1px solid var(--border); }
  .proyecto-org {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .proyecto-info strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 4px;
  }
  .proyecto-info span {
    font-size: 13px;
    color: var(--muted);
  }
  .proyecto-arrow {
    font-size: 20px;
    color: var(--border);
    transition: color 0.2s, transform 0.2s;
  }
  .proyecto-row:hover .proyecto-arrow { color: var(--accent); transform: translateX(4px); }

  /* CONTACTO */
  #contacto { background: var(--black); }
  #contacto .section-label { color: #555; }
  #contacto .section-label::after { background: #333; }
  .contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .contacto-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }
  .contacto-text p {
    font-size: 15px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 32px;
  }
  .contacto-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #2a2a2a;
    transition: color 0.2s;
  }
  .contacto-link:first-of-type { border-top: 1px solid #2a2a2a; }
  .contacto-link:hover { color: var(--white); }
  .contacto-link-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
  }
  .contacto-form { padding-top: 4px; }
  .form-group { margin-bottom: 20px; }
  .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    background: #141414;
    border: 1px solid #2a2a2a;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus { border-color: #555; }
  .form-group textarea { height: 120px; resize: vertical; }
  .form-group select option { background: #1a1a1a; }
  .btn-form {
    width: 100%;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 16px;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-form:hover { background: #e0e8f0; transform: translateY(-1px); }

  /* FOOTER */
  footer {
    background: var(--black);
    border-top: 1px solid #1e1e1e;
    padding: 32px 2rem;
  }
  .footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-copy {
    font-size: 12px;
    color: #444;
  }
  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #333;
    text-decoration: none;
  }

  /* RESPONSIVE */
  @media (max-width: 700px) {
    nav { padding: 0 1.25rem; }
    .nav-links { display: none; }
    section { padding: 80px 1.25rem; }
    .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
    .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
    .proyecto-row { grid-template-columns: 1fr; gap: 8px; }
    .proyecto-arrow { display: none; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat-item { border-right: none; padding-left: 0 !important; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
  }

  /* ============================================================
     PLATAFORMAS — la banda de la home y las paginas de servicio
     ============================================================ */

  .plataformas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .plataforma-card {
    background: var(--white);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
  }
  .plataforma-card:hover { background: var(--surface); }
  .plataforma-kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
  }
  .plataforma-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 18px;
  }
  .plataforma-sintomas {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
  }
  .plataforma-sintomas li {
    font-size: 15px;
    font-weight: 300;
    color: var(--mid);
    padding-left: 18px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  .plataforma-sintomas li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
  }

  /* ============================================================
     CODIGO ABIERTO
     ============================================================ */

  .oss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
  }
  .oss-card {
    border-top: 2px solid var(--black);
    padding-top: 24px;
  }
  .oss-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }
  .oss-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--mid);
    margin-bottom: 18px;
    line-height: 1.65;
  }
  .oss-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 18px;
  }
  .oss-meta span { white-space: nowrap; }

  /* ============================================================
     PAGINAS INTERNAS
     ============================================================ */

  .page-head {
    padding-top: 150px;
    padding-bottom: 72px;
    border-bottom: 1px solid var(--border);
  }
  .breadcrumb {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 28px;
  }
  .breadcrumb a { color: var(--mid); text-decoration: none; }
  .breadcrumb a:hover { color: var(--accent); }
  .page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 28px;
    max-width: 720px;
  }
  .page-title em { font-style: italic; color: var(--accent); }
  .page-lead {
    font-size: 18px;
    font-weight: 300;
    color: var(--mid);
    max-width: 660px;
    line-height: 1.75;
  }

  .prose { max-width: 720px; }
  .prose h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 56px 0 20px;
  }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 36px 0 12px;
  }
  .prose p { margin-bottom: 20px; font-weight: 300; }
  .prose ul { margin: 0 0 24px 0; list-style: none; }
  .prose ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    font-weight: 300;
    color: var(--mid);
  }
  .prose ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
  }
  .prose strong { font-weight: 500; color: var(--ink); }
  .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

  .callout {
    background: var(--accent-light);
    border-left: 2px solid var(--accent);
    padding: 28px 32px;
    margin: 40px 0;
  }
  .callout p:last-child { margin-bottom: 0; }

  .precio-box {
    border: 1px solid var(--border);
    padding: 40px;
    margin: 44px 0;
    background: var(--surface);
  }
  .precio-monto {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .precio-detalle {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-top: 8px;
    margin-bottom: 28px;
  }

  /* ============================================================
     PIE LEGAL — desmentido de afiliacion con las marcas ajenas
     ============================================================ */

  .footer-legal {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem 40px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 28px;
  }

  @media (max-width: 720px) {
    .page-head { padding-top: 120px; padding-bottom: 56px; }
    .plataforma-card { padding: 32px 24px; }
    .precio-box { padding: 28px 24px; }
  }
