@charset "UTF-8";
/* CSS Document */
:root {
  --bg-top: #8b0000;
  --bg-bottom: #600000;
  --accent: #ffb347;
  --text: #ffecec;
  --muted: #ffd6d6;
  --primary: #ef4444;
  --primary-soft: #f97316;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.65);
}

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

/* Fondo también en <html> para que la zona de notch / barra no quede blanca */
html {
  background-color: #600000; /* rojo granate base */
  background: linear-gradient(to bottom, #8b0000, #600000);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #600000;
  background: linear-gradient(to bottom, #8b0000, #600000);
  color: var(--text);
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}


.app-page {
  min-height: 100vh;
  /* por si acaso, respetar safe area superior en iOS */
  padding-top: env(safe-area-inset-top);
}

/* ===== SPLASH INICIAL SOLOLE ===== */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at top, #7f1d1d, #200000 60%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.splash-overlay.splash-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-box {
  text-align: center;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.splash-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.splash-title {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.splash-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Spinner sencillo */
.splash-spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--primary);
  margin: 0 auto;
  animation: splash-spin 0.85s linear infinite;
}

@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}

/* AVISO ESCRITORIO */

.desktop-warning {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #7f1d1d, #200000 60%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.desktop-warning-box {
  background: rgba(0, 0, 0, 0.78);
  border-radius: 18px;
  padding: 20px 22px;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dw-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.desktop-warning-box h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.desktop-warning-box p {
  font-size: 14px;
  color: var(--muted);
}

.dw-close-btn {
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* CONTENIDO MÓVIL */

.call-main {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 110px; /* ↑ un poco más para no pegarse al borde inferior */
}

/* Banner PWA cabecera */

.pwa-banner {
  display: none;
  margin-bottom: 14px;
}

.pwa-banner.visible {
  display: block;
}

.pwa-banner-inner {
  background: radial-gradient(circle at top left, #b91c1c, #1f0000 70%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pwa-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
}

.pwa-banner-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-banner-text {
  font-size: 13px;
}

.pwa-banner-note {
  font-size: 11px;
  color: var(--muted);
}

.pwa-banner-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.7);
}

.pwa-banner-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  margin-left: 4px;
  cursor: pointer;
}

/* Cabecera */

.call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.call-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

.call-logo-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 13px;
  text-transform: uppercase;
}

.call-header-sub {
  font-size: 11px;
  color: var(--muted);
}

.call-header-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.call-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}


/* BLOQUE PRINCIPAL */

.call-card {
  padding: 6px 0 8px;
}

.call-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.call-step-label--second {
  margin-top: 18px;
}

.call-title {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 26px;
  text-align: left;
  margin-bottom: 4px;
}

.call-question {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.call-subquestion {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}

/* Toggle chica / chico */

.gender-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.gender-option {
  flex: 1;
  border-radius: 999px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  background: linear-gradient(to bottom, #5b0000, #a30000);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background 0.12s ease, opacity 0.12s ease;
}

.gender-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.gender-label {
  white-space: nowrap;
}

.gender-option.active {
  background: linear-gradient(to bottom, #000000, #a60000);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

/* Lista de opciones */

.call-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.call-option {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  background: radial-gradient(circle at top, #7f0000, #4f0000 65%);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.7);
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background 0.1s ease, border-color 0.1s ease;
}

.call-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at top, #900000, #5c0000 65%);
}

.call-option.selected {
  border-color: rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle at top, #b91c1c, #4f0000 70%);
}

.call-option-icon {
  font-size: 20px;
  width: 26px;
  text-align: center;
}

.call-option-text {
  font-size: 14px;
  font-weight: 500;
}

.call-option-extra {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

/* PIE FIJO CON CTA */

.call-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* más padding-bottom para que el botón quede algo por encima
     de la barra de iOS/Chrome */
  padding: 10px 12px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  z-index: 20;
}

.call-footer > div,
.call-footer > button {
  max-width: 420px;
  margin: 0 auto;
}

.call-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 8px;
}

.call-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.call-summary-value {
  font-size: 13px;
  font-weight: 500;
}

.call-cta-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.75);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(248, 202, 202, 0.8);
  margin: 4px auto 10px;
}

.sheet-close {
  position: absolute;
  right: 20px;
  top: 10px;
  border: none;
  background: transparent;
  color: #ffecec;
  font-size: 20px;
  cursor: pointer;
}

.sheet-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffd6d6;
  margin-bottom: 2px;
}

