/* ===================================================
   THE FIVE GRAN TURISMO — Estilos principales
   =================================================== */

/* ===== VARIABLES ===== */
:root {
  --primary:          hsl(352, 78%, 44%);
  --primary-hover:    hsl(352, 78%, 38%);
  --secondary:        hsl(209, 72%, 42%);
  --foreground:       hsl(220, 20%, 12%);
  --background:       hsl(0, 0%, 100%);
  --card:             hsl(0, 0%, 100%);
  --muted:            hsl(210, 20%, 96%);
  --muted-fg:         hsl(220, 10%, 46%);
  --border:           hsl(220, 13%, 88%);
  --section-alt:      hsl(210, 20%, 97%);
  --hero-overlay:     hsl(220, 20%, 8%);
  --radius:           0.625rem;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===== ANIMATIONS / KEYFRAMES ===== */
@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes hero-pan {
  0%   { transform: scale(1.08) translateX(-1%); }
  50%  { transform: scale(1.12) translateX(1%); }
  100% { transform: scale(1.08) translateX(-1%); }
}

@keyframes speed-line {
  0%   { transform: translateX(120%); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(-120%); opacity: 0; }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.label-secondary {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: hsl(209, 85%, 55%) !important;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-primary:active { transform: scale(0.97); }

.btn-lg { padding: 0.875rem 1.75rem; }

.btn-shadow { box-shadow: 0 10px 15px -3px hsl(352 78% 44% / 0.25); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); }
.btn-outline:active { transform: scale(0.97); }

/* ===== SECTION BASE ===== */
.section {
  padding: 1.5rem 0;
}

.bg-white { background-color: var(--background); }
.bg-alt   { background-color: var(--section-alt); }

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--foreground);
  text-wrap: balance;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted-fg);
  text-wrap: pretty;
}

.text-center { text-align: center; }
.max-w-3xl   { max-width: 48rem; margin-left: auto; margin-right: auto; }

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem; /* 80px mobile */
}

.nav-logo img.logo-img {
  height: 3.5rem;
  width: auto;
}

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.nav-links a {
  color: rgba(0,0,0,0.6);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--foreground); }

/* Mobile toggle button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--foreground);
}

/* Mobile dropdown */
.mobile-menu {
  background-color: #fff;
  border-top: 1px solid var(--border);
  animation: fade-in 0.2s ease-out;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu .mobile-link {
  color: rgba(0,0,0,0.7);
  transition: color 0.2s;
}
.mobile-menu .mobile-link:hover { color: var(--foreground); }

@media (min-width: 768px) {
  .nav-inner {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-logo img.logo-img {
    height: 6.5rem;
    display: block;
  }
  .nav-links  { display: flex; }
  .menu-toggle { display: none; }
}

/* ===================================================
   HERO
   =================================================== */
/* === HERO MÓVIL === */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
}

.hero-bg {
  position: relative;
  width: 100%;
}

.hero-bg picture {
  display: block;
  width: 100%;
}

.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

/* === HERO DESKTOP (768px+) === */
@media (min-width: 768px) {
  .hero {
    height: 777px;
    display: flex;
    align-items: center;
    margin-top: 0;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-bg picture {
    width: 100%;
    height: 100%;
  }

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

.hero-overlay {
  display: none;
}

.hero-speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.07;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: #fff;
  animation: speed-line 1.2s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 7rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-box {
  display: inline-block;
  background: transparent; 
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0.5rem;
  padding: 0.875rem 1.75rem;
  max-width: 42rem;
}

.hero-box {
  margin-left: auto;
  margin-right: auto;
}

.hero-box h1 {
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
  text-wrap: pretty;
}

.hero-taglines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tagline-line {
  display: block;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  padding-left: calc(var(--i) * 2rem);
  line-height: 1.05;
  white-space: nowrap;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: 1.5rem;
  margin-top: 1.5rem;
}

.hero-bottom-fade {
  display: none;
}

@media (min-width: 768px) {
  .hero-bottom-fade {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to bottom, #fff 0%, transparent 15%, transparent 85%, #fff 100%),
      linear-gradient(to right,  #fff 0%, transparent 15%, transparent 85%, #fff 100%);
  }
}

@media (min-width: 768px) {
  .hero-content { padding-top: 12rem; }
  .hero-box { padding: 1.5rem 2rem; }
}

/* ===================================================
   ABOUT
   =================================================== */
.about-text {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.75;
  text-wrap: pretty;
  margin-top: 1rem;
}

.about-text strong { color: var(--foreground); }

/* ===================================================
   SERVICES
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08);
}

.service-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 12rem;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-img { transform: scale(1.05); }

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
}

.service-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.125rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.service-body {
  padding: 1.25rem;
}

.service-body p {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .service-img-wrap { height: 16rem; }
}

@media (min-width: 768px) {
  .service-img-wrap { height: 18.75rem; }
}

/* ===================================================
   GALLERY
   =================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: block;
  padding: 0;
}

.gallery-item:hover {
  border-color: hsl(352 78% 44% / 0.4);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.gallery-item:hover .gallery-hover-overlay {
  background: rgba(0,0,0,0.2);
}

.gallery-hover-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-hover-label { opacity: 1; }

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(220 20% 12% / 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease-out;
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem;
  transition: color 0.2s;
}
.lb-close:hover { color: #fff; }

.lb-nav {
  position: absolute;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem;
  transition: color 0.2s, transform 0.15s;
}
.lb-nav:hover  { color: #fff; }
.lb-nav:active { transform: scale(0.95); }

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

@media (min-width: 768px) {
  .lb-prev { left: 2rem; }
  .lb-next { right: 2rem; }
}

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: block;
}

.lb-dots {
  position: absolute;
  bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lb-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  padding: 0;
}
.lb-dot:hover    { background: rgba(255,255,255,0.6); }
.lb-dot.active   { background: var(--primary); transform: scale(1.25); }

/* ===================================================
   CONTACT
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-card {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-card > .contact-row:first-child { padding-top: 0; }

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-primary   { background: hsl(352 78% 44% / 0.1); color: var(--primary); }
.icon-green     { background: hsl(142 76% 36% / 0.1); color: #16a34a; }
.icon-secondary { background: hsl(209 72% 42% / 0.1); color: var(--secondary); }

.contact-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-link {
  font-size: 0.9rem;
  color: var(--muted-fg);
  transition: color 0.2s;
  display: block;
}
.link-primary:hover   { color: var(--primary); }
.link-green:hover     { color: #16a34a; }
.link-secondary:hover { color: var(--secondary); }

.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--section-alt);
  border: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: border-color 0.2s;
}
.social-btn:hover { border-color: hsl(209 72% 42% / 0.4); }

.map-card {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
}

.map-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.map-iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 350px;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background-color: var(--foreground);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ===== FIX BOTON NAVBAR ===== */
.nav-links .btn-primary {
  color: #ffffff !important;
}

