:root {
  --bg: #1a1213;
  --fg: #fafafa;
  --surface: #221718;
  --card: #1f1617;
  --muted: #a39896;
  --border: rgba(255, 255, 255, .08);
  --primary: #e63946;
  --primary-dark: #b8232f;
  --primary-foreground: #fff;
  --glow: 0 10px 40px -10px rgba(230, 57, 70, .45);
  --shadow-card: 0 8px 30px -12px rgba(0, 0, 0, .6);
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #b8232f 100%);
  --gradient-hero: linear-gradient(180deg, rgba(20, 12, 13, .35) 0%, rgba(10, 6, 7, .96) 100%);
  --radius: .5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}
html {
  scroll-behavior: smooth
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55
}
h1,
h2,
h3,
h4 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: .02em;
  line-height: 1
}
a {
  color: inherit;
  text-decoration: none
}
img {
  display: block;
  max-width: 100%
}
section {
  scroll-margin-top: 80px
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--primary)
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: var(--radius);
  padding: .85rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 0;
  transition: transform .15s, background .15s, color .15s
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--glow)
}
.btn-primary:hover {
  transform: scale(1.04)
}
.btn-ghost {
  background: rgba(255, 255, 255, .05);
  color: #fff;
  border: 1px solid var(--border)
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .1)
}

/* NAV */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(20, 12, 13, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border)
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .04em
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: var(--glow)
}
.brand strong {
  color: var(--primary);
  font-weight: 400
}
.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center
}
.nav-links a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .15s
}
.nav-links a:hover {
  color: #fff
}
.nav-cta {
  display: none
}
.menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: .5rem 1rem 1rem
}
.mobile-menu a {
  display: block;
  padding: .65rem .75rem;
  color: var(--muted);
  border-radius: 6px;
  font-size: .95rem
}
.mobile-menu a:hover {
  background: var(--surface);
  color: #fff
}
.mobile-menu .btn {
  margin-top: .5rem;
  width: 100%;
  justify-content: center
}
@media(min-width:1024px) {
  .nav-links,
  .nav-cta {
    display: flex
  }
  .menu-btn {
    display: none
  }
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate; /* 🔥 Corregido: isolation en lugar de isolate */
  overflow: hidden;
  padding-top: 64px;
  min-height: 88vh;
  display: flex;
  align-items: center
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero)
}
.hero-content {
  padding: 5rem 0
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(230, 57, 70, .12);
  border: 1px solid rgba(230, 57, 70, .4);
  color: var(--primary);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1.25rem
}
.badge i {
  font-size: .5rem
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  max-width: 900px
}
.hero p.lead {
  margin-top: 1.25rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem
}

/* FEATURES */
.features {
  background: rgba(40, 28, 30, .55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border)
}
@media(min-width:1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}
.feature {
  background: var(--bg);
  padding: 2rem;
  transition: background .2s
}
.feature:hover {
  background: var(--surface)
}
.feature i {
  font-size: 1.85rem;
  color: var(--primary);
  display: block;
  margin-bottom: .85rem
}
.feature h3 {
  font-size: 1.35rem;
  margin-bottom: .4rem
}
.feature p {
  color: var(--muted);
  font-size: .9rem
}

/* SECTION */
.section {
  padding: 6rem 0
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem
}
.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: .4rem
}
.section-head p {
  color: var(--muted);
  margin-top: 1rem
}

/* ABOUT */
.about {
  display: grid;
  gap: 3rem;
  align-items: center
}
@media(min-width:900px) {
  .about {
    grid-template-columns: 1fr 1fr
  }
}
.about-img-wrap {
  position: relative
}
.about-img-wrap img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-card)
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--primary);
  padding: 1.4rem;
  border-radius: 1rem;
  box-shadow: var(--glow);
  display: none
}
@media(min-width:600px) {
  .about-badge {
    display: block
  }
}
.about-badge .num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  color: #fff;
  line-height: 1
}
.about-badge .lbl {
  color: rgba(255, 255, 255, .85);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-top: .25rem
}
.about h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-top: .5rem
}
.about p {
  color: var(--muted);
  margin-top: 1rem
}
.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .85rem;
  padding: 1rem
}
.stat .n {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--primary)
}
.stat .l {
  font-size: .75rem;
  color: var(--muted)
}

/* SERVICES */
.services-section {
  background: rgba(40, 28, 30, .4)
}
.services-grid {
  display: grid;
  gap: 1.5rem
}
@media(min-width:900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}
.service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform .2s, border-color .2s, box-shadow .2s
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, .5);
  box-shadow: var(--glow)
}
.service .ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  background: rgba(230, 57, 70, .12);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.2rem
}
.service h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem
}
.service ul {
  list-style: none
}
.service li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: .9rem;
  padding: .35rem 0
}
.service li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: .6rem;
  flex: 0 0 5px
}

