:root {
    --orange: #FF6B1A;
    --orange-dark: #CC4D00;
    --orange-glow: rgba(255,107,26,0.18);
    --orange-line: rgba(255,107,26,0.35);
    --bg: #0A0A0B;
    --bg2: #111114;
    --bg3: #18181D;
    --border: rgba(255,255,255,0.07);
    --border-accent: rgba(255,107,26,0.4);
    --text: #F0EDE8;
    --text-muted: rgba(240,237,232,0.5);
    --text-dim: rgba(240,237,232,0.25);
    --white: #FFFFFF;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    height: 64px;
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900; font-size: 22px; letter-spacing: 2px;
    color: var(--orange); text-transform: uppercase; text-decoration: none;
  }
  .nav-links { display: flex; gap: 36px; list-style: none; }
  .nav-links a {
    font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none; transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--orange); }
  .nav-cta {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--bg); background: var(--orange);
    padding: 9px 22px; border: none; cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    text-decoration: none; transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--orange-dark); }

  #hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    padding: 80px 5% 60px;
    position: relative; overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
      radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,107,26,0.06) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 30% 80%, rgba(255,107,26,0.04) 0%, transparent 60%);
  }
  .hero-lines {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
  }
  .hero-lines::before {
    content: '';
    position: absolute; top: -100px; right: 35%;
    width: 1px; height: 200%;
    background: linear-gradient(180deg, transparent, var(--orange-line) 30%, var(--orange-line) 70%, transparent);
    transform: rotate(-12deg);
  }
  .hero-lines::after {
    content: '';
    position: absolute; top: -100px; right: calc(35% + 40px);
    width: 1px; height: 200%;
    background: linear-gradient(180deg, transparent, rgba(255,107,26,0.1) 30%, rgba(255,107,26,0.1) 70%, transparent);
    transform: rotate(-12deg);
  }
  .hero-content { position: relative; z-index: 1; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--orange); border: 1px solid var(--border-accent);
    padding: 6px 14px; margin-bottom: 28px;
  }
  .hero-badge::before {
    content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%;
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
  .hero-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900; font-size: clamp(52px, 7vw, 90px);
    line-height: 0.9; text-transform: uppercase; letter-spacing: -1px;
    color: var(--white);
  }
  .hero-name span { color: var(--orange); display: block; }
  .hero-handle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400; font-size: clamp(22px, 3vw, 34px);
    text-transform: uppercase; letter-spacing: 6px;
    color: var(--text-muted); margin-top: 6px; margin-bottom: 28px;
  }
  .hero-desc {
    font-size: 16px; font-weight: 300; color: var(--text-muted); line-height: 1.7;
    max-width: 480px; margin-bottom: 40px;
  }
  .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--bg); background: var(--orange);
    padding: 14px 32px; border: none; cursor: pointer;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    text-decoration: none; transition: background 0.2s; display: inline-block;
  }
  .btn-primary:hover { background: var(--orange-dark); }
  .btn-secondary {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--orange); background: transparent;
    padding: 14px 32px; border: 1px solid var(--border-accent);
    cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-block;
  }
  .btn-secondary:hover { background: var(--orange-glow); }
  .hero-visual {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
  }
  .helmet-graphic {
    width: 340px; height: 340px;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  }
  .helmet-graphic::before {
    content: '';
    position: absolute; inset: -50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--orange-glow) 60deg, transparent 120deg);
    animation: spin 8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .helmet-inner {
    position: relative; z-index: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 120px; font-weight: 900;
    color: var(--orange); opacity: 0.15;
    line-height: 1;
  }
  .helmet-number {
    position: absolute; z-index: 2;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 48px; font-weight: 900;
    color: var(--white);
  }
  .hero-stats {
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0;
  }
  .hero-stat {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 14px 24px; text-align: center; min-width: 90px;
  }
  .hero-stat:first-child { border-right: none; }
  .hero-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px; font-weight: 800;
    color: var(--orange); line-height: 1;
  }
  .hero-stat-label {
    font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-dim); margin-top: 4px;
  }

  section { padding: 100px 5%; }
  .section-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--orange); margin-bottom: 12px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-tag::before { content: ''; flex: 0 0 30px; height: 1px; background: var(--orange); }
  .section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 60px); font-weight: 900;
    text-transform: uppercase; line-height: 0.95; letter-spacing: -0.5px;
    margin-bottom: 48px; color: var(--white);
  }
  .section-title span { color: var(--orange); }

  #historia { background: var(--bg2); }
  .historia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .historia-text p {
    font-size: 16px; font-weight: 300; color: var(--text-muted);
    line-height: 1.8; margin-bottom: 20px;
  }
  .historia-text strong { color: var(--orange); font-weight: 600; }
  .timeline { position: relative; padding-left: 28px; }
  .timeline::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 1px; background: linear-gradient(180deg, var(--orange), var(--border));
  }
  .timeline-item { position: relative; margin-bottom: 32px; }
  .timeline-item::before {
    content: ''; position: absolute; left: -32px; top: 6px;
    width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
    box-shadow: 0 0 0 3px var(--orange-glow);
  }
  .timeline-year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 2px;
    color: var(--orange); text-transform: uppercase; margin-bottom: 4px;
  }
  .timeline-event {
    font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 4px;
  }
  .timeline-detail {
    font-size: 13px; color: var(--text-muted); font-weight: 300;
  }

  #estadisticas { background: var(--bg); }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); margin-bottom: 64px; }
  .stat-card {
    background: var(--bg2); padding: 40px 28px; position: relative; overflow: hidden;
    transition: background 0.2s;
  }
  .stat-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--orange); transform: scaleX(0);
    transition: transform 0.3s; transform-origin: left;
  }
  .stat-card:hover::after { transform: scaleX(1); }
  .stat-card:hover { background: var(--bg3); }
  .stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 56px; font-weight: 900;
    color: var(--white); line-height: 1;
  }
  .stat-num span { color: var(--orange); }
  .stat-lbl {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-dim); margin-top: 8px;
  }
  .stat-sub {
    font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 300;
  }

  .seasons-title {
    font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 20px;
  }
  .season-row {
    display: grid; grid-template-columns: 120px 1fr auto auto auto;
    align-items: center; gap: 20px;
    padding: 16px 0; border-bottom: 1px solid var(--border);
  }
  .season-row:last-child { border-bottom: none; }
  .season-year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; font-weight: 800; color: var(--white);
  }
  .season-cat {
    font-size: 13px; color: var(--text-muted);
  }
  .season-bar-wrap { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; flex: 1; }
  .season-bar { height: 100%; background: var(--orange); border-radius: 2px; transition: width 1s ease; }
  .season-pos {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px; font-weight: 800; color: var(--orange); min-width: 50px; text-align: right;
  }
  .season-wins {
    font-size: 12px; color: var(--text-dim); min-width: 60px; text-align: right;
  }

  #calendario { background: var(--bg2); }
  .races-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
  .race-card {
    background: var(--bg); padding: 28px 24px;
    position: relative; overflow: hidden;
    transition: background 0.2s;
  }
  .race-card.next {
    background: var(--bg3);
    outline: 1px solid var(--border-accent);
  }
  .race-card.next::before {
    content: 'PRÓXIMA';
    position: absolute; top: 0; right: 0;
    font-size: 9px; font-weight: 700; letter-spacing: 2px;
    background: var(--orange); color: var(--bg);
    padding: 4px 10px;
  }
  .race-card:hover { background: var(--bg3); }
  .race-round {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 8px;
  }
  .race-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; font-weight: 800; color: var(--white);
    text-transform: uppercase; margin-bottom: 4px;
  }
  .race-circuit { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
  .race-date {
    font-size: 12px; font-weight: 600; color: var(--orange); letter-spacing: 1px;
  }
  .race-result {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 5px 12px;
    background: var(--orange-glow); border: 1px solid var(--border-accent);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; font-weight: 800; color: var(--orange);
  }
  .race-result.podium { background: rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.3); color: #FFD700; }
  .race-result.win { background: rgba(255,107,26,0.2); }

  #sponsors { background: var(--bg); }
  .sponsors-intro {
    font-size: 16px; color: var(--text-muted); font-weight: 300; max-width: 580px;
    margin-bottom: 56px; line-height: 1.8;
  }
  .sponsors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin-bottom: 64px; }
  .sponsor-card {
    background: var(--bg2); padding: 40px 30px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    position: relative; overflow: hidden; transition: background 0.2s;
  }
  .sponsor-card:hover { background: var(--bg3); }
  .sponsor-tier {
    font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    padding: 4px 10px;
  }
  .sponsor-tier.title { background: var(--orange); color: var(--bg); }
  .sponsor-tier.main { background: rgba(255,107,26,0.15); color: var(--orange); border: 1px solid var(--border-accent); }
  .sponsor-tier.partner { background: var(--bg3); color: var(--text-dim); border: 1px solid var(--border); }
  .sponsor-logo-placeholder {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px; font-weight: 800; letter-spacing: 1px;
    color: var(--white);
  }
  .sponsor-desc { font-size: 12px; color: var(--text-dim); font-weight: 300; }
  .sponsor-cta-box {
    border: 1px dashed var(--border-accent); padding: 40px 30px;
    text-align: center;
  }
  .sponsor-cta-box h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px; font-weight: 800; text-transform: uppercase;
    color: var(--white); margin-bottom: 10px;
  }
  .sponsor-cta-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; font-weight: 300; }

  #galeria { background: var(--bg2); }
  .gallery-note {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 40px;
  }
  .ig-icon {
    width: 32px; height: 32px; background: var(--orange-glow);
    border: 1px solid var(--border-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 220px);
    gap: 4px;
  }
  .gallery-item {
    background: var(--bg3);
    border: 1px solid var(--border);
    position: relative; overflow: hidden; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }

  .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 2; }
  .gallery-item:hover .gallery-overlay { opacity: 1; }
  .gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(255,107,26,0.15);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
  }
  .gallery-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
  }
  .gallery-ph-icon { font-size: 32px; opacity: 0.15; }
  .ig-handle {
    text-align: center; margin-top: 36px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px; font-weight: 700; letter-spacing: 3px;
  }
  .ig-handle a { color: var(--orange); text-decoration: none; }
  .ig-handle a:hover { text-decoration: underline; }

  #contacto {
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  }
  .contact-big {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(40px, 6vw, 72px); font-weight: 900;
    text-transform: uppercase; line-height: 0.9; color: var(--white);
  }
  .contact-big span { color: var(--orange); }
  .contact-sub { font-size: 16px; color: var(--text-muted); font-weight: 300; margin-top: 20px; line-height: 1.7; }
  .contact-links { display: flex; flex-direction: column; gap: 16px; }
  .contact-link {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 24px; background: var(--bg2);
    border: 1px solid var(--border); text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .contact-link:hover { border-color: var(--border-accent); background: var(--bg3); }
  .contact-link-icon {
    width: 36px; height: 36px; background: var(--orange-glow);
    border: 1px solid var(--border-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
  }
  .contact-link-text { display: flex; flex-direction: column; gap: 2px; }
  .contact-link-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
  .contact-link-val { font-size: 14px; font-weight: 500; color: var(--text); }

  footer {
    background: var(--bg2); border-top: 1px solid var(--border);
    padding: 24px 5%;
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px; font-weight: 900; color: var(--orange); letter-spacing: 2px;
  }
  .footer-copy { font-size: 12px; color: var(--text-dim); }
  .footer-links { display: flex; gap: 24px; }
  .footer-links a { font-size: 12px; color: var(--text-dim); text-decoration: none; letter-spacing: 1px; }
  .footer-links a:hover { color: var(--orange); }

  .fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }


  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 200;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-muted);
    transition: all 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--orange); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--orange); }

  .nav-mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,11,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-accent);
    z-index: 99;
    padding: 0;
    flex-direction: column;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none;
    padding: 18px 5%;
    border-bottom: 1px solid var(--border);
    display: block;
    transition: color 0.2s, background 0.2s;
  }
  .nav-mobile-menu a:hover { color: var(--orange); background: var(--orange-glow); }
  .nav-mobile-menu .nav-mobile-cta {
    color: var(--orange);
    font-size: 13px;
  }

  @media (min-width: 1600px) {
    body { font-size: 18px; }
    nav { padding: 0 8%; height: 72px; }
    section { padding: 120px 8%; }
    #hero { padding: 100px 8% 80px; }
    #contacto { padding: 120px 8%; }
    footer { padding: 28px 8%; }
    .hero-photo-wrap { width: 460px; height: 620px; }
    .hero-name { font-size: clamp(70px, 6vw, 110px); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .races-grid { grid-template-columns: repeat(3, 1fr); }
    .sponsors-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-rows: repeat(3, 280px); }
  }

  @media (max-width: 1024px) and (min-width: 769px) {
    #hero {
      grid-template-columns: 1fr 1fr;
      padding: 80px 4% 60px;
      gap: 30px;
    }
    .hero-photo-wrap { width: 300px; height: 420px; }
    .hero-name { font-size: clamp(44px, 6vw, 72px); }
    .historia-grid { gap: 48px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .races-grid { grid-template-columns: repeat(2, 1fr); }
    .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-rows: repeat(3, 180px); }
    section { padding: 80px 4%; }
    #contacto { gap: 48px; padding: 80px 4%; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 11px; }
    .season-row { grid-template-columns: 80px 1fr auto auto; }
  }

  @media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    nav { padding: 0 4%; }

    #hero {
      grid-template-columns: 1fr;
      padding: 88px 4% 60px;
      min-height: auto;
    }
    .hero-visual { display: none; }
    .hero-name { font-size: clamp(42px, 12vw, 64px); }
    .hero-handle { font-size: clamp(16px, 5vw, 22px); letter-spacing: 4px; }
    .hero-desc { font-size: 15px; }
    .hero-btns { flex-direction: column; gap: 12px; }
    .btn-primary, .btn-secondary { text-align: center; width: 100%; }

    section { padding: 64px 4%; }
    .section-title { margin-bottom: 32px; }

    .historia-grid { grid-template-columns: 1fr; gap: 40px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 40px; }

    .season-row {
      grid-template-columns: 60px 1fr;
      gap: 10px;
      row-gap: 6px;
    }
    .season-bar-wrap { display: none; }
    .season-pos { text-align: left; font-size: 14px; }
    .season-wins { display: none; }

    .races-grid { grid-template-columns: 1fr; }

    .sponsors-grid { grid-template-columns: 1fr; }

    .gallery-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: repeat(3, 180px);
    }
    .gallery-item:nth-child(1) { grid-column: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 1; }
    .gallery-item:nth-child(6) { grid-column: span 2; }

    #contacto {
      grid-template-columns: 1fr;
      gap: 40px;
      padding: 64px 4%;
    }

    footer {
      flex-direction: column;
      text-align: center;
      gap: 12px;
      padding: 24px 4%;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .footer-copy { order: 3; font-size: 11px; }
  }

  @media (max-width: 400px) {
    .hero-name { font-size: 38px; }
    .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid {
      grid-template-columns: 1fr;
      grid-template-rows: repeat(6, 200px);
    }
    .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .section-title { font-size: 32px; }
  }


  .hero-photo-wrap {
    position: relative;
    width: 360px;
    height: 500px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    overflow: hidden;
  }
  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.85) contrast(1.1);
    transition: filter 0.3s;
  }
  .hero-photo-wrap:hover .hero-photo { filter: brightness(0.95) contrast(1.05); }
  .hero-photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,0.9) 100%),
                linear-gradient(90deg, rgba(255,107,26,0.15) 0%, transparent 40%);
    pointer-events: none;
  }
  .hero-photo-tag {
    position: absolute;
    bottom: 20px; left: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--orange);
    display: flex; align-items: center; gap: 8px;
  }
  .hero-photo-tag::before {
    content: ''; width: 20px; height: 1px; background: var(--orange);
  }
  .hero-photo-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--orange);
  }