/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0f0f11;
  color: white;
  padding-top: 110px; /* Compensa navbar fija */
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 110px;
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  z-index: 1000;
}

.logo img {
  height: 55px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: #ccc;
  font-weight: 400;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #d4af37;
}

/* ================= HAMBURGUESA ================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 75vh;
  overflow: hidden;
}

.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 1.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  top: 0;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-content p {
  margin-top: 20px;
  font-size: 16px;
  color: #ccc;
}

.btn-dark {
  display: inline-block;
  margin-top: 25px;
  background: #d4af37;
  color: #111;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-dark:hover {
  background: white;
}

/* ================= PRODUCT BAR ================= */

.product-bar {
  background: #111;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 25px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.product-item {
  color: #aaa;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.product-item.active,
.product-item:hover {
  color: #d4af37;
}

/* ================= PRODUCTOS INDEX ================= */

.products-section {
  padding: 60px 80px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.product-card {
  background: #171717;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 14px 14px 0 0;
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
}

.product-info p {
  font-size: 14px;
  color: #bbb;
}

.product-price {
  margin-top: 10px;
  font-size: 14px;
  color: #d4af37;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ================= SLIDER PRODUCTO PREMIUM ================= */

.product-slider {
  position: relative;
}

.product-slider .product-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease;
}

/* Flechas minimalistas */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #d4af37;
  font-size: 26px;
  cursor: pointer;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 10;
}

.arrow.left {
  left: 15px;
}

.arrow.right {
  right: 15px;
}

.product-slider:hover .arrow {
  opacity: 0.8;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

/* ================= PÁGINAS INTERNAS PRODUCTO ================= */

.products-page {
  padding: 40px 80px 80px 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* ================= FICHA TÉCNICA (CONCEPT.HTML) ================= */

.tech-page {
  padding: 40px 80px 80px 80px;
}

.tech-header {
  margin-bottom: 40px;
}

.tech-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 15px;
}

.tech-header p {
  color: #bbb;
  font-size: 16px;
}

.tech-section {
  margin-top: 50px;
}

.tech-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 20px;
  color: #d4af37;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.tech-card {
  background: #171717;
  padding: 25px;
  border-radius: 14px;
}

.tech-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tech-card p {
  font-size: 14px;
  color: #bbb;
}

/* ================= PRODUCT DETAIL COMPACT ================= */

.product-detail {
  padding: 20px 60px 40px 60px;
  max-width: 1400px;
  margin: auto;
}

.detail-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin-bottom: 8px;
}

.detail-header p {
  color: #bbb;
  margin-bottom: 30px;
  font-size: 14px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.detail-gallery img {
  width: 100%;
  height: 300px;   /* 🔥 antes 420px */
  object-fit: cover;
  border-radius: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.detail-card {
  background: #171717;
  padding: 20px;
  border-radius: 12px;
}

.detail-card h3 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #d4af37;
}

.detail-card li {
  font-size: 13px;
  margin-bottom: 6px;
  color: #ccc;
}

/* ================= BOTÓN IDIOMA ================= */

.language-switch {
  position: fixed;
  bottom: 30px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.language-switch button {
  background: #222;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.3s;
}

.language-switch button.active {
  background: #d4af37;
  color: #111;
}

.language-switch button:hover {
  background: #d4af37;
  color: #111;
}

/* ================= PRESUPUESTO ================= */

.budget-section {
  padding: 140px 20px 80px 20px;
  display: flex;
  justify-content: center;
}

.budget-container {
  width: 100%;
  max-width: 600px;
  background: #171717;
  padding: 50px;
  border-radius: 16px;
}

.budget-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 10px;
}

.budget-container p {
  color: #bbb;
  margin-bottom: 40px;
}

.budget-form .form-group {
  margin-bottom: 25px;
}

.budget-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #ccc;
}

.budget-form input,
.budget-form select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f11;
  color: white;
  font-size: 14px;
}

.budget-form input:focus,
.budget-form select:focus {
  border-color: #d4af37;
  outline: none;
}

.budget-form button {
  width: 100%;
  margin-top: 20px;
}

/* ================= BOTÓN ESTUDIO NAVBAR ================= */

.btn-estudio {
  background: #d4af37;
  color: #111;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  transition: 0.3s ease;
  white-space: nowrap;
}

.btn-estudio:hover {
  background: white;
  color: #111;
  transform: translateY(-2px);
}

/* ================= BOTÓN CONFIGURADOR CONCEPT ================= */

