/* ==========================================================================
   SHELLY BOT - LUXURY MINIMALIST DESIGN SYSTEM
   Inspirado en la estética iOS / Fintech moderna:
   - Fondos claros sofisticados (#f5f5f7 / #ffffff)
   - Tipografía Plus Jakarta Sans & Inter
   - Píldoras redondeadas segmentadas (Segmented Controls)
   - Micro-etiquetas en mayúsculas espaciadas
   - Tarjetas redondeadas (squircle) con sombras suaves
   - Botones tipo píldora (border-radius: 9999px)
   - Contraste absoluto en escala de grises: Negro puro, Gris carbón, Plata y Blanco
   - Cero emojis, vectores SVG limpios
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-canvas: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-subtle: #f0f0f3;
  --bg-pill-track: #e9e9ee;
  
  --text-primary: #111113;
  --text-secondary: #636366;
  --text-muted: #8e8e93;
  --text-subtle: #aeaeb2;

  --border-light: #e5e5ea;
  --border-subtle: #ebebef;
  --border-focus: #111113;

  --accent-black: #111113;
  --accent-white: #ffffff;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-float: 0 12px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-phone: 0 24px 60px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow - subtle soft light */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}
.glow-top {
  width: 500px;
  height: 500px;
  top: -140px;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 247, 0) 70%);
}
.glow-bottom {
  width: 600px;
  height: 600px;
  bottom: -180px;
  right: 15%;
  background: radial-gradient(circle, rgba(230, 230, 235, 0.6) 0%, rgba(245, 245, 247, 0) 70%);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 1.5rem;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tag {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-dash-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  background: var(--accent-black);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-dash-header svg {
  width: 14px;
  height: 14px;
}

.btn-dash-header:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulse-dot 2.5s infinite;
}

.status-label {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Layout */
.main-layout {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 3.5rem;
  align-items: start;
}

/* Left: Form Card Section */
.form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 3rem 2.85rem;
  box-shadow: var(--shadow-card);
}

.section-intro {
  margin-bottom: 2rem;
}

/* Micro-badge uppercase like FEB 22-28, 2026 */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

/* Clean title like "Transactions" */
.headline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.subheadline {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

/* Stepper - Exact segmented pill control like DAY | WEEK • | MONTH | YEAR */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2.75rem;
  padding: 5px;
  border-radius: 9999px;
  background: var(--bg-pill-track);
  width: 100%;
  max-width: 520px;
}

.step-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.step-desc {
  display: none;
}

.stepper-line {
  display: none;
}

/* Active Segmented Pill with Dot (Like WEEK • in screenshot) */
.step-item.active {
  background: #ffffff;
  box-shadow: var(--shadow-pill);
}

.step-item.active .step-num {
  color: var(--text-primary);
}

.step-item.active .step-title {
  color: var(--text-primary);
}

.step-item.active .step-meta::after {
  content: '•';
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-left: 0.15rem;
}

.step-item.completed .step-num,
.step-item.completed .step-title {
  color: var(--text-secondary);
}

/* Form Steps Visibility */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Field Groups */
.field-group {
  margin-bottom: 2rem;
}

.field-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.required {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  pointer-events: none;
}

.text-input, .textarea-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 0.95rem 1.15rem 0.95rem 3rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.text-input:focus, .textarea-input:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.text-input::placeholder, .textarea-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.textarea-input {
  padding: 1.1rem 1.2rem;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field-hint {
  display: block;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* Phone input with fixed prefix */
.phone-wrapper {
  display: flex;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  background: #e8e8ed;
  border: 1.5px solid transparent;
  border-right: none;
  border-radius: 18px 0 0 18px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-input {
  border-radius: 0 18px 18px 0;
  padding-left: 1.1rem;
}

/* Giro Grid Selection Cards - Styled like Transaction List Items */
.giro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.giro-card {
  position: relative;
  cursor: pointer;
}

.giro-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.giro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.15rem;
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: 20px;
  transition: var(--transition);
}

.giro-card:hover .giro-content {
  background: #eaebee;
  transform: translateY(-2px);
}

.giro-icon {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.giro-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  transition: var(--transition);
}

.giro-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  transition: var(--transition);
}

/* Checked State - Crisp Black Card */
.giro-radio:checked + .giro-content {
  background: var(--accent-black);
  border-color: var(--accent-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.giro-radio:checked + .giro-content .giro-icon,
.giro-radio:checked + .giro-content .giro-name {
  color: #ffffff;
}

.giro-radio:checked + .giro-content .giro-sub {
  color: #a1a1aa;
}

/* Tone Selector - Segmented Pills */
.tone-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: var(--bg-pill-track);
  padding: 6px;
  border-radius: 20px;
}

.tone-option {
  cursor: pointer;
}

.tone-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tone-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem;
  background: transparent;
  border-radius: 16px;
  transition: var(--transition);
}

.tone-pill svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.tone-pill span {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tone-option input:checked + .tone-pill {
  background: #ffffff;
  box-shadow: var(--shadow-pill);
}

.tone-option input:checked + .tone-pill svg,
.tone-option input:checked + .tone-pill span {
  color: var(--text-primary);
}

/* Form Action Buttons - Modern Pill Buttons */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.85rem;
  border-radius: 9999px; /* Pill Shape */
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

/* Primary Button - Deep Black Pill */
.btn-primary {
  background: var(--accent-black);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Secondary Button - Soft Gray Pill */
.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #e4e4e9;
  transform: translateY(-1px);
}

/* Submit Button */
.btn-submit {
  background: var(--accent-black);
  color: #ffffff;
  padding: 1.05rem 2.25rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}

.btn-submit:hover {
  background: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.btn-full {
  width: 100%;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Right: Preview Smartphone Simulator */
.preview-section {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-header {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
  text-align: center;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 0.35rem;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
}

.preview-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Phone Mockup Frame - Light Luxury Edition */
.phone-frame {
  width: 100%;
  max-width: 340px;
  height: 660px;
  background: #ffffff;
  border: 11px solid #111113;
  border-radius: 48px;
  box-shadow: var(--shadow-phone);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 110px;
  height: 24px;
  background: #111113;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-speaker {
  width: 42px;
  height: 3px;
  background: #27272a;
  border-radius: 2px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  background: #27272a;
  border-radius: 50%;
}

.phone-screen {
  flex: 1;
  background: #fbfbfd;
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}

/* Simulated WhatsApp Header */
.sim-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.sim-back svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.sim-avatar-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sim-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sim-user-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sim-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.sim-status {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sim-actions svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Chat Messages */
.sim-chat-area {
  flex: 1;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  background-color: #f7f7fa;
}

.sim-date-badge {
  align-self: center;
  font-size: 0.64rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  margin-bottom: 0.25rem;
}

.sim-msg {
  display: flex;
  max-width: 86%;
}

.bot-msg {
  align-self: flex-start;
}

.user-msg {
  align-self: flex-end;
}

.sim-msg-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  position: relative;
  line-height: 1.4;
}

/* Bot Message - Clean White Card with soft border */
.bot-msg .sim-msg-bubble {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-top-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* User Message - Solid Black Pill */
.user-msg .sim-msg-bubble {
  background: var(--accent-black);
  color: #ffffff;
  border-top-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sim-text {
  font-size: 0.79rem;
  word-break: break-word;
}

.sim-time {
  display: block;
  font-size: 0.62rem;
  margin-top: 0.35rem;
  text-align: right;
  opacity: 0.55;
  font-family: var(--font-heading);
}

.sim-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 0.25rem;
}

.check-icon {
  width: 12px;
  height: 12px;
  color: #ffffff;
}

/* Simulated Bottom Input */
.sim-input-bar {
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid var(--border-light);
}

.sim-input-field {
  flex: 1;
  background: var(--bg-subtle);
  border-radius: 9999px;
  padding: 0.55rem 0.95rem;
}

.sim-placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-black);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-send-btn svg {
  width: 14px;
  height: 14px;
  transform: translateX(1px);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 2.75rem 2.25rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--accent-black);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modal-icon-badge svg {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.85rem;
}

.activation-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 1.35rem;
  margin-bottom: 2rem;
}

.activation-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
}

.activation-code {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0.35rem 0;
}

.activation-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Móviles, Tablets, Laptops y Pantallas Grandes)
   ========================================================================== */

/* Laptops y pantallas medianas (1025px a 1240px) */
@media (max-width: 1240px) {
  .main-layout {
    padding: 2rem 1.25rem 4.5rem;
  }
  .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
  }
  .form-section {
    padding: 2.5rem 2rem;
  }
}

/* Tablets (769px a 1024px: iPad, iPad Air, iPad Pro en vertical) */
@media (max-width: 1024px) {
  .main-layout {
    padding: 2rem 1.25rem 4rem;
  }
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-section {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    padding: 2.75rem 2.25rem;
  }
  .preview-section {
    position: static;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
  }
  .preview-header {
    margin-bottom: 1.5rem;
  }
}

/* Móviles grandes y Tablets pequeñas (481px a 768px) */
@media (max-width: 768px) {
  .app-header {
    padding: 0.85rem 1.25rem;
  }
  .main-layout {
    padding: 1.5rem 1rem 3.5rem;
  }
  .content-wrapper {
    gap: 2.5rem;
  }
  .form-section {
    padding: 2rem 1.5rem;
    border-radius: 26px;
  }
  .headline {
    font-size: 1.85rem;
  }
  .stepper {
    max-width: 100%;
    gap: 0.25rem;
    padding: 4px;
    margin-bottom: 2rem;
  }
  .step-item {
    padding: 0.55rem 0.65rem;
  }
  .giro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tone-selector {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .phone-frame {
    max-width: 320px;
    height: 600px;
    border-width: 10px;
    border-radius: 42px;
  }
}

/* Teléfonos móviles estándar (361px a 540px: iPhone 12/13/14/15/16, Samsung Galaxy, Pixel) */
@media (max-width: 540px) {
  .app-header {
    padding: 0.75rem 0.9rem;
  }
  .brand-logo-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    padding: 4px;
  }
  .brand-name {
    font-size: 0.98rem;
  }
  .status-indicator {
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
  }
  .status-label {
    font-size: 0.68rem;
  }
  .main-layout {
    padding: 1rem 0.75rem 3rem;
  }
  .form-section {
    padding: 1.5rem 0.95rem;
    border-radius: 22px;
  }
  .badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
  .headline {
    font-size: 1.48rem;
    margin-bottom: 0.45rem;
  }
  .subheadline {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .section-intro {
    margin-bottom: 1.5rem;
  }

  /* Stepper adaptado a pantallas móviles */
  .stepper {
    max-width: 100%;
    padding: 3px;
    gap: 2px;
    border-radius: 14px;
    margin-bottom: 1.75rem;
  }
  .step-item {
    padding: 0.45rem 0.3rem;
    gap: 0.25rem;
  }
  .step-num {
    font-size: 0.68rem;
  }
  .step-title {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
  }
  .step-item.active .step-meta::after {
    display: none;
  }

  /* Campos del formulario */
  .field-group {
    margin-bottom: 1.35rem;
  }
  .field-label {
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
  }
  .text-input, .textarea-input {
    font-size: 0.88rem;
    padding: 0.85rem 0.95rem 0.85rem 2.65rem;
    border-radius: 14px;
  }
  .input-icon {
    left: 0.85rem;
    width: 17px;
    height: 17px;
  }
  .textarea-input {
    padding: 0.85rem 0.95rem;
    min-height: 110px;
  }
  .phone-prefix {
    padding: 0 0.85rem;
    font-size: 0.82rem;
    border-radius: 14px 0 0 14px;
  }
  .phone-input {
    padding-left: 0.85rem;
    border-radius: 0 14px 14px 0;
  }

  /* Selector de Giro */
  .giro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .giro-content {
    padding: 0.85rem 0.65rem;
    border-radius: 14px;
  }
  .giro-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 0.45rem;
  }
  .giro-name {
    font-size: 0.82rem;
  }
  .giro-sub {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  /* Selector de Tono */
  .tone-selector {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 4px;
    border-radius: 14px;
  }
  .tone-pill {
    padding: 0.65rem 0.6rem;
  }
  .tone-pill span {
    font-size: 0.8rem;
  }

  /* Botones de acción verticales en móvil */
  .form-actions {
    flex-direction: column-reverse;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.88rem;
  }

  /* Simulador en móvil */
  .preview-section {
    width: 100%;
    margin-top: 2rem;
  }
  .preview-header {
    margin-bottom: 1rem;
  }
  .phone-frame {
    width: 100%;
    max-width: 310px;
    height: 550px;
    border-width: 8px;
    border-radius: 36px;
    margin: 0 auto;
  }
  .phone-notch {
    width: 90px;
    height: 20px;
  }
  .phone-screen {
    padding-top: 24px;
  }
  .sim-chat-area {
    padding: 0.85rem 0.65rem;
  }
  .sim-text {
    font-size: 0.78rem;
  }

  /* Modal en móvil */
  .modal-overlay {
    padding: 1rem;
  }
  .modal-card {
    padding: 1.75rem 1.15rem;
    border-radius: 22px;
    max-width: 94vw;
  }
  .modal-title {
    font-size: 1.3rem;
  }
  .modal-desc {
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
  }
  .activation-box {
    padding: 1.15rem 0.85rem;
    border-radius: 16px;
    margin-bottom: 1.35rem;
  }
  .activation-label {
    font-size: 0.68rem;
  }
  .activation-code {
    font-size: 1.75rem;
    margin: 0.25rem 0;
  }
  .activation-sub {
    font-size: 0.7rem;
  }
  .modal-actions {
    gap: 0.65rem;
  }
  .modal-actions .btn {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}

/* Pantallas ultra compactas (<= 360px: iPhone SE 1ra gen, Galaxy Z Fold plegado) */
@media (max-width: 360px) {
  .app-header {
    padding: 0.65rem 0.75rem;
  }
  .brand-name {
    font-size: 0.88rem;
  }
  .status-label {
    font-size: 0.62rem;
  }
  .status-indicator {
    padding: 0.3rem 0.5rem;
  }
  .main-layout {
    padding: 0.85rem 0.5rem 2.5rem;
  }
  .form-section {
    padding: 1.35rem 0.75rem;
    border-radius: 18px;
  }
  .headline {
    font-size: 1.35rem;
  }
  .giro-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .phone-frame {
    max-width: 275px;
    height: 490px;
    border-width: 6px;
    border-radius: 28px;
  }
  .sim-chat-area {
    padding: 0.65rem 0.5rem;
  }
}

/* Platform Footer */
.app-footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-sep {
  color: var(--border-light);
  font-size: 0.75rem;
}

/* ==========================================================================
   GOOGLE BUSINESS STYLE SCHEDULE BUILDER
   ========================================================================== */
.schedule-field-group {
  margin-bottom: 2rem;
}

.schedule-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.schedule-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-preset-pill {
  appearance: none;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-preset-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-preset-pill.active {
  background: var(--text-primary);
  color: var(--accent-white);
  border-color: var(--text-primary);
}

/* Google Hours Container Card (Light Grey aesthetic matching user screenshot) */
.google-hours-card {
  background: #ebeef3;
  color: #111113;
  border-radius: 1.15rem;
  padding: 1.25rem;
  border: 1px solid #dcdce2;
  box-shadow: none;
}

.google-days-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.google-day-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dcdce2;
}

.google-day-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.google-day-meta {
  width: 110px;
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.google-day-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111113;
  display: block;
  margin-bottom: 0.35rem;
}

.google-closed-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111113;
  cursor: pointer;
  user-select: none;
}

/* Checkbox con contorno negro y fondo blanco (sin fondo negro) */
.google-closed-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #111113;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: inline-block;
  vertical-align: middle;
}

.google-closed-toggle input[type="checkbox"]:hover {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.google-closed-toggle input[type="checkbox"]:checked {
  background: #ffffff !important;
  border: 2px solid #111113 !important;
}

.google-closed-toggle input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #111113;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Shifts Container */
.google-shifts-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.google-shifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.google-shift-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.google-time-field {
  position: relative;
  flex: 1;
  min-width: 125px;
  border: 1.5px solid #d1d1d6;
  border-radius: 0.55rem;
  padding: 0.4rem 0.75rem;
  background: #ffffff;
  transition: var(--transition);
}

.google-time-field:focus-within {
  border-color: #111113;
  box-shadow: 0 0 0 2px rgba(17, 17, 19, 0.12);
}

.google-time-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #636366;
  margin-bottom: 0.1rem;
  text-transform: none;
  pointer-events: none;
}

.google-time-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: #111113;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.google-time-select option {
  background: #ffffff;
  color: #111113;
}

.btn-shift-action {
  appearance: none;
  background: #ffffff;
  border: 1.5px solid #d1d1d6;
  color: #111113;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.btn-shift-action:hover {
  border-color: #111113;
  background: #f5f5f7;
  color: #111113;
}

.btn-shift-action.btn-delete-shift:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.google-closed-badge {
  font-size: 0.88rem;
  color: #636366;
  font-weight: 600;
  font-style: italic;
  padding-top: 0.45rem;
}

/* Schedule Preview Box */
.schedule-preview-box {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: 0.65rem;
  border: 1px solid var(--border-light);
}

.schedule-preview-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.schedule-preview-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .google-day-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .google-day-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .google-shift-row {
    width: 100%;
  }
  .google-time-field {
    min-width: 0;
  }
}