.sheet-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.sheet-subtitle {
  font-size: 13px;
  color: #ffecec;
  opacity: 0.8;
  margin-bottom: 10px;
}

.sheet-summary {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(127, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  display: inline-block;
}

.sheet-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(248, 181, 181, 0.6);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: inherit;
  text-decoration: none;
  color: #ffecec;
  background: #4f0000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.85);
}

.sheet-btn-title {
  font-size: 14px;
  font-weight: 600;
}

.sheet-btn-desc {
  font-size: 11px;
  color: #ffd6d6;
}

.sheet-btn-main {
  background: radial-gradient(circle at top left, #f97373, #5a0000 70%);
}

.sheet-btn-main:hover {
  filter: brightness(1.05);
}

.sheet-btn-premium {
  background: radial-gradient(circle at top left, #f97316, #5a0000 70%);
}

.sheet-btn-premium:hover {
  filter: brightness(1.05);
}

.sheet-btn-voip {
  opacity: 0.7;
  cursor: default;
  background: radial-gradient(circle at top left, #4b0000, #1f0000 70%);
}

/* RESPONSIVE */

@media (min-width: 769px) {
  .call-main,
  .call-footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .call-main {
    padding-bottom: 104px;
  }
}

/* Botón cabecera: ¿Quieres recibir llamadas? */
.call-header-btn {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  color: #ffecec;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.call-header-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.75);
}

/* Formulario recibir llamadas */
.receive-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  color: #ffecec;
  opacity: 0.9;
}

.form-input,
.form-select {
  width: 100%;
  box-sizing: border-box;

  /* Misma altura en todos los navegadores */
  min-height: 44px;
  padding: 10px 14px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);

  font-size: 13px;
  font-family: inherit;
  line-height: 1.3;

  background: rgba(0, 0, 0, 0.4);
  color: #ffecec;
  outline: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);

  /* Quitar estilos raros por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Opcional: un poco más de control visual solo para los selects */
.form-select {
  padding-right: 34px; /* deja sitio por si el navegador pone flecha */
  background-position: right 12px center;
  background-repeat: no-repeat;

}

.form-input::placeholder {
  color: #ffd6d6;
  opacity: 0.7;
}

.form-input:focus,
.form-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

.form-footnote {
  font-size: 11px;
  color: #ffd6d6;
  opacity: 0.9;
  margin-top: 2px;
}

.form-submit-btn {
  margin-top: 4px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.8);
}

