/* Korea Autoglass — Landing HTML/CSS/JS
   Paleta: fondo oscuro #111111, lectura/tarjetas #FFFFFF, acento/CTA #E60000, texto secundario #666666
*/

:root {
  --background: #FFFFFF;
  --foreground: #111111;
  --primary: #E60000;
  --primary-foreground: #FFFFFF;
  --muted-foreground: #666666;
  --surface-subtle: #F3F4F6;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B3B3B3;
  --border: #E5E5E5;
  --accent: #FCE8E8;
  --radius: 0.375rem;
  --font-display: "Roboto Condensed", sans-serif;
  --font-sans: "Montserrat", sans-serif;
  --max-w: 80rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

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

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-md {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

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

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

.text-on-dark {
  color: var(--on-dark);
}

.text-on-dark-muted {
  color: var(--on-dark-muted);
}

.mt-4 {
  margin-top: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.btn-automotive {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-automotive:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(6, 25, 192, 0.5);
}

.btn-lg {
  font-size: 1rem;
  padding: 0 1.5rem;
  height: 3.5rem;
}

.btn-header {
  height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  background: #2563EB;
  color: #FFFFFF;
}

.btn-header:hover {
  background: #1D4ED8;
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.5);
}

@media (min-width: 640px) {
  .btn-header {
    padding: 0 1.5rem;
  }
}

.btn-block-on-mobile {
  display: flex;
  width: 100%;
  height: 3.5rem;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .btn-block-on-mobile {
    width: auto;
    padding: 0 2.25rem;
  }
}

.hide-mobile {
  display: none;
}

.show-mobile {
  display: inline;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: inline;
  }

  .show-mobile {
    display: none;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .header-inner {
    height: 84px;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 2rem;
  }
}

.brand-link {
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  height: auto;
  width: 11rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo {
    width: 14rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-mobile {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile .nav-link {
  flex-shrink: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
}

@media (min-width: 640px) {
  .hero {
    min-height: 760px;
    padding-top: 128px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 84px;
  }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 5rem 1.25rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 5rem 2rem;
  }
}

.hero-text {
  max-width: 48rem;
}

.hero-text.animate-in {
  animation: fade-in 0.6s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

@media (min-width: 640px) {
  .badge {
    font-size: 0.875rem;
  }
}

.badge-line {
  height: 2px;
  width: 1.75rem;
  background: var(--primary);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  color: #FFFFFF;
  -webkit-text-stroke: 1.5px #000000;
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    -3px 0px 0 #000,
    3px 0px 0 #000,
    0px -3px 0 #000,
    0px 3px 0 #000,
    0 4px 12px rgba(0, 0, 0, 0.9);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
}

.hero-sub {
  margin-top: 1.75rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #FFFFFF;
  font-weight: 600;
  -webkit-text-stroke: 0.8px #000000;
  paint-order: stroke fill;
  text-shadow:
    -1.5px -1.5px 0 #000,
    1.5px -1.5px 0 #000,
    -1.5px 1.5px 0 #000,
    1.5px 1.5px 0 #000,
    -2px 0px 0 #000,
    2px 0px 0 #000,
    0px -2px 0 #000,
    0px 2px 0 #000,
    0 3px 8px rgba(0, 0, 0, 0.9);
}

@media (min-width: 640px) {
  .hero-sub {
    font-size: 1.25rem;
    line-height: 2;
  }
}

.whatsapp-cta {
  margin-top: 2.25rem;
}

.chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.chip .icon-sm {
  color: var(--primary);
}

.hero-controls {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-arrow {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--on-dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  height: 6px;
  width: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.dot.is-active {
  width: 40px;
  background: var(--primary);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ===== Sections ===== */
.section {
  scroll-margin-top: 9rem;
  padding: 5rem 0;
}

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

.section-subtle {
  background: var(--surface-subtle);
}

.section-light {
  background: var(--background);
}

.section-dark {
  background: var(--foreground);
  color: var(--on-dark);
}

.section-about {
  background: var(--background);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.container-narrow {
  max-width: 56rem;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.grid-stretch {
  align-items: stretch;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.title-line {
  display: block;
  height: 4px;
  width: 5rem;
  background: var(--primary);
  margin-top: 1.25rem;
}

.about-img {
  margin: 0 auto;
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 36rem;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
}

/* ===== Services ===== */
.section-head {
  max-width: 42rem;
}

.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

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

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

.service-card {
  border: 1px solid var(--border);
  background: var(--background);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
}

@media (min-width: 1024px) {
  .services-grid .service-card:nth-child(-n+3) {
    grid-column: span 2;
  }

  .services-grid .service-card:nth-child(n+4) {
    grid-column: span 3;
  }
}

.service-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--primary);
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

.service-title {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.service-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* ===== Benefits ===== */
.benefits-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.benefit {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.benefit-title {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.benefit-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* ===== FAQ ===== */
.faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: none;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.25rem;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* ===== Contact ===== */
#contacto {
  position: relative;
  background-image: linear-gradient(135deg, rgba(7, 36, 80, 0.88), rgba(7, 50, 121, 0.82)), url("assets/hero-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--on-dark);
}

.contact-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.contact-list {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.25rem;
  font-style: normal;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-ico {
  margin-top: 2px;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.contact-value {
  font-weight: 600;
}

.contact-value a:hover {
  color: var(--primary);
}

.map-wrap {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .map-wrap {
    min-height: 480px;
  }
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

@media (min-width: 640px) {
  .map-wrap iframe {
    min-height: 480px;
  }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #01194b;
  color: #FFFFFF;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-tag {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.social {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.social-btn {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-btn:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--primary);
}

.footer-h {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.75rem 1.25rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
  .footer-bottom {
    padding: 1.75rem 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .footer-bottom {
    padding: 1.75rem 2rem 0;
  }
}

/* ===== WhatsApp floating ===== */
.whatsapp-floating {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.whatsapp-floating:hover {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .whatsapp-floating {
    bottom: 1.75rem;
    right: 1.75rem;
    width: 4rem;
    height: 4rem;
  }
}

/* ===== Pulse animation ===== */
@keyframes whatsapp-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.34);
  }

  50% {
    box-shadow: 0 0 0 13px transparent;
  }
}

.animate-pulse {
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

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

  .animate-pulse {
    animation: none;
  }

  .hero-text.animate-in {
    animation: none;
  }
}