/* Estilos específicos para documentos MX, flujo, planes y FAQ */
:root {
  --gold: #d4af37;
  --gold-strong: #b8860b;
  --text: #e9e6db;
  --muted: #b6b1a4;
}

/* Nota informativa */
.note { max-width: 1080px; margin: 0.75rem auto 0; color: var(--muted); font-size: 0.95rem; }

/* Workflow (Cómo funciona) */
.workflow .steps { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: rgba(20,20,25,.6); border: 1px solid rgba(212,175,55,.18); border-radius: 16px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #1a1a1d; background: linear-gradient(135deg, #f5d76e 0%, var(--gold) 60%, #caa433 100%); font-weight: 700; margin-bottom: .5rem; box-shadow: 0 6px 16px rgba(212,175,55,.25); }
.step h3 { margin: .25rem 0 .35rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing-cards { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.price-card { text-align: left; }
.price { font-weight: 700; color: var(--gold); margin: .25rem 0 .5rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted); }
.price-features li { padding: .25rem 0; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-list details { background: rgba(18,18,23,.6); border: 1px solid rgba(212,175,55,.18); border-radius: 12px; padding: .75rem 1rem; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq-list p { color: var(--muted); margin: .5rem 0 0; }

/* Responsive */
@media (max-width: 1024px) {
  .workflow .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .workflow .steps { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
}

/* Aplicación */
.app-download { max-width: 1080px; margin: 0 auto 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; }
.btn-android { font-size: 1.05rem; padding: 1rem 1.5rem; }
.app-cta { margin-top: 1rem; }

@media (max-width: 1024px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; }
}

/* Ventas / Cotización */
.sales-callout { max-width: 1080px; margin: 0 auto; padding: 1.25rem; }
.sales-highlights { list-style: none; padding: 0; margin: .75rem 0 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.sales-highlights li { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.18); border-radius: 12px; padding: .6rem .8rem; color: var(--text); }
@media (max-width: 640px) { .sales-highlights { grid-template-columns: 1fr; } }
/* Contacto: asunto y centrado de botón */
.field select {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,.28);
  color: var(--text);
  background: #0b0b0d; /* fondo negro acorde al estilo */
  appearance: none;
}
.field select:focus {
  outline: none;
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 0 0 3px rgba(212,175,55,.14);
}
.form-actions { display: flex; justify-content: center; }

/* Alert de éxito en contacto */
.alert-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; z-index: 1000; }
.alert-overlay.show { display: flex; align-items: center; justify-content: center; }
.alert-box { background: #0b0b0d; border: 1px solid rgba(212,175,55,.35); border-radius: 14px; padding: 1.2rem 1.4rem; width: min(420px, 90vw); text-align: center; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.alert-check { width: 64px; height: 64px; border-radius: 50%; background: #26c281; color: #0b0b0d; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; margin: 0 auto .6rem; box-shadow: 0 0 0 0 rgba(38,194,129,.7); animation: pulse-check 1s ease-out forwards; }
@keyframes pulse-check {
  0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(38,194,129,.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(38,194,129,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(38,194,129,0); }
}

/* Modal emergente (éxito y error) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; z-index: 1000; }
.modal-overlay.show { display: flex; align-items: center; justify-content: center; }
.modal-box { background: #0b0b0d; border: 1px solid rgba(212,175,55,.35); border-radius: 14px; padding: 1.2rem 1.4rem; width: min(440px, 92vw); text-align: center; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; transform: translateY(16px) scale(.98); animation: modal-in .28s ease-out forwards; }
@keyframes modal-in { to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-icon { width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; margin: 0 auto .6rem; box-shadow: 0 0 0 0 rgba(0,0,0,0); }
.modal-icon.success { background: #26c281; color: #0b0b0d; animation: pulse-success 1s ease-out forwards; }
.modal-icon.error { background: #e74c3c; color: #0b0b0d; animation: pulse-error 1s ease-out forwards; }
@keyframes pulse-success { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(38,194,129,.7);} 70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(38,194,129,0);} 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(38,194,129,0);} }
@keyframes pulse-error { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(231,76,60,.7);} 70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(231,76,60,0);} 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231,76,60,0);} }
/* Página APK */
.apk-page .apk-download h1 { text-align: center; }
.apk-instructions { max-width: 780px; margin: .5rem auto 1rem; text-align: center; color: var(--text); }
.apk-actions { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .6rem; }
.btn-android .android-icon { display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem; }

/* Spinner de carga */
.spinner { 
  display: none; 
  width: 16px; 
  height: 16px; 
  border: 2px solid transparent; 
  border-top: 2px solid currentColor; 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
  margin-left: .5rem; 
}
.btn-android.loading .btn-text { opacity: .7; }
.btn-android.loading .spinner { display: inline-block; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Header APK */
.apk-page .header { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.apk-page .header-content { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.apk-page .logo h1 { color: var(--primary); font-size: 1.5rem; margin: 0; }
.apk-page .nav-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.apk-page .nav-link { color: var(--text); text-decoration: none; transition: color .3s; }
.apk-page .nav-link:hover { color: var(--primary); }

/* Menú de usuario en header */
.nav-right { display: flex; align-items: center; gap: .5rem; }
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(18,18,23,.6); border: 1px solid rgba(212,175,55,.35); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.35); cursor: pointer; }
.user-btn:hover { border-color: var(--primary); color: var(--text); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 200px; background: rgba(18,18,23,.92); border: 1px solid rgba(212,175,55,.28); backdrop-filter: blur(10px); border-radius: 12px; padding: .4rem; display: none; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.user-dropdown.open { display: block; }
.user-dropdown li { list-style: none; }
.user-dropdown a { display: block; padding: .6rem .75rem; color: var(--muted); text-decoration: none; border-radius: 10px; }
.user-dropdown a:hover { background: rgba(212,175,55,.14); color: var(--text); }
@media (max-width: 640px) { .nav-right { gap: .25rem; } }

/* FAQ APK (accordion) */
.faq-apk details.faq-item { background: var(--bg-secondary); border: 1px solid var(--primary); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; transition: border-color .2s ease; }
.faq-apk details.faq-item:hover { border-color: var(--primary); }
.faq-apk details.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--text); }
.faq-apk details.faq-item summary::-webkit-details-marker { display: none; }
.faq-apk details.faq-item summary::after { content: '▸'; color: var(--primary); font-size: 1rem; transition: transform .2s ease; }
.faq-apk details.faq-item[open] summary::after { content: '▾'; transform: rotate(0deg); }
.faq-apk .faq-content { margin-top: .75rem; color: var(--text-secondary); line-height: 1.6; }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }
/* Contenedor de dudas con borde dorado y volumen */
.faq-apk { 
  max-width: 900px; 
  margin: 1.25rem auto; 
  border: 2px solid var(--primary); 
  border-radius: 14px; 
  padding: 1.25rem; 
  background: var(--bg-secondary);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 14px rgba(255, 193, 7, 0.18);
}
.faq-site-title { 
  display: block;
  width: 100%;
  text-align: center; 
  font-size: 2rem; 
  color: var(--primary); 
  margin: .25rem 0 1rem; 
}

/* Auth (Registro) */
.auth-wrapper { max-width: 1080px; margin: 0 auto; padding: 3rem 1rem; }
.auth-card { max-width: 560px; margin: 0 auto; background: rgba(18,18,23,.6); border: 1px solid rgba(212,175,55,.28); border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04); padding: 1.25rem 1.25rem 1.5rem; }
.auth-header { text-align: center; }
.auth-title { margin: .25rem 0 .25rem; font-size: 1.6rem; }
.auth-subtitle { margin: 0 0 1rem; color: var(--muted); }
.auth-form .field { margin-bottom: .75rem; }
.auth-form label { display: block; margin-bottom: .35rem; font-weight: 600; }
.auth-form input { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid rgba(212,175,55,.28); color: var(--text); background: #0b0b0d; }
.auth-form input::placeholder { color: #777; }
.auth-form input:focus { outline: none; border-color: rgba(212,175,55,.5); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }
.hint { display: block; margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.input-group { position: relative; }
.eye-btn { position: absolute; right: .5rem; top: 34px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(18,18,23,.6); border: 1px solid rgba(212,175,55,.28); color: var(--muted); cursor: pointer; }
.eye-btn:hover { color: var(--text); border-color: var(--primary); }
.req-list { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .35rem; }
.req-list li { padding: .35rem .5rem; border-radius: 10px; background: rgba(212,175,55,.06); border: 1px solid rgba(212,175,55,.18); color: var(--muted); }
.req-list li.ok { color: var(--text); background: rgba(38,194,129,.12); border-color: rgba(38,194,129,.35); }
.req-list li.fail { color: var(--muted); }
/* Estados de error en formulario de registro */
.field.error input { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.16); }
.error-msg { display: none; color: #e74c3c; font-size: .85rem; margin-top: .25rem; }
.field.error .error-msg { display: block; }