/* TOASTS */

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  min-width: 220px;
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-success {
  background: radial-gradient(circle at top left, #22c55e, #0f172a 70%);
}

.toast-error {
  background: radial-gradient(circle at top left, #ef4444, #0f172a 70%);
}

.gender-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gender-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ===== SHEETS / EMERGENTES ===== */

/* Fondo oscuro detrás de la hoja */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

/* Visible */
.sheet-backdrop.sheet-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tarjeta base de cualquier sheet (tipo llamada, recibir llamadas, código…) */
.sheet {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;

  border-radius: 26px 26px 0 0;
  padding: 16px 18px 20px;

  background: linear-gradient(180deg, #7f1d1d 0%, #3b0000 40%, #1a0000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -22px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);

  /* Altura máxima + scroll interno para que nunca se salga de pantalla */
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* animación slide up / down */
  transform: translateY(100%);
  transition: transform 0.28s ease-out;
}

/* Cuando el backdrop está visible, la hoja sube */
.sheet-backdrop.sheet-visible .sheet {
  transform: translateY(0);
}

/* Sheet de CÓDIGO: un poco más oscuro, pero misma altura/scroll */
#code-sheet .sheet {
  background: linear-gradient(180deg, #5a0505 0%, #250000 60%, #100000 100%);
}

/* Cabecera común: SOLO la X a la derecha */
.sheet-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* Eliminamos la barra/handle por completo */
.sheet-handle {
  display: none;
}

/* Botón X arriba a la derecha */
.sheet-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fef2f2;
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
}

/* Textos dentro de los sheets */
.sheet-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffd6d6;
  margin-bottom: 2px;
}

.sheet-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.sheet-subtitle {
  font-size: 13px;
  color: #ffecec;
  opacity: 0.8;
  margin-bottom: 10px;
}

.sheet-summary {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(127, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  display: inline-block;
}

.sheet-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(248, 181, 181, 0.6);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: inherit;
  text-decoration: none;
  color: #ffecec;
  background: #4f0000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.85);
}

.sheet-btn-title {
  font-size: 14px;
  font-weight: 600;
}

.sheet-btn-desc {
  font-size: 11px;
  color: #ffd6d6;
}

.sheet-btn-main {
  background: radial-gradient(circle at top left, #f97373, #5a0000 70%);
}

.sheet-btn-main:hover {
  filter: brightness(1.05);
}

.sheet-btn-premium {
  background: radial-gradient(circle at top left, #f97316, #5a0000 70%);
}

.sheet-btn-premium:hover {
  filter: brightness(1.05);
}

.sheet-btn-voip {
  opacity: 0.7;
  cursor: default;
  background: radial-gradient(circle at top left, #4b0000, #1f0000 70%);
}

/* ===== SHEET CÓDIGO: TIPOGRAFÍA Y TECLADO ===== */

.sheet-code .sheet-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 4px;
}

.sheet-code .sheet-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 220, 220, 0.8);
  margin-bottom: 16px;
}

/* Display negro para el código */
.code-display {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  padding: 10px 16px;
  background: #050505;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fefefe;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  letter-spacing: 6px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

/* Teclado numérico */
.code-keypad {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px 28px; /* filas / columnas */
  max-width: 260px;
  margin: 0 auto;
  justify-content: center;
}

.code-key,
.code-action-key {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  color: #ffecec;
  background: radial-gradient(circle at top, #a32020, #470000);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.code-key:active,
.code-action-key:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  filter: brightness(0.95);
}

/* Teclas de acción (borrar) algo más suaves y con iconos algo mayores */
.code-action-key {
  font-size: 20px;
  background: radial-gradient(circle at top, #7a1717, #350000);
}

.code-action-key.icon-key {
  font-size: 28px;
}

/* Botón de llamada */
.code-call-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.code-call-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  cursor: default;
  background: radial-gradient(circle at top, #555555, #222222);
  color: #f5f5f5;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.9);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
  opacity: 0.7;
}

.code-call-btn.active {
  cursor: pointer;
  background: radial-gradient(circle at top, #16a34a, #065f27);
  opacity: 1;
}

.code-call-btn.active:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.9);
}

.code-call-label {
  font-size: 13px;
  color: rgba(255, 230, 230, 0.9);
}

/* ===== LISTA DE EDADES ===== */

.age-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.age-item {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: radial-gradient(circle at top, #7f0000, #4f0000 65%);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.7);
  color: #ffecec;
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
}

.age-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at top, #900000, #5c0000 65%);
}

.age-item-icon {
  font-size: 24px;
  width: 30px;
  text-align: center;
}

.age-item-text {
  font-size: 15px;
  font-weight: 500;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.status-item {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  background: radial-gradient(circle at top, #b91c1c, #4b0000 65%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffecec;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.status-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(0, 0, 0, 0.9);
}

.status-item-icon {
  font-size: 22px;
  width: 26px;
  text-align: center;
}

.status-item-text {
  flex: 1;
  font-weight: 600;
}
/* ===== ESTADO ONLINE / OFFLINE ===== */
.receive-status {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffd6d6;
}

.receive-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: red;
}

.receive-status.online .dot {
  background: #22c55e;
}

.receive-status.offline .dot {
  background: #ef4444;
}

/* ===== MODAL DE CONFIRMACIÓN ===== */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 100;
}

.confirm-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.confirm-box {
  background: linear-gradient(180deg, #7f1d1d, #3b0000);
  padding: 20px 22px;
  border-radius: 18px;
  max-width: 320px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.confirm-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.confirm-text {
  font-size: 14px;
  color: #ffecec;
  margin-bottom: 16px;
  line-height: 1.4;
}

.confirm-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

.confirm-accept {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.confirm-cancel {
  background: rgba(255,255,255,0.18);
  color: #ffecec;
}
.phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-prefix {
  max-width: 90px;
  flex: 0 0 90px;
}

.phone-row .form-input {
  flex: 1;
}

/* Para que el botón "Usar mi ubicación" se vea como el resto de combos */
.form-select-button {
  text-align: left;
  cursor: pointer;
}
.phone-strong {
  font-weight: 600;
  color: #ffffff;
}
.form-field--phone .phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.form-field--phone .phone-prefix {
  flex: 0 0 80px;        /* prefijo estrecho */
}

.form-field--phone .phone-number-input {
  flex: 1 1 auto;        /* el resto para el número */
}
.receive-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.receive-extension {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}
/* Fondo del modal legal a pantalla completa */
.legal-backdrop {
  z-index: 9999;           /* por encima del resto */
}

/* Hacer que el sheet legal ocupe casi toda la pantalla */
.sheet-legal {
  width: 100%;
  max-width: 100%;
  height: 90%;
  max-height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

/* Contenido desplazable */
.legal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Texto “cargando” */
.legal-loading {
  opacity: 0.7;
  font-style: italic;
}

/* Enlaces legales estilo texto plano */
.legal-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.legal-link {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  margin: 0 0.25rem;
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
/* ===== CARRUSEL SOLOLE EN app.html ===== */

.carousel {
  margin: 18px auto 10px;
  max-width: 480px;
  border-radius: 22px;
  overflow: hidden;              /* recorta esquinas de la imagen */
  position: relative;
}

/* Pista horizontal */
.carousel-track {
  display: flex;
  transition: transform 0.45s ease-out;
}

/* Cada slide ocupa todo el ancho */
.carousel-slide {
  flex: 0 0 100%;
}

/* Imagen 1:1, recortada y con bordes suaves */
.carousel-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;           /*  cuadrada */
  object-fit: cover;             /* recorta sin deformar */
  border-radius: 22px;
}

/* Flechas laterales */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.carousel-arrow--prev {
  left: 10px;
}

.carousel-arrow--next {
  right: 10px;
}

/* Puntos inferiores */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
  width: 18px;
  background: #ffffff;
}

/* ===== ESTADO ONLINE EN CARRUSEL ===== */

.carousel-slide {
  position: relative; /* para posicionar el badge dentro de la foto */
}

.carousel-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: rgba(0, 0, 0, 0.55);
  color: #e5ffe5;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.carousel-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e; /* verde online */
}

/* ============================================
   CABECERA FIJA COMPLETA (SOLOLE – PWA)
   ============================================ */
.call-header {
  position: fixed;                  
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;

  padding: calc(10px + env(safe-area-inset-top)) 20px 12px;

  /* Fondo idéntico al de la app, pero con degradado bonito */
  background: linear-gradient(
    to bottom,
    #8a0000 0%,
    #6a0000 100%,
    rgba(106, 0, 0, 0.0) 100%
  );

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

/* Línea/sombra para separar el header fijo del contenido */
.call-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0px;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.00)
  );

  pointer-events: none;
}

/* El contenido debe bajar para no quedar oculto detrás del header */
.call-main {
  padding-top: 90px; /* Ajustable entre 120 y 150 según se vea en iPhone */
}
