/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background-color: #0a0a0c;
  color: #ffffff;
  line-height: 1.4;
  padding-top: 70px;
  transition: opacity 0.3s ease;
}
body.fade-out {
  opacity: 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-weight: 590;
  letter-spacing: -0.02em;
}

/* ========== NAVBAR (apple blur) ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(20px);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.logo {
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: #e5e5e7;
  font-weight: 470;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* ========== HERO ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  margin-top: 0;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide-content {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  padding: 20px 30px;
  border-radius: 48px;
  max-width: 80%;
}
.slide-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.dot.active {
  background: white;
  width: 20px;
}
@media (max-width: 768px) {
  .hero-slider { height: 60vh; }
  .slide-content h2 { font-size: 1.4rem; }
}

/* ========== SERVICIOS ========== */
.services {
  padding: 60px 20px;
  text-align: center;
}
.services h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.card {
  background: rgba(28, 28, 30, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 28px 20px;
  width: 260px;
  transition: transform 0.25s, background 0.2s;
  border: 0.5px solid rgba(255,255,255,0.05);
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(44, 44, 46, 0.8);
}
.card h3 {
  margin-bottom: 12px;
}

/* ========== PRODUCTOS (store) ========== */
.store {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.product-card {
  background: #1c1c1e;
  border-radius: 24px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 0.5px solid rgba(255,255,255,0.05);
}
.product-card:hover {
  transform: translateY(-5px);
  background: #2c2c2e;
  box-shadow: 0 20px 35px rgba(0,0,0,0.3);
}
.product-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 12px;
}
.price {
  font-weight: 600;
  margin: 10px 0;
  color: #00cf5d;
}
.product-card button {
  background: #0071e3;
  border: none;
  padding: 10px 16px;
  border-radius: 40px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
}
.product-card button:hover {
  background: #005bb5;
}

/* ========== FORMULARIO REPARACIÓN + PREVIEW ========== */
.form-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}
.form-card {
  background: rgba(28, 28, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 44px;
  padding: 32px;
  border: 0.5px solid rgba(255,255,255,0.1);
}
.form-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.form-sub {
  color: #8e8e93;
  margin-bottom: 28px;
}
.input-group {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #ddd;
}
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0f0f10;
  border: 1px solid #2c2c2e;
  border-radius: 20px;
  color: white;
  font-size: 1rem;
  transition: 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #0071e3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,113,227,0.2);
}
.error-message {
  color: #ff453a;
  font-size: 0.7rem;
  margin-top: 5px;
  margin-left: 12px;
  display: none;
}
.error {
  border-color: #ff453a !important;
}
.preview-card {
  margin-top: 30px;
  background: #0f0f10;
  border-radius: 28px;
  padding: 16px;
}
.preview-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #8e8e93;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-message {
  background: #1c1c1e;
  padding: 16px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  border-left: 3px solid #25D366;
}
.btn-submit {
  background: #0071e3;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 2000;
}
.toast.show {
  opacity: 1;
}

/* ========== VENTAS (selector) ========== */
.sales-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}
.sales-left img {
  width: 320px;
  border-radius: 32px;
  background: #1c1c1e;
}
.sales-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sales-select {
  padding: 14px;
  border-radius: 28px;
  background: #1c1c1e;
  color: white;
  border: none;
}
.price-tag {
  font-size: 2rem;
  font-weight: 700;
}
.status-badge {
  font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.apple-footer {
  background: #0f0f10;
  padding: 40px 20px 30px;
  margin-top: 60px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  text-align: center;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.social-links a {
  color: #aaa;
  font-size: 1.8rem;
  transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}
.footer-text {
  color: #6c6c70;
  font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10,10,12,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
    gap: 20px;
  }
  .nav-links.active {
    display: flex;
  }
  .form-card {
    padding: 24px;
  }
  .sales-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Chips de problemas */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.problem-chip {
  background: #0f0f10;
  border: 1px solid #2c2c2e;
  border-radius: 40px;
  padding: 10px 12px;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e5e5e7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.problem-chip.selected {
  background: #0071e3;
  border-color: #0071e3;
  color: white;
}
.problem-chip:hover {
  background: #2c2c2e;
  transform: translateY(-2px);
}
.other-problem-container {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.other-problem-container input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 40px;
  background: #0f0f10;
  border: 1px solid #2c2c2e;
  color: white;
}
