/* style.css - Refactored Design System for Confiservicios */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Theme (Default) - Pure Black & Gold Accent */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: rgba(24, 24, 24, 0.85);
  --bg-card-hover: rgba(35, 35, 35, 0.98);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #757575;
  --accent-gold: #ffd700;
  --accent-gold-hover: #e6c200;
  --accent-glow: rgba(255, 215, 0, 0.25);
  --border-color: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(10, 10, 10, 0.92);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --text-primary: #121212;
  --text-secondary: #4a4a4a;
  --text-muted: #757575;
  --border-color: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 2.5%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-gold);
  transition: var(--transition);
}

nav.shrink {
  padding: 10px 2.5%;
  box-shadow: var(--shadow-sm);
  background: rgba(10, 10, 10, 0.98);
}

[data-theme="light"] nav.shrink {
  background: rgba(255, 255, 255, 0.98);
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  display: inline-block;
  letter-spacing: -0.6px;
  white-space: nowrap;
  color: var(--text-primary);
}

.logo-text span,
.logo > span:not(.logo-text) {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a.premium-link {
  color: var(--accent-gold);
  font-weight: 700;
  background: rgba(255, 215, 0, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent-gold);
}

.nav-links a.premium-link:hover {
  background: var(--accent-gold);
  color: #000000;
}

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

/* Dark Mode Toggle Switch */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  background: var(--accent-gold);
  color: #000000;
}

/* HAMBURGER BUTTON (MOBILE) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  z-index: 1001;
}

.hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:hover .bar {
  background-color: var(--accent-gold);
}

/* Hamburguer a 'X' Animado */
.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--accent-gold);
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--accent-gold);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 6% 60px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.92), rgba(20, 20, 20, 0.95)),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero h1 span {
  color: var(--accent-gold);
}

.hero p {
  font-size: 1.05rem;
  color: #d0d0d0;
  margin-bottom: 30px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS - TEXTO PERFECTAMENTE CENTRADO */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  width: auto;
}

.card .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000000;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* SECTIONS BASE */
section[id],
.section {
  padding: 80px 6%;
  scroll-margin-top: 85px;
}

/* ESTILO DIFERENCIADO PARA SECCIÓN SERVICIO TÉCNICO (#soporte) */
#soporte {
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.08) 0%, rgba(18, 18, 20, 0.98) 75%), var(--bg-secondary);
  border-top: 1px solid rgba(255, 215, 0, 0.22);
  border-bottom: 1px solid rgba(255, 215, 0, 0.22);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
}

#soporte::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  box-shadow: 0 0 16px var(--accent-gold);
}

[data-theme="light"] #soporte {
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.14) 0%, #e9ecef 75%), #e9ecef;
  border-top: 1px solid rgba(255, 215, 0, 0.4);
  border-bottom: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.04);
}

#soporte .card {
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] #soporte .card {
  background: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#soporte .card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 35px var(--accent-glow);
}

#soporte .section-subtitle {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px;
}

.section-subtitle {
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-gold);
  display: block;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.card-list {
  list-style: none;
  margin-bottom: 25px;
  flex-grow: 1;
}

.card-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-list li::before {
  content: "✓";
  color: var(--accent-gold);
  font-weight: 800;
}

/* SECTION 1: VENTA DE EQUIPOS */
#venta {
  background: var(--bg-primary);
}

/* SECTION 2: SERVICIO TÉCNICO */
#soporte {
  background: var(--bg-secondary);
}

/* SECTION 3: CÁMARAS Y SEGURIDAD */
#camaras {
  background: var(--bg-primary);
}

/* SECTION 4: PREMIUM SOFTWARE & DESARROLLO */
.section-premium {
  background: linear-gradient(180deg, #141414 0%, #080808 100%);
  position: relative;
  overflow: hidden;
  padding: 90px 6%;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.section-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.premium-badge-wrapper {
  text-align: center;
  margin-bottom: 12px;
}

.premium-badge {
  background: var(--accent-gold);
  color: #000000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 18px;
  border-radius: 30px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 35px;
}

.premium-card {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 35px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .premium-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 215, 0, 0.5);
}

.premium-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent-gold);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.premium-icon {
  width: 58px;
  height: 58px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.premium-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.premium-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.premium-features {
  list-style: none;
  margin-bottom: 25px;
}

.premium-features li {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-features li span.check {
  color: var(--accent-gold);
  font-size: 1.05rem;
  font-weight: 800;
}

/* GALERÍA DE PRODUCTOS - DESKTOP BASE */
.carousel-section {
  background: var(--bg-secondary);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 100px 6% 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.carousel-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 24px;
  align-items: center;
  will-change: transform;
}

.carousel-item {
  min-width: 440px;
  width: 440px;
  height: 330px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.carousel-item.active {
  border-color: var(--accent-gold);
  transform: scale(1.04);
  box-shadow: 0 14px 35px rgba(255, 215, 0, 0.3);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: #000000;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.carousel-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--accent-gold);
  color: #000000;
  transform: scale(1.1);
}

/* FOOTER */
footer {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 50px 6% 35px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

footer .logo {
  justify-content: center;
  margin-bottom: 12px;
}

footer p {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.dev-info {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dev-info a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.dev-info a:hover {
  text-decoration: underline;
}

/* ANIMATIONS & REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN - IMÁGENES MUCHO MÁS GRANDES EN MÓVIL */
@media (max-width: 992px) {
  nav {
    padding: 12px 2.5%;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .carousel-item {
    min-width: 380px;
    width: 380px;
    height: 295px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  section[id],
  .section {
    scroll-margin-top: 70px;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 32px;
    gap: 16px;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 5% 40px;
  }

  .section {
    padding: 55px 5%;
  }

  .section-title {
    font-size: 1.55rem;
  }

  /* EN MÓVIL: IMÁGENES GRANDES QUE OCUPAN CASI TODA LA PANTALLA */
  .carousel-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 90px 3% 40px;
  }

  .carousel-viewport {
    padding: 10px 0;
  }

  .carousel-track {
    gap: 18px;
  }

  .carousel-item {
    min-width: 86vw;
    width: 86vw;
    max-width: 380px;
    height: 280px;
    border-radius: 16px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
  }
}