/* ============================================
   Cita30 Trujillo - Design System
   ============================================ */

:root {
  --primary: #2A9D8F;
  --primary-dark: #21867A;
  --primary-light: #E8F6F3;
  --accent: #D4A853;
  --accent-light: #FDF6E9;
  --dark: #1A2E35;
  --dark-soft: #2C3E50;
  --gray-900: #1A2E35;
  --gray-800: #2A4553;
  --gray-700: #3D5A6C;
  --gray-600: #547385;
  --gray-500: #6B8A9E;
  --gray-400: #93AEBF;
  --gray-300: #B8CDD9;
  --gray-200: #D6E4EC;
  --gray-100: #EDF4F8;
  --gray-50: #F7FAFC;
  --white: #FFFFFF;
  --danger: #E74C3C;
  --danger-light: #FDEDEC;
  --success: #27AE60;
  --success-light: #EAFAF1;
  --warning: #F39C12;
  --warning-light: #FEF5E7;
  --shadow-sm: 0 1px 3px rgba(26, 46, 53, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 46, 53, 0.1);
  --shadow-lg: 0 8px 30px rgba(26, 46, 53, 0.12);
  --shadow-xl: 0 20px 60px rgba(26, 46, 53, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.2s ease;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Sin rectángulo de resaltado al tocar en NINGÚN elemento (Android pinta
   cuadrados —verdes en labels/consentimientos— sobre botones redondeados);
   el feedback visual lo da :active. */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

/* Botones de ancho completo con salto de línea (evita scroll horizontal en móvil) */
.btn-block {
  white-space: normal;
  word-break: break-word;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:active {
  background: #C49A45;
}

/* Hover real solo en dispositivos con mouse (en táctil el hover queda pegado
   y el transform hacía desaparecer el texto blanco al presionar). */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  .btn-accent:hover {
    background: #C49A45;
    transform: translateY(-1px);
  }
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   Header / Nav
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gray-900);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.logo-text span {
  color: var(--primary);
}

.logo-city {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.nav-cta-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
}

.nav-login {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-login:hover {
  color: var(--primary);
}

/* Chip "Entrar" visible solo en móvil (junto a la hamburguesa) */
.nav-login-mobile {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: auto;
  margin-right: 12px;
}

.nav-login-mobile:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   Muro de acceso a catálogos (sesión requerida)
   ============================================ */
.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: var(--gray-50);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.gate-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  width: min(420px, 100%);
  text-align: center;
}

.gate-icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.gate-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.gate-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.gate-card .btn {
  margin-bottom: 10px;
}

.gate-back {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.gate-back:hover {
  color: var(--primary);
}

/* ============================================
   Selector de inicio de sesión (index)
   ============================================ */
.login-chooser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 53, 0.55);
  z-index: 1700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.login-chooser-overlay[hidden] {
  display: none;
}

.login-chooser {
  position: relative;
  width: min(460px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  animation: loginSheetUp 0.25s ease;
}

@keyframes loginSheetUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 769px) {
  .login-chooser-overlay {
    align-items: center;
  }

  .login-chooser {
    border-radius: var(--radius-lg);
  }
}

.login-chooser-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.95rem;
  cursor: pointer;
}

.login-chooser-close:hover {
  background: var(--gray-200);
}

.login-chooser-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 16px;
}

.login-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.login-option:hover {
  border-color: var(--primary);
}

.login-option-icon {
  font-size: 1.6rem;
}

.login-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-option-info strong {
  font-size: 0.95rem;
  color: var(--gray-900);
}

.login-option-info small {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.4;
}

.login-option-arrow {
  color: var(--primary);
  font-weight: 800;
}

.login-chooser-foot {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
  line-height: 1.8;
}

.login-chooser-foot a {
  color: var(--primary);
  font-weight: 700;
  margin: 0 4px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  margin-top: 70px;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.trust-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin-left: auto;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-card-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--gray-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-card-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success-light);
  color: var(--success);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-card-video {
  width: 100%;
  aspect-ratio: 9/12;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.hero-card-video-placeholder {
  text-align: center;
  color: var(--gray-500);
}

.hero-card-video-placeholder .play-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.hero-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

/* ============================================
   How it Works
   ============================================ */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-700);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
}