.configurator-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0 50px 0;
}

.btn-configurator {
  background: #d4af37;
  color: #111;
  padding: 14px 36px;
  border-radius: 35px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-configurator:hover {
  background: white;
  transform: translateY(-3px);
}

/* ================= FICHA TÉCNICA CATALOGO ================= */

.tech-catalog {
  margin-top: 40px;
}

.tech-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.tech-box {
  background: #171717;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

.tech-box img {
  width: 100%;
  border-radius: 10px;
}

.tech-box p {
  margin-top: 10px;
  font-size: 14px;
  color: #bbb;
}

.tech-block {
  margin-bottom: 60px;
}

.tech-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 25px;
  color: #d4af37;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.tech-icons img {
  width: 140px;
  background: #171717;
  padding: 15px;
  border-radius: 12px;
}

.tech-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tech-colors img {
  width: 70px;
  border-radius: 50%;
  background: #171717;
  padding: 6px;
}

/* ================= PRESUPUESTO PREMIUM ================= */

.premium-budget {
  padding-top: 130px; /* 🔥 Más arriba casi tocando navbar */
  position: relative;
  z-index: 2;
}

.budget-bg-slider {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1.5s ease-in-out;
  z-index: 0;
}

.budget-overlay {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  background: rgba(0,0,0,0.65);
  z-index: 1;
}

.budget-container {
  backdrop-filter: blur(8px);
  background: rgba(23,23,23,0.85);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ================= FONDO PRESUPUESTO FUNCIONAL ================= */

.budget-bg-slider {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  z-index: -2; /* 🔥 IMPORTANTE */
}

.budget-bg-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.budget-bg-slide.active {
  opacity: 0.35;
}

.budget-overlay {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  background: rgba(0,0,0,0.65);
  z-index: -1; /* 🔥 debajo del contenido */
}
/* Hacemos que el formulario esté por encima */

.budget-section {
  position: relative;
  z-index: 2;
}
/* ================= SELECTOR VISUAL DE COLORES ================= */

.color-selector {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.color-option {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px #333 inset;
}

.color-option:hover {
  transform: scale(1.08);
}

.color-selector input:checked + .color-option {
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
  transform: scale(1.1);
}





/* ================= MEJORAS FICHA CONCEPT ================= */

.full-card {
  text-align: center;
}

.full-image {
  width: 100%;
  max-width: 320px;
  margin: 20px auto;
  display: block;
}

.horizontal-items {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tech-item {
  text-align: center;
}

.tech-item img {
  width: 140px;
  border-radius: 14px;
  transition: 0.3s ease;
}

.tech-item img:hover {
  transform: scale(1.05);
}

.tech-label {
  margin-top: 10px;
  font-size: 13px;
  color: #d4af37;
  font-weight: 500;
}

/* ================= AJUSTE TAMAÑO IMÁGENES CONCEPT ================= */

.tech-box img {
  max-height: 240px;
  object-fit: contain;
}

.full-card img {
  max-height: 260px;
  object-fit: contain;
}

.tech-item img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* Asegura que no se expandan en vertical */
.detail-card img {
  max-height: 260px;
  object-fit: contain;
} 

/* Tooltip nombre color */

.color-option {
  position: relative;
}

.color-option::after {
  content: attr(data-color);
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #d4af37;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  border: 1px solid #d4af37;
}

.color-option:hover::after {
  opacity: 1;
}

.color-label {
  position: relative;
  display: inline-block;
}

.color-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #d4af37;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 9999;
}

.color-label:hover .color-tooltip {
  opacity: 1;
}

.extras-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.extra-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.extra-option input {
  accent-color: #d4af37;
  transform: scale(1.1);
}

/* ===== EXTRAS PREMIUM ===== */

.extras-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.extras-grid-motor {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.extra-card {
  position: relative;
  cursor: pointer;
}

.extra-card input {
  display: none;
}

.extra-card span {
  display: inline-block;
  padding: 12px 20px;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.extra-card span:hover {
  border-color: #d4af37;
}

.extra-card input:checked + span {
  background: #d4af37;
  color: #111;
  border-color: #d4af37;
}
/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .nav-links {
    position: absolute;
    top: 110px;
    right: 0;
    background: #111;
    flex-direction: column;
    width: 250px;
    padding: 30px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .products-section,
  .products-page,
  .tech-page {
    padding: 40px 25px;
  }

  .arrow {
    opacity: 0.5;
    font-size: 22px;
  }

  .btn-estudio {
    display: none;
  }
}