/**
 * SismoRed - UI Components & Interactive Elements
 * Tonos, geometrías y diseños exactos de SismoRed Landing.dc.html
 * Sin efectos de resplandor artificial en botones
 */

/* ═══ BOTONES OFICIALES (SIN RESPLANDOR) ═══ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0A0405 !important;
  background: var(--color-alarm);
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-alarm-hover) !important;
  color: #0A0405 !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-body);
  border: 1px solid var(--color-border-hover);
  background: transparent;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--color-border-focus) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0A0405 !important;
  background: var(--color-alarm);
  padding: 9px 17px;
  border-radius: var(--radius-btn-nav);
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: background 0.15s ease;
}

.btn-nav:hover {
  background: var(--color-alarm-hover) !important;
  color: #0A0405 !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-body);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-code:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ═══ CHIPS Y ESTADOS ═══ */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 13px;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-verified);
  animation: sr-breathe 2.4s ease-in-out infinite;
}

.status-chip-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--color-verified);
}

/* ═══ PANELES Y TARJETAS ═══ */
.card-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  min-width: 0;
}

.card-panel-chamfer {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  min-width: 0;
}

/* ═══ MOCKUP DEL TELÉFONO OFICIAL ═══ */
.phone-mockup-wrapper {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 390 / 844;
  background: radial-gradient(120% 70% at 50% 12%, #2A0F12, #080506 70%);
  border: 8px solid #16191C;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

/* ═══ RADAR DE MALLA ═══ */
.radar-container {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.radar-sweep-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 50%;
  background: linear-gradient(#BCC3C9, transparent);
  transform-origin: bottom center;
  animation: sr-sweep 3.4s linear infinite;
}

/* ═══ SISMÓGRAFO ═══ */
.seismic-box {
  background: #0A0D0F;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  height: 104px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}

.seismic-threshold-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 26%;
  border-top: 1px dashed rgba(229, 48, 53, 0.5);
}

.seismic-bars-stream {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  animation: sr-drift 4s ease-in-out infinite;
}

.seismic-bars-stream > div {
  width: 3px;
  background: var(--color-verified);
}

/* ═══ DESCARGA BOX ═══ */
.descarga-card {
  background: linear-gradient(160deg, #1A0E10, #0A0C0E 70%);
  border: 1px solid rgba(229, 48, 53, 0.3);
  border-radius: 10px;
  padding: clamp(26px, 4vw, 46px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.descarga-specs-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.descarga-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 12px;
}

/* ═══ CALLOUT BOXES & ADVERTENCIAS ═══ */
.callout-box {
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.callout-bar {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  flex: none;
}

.callout-danger {
  border: 1px solid var(--color-alarm-border);
  background: var(--color-alarm-bg);
  padding: 24px;
  gap: 15px;
}
.callout-danger .callout-bar {
  background: var(--color-alarm);
}

.callout-warning {
  border: 1px solid rgba(240, 160, 42, 0.3);
  background: rgba(240, 160, 42, 0.05);
}
.callout-warning .callout-bar {
  background: var(--color-uncalibrated);
}

.callout-verified {
  border: 1px solid rgba(144, 202, 80, 0.3);
  background: rgba(144, 202, 80, 0.05);
  border-radius: 6px;
  padding: 16px;
}
.callout-verified .callout-bar {
  background: var(--color-verified);
}

/* ═══ NAVEGACIÓN Y SECCIONES LEGALES ═══ */
.legal-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-bottom: 64px;
}

.legal-nav-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-legal-card);
  padding: 16px 18px;
  display: block;
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.legal-nav-card:hover {
  border-color: var(--color-border-legal-hover);
}

.legal-section-grid {
  border-top: 1px solid var(--color-border-subtle);
  padding: 52px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px;
}
