/* ── Subscribe Widget SRW ── */
#srw-sub-toggle {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,158,11,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  transition: transform 0.2s, box-shadow 0.2s;
}
#srw-sub-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.50);
}
#srw-sub-toggle svg { width: 24px; height: 24px; fill: #fff; }

#srw-sub-panel {
  position: fixed;
  bottom: 152px;
  right: 24px;
  width: 300px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 40px rgba(26,35,64,0.18);
  display: flex;
  flex-direction: column;
  z-index: 8999;
  overflow: hidden;
  border: 1px solid #D8E8F4;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#srw-sub-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
html.dark #srw-sub-panel {
  background: #1E293B;
  border-color: #1E3A5F;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

#srw-sub-header {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#srw-sub-header h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
#srw-sub-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
#srw-sub-close:hover { color: #fff; }

#srw-sub-body {
  padding: 16px;
}

.srw-sub-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8FA3B8;
  margin: 0 0 10px 0;
}
html.dark .srw-sub-section-title { color: #4E6480; }

/* Redes sociales */
.srw-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 16px;
}
.srw-social-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #D8E8F4;
  background: #F4F7FA;
  text-decoration: none;
  color: #1E293B;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.srw-social-btn:hover { border-color: #5FA3D5; background: #EBF5FF; }
html.dark .srw-social-btn { background: #253347; border-color: #334155; color: #E2E8F0; }
html.dark .srw-social-btn:hover { border-color: #5FA3D5; background: #1E3A5F; }
.srw-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Email form */
.srw-email-form { display: flex; gap: 6px; }
.srw-email-form input {
  flex: 1;
  border: 1px solid #C8D4E0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.80rem;
  outline: none;
  font-family: inherit;
  background: #fff;
  color: #1A2340;
  transition: border-color 0.15s;
  min-width: 0;
}
.srw-email-form input:focus { border-color: #F59E0B; }
html.dark .srw-email-form input { background: #0F172A; border-color: #334155; color: #E2EEF8; }
.srw-email-form button {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.80rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.srw-email-form button:hover { opacity: 0.88; }
.srw-email-form button:disabled { opacity: 0.5; cursor: default; }

#srw-sub-msg {
  font-size: 0.78rem;
  margin-top: 8px;
  min-height: 18px;
  line-height: 1.4;
}
#srw-sub-msg.ok { color: #16a34a; }
#srw-sub-msg.err { color: #dc2626; }
html.dark #srw-sub-msg.ok { color: #4ade80; }
html.dark #srw-sub-msg.err { color: #f87171; }

@media (max-width: 480px) {
  #srw-sub-panel { width: calc(100vw - 24px); right: 12px; }
  #srw-sub-toggle { right: 12px; bottom: 80px; }
}
