:root {
      --bg: #0b132b;
      --ink: #1f2937;
      --muted: #6b7280;
      --brand: #1f3651;
      --brand-2: #2d4f73;
      --card: #ffffff;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #f8fafc; color: var(--ink);}
    a { color: var(--brand); text-decoration: none; }
    a:hover { text-decoration: underline; }
    .container { width: min(1120px, 92vw); margin: 0 auto; }
    header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(8px); background: rgba(255,255,255,.8); border-bottom: 1px solid #e5e7eb; z-index: 20; }
    .nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
    .brand { display: flex; align-items: center; gap: 12px; }
    .brand img { height: 100px; width: auto; }
    .brand h1 { font-size: 18px; margin: 0; line-height: 1.1; letter-spacing: .06em; font-weight: 700; color: var(--brand);}
    .brand .sub { display:block; font-size: 11px; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; margin-top: 2px; }
    .nav a.btn { padding: 10px 16px; border-radius: 999px; background: var(--brand); color: white; font-weight: 600; }
    .nav a.btn:hover { background: var(--brand-2); text-decoration: none;}
    /* hero */
    .hero { padding: clamp(56px, 8vw, 96px) 0; text-align: center; background: linear-gradient(180deg,#ffffff 0%, #f3f7fb 100%); }
    .hero h2 { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 12px; line-height: 1.1; color: var(--brand);}
    .hero p { margin: 0 auto; max-width: 760px; color: var(--muted); font-size: clamp(14px, 1.4vw, 18px);}
    .hero .cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn-outline { padding: 12px 18px; border-radius: 12px; border: 1px solid #cbd5e1; background: white; font-weight: 600; }
    .btn-outline:hover { border-color: var(--brand); }
    /* about */
    section#sobre-mi { padding: clamp(48px, 8vw, 96px) 0; }
    .about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 5vw, 48px); align-items: center; }
    .about .copy h3 { margin:0 0 10px; font-size: clamp(22px,3.2vw,32px);}
    .about .copy p { color: var(--muted); font-size: 17px; line-height: 1.7; }
    .portrait { position: relative; }
    .portrait img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 12px 30px rgba(31,54,81,.15);}
    .badge { position: absolute; bottom: -14px; left: -14px; background: var(--brand); color: white; padding: 10px 14px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(31,54,81,.25);}
    /* contact */
    section#contacto { background: #0f172a; color: white; padding: clamp(48px, 8vw, 96px) 0; }
    .contact-card { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; text-align: center; }
    .contact-card h3 { font-size: clamp(22px,3.2vw,30px); margin:0; }
    .links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
    .links a { display: inline-block; padding: 14px 18px; border-radius: 12px; background: white; color: #0f172a; font-weight: 700; border: 1px solid #e5e7eb; }
    .links a:hover { transform: translateY(-1px); }
    footer { text-align: center; font-size: 13px; color: #94a3b8; padding: 28px 0; }
    @media (max-width: 900px) {
      .about { grid-template-columns: 1fr; }
      .badge { position: static; display: inline-block; margin-top: 10px; }
    }
    /* smooth scroll */
    html { scroll-behavior: smooth; }