/* ============================================
   Miguelio — Luxury Mechanical Keyboard Shop
   Dark Gold Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-input: #1a1a2e;
  --gold: #d4af37;
  --gold-light: #f5e6a3;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-border: rgba(212, 175, 55, 0.15);
  --gold-border-hover: rgba(212, 175, 55, 0.5);
  --text-primary: #f0ece2;
  --text-secondary: rgba(240, 236, 226, 0.65);
  --text-muted: rgba(240, 236, 226, 0.4);
  --radius: 15px;
  --transition: 0.3s ease;
  --streak-animation-duration: 2000ms;
  --streak-animation-delay: 1000ms;
}

/* --- Reset & Base --- */
@font-face {
  font-family: 'Noto_Sans_Telugu';
  src: url(../fonts/Noto_Sans_Telugu/static/NotoSansTelugu-Regular.ttf) format('truetype');
}

* {
  transition: color var(--transition),
              background-color var(--transition),
              border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition),
              opacity var(--transition);
  box-sizing: border-box;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0em !important;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
  color: var(--text-primary);
  background-color: var(--bg-dark);
}

body {
  overflow-x: hidden;
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  margin: 0;
  font-weight: 300;
  min-height: 100vh;
}

strong {
  font-size: 23px;
  font-weight: 500;
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--text-primary);
}

h2 {
  margin: 20px 10px 20px;
  font-weight: 600;
}

.title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  margin: 5px 0 15px;
  color: var(--gold-light);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
}

::-webkit-scrollbar {
  height: 22px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* --- Utility --- */
.hide {
  display: none;
}

.center {
  text-align: center;
}

.no-select,
.no-select * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.btn-links:hover {
  padding-bottom: 8px;
}

/* --- Scroll Reveal Animation --- */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.reveal-active:nth-child(2) { transition-delay: 0.1s; }
.reveal.reveal-active:nth-child(3) { transition-delay: 0.2s; }
.reveal.reveal-active:nth-child(4) { transition-delay: 0.3s; }
.reveal.reveal-active:nth-child(5) { transition-delay: 0.4s; }

/* --- Section Base Styles --- */
.section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.section-valor {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  padding: 10px 10px 40px;
}

.section-calidad {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  padding: 10px 10px 20px;
}

.section-productos {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  padding-bottom: 20px;
}

.section-productos h2 {
  margin: 0;
  padding-top: 10px;
}

.section-maker,
.section-encuesta-pcb {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 20px;
}

.section-faq {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 20px;
}

.section-contact {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 20px;
}

/* Section separators */
.section-valor::before,
.section-calidad::before,
.section-productos::before,
.section-maker::before,
.section-faq::before,
.section-contact::before,
.section-encuesta-pcb::before {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --- Landing Section --- */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 50px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 80px;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.15);
  margin-top: 40px;
  margin-bottom: 0;
}

