:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card: #10172a;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: #1f2937;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
    --shadow-card: 0 16px 30px rgba(15, 23, 42, 0.5);
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease-out;
    --max-width: 1120px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "Segoe UI", sans-serif;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text-main);
    line-height: 1.6;
  }
  
  /* LAYOUT BASICO */
  
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* HEADER / NAV */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.8),
      transparent
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
  }
  
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
  }
  
  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8 60%, #020617);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #eff6ff;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
  }
  
  .logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 1rem;
  }
  
  .main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
  }
  
  .main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.2rem;
    transition: color var(--transition-fast);
  }
  
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #60a5fa, #38bdf8);
    transition: width var(--transition-med);
  }
  
  .main-nav a:hover {
    color: var(--text-main);
  }
  
  .main-nav a:hover::after {
    width: 100%;
  }
  
  /* HERO */
  
  .hero {
    padding: 3.5rem 0 3rem;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.7fr);
    gap: 2.5rem;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 34rem;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast),
      box-shadow var(--transition-fast), background var(--transition-fast),
      border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #f9fafb;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.45);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.55);
  }
  
  .btn-outline {
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.7);
  }
  
  .btn-outline:hover {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
  }
  
  .full-width {
    width: 100%;
  }
  
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-muted);
  }
  
  .hero-panel {
    display: flex;
    justify-content: center;
  }
  
  .hero-card {
    background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-soft);
  }
  
  .hero-card h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .hero-card p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-muted);
  }
  
  .hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .hero-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
  }
  
  .hero-list li::before {
    content: "•";
    font-size: 1rem;
    color: #60a5fa;
  }
  
  /* SECCIONES GENERALES */
  
  .section {
    padding: 3rem 0;
  }
  
  .section-alt {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  }
  
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .section-intro {
    color: var(--text-muted);
    max-width: 40rem;
    margin-bottom: 2rem;
  }
  
  /* CARDS */
  
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast),
      box-shadow var(--transition-fast), border-color var(--transition-fast),
      background var(--transition-fast);
  }
  
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-soft);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.8);
    background: radial-gradient(circle at top left, #111827 0, #020617 55%);
  }
  
  .card h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  
  .card p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }
  
  .card ul {
    padding-left: 1.1rem;
    margin: 0;
  }
  
  .card li {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  /* EXPERIENCIA */
  
  .experience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  
  .bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .bullet-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
  }
  
  .bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
  }
  
  /* TECNOLOGÍAS */
  
  .chips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .chip-group h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
  }
  
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  
  .chips span {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.4);
  }
  
  /* CONTACTO */
  
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: flex-start;
  }
  
  .contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  .contact-form {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
  }
  
  .form-group {
    margin-bottom: 0.9rem;
  }
  
  .form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-main);
    padding: 0.5rem 0.7rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast),
      box-shadow var(--transition-fast), background var(--transition-fast);
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
    background: rgba(15, 23, 42, 0.95);
  }
  
  /* FOOTER */
  
  .site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1rem 0 1.4rem;
    background: #020617;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .footer-note {
    opacity: 0.8;
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 900px) {
    .hero-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-panel {
      order: -1;
    }
  
    .cards-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .experience-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .chips-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .contact-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .main-nav {
      display: none;
    }
  }
  
  @media (max-width: 600px) {
    .container {
      padding: 0 1rem;
    }
  
    .hero {
      padding-top: 2.4rem;
    }
  
    .hero-text h1 {
      font-size: 1.7rem;
    }
  
    .btn {
      width: 100%;
      justify-content: center;
    }
  
    .hero-actions {
      flex-direction: column;
    }
  }