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

:root {
  --gold: #c8a44e;
  --gold-light: #e0c872;
  --dark: #0a0a0a;
  --dark-alt: #111111;
  --dark-card: #161616;
  --text: #f0ece4;
  --text-dim: #8a8578;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.4s,
    padding 0.4s,
    backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero.visible .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.15) 70%,
    rgba(10, 10, 10, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  max-width: 700px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-size: 0.55em;
  margin-top: 0.3em;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.hero-scroll:hover {
  color: var(--gold);
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* === SECTIONS === */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* === ABOUT === */
.about {
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
}

.about-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-text p:first-of-type {
  color: var(--text);
  font-size: 1.15rem;
}

/* === SERVICES === */
.services {
  background: var(--dark-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid rgba(200, 164, 78, 0.1);
  padding: 2.5rem 2rem;
  transition:
    border-color 0.4s,
    transform 0.4s;
}

.service-card:hover {
  border-color: rgba(200, 164, 78, 0.4);
  transform: translateY(-4px);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

.service-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.5;
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(200, 164, 78, 0.4);
}

.service-card .video-wrapper {
  margin-top: 1.5rem;
}

.service-card .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.service-card .service-tags span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 78, 0.3);
  padding: 0.25rem 0.75rem;
}

/* === EXPERIENCE === */
.experience {
  background: var(--dark);
}

.tray-intro {
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.tray-subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.tray-subtitle-spaced {
  margin-top: 3rem;
}

.trayectoria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.tray-item {
  display: block;
  background: var(--dark-card);
  border: 1px solid rgba(200, 164, 78, 0.1);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition:
    border-color 0.4s,
    transform 0.4s;
}

.tray-item:hover {
  border-color: rgba(200, 164, 78, 0.4);
  transform: translateY(-2px);
}

.tray-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.tray-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .trayectoria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .trayectoria-grid {
    grid-template-columns: 1fr;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrapper.shorts {
  padding-bottom: 0;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  margin: 0 auto;
}

.video-wrapper.shorts iframe {
  position: static;
}

/* === TESTIMONIALS === */
.testimonials {
  background: var(--dark-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--dark-card);
  border: 1px solid rgba(200, 164, 78, 0.1);
  padding: 2rem;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial blockquote {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.8;
  font-style: italic;
  margin-top: 1.5rem;
}

.testimonial-author {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 164, 78, 0.1);
}

.testimonial-author .author-name {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.testimonial-author .author-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* === GALLERY === */
.gallery {
  background: var(--dark-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/10;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.5) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s;
}

.lightbox-nav:hover {
  color: var(--gold);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* === RIDER === */
.rider {
  background: var(--dark);
}

.rider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.rider-card {
  background: var(--dark-card);
  border: 1px solid rgba(200, 164, 78, 0.1);
  padding: 2rem;
}

.rider-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.rider-card ul {
  list-style: none;
}

.rider-card li {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(200, 164, 78, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.rider-card li:last-child {
  border-bottom: none;
}

.rider-card li .label {
  color: var(--text);
  font-weight: 400;
}

.rider-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

.highlight {
  color: var(--gold);
}

.rider-note {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .rider-grid {
    grid-template-columns: 1fr;
  }
}

/* === CONTACT === */
.contact {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info p {
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(200, 164, 78, 0.1);
  transition:
    color 0.3s,
    border-color 0.3s;
}

.contact-link:hover {
  color: var(--gold);
  border-color: rgba(200, 164, 78, 0.4);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--gold);
}

.contact-link .link-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.contact-link .link-value {
  font-size: 1rem;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background 0.3s,
    transform 0.3s;
}

.cta-button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.contact-cta .big-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  font-weight: 400;
}

.contact-cta .big-text em {
  color: var(--gold);
}

/* === FOOTER === */
footer {
  padding: 2rem;
  border-top: 1px solid rgba(200, 164, 78, 0.1);
  text-align: center;
}

footer .social-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

footer .social-row a {
  color: var(--text-dim);
  transition: color 0.3s;
}

footer .social-row a:hover {
  color: var(--gold);
}

footer .social-row svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-trademark {
  margin-top: 0.5rem;
}

/* === ERROR PAGE === */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.error-page main {
  max-width: 34rem;
}

.error-code {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(4rem, 20vw, 9rem);
  line-height: 1;
}

.error-page h1 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
}

.error-page p {
  margin-top: 1rem;
  color: var(--text-dim);
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-height: 500px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-cta {
    order: -1;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