/* ============================================
   Roles Section
   ============================================ */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.role-card {
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.role-princesas {
  background: linear-gradient(135deg, var(--primary-light), var(--gray-50));
  border: 2px solid var(--primary);
}

.role-caballeros {
  background: linear-gradient(135deg, var(--accent-light), var(--gray-50));
  border: 2px solid var(--accent);
}

.role-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.role-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.role-subtitle {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.role-features {
  margin-bottom: 24px;
}

.role-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.role-features .check {
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

.role-price {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.role-price-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.role-price-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
  background: var(--gray-50);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.trust-card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.trust-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-card-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-white {
  background: var(--white);
  color: var(--primary);
}

.cta-section .btn-white:hover {
  background: var(--gray-100);
}

.cta-section .btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--gray-300);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

/* ============================================
   Forms
   ============================================ */
.form-page {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 100px 0 60px;
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header .logo {
  justify-content: center;
  margin-bottom: 20px;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--danger);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-900);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-input.error {
  border-color: var(--danger);
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Upload zones */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone.has-file {
  border-color: var(--success);
  border-style: solid;
  background: var(--success-light);
}

.upload-zone-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.upload-zone-text {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.upload-zone-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.upload-zone input[type="file"] {
  display: none;
}

/* Zona de video en formato vertical 9:16 (coincide con la recomendación) */
#videoZone.upload-zone {
  aspect-ratio: 9 / 16;
  max-width: 250px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Estado "video cargado": la MISMA caja 9:16 se vuelve el reproductor */
#videoZone.upload-zone.has-file {
  padding: 8px;
}

.video-uploaded-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.video-uploaded-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: black;
  display: block;
}

#videoZone.upload-zone.has-file .upload-zone-hint {
  margin-top: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.video-uploaded-wrap .remove-file-btn {
  top: 6px;
  right: 6px;
}

/* Remove file button */
.remove-file-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: 2px solid white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  line-height: 1;
  padding: 0;
}

.remove-file-btn:hover {
  background: #C0392B;
  transform: scale(1.1);
}

/* Earnings calculator */
#earningsCalculator {
  transition: var(--transition);
}

@media (max-width: 600px) {
  #earningsCalculator {
    padding: 16px;
  }
  
  #earningsAmount {
    font-size: 1.8rem !important;
  }
  
  #earningsDetail {
    font-size: 0.8rem;
  }
}

