* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050708;
    color: #f5f5f5;
    line-height: 1.5;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }

  /* Anclas: dejar espacio para el header fijo */
  section[id] {
    scroll-margin-top: 5rem;
  }

  a:focus-visible,
  button:focus-visible,
  .input:focus-visible,
  .textarea:focus-visible {
    outline: 2px solid #b7ff7a;
    outline-offset: 2px;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  /* HEADER */
  
  header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(5, 7, 8, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-toggle {
  display: none;          /* solo se verá en móvil */
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
  margin-top: 2px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #f5f5f5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
  
  .logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #9ad18b, #2f4f33);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .logo img {
    width: 90%;
    height: auto;
  }
  
  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .brand-main {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  
  .brand-sub {
    font-size: 0.78rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.16em;
  }
  
  .nav-links {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  
  .nav-links a {
    position: relative;
    padding-bottom: 0.1rem;
    opacity: 0.8;
  }
  
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8bc34a, #b7ff7a);
    transition: width 0.2s ease;
  }
  
  .nav-links a:hover {
    opacity: 1;
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  /* HERO con coche de fondo */
  
  .hero {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 3rem;
    overflow: hidden;
  }
  
/* Fondo 3D para toda la página */
.page-3d-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* El canvas ocupa más que la ventana para que “asome” por los lados */
#car-canvas {
  position: absolute;
  inset: 0;
  width: 130%;
  height: 130%;
  right: -15%;
  top: -10%;
}

/* Degradado encima del coche para que el texto sea legible */
.page-3d-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(183, 255, 122, 0.3), transparent 45%),
    radial-gradient(circle at 80% 120%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
  opacity: 0.7;
  pointer-events: none;
}
  
  /* carta con el contenido por delante del fondo 3D */
  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 2.2rem 2.4rem;
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  /* resto de estilos hero ya los tenías */
  
  .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(46, 125, 50, 0.18);
    border: 1px solid rgba(139, 195, 74, 0.35);
    color: #d8ffd0;
  }
  
  .hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #8bc34a;
    box-shadow: 0 0 0 6px rgba(139, 195, 74, 0.26);
  }
  
  .hero-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    margin-top: 0.9rem;
  }
  
  .hero-title span {
    color: #b7ff7a;
  }
  
  .hero-text {
    font-size: 0.98rem;
    opacity: 0.86;
    max-width: 30rem;
    margin-top: 0.7rem;
  }
  
  .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.8rem;
    margin-top: 0.9rem;
  }
  
  .hero-badge {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.1rem;
    align-items: center;
  }
  
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: radial-gradient(circle at 20% 0%, #d7ff9f, #7cb342);
    color: #071108;
    box-shadow: 0 10px 30px rgba(151, 219, 87, 0.55);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(151, 219, 87, 0.65);
  }
  
  .btn-ghost {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #f5f5f5;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
  }
  
  .btn-ghost span.arrow {
    font-size: 1.1rem;
    transition: transform 0.18s ease;
  }
  
  .btn-ghost:hover span.arrow {
    transform: translateX(4px);
  }
  
  .hero-contact {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 1rem;
  }
  
  .hero-contact strong {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }
  
  /* SECCIONES GENERALES */
  
  .section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.2rem;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }
  
  .section-sub {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 26rem;
  }
  
  /* CARDS LEISTUNGEN */
  
  .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
  
  .card {
    padding: 1.1rem 1rem;
    border-radius: 18px;
    background: radial-gradient(circle at 0 0, rgba(139, 195, 74, 0.15), rgba(22, 28, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  }
  
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.88);
    border-color: rgba(183, 255, 122, 0.5);
  }
  
  .card-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
  }
  
  .card-body {
    font-size: 0.85rem;
    opacity: 0.86;
  }
  
  /* CONTACTO */
  
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .contact-card {
    padding: 1.2rem 1rem;
    border-radius: 18px;
    background: rgba(11, 17, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9);
  }
  
  .contact-row {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
  }
  
  .contact-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    opacity: 0.6;
  }
  
  .contact-value {
    font-weight: 600;
    margin-top: 0.15rem;
  }
  
  .input,
  .textarea {
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
    font: inherit;
  }
  
  .textarea {
    resize: vertical;
  }
  
  /* MAPA */
  
  .map-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .map-wrap iframe {
    width: 100%;
    height: 260px;
    border: 0;
  }
  
  /* FOOTER */
  
  footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.78rem;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /* ANIMACIONES DE ENTRADA */
  
  .fade-section {
    opacity: 1;
    transform: none;
  }
  
  body.js-enabled .fade-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  body.js-enabled .fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 880px) {
    .hero {
      padding: 1.8rem 1rem 2.5rem;
    }
  
    .hero-content {
      padding: 1.8rem 1.6rem;
      max-width: 100%;
    }
  
    .nav {
      flex-wrap: wrap;
    }
  
    .nav-links {
      width: 100%;
      justify-content: flex-end;
    }
  }
  
/* NAV Y COCHE EN MÓVIL */
@media (max-width: 640px) {
  .nav {
    position: relative;
  }

  /* que la marca pueda encogerse y no empuje el botón del menú fuera de pantalla */
  .nav-left {
    flex: 1 1 0;
    min-width: 0;
  }

  .brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding-inline: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-wrap iframe {
    height: 220px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-radius: 1rem;
    background: rgba(5, 7, 8, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nav-toggle {
    display: block;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* coche más visible en móvil */
  #car-canvas {
    width: 150%;
    height: 150%;
    right: -25%;
    top: -5%;
  }

  .page-3d-overlay {
    opacity: 0.45;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-toggle span + span {
    margin-top: 4px;
  }
}

/* Respetar la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  body.js-enabled .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .btn-primary,
  .btn-ghost span.arrow,
  .nav-links a::after {
    transition: none;
  }
}


/* Footer Admin Link - Discreto */
footer a[href="/admin"] {
    transition: opacity 0.2s ease;
}

footer a[href="/admin"]:hover {
    opacity: 0.7 !important;
}

/* Responsive - Móvil */
@media (max-width: 640px) {
    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    footer a[href="/admin"] {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
  