/* --- Email + Button Row --- */
.hfc {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

input.email-landing {
  margin-top: 25px;
  height: 78px;
  width: 400px;
  border: 1px solid var(--gold-border);
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  padding-left: 20px;
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  font-size: 20px;
  outline: none;
}

input.email-landing:focus {
  background-color: rgba(26, 26, 46, 0.95) !important;
  color: var(--text-primary) !important;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.btn-72.email-landing {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-72.email-landing:hover {
  top: 0px !important;
}

/* --- Featured Product Card --- */
.section-producto-resaltado .fondo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  padding: 10px;
  margin: 10px auto;
  border-radius: var(--radius);
  max-width: 640px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.section-producto-resaltado .fondo:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.1), 0 0 50px rgba(212, 175, 55, 0.05);
}

/* --- Video Container --- */
.video-contaider {
  text-align: center;
  margin: 10px auto 15px;
  padding: 3px;
  border-radius: 17px;
}

.video-contaider video {
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}

/* --- Buttons --- */
.btn-72 {
  position: relative;
  top: 0;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.5;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: var(--radius);
  display: block;
  padding: 1.2rem 2rem;
  text-transform: uppercase;
  margin-top: 25px;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
  transition: top var(--transition), box-shadow var(--transition);
}

.btn-72.mini {
  padding: 10px 20px;
  margin-bottom: 20px;
  border: 0;
}

.btn-72:hover {
  top: -5px;
  box-shadow:
    0 8px 30px rgba(212, 175, 55, 0.3),
    0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-72 > div {
  color: #0a0a0f;
  text-shadow: none;
}

.btn-72:hover > div {
  color: #1a1a2e;
  text-shadow: none;
}

.btn-72:active {
  box-shadow:
    0 4px 15px rgba(212, 175, 55, 0.2),
    0 2px 8px rgba(212, 175, 55, 0.1);
  top: 0;
}

.btn-default {
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-card);
  cursor: pointer;
}

.btn-default:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* --- Gallery --- */
.galeria-imagenes {
  position: relative;
  aspect-ratio: 3/1;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}

.galeria-imagenes .bi {
  position: absolute;
  z-index: 2;
  color: var(--gold-light);
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.galeria-imagenes .bi-arrow-left-circle {
  left: 4%;
}

.galeria-imagenes .bi-arrow-right-circle {
  right: 4%;
}

.galeria-imagenes img.galeria-img-center {
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px solid var(--gold-border);
  z-index: 2;
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
}

.galeria-imagenes img.galeria-img-right {
  border-radius: var(--radius);
  border: 2px solid var(--gold-border);
  z-index: 1;
  position: absolute;
  max-height: 50%;
  object-fit: contain;
  left: 90%;
  transform: translateX(-100%);
  opacity: 0.3;
}

.galeria-imagenes img.galeria-img-left {
  border-radius: var(--radius);
  border: 2px solid var(--gold-border);
  z-index: 1;
  position: absolute;
  max-height: 50%;
  object-fit: contain;
  left: 10%;
  transform: translateX(0);
  opacity: 0.3;
}

.galeria-imagenes img.galeria-img-right:hover,
.galeria-imagenes img.galeria-img-left:hover {
  opacity: 0.7;
  border-color: var(--gold);
}

.galeria-imagenes img.galeria-img-back {
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px solid var(--gold-border);
  z-index: 1;
  position: absolute;
  max-height: 40%;
  object-fit: contain;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

/* --- Window / Modal --- */
.window {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(20, 20, 35, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.05);
}

/* --- Inputs & Textareas --- */
input,
textarea {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--gold-border);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input {
  border-radius: 10px;
  padding: 10px;
}

input:focus,
textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

textarea {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}

/* --- FAQ --- */
summary {
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  padding: 12px 16px;
  color: var(--text-primary);
  transition: color var(--transition);
}

summary:hover {
  color: var(--gold-light);
}

details {
  border-left: 3px solid var(--gold);
  margin-bottom: 12px;
  padding-left: 0;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}

details[open] {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.05);
}

details > *:not(summary) {
  padding: 0 16px 12px;
  color: var(--text-secondary);
}

/* --- Separator --- */
.separator {
  border: none;
  border-top: 1px solid var(--gold-border);
}

/* --- Title Bar --- */
.title-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.title-bar button {
  border: 0;
  border-radius: 999px;
  background: #ff6057;
}

/* --- Select / Dropdown --- */
select {
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  background-color: var(--bg-input);
  border-radius: 10px;
  padding: 10px 30px 5px 10px;
  box-shadow: none;
  width: auto;
}

select:focus {
  border-color: var(--gold);
  outline: none;
}

.dropdown-menu {
  background-color: #151520;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  list-style: none;
  padding: 0;
  display: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.dropdown-menu li {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  color: var(--text-primary);
}

.dropdown-menu li:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

/* --- Floating Action Buttons (WhatsApp / Discord) --- */
.floating-btn,
.btn-whatsapp,
.btn-discord {
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.floating-btn:hover,
.btn-whatsapp:hover,
.btn-discord:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

/* --- Snow Canvas --- */
canvas#snow,
canvas.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Glassmorphism Card Utility --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
  h2 {
    font-size: 1.5rem;
  }

  .section,
  .section-valor,
  .section-calidad,
  .section-productos,
  .section-maker,
  .section-faq,
  .section-encuesta-pcb,
  .section-contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn-72 {
    font-size: 18px;
    padding: 0.5rem 2rem !important;
  }

  input.email-landing {
    height: 57px;
  }

  .landing h1 {
    margin-top: 0px !important;
    font-size: 40px;
    line-height: 50px;
  }

  .galeria-imagenes .bi {
    font-size: 2rem;
  }

  .hfc {
    flex-direction: column;
    align-items: center;
  }

  .hfc .btn-72 {
    margin-top: 0;
    width: 300px;
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--radius);
  }

  .hfc input {
    width: 300px;
    border-top-right-radius: var(--radius);
    border-bottom-left-radius: 0;
    border-right: 1px solid var(--gold-border);
  }

  .hfc input::placeholder {
    text-align: center;
  }

  .section-producto-resaltado .fondo {
    margin: 10px auto !important;
  }
}

/* --- Language Selector --- */
.lang-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 8px;
}

.lang-flag {
  background: rgba(20, 20, 35, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-flag:hover {
  border-color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.lang-flag.lang-active {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