/* Video guidelines */
.video-guidelines {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.video-guidelines-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.video-guidelines ul {
  display: grid;
  gap: 6px;
}

.video-guidelines li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.video-guidelines .do {
  color: var(--success);
}

.video-guidelines .dont {
  color: var(--danger);
}

.video-guidelines-warning {
  background: rgba(212, 168, 83, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-700);
}

/* Privacy notice */
.privacy-notice {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.privacy-notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.privacy-notice-text {
  font-size: 0.8rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Payment info */
.payment-info {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.payment-info-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.payment-info-label {
  font-size: 0.85rem;
  color: var(--gray-700);
}

/* Slots / chips selector */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  user-select: none;
}

.chip:hover {
  border-color: var(--primary);
}

.chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.chip input {
  display: none;
}

/* Form submit area */
.form-actions {
  margin-top: 32px;
}

/* Consentimiento de registro */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.consent-check span {
  -webkit-user-select: none;
  user-select: none;
}

.consent-no-sex {
  color: var(--danger);
  font-weight: 800;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* Notas de videollamada (portales) */
.meet-tips {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--gray-800);
}

.meet-tips-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.meet-tips ul {
  margin: 0;
  padding-left: 18px;
}

.meet-tips li {
  margin: 4px 0;
  line-height: 1.5;
}

.meet-note {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.meet-note p {
  margin: 4px 0;
}

.meet-note strong {
  color: var(--gray-900);
}

/* Botón de pánico */
.panic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.panic-btn:hover {
  background: #b91c1c;
}

/* Perfiles clickeables */
.profile-link {
  cursor: pointer;
  transition: opacity 0.15s;
}

.profile-link:hover {
  opacity: 0.8;
}

.profile-details {
  display: grid;
  gap: 5px;
  background: var(--gray-50);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
  text-align: left;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  width: 80px;
  height: 80px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

.form-success h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.form-success p {
  color: var(--gray-700);
  margin-bottom: 24px;
}

/* ============================================
   Post-registration rule cards
   ============================================ */
.rules-cards {
  text-align: left;
  padding: 0 4px;
}

.rules-cards-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  text-align: center;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rule-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid var(--gray-300);
}

.rule-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.rule-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.rule-card-text {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.rule-card.rule-success { border-left-color: var(--success); background: var(--success-light); }
.rule-card.rule-warning { border-left-color: var(--warning); background: var(--warning-light); }
.rule-card.rule-danger { border-left-color: var(--danger); background: var(--danger-light); }
.rule-card.rule-info { border-left-color: var(--primary); background: var(--primary-light); }
.rule-card.rule-neutral { border-left-color: var(--gray-400); background: var(--gray-50); }
.rule-card.rule-privacy { border-left-color: var(--accent); background: var(--accent-light); }

.rule-card.rule-success .rule-card-title { color: var(--success); }
.rule-card.rule-warning .rule-card-title { color: var(--warning); }
.rule-card.rule-danger .rule-card-title { color: var(--danger); }
.rule-card.rule-info .rule-card-title { color: var(--primary); }
.rule-card.rule-privacy .rule-card-title { color: var(--accent); }

@media (max-width: 600px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rule-card {
    padding: 14px;
  }

  .rules-cards-title {
    font-size: 1rem;
  }
}

/* ============================================
   Catalog
   ============================================ */
.catalog-page {
  min-height: 100vh;
  background: var(--gray-50);
  padding-top: 70px;
}

.catalog-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}

.catalog-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.catalog-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

body.feed-mode .catalog-empty {
  color: rgba(255, 255, 255, 0.75);
}

body.feed-mode .catalog-empty .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* ============================================
   Catálogo feed (todos los tamaños) + píldora de filtros
   ============================================ */
.filters-pill {
  position: fixed;
  top: 82px;
  right: 16px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  transition: var(--transition);
  font-family: inherit;
}

.filters-pill:active {
  transform: scale(0.96);
}

.filters-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.filters-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

.filters-pill-summary {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Descripción recortada a 2 líneas en tarjetas de caballeros */
.feed-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Etiqueta discreta de perfiles demo */
.demo-note {
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.75;
  font-weight: 500;
}

/* Día-chips del modal de invitación */
.day-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.day-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Footer pegajoso del pago dentro del modal */
.booking-footer {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 12px 0 6px;
  border-top: 1px solid var(--gray-200);
  z-index: 2;
}

/* Pasos pre-Meet */
.meet-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Segmentos (Ganancias) */
.seg-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.seg-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.seg-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Preview "Así te ven" en Mi perfil */
.perfil-preview {
  display: flex;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.preview-info {
  min-width: 0;
}

.preview-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.preview-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

/* ============================================
   Modal genérico de caballeros (pedir / mis pedidos)
   ============================================ */
.gent-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1510;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gent-modal-overlay.active {
  display: flex;
}

.gent-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  text-align: center;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}

.gent-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-500);
}

.pedidos-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.pedido-row {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
}

.pedido-row .pedido-estado {
  font-weight: 800;
  font-size: 0.75rem;
}

.pedido-estado.enviado { color: var(--warning); }
.pedido-estado.convertido { color: var(--success); }
.pedido-estado.descartado,
.pedido-estado.expirado { color: var(--gray-500); }

/* Mini-checkout Yape */
.yape-checkout {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.yape-qr {
  display: block;
  width: min(220px, 70%);
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.pay-rows {
  display: grid;
  gap: 8px;
  text-align: left;
  margin-bottom: 4px;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.checkout-step.done .pay-row {
  border-color: var(--success);
}

.pay-row-info {
  flex: 1;
  min-width: 0;
}

  .pay-row-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .pay-row-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-900);
    overflow-wrap: break-word;
    word-break: normal;
    margin-top: 2px;
  }

  .pay-row-value-lg {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    color: var(--primary-dark);
  }

  .pay-row-hint {
    font-size: 0.72rem;
    color: var(--gray-600);
    line-height: 1.45;
    margin-top: 3px;
    word-break: normal;
    overflow-wrap: normal;
  }

.pay-row .copy-chip {
  flex-shrink: 0;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.copy-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.copy-chip-sm {
  padding: 3px 9px;
  font-size: 0.7rem;
  vertical-align: middle;
  margin-left: 4px;
}

.yape-steps {
  margin: 0;
  padding-left: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* ============================================
   Checkout lineal (paso guiado con ✓)
   ============================================ */
.checkout-step {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  background: var(--white);
}

.checkout-step.done {
  border-color: var(--success);
  background: var(--success-light, #f0fdf4);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--gray-200);
}

.checkout-step .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.checkout-step.done .step-num {
  background: var(--success);
}

.monto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monto-chip {
  flex: 1 1 auto;
  min-width: 72px;
  padding: 10px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.monto-chip:hover {
  border-color: var(--primary);
}

.monto-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.monto-chip-other {
  min-width: 120px;
  font-weight: 600;
  font-size: 0.82rem;
}

.yape-qr-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

.copy-chip.copied {
  border-color: var(--success);
  background: var(--success-light, #f0fdf4);
  color: var(--success);
}

.captura-preview {
  display: block;
}

.captura-preview.hidden {
  display: none !important;
}

.monto-step {
  border: none;
  padding: 0;
  margin-bottom: 10px;
}

/* Bottom-sheet de filtros */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 1600;
}

.sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.filter-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px 28px;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1610;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.filter-sheet.active {
  transform: translateY(0);
}

.filter-sheet-handle {
  width: 44px;
  height: 5px;
  background: var(--gray-300);
  border-radius: 999px;
  margin: 4px auto 12px;
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.filter-sheet-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.filter-sheet-close {
  background: var(--gray-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--gray-700);
}

.filter-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 52vh;
  overflow-y: auto;
  padding-bottom: 4px;
}

.filter-group-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin: 12px 0 2px;
}

.filter-group-title:first-child {
  margin-top: 0;
}

.filter-sheet-footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.filter-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.filter-option-check {
  width: 20px;
  font-weight: 800;
  color: var(--primary);
}

.catalog-feed {
  display: block;
}

.feed-item {
  position: relative;
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  background: var(--gray-900);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.feed-media {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #000;
}

.feed-media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--primary) 0%, var(--gray-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
}

.feed-media img,
.feed-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.feed-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--success);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.feed-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.feed-chip-accent {
  background: var(--accent);
}

.feed-chip-warn {
  background: var(--warning);
}

/* Controles del video en el feed (a la derecha, debajo de la píldora de filtros)
   — estilo D (vidrio), elegido en la vista de prueba. */
.feed-sound-btn,
.feed-pause-btn {
  position: absolute;
  right: 16px;
  z-index: 900;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.feed-sound-btn { top: 64px; }
.feed-pause-btn { top: 108px; }

/* Iconos de play/pausa dibujados con CSS: centrados en todo dispositivo
   (sin glifos de texto, sin variación de fuente entre PC y celular). */
.ico-pause::before,
.ico-pause::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 13px;
  background: currentColor;
  border-radius: 1.5px;
}
.ico-pause::before { left: 13px; }
.ico-pause::after { right: 13px; }
.ico-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-top: 7.5px solid transparent;
  border-bottom: 7.5px solid transparent;
  transform: translate(calc(-50% + 2px), -50%);
}

/* La píldora de filtros vive arriba-derecha: las etiquetas de la tarjeta se
   agrupan a la izquierda (DNI arriba, categoría debajo) para no chocar. */
.catalog-feed .feed-chip {
  top: 48px;
  right: auto;
  left: 16px;
}

.feed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 55%, transparent);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.feed-meta {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 2px;
}

.feed-next {
  color: #6ee7b7;
  font-weight: 700;
}

.feed-available {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.feed-available-instant {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #6ee7b7;
}

.feed-available-review {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid #fbbf24;
  color: #fcd34d;
}

.feed-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.feed-cta {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
}

body.feed-mode .catalog-header,
body.feed-mode .footer {
  display: none;
}

body.feed-mode .catalog-page > .container {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

body.feed-mode .catalog-feed {
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.feed-mode .catalog-feed::-webkit-scrollbar {
  display: none;
}

/* Desktop: feed centrado tipo TikTok web */
@media (min-width: 769px) {
  body.feed-mode .catalog-feed {
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 16px;
    height: calc(100vh - 102px);
    height: calc(100dvh - 102px);
  }

  body.feed-mode .feed-item {
    height: 100%;
  }
}

/* ============================================
   Video Player
   ============================================ */
.video-player-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9/16;
  max-height: 70vh;
  margin: 0 auto;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-player-overlay-btn {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.video-player-overlay:hover .video-player-overlay-btn {
  transform: scale(1.05);
}

.video-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 40px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-player-controls.auto-hide {
  opacity: 0;
}

.video-player-wrapper:hover .video-player-controls.auto-hide {
  opacity: 1;
}

.video-player-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.9;
  transition: var(--transition);
}

.video-player-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.video-player-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.video-player-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.video-player-time {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 70px;
  text-align: right;
  opacity: 0.9;
}

.video-player-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   Profile Modal / Detail
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
}

/* ============================================
   Modal de detalle (admin) — legible en celular
   ============================================ */
.admin-detail {
  padding: 28px 24px;
}

@media (max-width: 640px) {
  .admin-detail {
    padding: 22px 16px;
  }
}

.detail-title {
  font-size: clamp(1.05rem, 4.5vw, 1.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  padding-right: 44px;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  min-width: 0;
}

.detail-field {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  min-width: 0;
}

.detail-field-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.detail-label {
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}

.detail-value {
  overflow-wrap: anywhere;
  min-width: 0;
  color: var(--gray-800);
}

.detail-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin: 18px 0 8px;
}

.detail-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.detail-media-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px;
  min-width: 0;
}

.detail-media-item > .detail-label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.detail-media-item img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: zoom-in;
  margin-top: 6px;
}

.detail-media-item video.detail-video {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: #000;
  margin-top: 6px;
}

.detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 130px;
  margin-top: 6px;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 8px;
  line-height: 1.45;
}

.detail-file {
  font-size: 0.72rem;
  color: var(--gray-500);
  overflow-wrap: anywhere;
  margin-top: 6px;
}

.detail-note {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-top: 10px;
}

.detail-actions {
  margin-top: 18px;
}

.detail-note-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin-top: 16px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Evita desbordes horizontales dentro del modal (layout de 1 columna) */
.modal-grid > * {
  min-width: 0;
}

.modal-info {
  overflow-wrap: anywhere;
}

.modal-media {
  background: var(--gray-100);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
  min-height: 0;
}

.modal-media > * {
  width: 100%;
}

.modal-info {
  padding: 32px;
}

.modal-info-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-info-badge {
  background: var(--success-light);
  color: var(--success);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-info-desc {
  color: var(--gray-700);
  margin: 16px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-info-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.modal-info-schedule {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.modal-info-schedule-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.modal-info-schedule-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-slot {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--gray-700);
}

/* ============================================
   Favorites bar
   ============================================ */
.favorites-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.favorites-bar.visible {
  transform: translateY(0);
}

.favorites-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 600px;
}

.favorites-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favorites-bar-count {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.favorites-bar-text {
  font-weight: 600;
}

.favorites-bar-sub {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================
   Admin
   ============================================ */
.admin-page {
  min-height: 100vh;
  background: var(--gray-50);
  padding-top: 70px;
}

.admin-header {
  background: var(--gray-900);
  color: var(--white);
  padding: 24px 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.admin-stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.admin-stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.admin-tab {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.admin-tab:hover {
  border-color: var(--primary);
}

.admin-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-item-avatar {
  width: 56px;
  height: 56px;
  background: var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-name {
  font-weight: 700;
  margin-bottom: 2px;
}

.admin-item-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.admin-item-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background: #FEF3CD;
  color: #856404;
}

.status-verified {
  background: var(--success-light);
  color: var(--success);
}

.status-rejected {
  background: var(--danger-light);
  color: var(--danger);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-btn-sm {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-btn-approve {
  background: var(--success);
  color: var(--white);
}

.admin-btn-reject {
  background: var(--danger);
  color: var(--white);
}

.admin-btn-view {
  background: var(--gray-100);
  color: var(--gray-700);
}

.admin-btn-undo {
  background: #E7F3FF;
  color: #1D4ED8;
}

.admin-btn-reset {
  background: var(--warning-light, #FEF3CD);
  color: #856404;
}

.strike-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-media {
    min-height: 0;
    padding: 20px 20px 0;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-login-mobile {
    display: inline-flex;
    align-items: center;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .form-card {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none !important; }

/* ============================================
   Weekly Schedule Selector (Registro Princesas)
   ============================================ */
.weekly-calendar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.weekly-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--gray-200);
}

.weekly-calendar-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.weekly-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 12px;
}

.weekly-day-cell {
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  min-height: 48px;
}

.weekly-day-cell:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.weekly-day-cell.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.weekly-day-cell.has-slots {
  border-color: var(--success);
  background: var(--success-light);
}

.weekly-day-cell.selected.has-slots {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.weekly-day-cell.today {
  box-shadow: 0 0 0 2px var(--accent);
}

.weekly-day-cell.past {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--gray-100);
}

.weekly-day-cell.past .weekly-day-name,
.weekly-day-cell.past .weekly-day-number {
  color: var(--gray-400);
}

.weekly-day-lock {
  font-size: 0.6rem;
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0.6;
}

.weekly-day-cell.no-availability {
  opacity: 0.45;
  background: var(--gray-100);
}

.weekly-day-cell.no-availability .weekly-day-name,
.weekly-day-cell.no-availability .weekly-day-number {
  color: var(--gray-400);
}

.weekly-day-cell {
  position: relative;
}

.weekly-day-name {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-500);
}

.weekly-day-cell.selected .weekly-day-name {
  color: rgba(255,255,255,0.8);
}

.weekly-day-number {
  font-size: 1.1rem;
  font-weight: 700;
}

.weekly-day-indicator {
  font-size: 0.55rem;
  margin-top: 2px;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: transparent;
}

.weekly-day-cell.has-slots .weekly-day-indicator {
  background: var(--success);
}

.weekly-day-cell.selected .weekly-day-indicator {
  background: var(--white);
}

/* Day slots panel */
.day-slots-panel {
  border-top: 1px solid var(--gray-200);
  padding: 16px;
  background: var(--gray-50);
}

.day-slots-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.day-slots-panel-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.day-slots-panel-clear {
  font-size: 0.8rem;
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.day-slots-panel-clear:hover {
  background: var(--danger-light);
}

.schedule-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.schedule-slot-btn {
  padding: 10px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.schedule-slot-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.schedule-slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.schedule-summary {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.schedule-summary strong {
  color: var(--primary-dark);
}

/* ============================================
   Booking Flow (Catálogo)
   ============================================ */
.booking-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.booking-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
}

.booking-step.active {
  background: var(--primary);
  color: var(--white);
}

.booking-step.completed {
  background: var(--success-light);
  color: var(--success);
}

.booking-step-num {
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Princess schedule view in booking */
.princess-schedule {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.princess-schedule-day {
  margin-bottom: 12px;
}

.princess-schedule-day:last-child {
  margin-bottom: 0;
}

.princess-schedule-day-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.princess-schedule-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot-available {
  padding: 8px 14px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.slot-available:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.slot-available.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.slot-available.too-soon {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* Booking confirmation */
.booking-confirm {
  background: var(--success-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.booking-confirm-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.booking-confirm-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.booking-confirm-detail {
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* ============================================
   Modal único de invitación (perfil + horario + pago)
   ============================================ */
.invite-profile {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.invite-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 10px;
}

.invite-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.invite-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.invite-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-ok {
  background: var(--success-light);
  color: var(--success);
}

.badge-instant {
  background: #D1FAE5;
  color: #065F46;
}

.badge-review {
  background: #FEF3C7;
  color: #92400E;
}

.badge-cat {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.invite-city {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 8px;
}

.invite-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  text-align: left;
  margin-top: 12px;
}

.invite-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.commit-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 14px;
}

.commit-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
  cursor: pointer;
}

.commit-label input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.payment-note {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-top: 8px;
}

.saldo-warning {
  background: var(--danger-light);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.inline-recharge {
  background: var(--accent-light);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 14px;
}

.inline-recharge-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.recharge-pending {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  line-height: 1.6;
}

.credit-note {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 14px;
  text-align: left;
}

/* ============================================
   Toast compartido
   ============================================ */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  max-width: min(92vw, 420px);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2000;
  text-align: center;
  line-height: 1.4;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast.toast-success {
  background: var(--success);
}

.app-toast.toast-error {
  background: var(--danger);
}

.app-toast.toast-info {
  background: var(--primary);
}

@media (min-width: 769px) {
  .app-toast {
    bottom: 32px;
  }
}

/* ============================================
   Policy Box
   ============================================ */
.policy-box {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  border-left: 4px solid var(--accent);
}

.policy-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.policy-box ul {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.policy-box li {
  padding: 2px 0;
}

.policy-box li::before {
  content: '•';
  margin-right: 8px;
  color: var(--accent);
}

/* ============================================
   Admin - Citas y Strikes
   ============================================ */
.cita-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gray-200);
  margin-bottom: 12px;
}

.cita-card.confirmed {
  border-left-color: var(--success);
}

.cita-card.pending {
  border-left-color: var(--warning);
}

.cita-card.cancelled {
  border-left-color: var(--danger);
}

.cita-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cita-card-time {
  font-weight: 700;
  font-size: 1rem;
}

.cita-card-participants {
  color: var(--gray-700);
  font-size: 0.9rem;
}

.cita-card-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.cita-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Strikes display */
.strikes-list {
  display: grid;
  gap: 8px;
}

.strike-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.strike-count {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.strike-count.warning {
  background: #FEF3CD;
  color: #856404;
}

.strike-count.suspended {
  background: var(--danger-light);
  color: var(--danger);
}

.strike-count.clean {
  background: var(--success-light);
  color: var(--success);
}

/* ============================================
   Pagos admin (texto arriba, botones abajo)
   ============================================ */
.pago-item {
  display: block;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.pago-info {
  min-width: 0;
}

.pago-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

@media (min-width: 640px) {
  .pago-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.pago-actions .admin-btn-sm {
  width: 100%;
  padding: 10px;
}

.pago-thumb {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  margin-top: 8px;
  cursor: zoom-in;
  background: var(--white);
}

/* Zoom de imágenes */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  cursor: zoom-out;
}

.image-zoom-overlay img {
  max-width: min(94vw, 900px);
  max-height: 78vh;
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: default;
}

.image-zoom-close {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* Export button */
.export-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.export-info h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.export-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   Responsive additions
   ============================================ */
@media (max-width: 600px) {
  .schedule-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-steps {
    gap: 6px;
  }

  .booking-step {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .princess-schedule-slots {
    gap: 4px;
  }

  .slot-available {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .export-section {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   Portales - Mobile Styles
   ============================================ */
@media (max-width: 600px) {
  /* Portal Header */
  .portal-header {
    padding: 16px 0;
  }

  .portal-greeting {
    font-size: 1.1rem;
  }

  .portal-greeting span {
    font-size: 0.8rem;
  }

  /* Portal Tabs */
  .portal-tabs {
    gap: 6px;
    margin-bottom: 16px;
  }

  .portal-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* Invitation Cards */
  .invitation-card-header {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .invitation-video {
    width: 100%;
    height: 180px;
  }

  .invitation-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .invitation-name {
    font-size: 1.1rem;
  }

  .invitation-datetime {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  /* Invitation Actions */
  .invitation-actions {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .invitation-actions .btn {
    width: 100%;
    padding: 14px;
  }

  /* Status Bar */
  .invitation-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  /* Payment Box */
  .payment-box {
    padding: 16px;
    margin-top: 12px;
  }

  .payment-yape-number {
    font-size: 1.3rem;
  }

  .upload-receipt {
    padding: 16px;
  }

  /* Confirmed Card */
  .confirmed-card {
    padding: 16px;
  }

  .meet-link-box {
    padding: 12px;
  }

  /* Empty State */
  .empty-state {
    padding: 40px 16px;
  }

  .empty-state-icon {
    font-size: 2.5rem;
  }

  /* Video Modal */
  .video-modal {
    padding: 16px;
    margin: 0 16px;
  }

  /* Interested Princess */
  .interested-princess {
    padding: 12px;
    gap: 10px;
  }

  .interested-princess .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* WhatsApp Input */
  .whatsapp-input-group {
    gap: 6px;
  }

  .whatsapp-input-group .country-code {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Admin Cards */
  .cita-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .cita-card-actions {
    flex-wrap: wrap;
  }

  .cita-card-actions .admin-btn-sm {
    flex: 1;
    min-width: 120px;
  }

  /* Admin Item */
  .admin-item {
    flex-wrap: wrap;
  }

  .admin-item-info {
    flex: 1 1 100%;
    order: 1;
  }

  .admin-item-actions {
    flex: 1 1 100%;
    order: 2;
  }

  /* Weekly Calendar: los 7 días siempre visibles en móvil */
  .weekly-calendar-days {
    gap: 3px;
    padding: 8px;
  }

  .weekly-day-cell {
    padding: 6px 2px;
    min-height: 44px;
  }

  .weekly-day-name {
    font-size: 0.58rem;
  }

  .weekly-day-number {
    font-size: 0.9rem;
  }

  .weekly-day-indicator {
    font-size: 0.5rem;
  }

  /* Day Slots Panel */
  .day-slots-panel {
    padding: 12px;
  }

  .schedule-slot-btn {
    padding: 10px 8px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-legal {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Buttons */
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  /* Tables in policy */
  table {
    display: block;
    overflow-x: auto;
  }
}

/* ============================================
   Small phones (iPhone SE, etc)
   ============================================ */
@media (max-width: 375px) {
  .portal-tab {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .invitation-video {
    height: 160px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .form-input {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* ============================================
   Touch-friendly tap targets
   ============================================ */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
  }

  .portal-tab {
    min-height: 44px;
  }

  .invitation-actions .btn {
    min-height: 50px;
  }

  .upload-receipt {
    min-height: 100px;
  }

  .toggle-switch {
    min-width: 52px;
    min-height: 28px;
  }
}

/* ============================================
   Mobile: prevención de scroll horizontal
   ============================================ */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .btn {
    white-space: normal;
    word-break: break-word;
  }

  .modal {
    max-width: 100%;
  }

  .modal-grid > * {
    min-width: 0;
  }

  .schedule-summary,
  .admin-item-name,
  .admin-item-meta,
  .policy-box,
  .payment-box {
    overflow-wrap: anywhere;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay {
    padding: 12px;
  }

  .inline-recharge {
    padding: 12px;
  }

  .yape-checkout {
    padding: 12px;
  }

  .pay-rows {
    gap: 10px;
  }

  .pay-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .pay-row .copy-chip {
    align-self: flex-end;
  }
}

/* ============================================
   Modal de video / Mi perfil (portales)
   ============================================ */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-overlay.active {
  display: flex;
}

.video-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  max-height: 86vh;
  overflow-y: auto;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  z-index: 1;
}

.video-modal-player {
  margin: 8px 0 12px;
}

.video-modal-player video {
  display: block;
  width: 100%;
  max-height: 52vh;
  border-radius: 12px;
  background: #000;
}

.video-modal-poster {
  display: block;
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.video-placeholder {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9/16;
  margin: 16px auto 0;
  background: linear-gradient(135deg, var(--primary-light), var(--gray-200));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.portal-header .container {
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   Bottom nav (PWA mobile)
   ============================================ */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body.has-bottom-nav .portal-tabs {
    display: none;
  }

  body.has-bottom-nav .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    height: calc(69px + env(safe-area-inset-bottom));
  }

  body.has-bottom-nav .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.has-bottom-nav .bottom-nav .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--gray-500);
    font-size: 0.62rem;
    font-weight: 600;
    min-height: 52px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
  }

  body.has-bottom-nav .bottom-nav .bottom-nav-item .bn-icon {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
  }

  body.has-bottom-nav .bottom-nav .bn-badge {
    position: absolute;
    top: -5px;
    right: -11px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 800;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--white);
  }

  body.has-bottom-nav .bottom-nav .bn-badge.show {
    display: flex;
  }

  /* El feed se ancla con position: fixed entre el header y la barra, el mismo
     sistema de coordenadas que usa .bottom-nav (también fixed): el borde
     inferior queda SIEMPRE pegado a la barra. La fórmula con 100dvh se
     descartaba porque dvh cambia con la barra de direcciones de Android al
     recargar y el botón quedaba tapado de forma intermitente. */
  body.has-bottom-nav .catalog-feed {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 69px;
    bottom: calc(69px + env(safe-area-inset-bottom));
    height: auto;
  }

  body.has-bottom-nav .catalog-feed .feed-item {
    height: 100%;
  }

  /* El feed de gents se dimensiona con altura explícita en su propia página
     (catalogo-princesas.html): fin exacto contra la bottom-nav. */

  body.has-bottom-nav .bottom-nav .bottom-nav-item.active {
    background: var(--gray-900);
    color: var(--white);
  }

  body.has-bottom-nav .bottom-nav .bottom-nav-item:not(.active):hover {
    background: var(--gray-50);
  }

  body.has-bottom-nav .container[style*="padding-bottom"] {
    padding-bottom: 100px !important;
  }
}

@media (max-width: 420px) {
  /* Barra de la princesa con 6 ítems: etiquetas más compactas para que
     "Invitaciones" no desborde en pantallas angostas. */
  body.has-bottom-nav.nav-princess .bottom-nav .bottom-nav-item {
    font-size: 0.55rem;
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 340px) {
  body.has-bottom-nav .bottom-nav .bottom-nav-item {
    font-size: 0.55rem;
  }

  body.has-bottom-nav .bottom-nav .bottom-nav-item .bn-icon {
    font-size: 1.1rem;
  }
}

/* ============================================
   Stepper de registro
   ============================================ */
.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stepper-indicator {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-top: 4px;
  color: var(--gray-500);
  text-align: center;
}

.stepper-indicator:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 3px;
  background: var(--gray-200);
  border-radius: 999px;
}

.stepper-indicator.done:not(:last-child)::after {
  background: var(--gray-900);
}

.stepper-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.stepper-indicator.active .stepper-dot {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.stepper-indicator.done .stepper-dot {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
}

.stepper-indicator.active .stepper-label {
  color: var(--gray-900);
  font-weight: 700;
}

.stepper-indicator.done .stepper-label {
  color: var(--gray-700);
}

.stepper-label {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.step-nav-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 24px;
}

.step-nav-row .step-nav {
  flex: 1;
}

.step-nav-row .step-nav[data-nav="prev"] {
  flex: 0 0 auto;
  min-width: 110px;
}

@media (max-width: 480px) {
  .stepper-label {
    font-size: 0.62rem;
  }

  .stepper-dot {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .stepper-indicator:not(:last-child)::after {
    top: 18px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
  }
}

/* ============================================
   Index: landing continua + indicador de sección (≤768px)
   ============================================ */
.stories-dots {
  display: none;
}

.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  body.has-sticky-cta {
    padding-bottom: 84px;
  }

  .stories-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 900;
    pointer-events: none;
  }

  .stories-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
  }

  .stories-dot.active {
    background: var(--primary);
    transform: scale(1.35);
  }

  /* CTA fijo inferior (patrón de landing de apps) */
  .sticky-cta {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--gray-200);
    z-index: 1400;
    transition: transform 0.25s ease;
  }

  .sticky-cta.hidden {
    transform: translateY(115%);
  }

  .sticky-cta-btn {
    flex: 1;
    padding: 12px 6px;
    font-size: 0.88rem;
    text-align: center;
    white-space: nowrap;
  }
}

/* ============================================
   Instalar app (PWA): sección + botones header
   ============================================ */
.nav-install {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.nav-install:hover {
  color: var(--primary);
}

.nav-install-mobile {
  display: none;
}

@media (max-width: 600px) {
  .nav-install-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    margin-right: 8px;
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-dark);
    white-space: nowrap;
  }

  .nav-install-mobile:hover {
    background: var(--primary);
    color: #fff;
  }
}

@media (max-width: 350px) {
  .nav-install-mobile {
    width: 34px;
    height: 34px;
    padding: 0;
    gap: 0;
  }

  .nav-install-mobile .nav-install-label {
    display: none;
  }
}

.install-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .install-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.install-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
}

.install-card-android {
  background: var(--primary-light);
  border: none;
}

.install-card-iphone {
  background: #FFF7EC;
  border: none;
}

.install-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.install-card-android .install-card-title {
  color: var(--primary-dark);
}

.install-card-iphone .install-card-title {
  color: #A67C2E;
}

.install-auto-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.install-auto-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.install-auto-btn:hover {
  background: var(--primary-dark);
}

.install-auto-note {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-top: 10px;
}

.install-fallback-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 16px;
  margin-bottom: 8px;
}

.install-steps {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.install-note {
  font-size: 0.83rem;
  color: var(--gray-600);
  margin-top: 12px;
}

.install-footer-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--gray-600);
  text-align: center;
  margin-top: 20px;
}
