/* ─── Hyundai Sans Pro – Real Fonts ─── */
@font-face {
  font-family: 'Hyundai Sans Head';
  src: url('HyundaiSansHeadPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Hyundai Sans Head';
  src: url('HyundaiSansHeadPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Hyundai Sans Head';
  src: url('HyundaiSansHeadPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Hyundai Sans Head';
  src: url('HyundaiSansHeadPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --hyundai-blue: #002C5F;
  --hyundai-blue-dark: #001A38;
  --hyundai-sand: #F6F3F2;
  --wa-green: #25D366;
  --font-head: 'Hyundai Sans Head', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Hyundai Sans Head', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-text);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── Utility ────────────────────────────────────────────── */
.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--black);
}

.section-desc {
  font-size: 1.125rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  font-weight: 500;
}

.btn-primary {
  background: var(--hyundai-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #001A35;
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50px;
}

.btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-white {
  background: var(--white);
  color: var(--hyundai-blue);
}

.btn-white:hover {
  background: var(--hyundai-sand);
  transform: translateY(-2px);
}

/* ─── Navbar ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--hyundai-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-lockup {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-height: 100px;
}

.logo-main {
  height: 100px;
  width: auto;
  display: block;
}

.logo-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 1.25rem;
  flex-shrink: 0;
}

.logo-subtitle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.postventa-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
}

.hyundai-wordmark {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  color: var(--white);
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(500px, 80vh, 750px);
  padding: 190px 0 80px;
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
      #ffffff 30%,
      rgba(255, 255, 255, 0.92) 45%,
      rgba(255, 255, 255, 0.55) 60%,
      rgba(255, 255, 255, 0) 75%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  max-width: 520px;
  margin-left: clamp(1rem, 10vw, 10rem);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--black);
  line-height: 1.1;
  font-family: var(--font-head);
}

.hero-desc {
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* ─── Carousel Taller ────────────────────────────────────── */
.experience-section {
  background: var(--white);
  padding-bottom: 5rem;
}

.carousel-wrapper {
  position: relative;
  width: min(1100px, 92%);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: clamp(380px, 60vh, 620px);
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s ease;
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  color: var(--hyundai-blue);
}

.carousel-btn:hover {
  background: var(--hyundai-blue);
  color: var(--white);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 25px rgba(0, 44, 95, 0.35);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-btn--prev {
  left: 1.5rem;
}

.carousel-btn--next {
  right: 1.5rem;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CCC;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--hyundai-blue);
  transform: scale(1.3);
}

/* ─── Servicios ──────────────────────────────────────────── */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--hyundai-blue);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-desc {
  color: #EBEBEB;
  flex: 1;
  margin-bottom: 2rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--white);
}

.service-card:nth-child(1) {
  background: #00407F;
}

.service-card:nth-child(2) {
  background: #002C5F;
}

.service-card:nth-child(3) {
  background: #001838;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .icon-circle {
  transform: scale(1.25);
}

.icon-circle svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Formulario de Turnos ───────────────────────────────── */
.turnos-section {
  background: var(--hyundai-blue);
  padding: 6rem 0;
  color: var(--white);
}

.turnos-section .section-title {
  color: var(--white);
}

.turnos-section .section-desc {
  color: #EBEBEB;
}

.turnos-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.turnos-info {
  padding-right: 2rem;
}

.brand-quote {
  font-family: var(--font-head);
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--white);
  border-left: 4px solid var(--white);
  padding-left: 1.5rem;
}

.quote-author {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.contact-phones {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-phone-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--white);
}

.contact-phone-item svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-phone-label {
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-wrapper {
  background: var(--white);
  padding: 3rem;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #CCC;
  font-family: var(--font-text);
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.3s;
  color: var(--black);
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--hyundai-blue);
}

.form-control::placeholder {
  color: #999;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--hyundai-blue-dark);
  padding: 3rem 0;
  border-top: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

/* Floating WhatsApp FAB styles removed */

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 6rem 0;
  background: var(--hyundai-blue);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  font-family: var(--font-head);
}

.cta-banner-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #EBEBEB;
}

/* ─── Animations ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.visitanos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ─── Mobile First / Responsive ──────────────────────────── */
@media (max-width: 992px) {

  .turnos-container,
  .visitanos-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .turnos-info {
    padding-right: 0;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-main {
    height: 60px;
  }

  .experience-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Hero mobile: imagen arriba, texto abajo */
  .hero {
    min-height: unset;
    padding: 0;
    align-items: unset;
    display: block;
    overflow: visible;
  }

  /* Imagen ocupa la parte superior como bloque */
  .hero-bg-img {
    position: relative;
    width: 100%;
    height: 56vw;
    min-height: 220px;
    max-height: 380px;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
  }

  /* Gradiente se aplica sobre la imagen hacia blanco en el borde inferior */
  .hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Solo cubre la imagen (56vw) */
    height: 56vw;
    min-height: 220px;
    max-height: 380px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.7) 80%,
        #ffffff 100%);
    bottom: unset;
    z-index: 1;
  }

  /* El contenedor de texto queda fuera del "position relative" del hero */
  .hero-container {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.25rem 3rem;
    background: var(--white);
  }

  .hero-text {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .form-wrapper {
    padding: 2rem;
  }
}