/* PARTS */
.parts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}
.parts-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center
}
@media(min-width:900px) {
  .parts-grid {
    grid-template-columns: 1fr 1fr
  }
}
.parts-grid img {
  border-radius: 1rem;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-card)
}
.parts h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-top: .5rem
}
.parts p {
  color: var(--muted);
  margin-top: 1rem
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.5rem;
  background: rgba(230, 57, 70, .12);
  color: var(--primary);
  border: 1px solid rgba(230, 57, 70, .4);
  padding: .75rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background .15s, color .15s
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  gap: 1.5rem
}
@media(min-width:768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card)
}
.review .stars {
  color: var(--primary);
  letter-spacing: 1px
}
.review blockquote {
  color: rgba(250, 250, 250, .92)
}
.review figcaption {
  margin-top: auto;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600
}

/* CONTACT */
.contact {
  background: rgba(40, 28, 30, .4)
}
.contact-grid {
  display: grid;
  gap: 3rem
}
@media(min-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr
  }
}
.contact h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-top: .5rem
}
.contact-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem
}
.info-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .85rem;
  padding: 1rem;
  transition: border-color .15s
}
.info-card:hover {
  border-color: rgba(230, 57, 70, .4)
}
.info-card .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: .6rem;
  background: rgba(230, 57, 70, .12);
  color: var(--primary);
  font-size: 1.2rem
}
.info-card .k {
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .1em
}
.info-card .v {
  font-weight: 600
}

/* FORM */
form.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card)
}
.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr
}
@media(min-width:600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr
  }
  .full {
    grid-column: span 2
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: .4rem
}
.field label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted)
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  color: var(--fg);
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, .22)
}
.field textarea {
  resize: none
}
form.card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1rem
}
form.card .hint {
  margin-top: .75rem;
  text-align: center;
  font-size: .75rem;
  color: var(--muted)
}

/* MAPA */
.map-wrap {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border)
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0
}
@media(min-width:768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}
footer h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem
}
.footer-nav {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem
}
.footer-nav a:hover {
  color: #fff
}
.socials {
  display: flex;
  gap: .6rem;
  margin-top: 1rem
}
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .6rem;
  color: var(--muted);
  font-size: 1.05rem;
  transition: color .15s, border-color .15s
}
.socials a:hover {
  color: var(--primary);
  border-color: rgba(230, 57, 70, .4)
}
.copy {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  text-align: center;
  font-size: .78rem;
  color: var(--muted)
}

/* FLOAT WHATSAPP */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--glow);
  transition: transform .15s
}
.float-wa:hover {
  transform: scale(1.1)
}
/* GALERIA CARRUSEL */
.gallery-carousel .item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.gallery-carousel .item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-carousel .item:hover {
  transform: scale(1.02);
}

/* Flechas de navegación */
.gallery-carousel .owl-nav button {
  background: var(--primary) !important;
  color: #fff !important;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  font-size: 1.5rem !important;
  box-shadow: var(--glow);
  transition: transform 0.15s;
}

.gallery-carousel .owl-nav button:hover {
  transform: scale(1.1);
}

.gallery-carousel .owl-nav button.owl-prev {
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-carousel .owl-nav button.owl-next {
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-carousel .owl-nav button.owl-prev:hover,
.gallery-carousel .owl-nav button.owl-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Puntos de navegación (dots) */
.gallery-carousel .owl-dots {
  margin-top: 1.5rem;
}

.gallery-carousel .owl-dots .owl-dot span {
  background: var(--muted);
  width: 12px;
  height: 12px;
  margin: 0 5px;
  transition: background 0.3s;
}

.gallery-carousel .owl-dots .owl-dot.active span {
  background: var(--primary);
  box-shadow: var(--glow);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-carousel .item img {
    height: 200px;
  }
  
  .gallery-carousel .owl-nav button {
    width: 34px;
    height: 34px;
    font-size: 1rem !important;
  }
  
  .gallery-carousel .owl-nav button.owl-prev {
    left: -12px;
  }
  
  .gallery-carousel .owl-nav button.owl-next {
    right: -12px;
  }
}
/* ======================================== */
/* CORRECCIONES PARA OWL CAROUSEL           */
/* ======================================== */

/* Asegurar que el carrusel sea visible */
.gallery-carousel {
  visibility: visible !important;
  opacity: 1 !important;
}

/* El carrusel debe tener altura */
.gallery-carousel .owl-stage-outer {
  overflow: hidden;
  padding: 5px 0;
}

/* Las flechas de navegación deben estar sobre el carrusel */
.gallery-carousel .owl-nav {
  position: relative;
  z-index: 10;
}

/* Ajuste para móviles: las flechas no deben salirse */
@media (max-width: 768px) {
  .gallery-carousel .owl-nav button.owl-prev {
    left: 5px !important;
  }
  
  .gallery-carousel .owl-nav button.owl-next {
    right: 5px !important;
  }
  
  /* Las flechas más pequeñas y con fondo semi-transparente en móvil */
  .gallery-carousel .owl-nav button {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
    background: rgba(230, 57, 70, 0.85) !important;
  }
}

/* Ajuste para tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-carousel .owl-nav button.owl-prev {
    left: -10px !important;
  }
  
  .gallery-carousel .owl-nav button.owl-next {
    right: -10px !important;
  }
}

/* Estilo para el contenedor del carrusel en pantallas grandes */
@media (min-width: 1025px) {
  .gallery-carousel {
    padding: 0 30px;
  }
}