:root {
  --bg-main: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-accent-subtle: #f1f3f5;
  --accent-red: #d90700;
  --accent-red-hover: #b30600;
  --accent-gold: #e5a93b;
  --accent-blue: #1e293b;
  --text-main: #1a1d20;
  --text-muted: #5a626a;
  --border-color: #e2e8f0;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* TOPBAR Y NAVEGACIÓN */
.topbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  min-width: 250px;
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1200;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 12px 24px;
  display: block;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.98rem;
}

.dropdown-menu li a:hover {
  background-color: var(--bg-accent-subtle);
  color: var(--accent-red);
}

.nav-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-pay {
  background-color: #10b981;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.btn-pay:hover {
  background-color: #059669;
}

.cta-top {
  background-color: var(--accent-red);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.cta-top:hover {
  background-color: var(--accent-red-hover);
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2000;
}

.hamburger-bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background-color: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #d90700;
}

.menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #d90700;
}

/* ENCABEZADO DE PÁGINAS */
.page-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  padding: 60px 5% 40px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-header-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-tag {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.page-header h1 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* HERO SECTION (INDEX) */
.hero-wrapper {
  position: relative;
  background: radial-gradient(circle at 75% 30%, rgba(229, 169, 59, 0.1) 0%, rgba(217, 7, 0, 0.05) 30%, transparent 70%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  padding: 70px 5% 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  color: var(--accent-red);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent-red), #ff4d4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 35px;
  max-width: 550px;
}

.btn-hero {
  display: inline-block;
  background-color: var(--accent-red);
  color: #fff;
  padding: 16px 36px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(217, 7, 0, 0.25);
}

.btn-hero:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.hero-card-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.hero-card-float.top-right {
  top: 10%;
  right: -10px;
}

.hero-card-float.bottom-left {
  bottom: 5%;
  left: -10px;
  animation-delay: 2s;
}

.float-icon {
  width: 40px;
  height: 40px;
  background: rgba(217, 7, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-text h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent-blue);
}

.float-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* SECCIÓN INFORMACIÓN / CITAS / TELÉFONO */
.info-bar-section {
  padding: 60px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--accent-blue);
}

.info-card p, .info-card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.info-card ul li {
  margin-bottom: 6px;
}

.phone-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-red);
  margin: 10px 0;
  display: block;
}

/* SECCIÓN EVOLUCIÓN EN TALLER */
.evolution-section {
  padding: 80px 5%;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.evolution-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.evolution-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.evolution-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.evolution-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.evolution-content h2 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.evolution-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
}

.evolution-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.evolution-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-surface);
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-red);
  background: rgba(217, 7, 0, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  line-height: 1;
}

.evolution-steps strong {
  display: block;
  color: var(--accent-blue);
  font-size: 1rem;
  margin-bottom: 4px;
}

.evolution-steps p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

/* SECCIÓN SERVICIOS (INDEX) */
.services-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 5%;
}

.services-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 35px 25px;
  border-radius: 10px;
  text-align: left;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent-red);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  display: inline-block;
}

.service-card h4 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* SECCIONES DETALLE DE SERVICIOS (SUBPÁGINAS) */
.service-detail-section {
  padding: 70px 5%;
  background-color: var(--bg-main);
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.detail-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.detail-text h2 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.detail-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.detail-cta {
  margin-top: 25px;
}

.detail-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.detail-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* SECCIÓN GALERÍA (3 COLUMNAS) */
.gallery-section {
  padding: 60px 5% 90px;
  max-width: 1300px;
  margin: 0 auto;
}

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

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-red);
}

.gallery-image-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: #0b0d12;
  position: relative;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(17, 20, 26, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-info {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-info h3 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.gallery-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.gallery-cta-btn {
  display: inline-block;
  text-align: center;
  background-color: var(--bg-main);
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-card:hover .gallery-cta-btn {
  background-color: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

/* SECCIÓN CONTACTO Y MAPA */
.contact-page-section {
  padding: 60px 5% 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.contact-card-box {
  background-color: #11141a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card-box:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-card-box h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
  text-transform: uppercase;
}

.contact-card-box p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.contact-card-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-card-link:hover {
  color: var(--accent-red);
}

.map-container-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  box-shadow: var(--shadow-soft);
}

.map-header {
  margin-bottom: 25px;
  text-align: left;
}

.map-header h2 {
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.map-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.map-responsive {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

/* FOOTER Y WHATSAPP FLOTANTE */
footer {
  padding: 40px 5%;
  background-color: var(--bg-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
}

.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 1000;
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .brand-logo img {
    height: 60px !important;
  }

  .menu-toggle {
    display: block !important;
  }

  .nav-container {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.2) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 90px 25px 40px !important;
    gap: 25px !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1800 !important;
    overflow-y: auto !important;
  }

  .nav-container.active {
    right: 0 !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  .nav-links li {
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0;
  }

  .nav-links a {
    display: block !important;
    padding: 14px 0 !important;
    font-size: 1.1rem !important;
  }

  .dropdown-menu {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background-color: #f1f3f5 !important;
    border-left: 3px solid #d90700 !important;
  }

  .dropdown-menu.show {
    display: block !important;
  }

  .dropdown-menu li {
    border-bottom: none !important;
  }

  .dropdown-menu li a {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
  }

  .nav-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .btn-pay, .cta-top {
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card-float {
    display: none;
  }

  .evolution-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .detail-row, .detail-row.reverse {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .detail-row.reverse .detail-image {
    order: 2;
  }
  .detail-row.reverse .detail-text {
    order: 1;
  }

  .map-responsive {
    height: 380px;
  }
  .map-container-wrapper {
    padding: 20px;
  }
}

@media (max-width: 650px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-image-wrap {
    height: 320px;
  }
}