/* ============================================
   KOKEN - Design System & Styles
   ============================================ */
 
/* CSS Custom Properties (Design Tokens) */
:root {
  /* Colors - Primary */
  --color-primary: #4E69F4;
  --color-primary-hover: #3D54D9;
  --color-primary-light: #B0BDFC;
  
  /* Colors - Background */
  --bg-dark: #161822;
  --bg-dark-secondary: #222535;
  --bg-light: #F8F9FA;
  --bg-light-secondary: #F5F6FA;
  --bg-card: #222535;
  
  /* Colors - Text */
  --text-1: #FFFFFF;
  --text-2: #E9EAF0;
  --text-3: #B5B7C1;
  --text-4: #E6E9FD;
  --text-light: #FFFFFF;
  --text-light-secondary: rgba(255, 255, 255, 0.7);
  
  /* Colors - Status */
  --status-favorable: #578307;
  --status-grave: #BF5722;
  --status-optimal: #4E5579;
  
  /* Colors - Borders */
  --border-light: #E5E7EB;
  --border-dark: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-headline: 'Figtree', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Font Sizes */
  --font-size-xxs: 8px;
  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 42px;
  --font-size-5xl: 64px;
  
  /* Line Heights */
  --line-height-xxs: 10px;
  --line-height-xs: 14px;
  --line-height-sm: 18px;
  --line-height-md: 22px;
  --line-height-lg: 26px;
  --line-height-xl: 32px;
  --line-height-2xl: 48px;
  --line-height-3xl: 64px;
  
  /* Spacing */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 100px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Header height: padding-top (32px) + logo height (32px) + padding-bottom (28px) = 92px */
  --header-height: 92px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(34, 37, 53, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.3);
  padding: 32px 80px 28px 80px;
}

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

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 53px;
  height: 32px;
}

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

.nav-link {
  color: var(--text-1);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 4px 0;
  transition: all var(--transition-fast);
  border-bottom: 1.5px solid transparent;
}

.nav-link:hover {
  color: var(--text-1);
  opacity: 0.8;
}

.nav-link.active {
  color: var(--text-1);
  border-bottom: 1.5px solid #415AD8;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-1);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-logout-btn {
  margin-left: 16px;
}

.mobile-logout-btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 16px;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-primary);
  color: var(--text-light);
  font-weight: 600;
  font-size: var(--font-size-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  color: var(--text-light-secondary);
  font-weight: 500;
  font-size: var(--font-size-md);
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--text-light);
  color: var(--text-1);
  font-weight: 600;
  font-size: var(--font-size-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary-light:hover {
  background: var(--bg-light-secondary);
  transform: translateY(-1px);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-xl);
  background: transparent;
  color: var(--text-light);
  font-weight: 500;
  font-size: var(--font-size-md);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 148px var(--spacing-lg) 80px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 88px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.hero-main-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 64px;
  color: #ffffff;
  text-align: left;
  margin: 0;
  width: 100%;
}

.hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: #ffffff;
  text-align: left;
  margin: 0;
  max-width: 843px;
}

.hero-interactive-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.role-selector-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 48px;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

.role-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.role-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.role-card {
  width: 200px;
  height: 140px;
  background: #222535;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.role-card:hover,
.role-card.active {
  background: #677FF9;
  color: #ffffff;
  box-shadow: 0px 5px 30px 10px rgba(103, 127, 249, 0.15);
  transform: translateY(-4px);
}

.role-card span {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.role-card svg {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

.role-card .role-card-icon-bg {
  fill: rgba(255, 255, 255, 0);
  fill-opacity: 0;
  color: rgba(255, 255, 255, 0);
  transition: all 0.3s ease;
}

.role-card:hover .role-card-icon-bg,
.role-card.active .role-card-icon-bg {
  fill: rgba(255, 255, 255, 0);
  fill-opacity: 0;
  color: rgba(255, 255, 255, 0);
}

.role-card svg path,
.role-card svg circle:not(.role-card-icon-bg) {
  stroke: #677FF9;
  transition: all 0.3s ease;
}

.role-card:hover svg path,
.role-card.active svg path,
.role-card:hover svg circle:not(.role-card-icon-bg),
.role-card.active svg circle:not(.role-card-icon-bg) {
  stroke: #ffffff;
}

/* Special handling for filled paths if any */
.role-card svg path[fill] {
  fill: #677FF9;
  stroke: none;
}

.role-card:hover svg path[fill],
.role-card.active svg path[fill] {
  fill: #ffffff;
  stroke: none;
}

/* ============================================
   Mascotas 2 - Hero Section
   ============================================ */
.mascotas2-hero-section {
  background: var(--bg-dark);
  padding: 80px 80px 40px;
}

.mascotas2-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mascotas2-hero-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
}

.mascotas2-hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
  max-width: 520px;
}

/* ============================================
   Pet Card Creator Section
   ============================================ */
.pet-card-creator {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.creator-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: stretch;
  position: relative;
}

/* Form Styles */
.creator-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text-1);
  margin: 0;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section-title {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: #7d7f8b;
  margin: 0;
}

.form-inputs-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-input-rounded {
  background: var(--bg-dark-secondary);
  border: none;
  border-radius: 100px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
  position: relative;
}

.form-input-rounded:focus-within {
  border: none;
  box-shadow: 0 0 0 3px rgba(78, 105, 244, 0.1);
}

.form-input-text {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  color: var(--text-1);
  padding: 0;
}

.form-input-text::placeholder {
  color: var(--text-3);
}

/* Date input styling */
input[type="date"] {
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  position: relative;
  width: 100%;
  background: transparent;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: invert(1);
  margin-left: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input[type="date"]::-webkit-datetime-edit-text {
  color: var(--text-1);
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text-1);
}

/* Hide date input text when empty */
.form-input-rounded.date-empty input[type="date"]::-webkit-datetime-edit {
  opacity: 0;
}

.form-input-rounded.date-empty input[type="date"]::-webkit-datetime-edit-text,
.form-input-rounded.date-empty input[type="date"]::-webkit-datetime-edit-month-field,
.form-input-rounded.date-empty input[type="date"]::-webkit-datetime-edit-day-field,
.form-input-rounded.date-empty input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 0;
}

/* Show date input text when focused or has value */
.form-input-rounded.date-empty:focus-within input[type="date"]::-webkit-datetime-edit,
.form-input-rounded.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-text,
.form-input-rounded.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-month-field,
.form-input-rounded.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-day-field,
.form-input-rounded.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 1;
  color: var(--text-1);
}

/* When input has value, show it */
.form-input-rounded:not(.date-empty) input[type="date"]::-webkit-datetime-edit,
.form-input-rounded:not(.date-empty) input[type="date"]::-webkit-datetime-edit-text,
.form-input-rounded:not(.date-empty) input[type="date"]::-webkit-datetime-edit-month-field,
.form-input-rounded:not(.date-empty) input[type="date"]::-webkit-datetime-edit-day-field,
.form-input-rounded:not(.date-empty) input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 1;
  color: var(--text-1);
}

input[type="date"]:focus::-webkit-datetime-edit-text,
input[type="date"]:focus::-webkit-datetime-edit-month-field,
input[type="date"]:focus::-webkit-datetime-edit-day-field,
input[type="date"]:focus::-webkit-datetime-edit-year-field {
  color: var(--text-1);
}

/* Firefox date input styling */
input[type="date"]::-moz-placeholder {
  color: var(--text-3);
  opacity: 1;
}

input[type="date"]::placeholder {
  color: var(--text-3);
}

/* Placeholder effect for empty date inputs */
.form-input-rounded.date-empty::after {
  content: "DD/MMM/AAAA";
  position: absolute;
  left: 16px;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  pointer-events: none;
  z-index: 1;
}

.form-input-rounded.date-empty:focus-within::after {
  display: none;
}

/* Placeholder for date inputs inside form-input-filled */
.form-input-filled.date-empty::after {
  content: "DD/MMM/AAAA";
  position: absolute;
  left: 16px;
  bottom: 8px;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  pointer-events: none;
  z-index: 1;
}

.form-input-filled.date-empty:focus-within::after {
  display: none;
}

/* Hide date input text when empty in form-input-filled */
.form-input-filled.date-empty input[type="date"]::-webkit-datetime-edit {
  opacity: 0;
}

.form-input-filled.date-empty input[type="date"]::-webkit-datetime-edit-text,
.form-input-filled.date-empty input[type="date"]::-webkit-datetime-edit-month-field,
.form-input-filled.date-empty input[type="date"]::-webkit-datetime-edit-day-field,
.form-input-filled.date-empty input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 0;
}

/* Show date input text when focused or has value in form-input-filled */
.form-input-filled.date-empty:focus-within input[type="date"]::-webkit-datetime-edit,
.form-input-filled.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-text,
.form-input-filled.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-month-field,
.form-input-filled.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-day-field,
.form-input-filled.date-empty:focus-within input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 1;
  color: var(--text-1);
}

.form-input-filled:not(.date-empty) input[type="date"]::-webkit-datetime-edit,
.form-input-filled:not(.date-empty) input[type="date"]::-webkit-datetime-edit-text,
.form-input-filled:not(.date-empty) input[type="date"]::-webkit-datetime-edit-month-field,
.form-input-filled:not(.date-empty) input[type="date"]::-webkit-datetime-edit-day-field,
.form-input-filled:not(.date-empty) input[type="date"]::-webkit-datetime-edit-year-field {
  opacity: 1;
  color: var(--text-1);
}

.form-input-filled {
  background: var(--bg-dark-secondary);
  border: none;
  border-radius: 100px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  position: relative;
}

.form-input-filled input[type="date"] {
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.input-label-small {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1;
  color: var(--text-3);
  margin-bottom: 2px;
}

.input-value {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-1);
}

.check-icon {
  width: 10px;
  height: 12px;
}

.form-input-with-suffix {
  position: relative;
}

.input-suffix {
  position: absolute;
  right: 16px;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  color: #7d7f8b;
  pointer-events: none;
}

.form-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-left: 12px;
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 12px;
  min-width: 125px;
}

.hint-dot {
  width: 2px;
  height: 2px;
  background: #4e69f4;
  border-radius: 50%;
  flex-shrink: 0;
}

.form-hint span:last-child {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  color: #7d7f8b;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-field {
  flex: 1;
}

/* Profile Upload Section */
.profile-upload-section {
  display: flex;
  gap: 24px;
  align-items: center;
}

.profile-img-preview {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-upload-info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex: 1;
  align-items: center;
}

.profile-upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 auto;
  width: fit-content;
}

.profile-upload-title {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text-1);
  margin: 0;
  width: fit-content;
}

.profile-upload-subtitle {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  color: var(--text-2);
  margin: 0;
  width: fit-content;
}

.btn-upload {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #4e69f4;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
  transition: all var(--transition-fast);
  width: 105px;
}

.btn-upload:hover {
  background: var(--color-primary-hover);
}

.upload-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Color Picker Section */
.color-species-row {
  display: flex;
  gap: 90px;
  align-items: flex-end;
}

.color-picker-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.color-picker-label {
  font-family: var(--font-headline);
  font-size: 8px;
  font-weight: 500;
  line-height: 10px;
  color: #7d7f8b;
  margin: 0;
}

.color-picker-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.color-picker-btn {
  width: 24px;
  height: 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.color-picker-btn.selected {
  border: 1px solid #F1F2F8;
}

/* Species Selector */
.species-selector-section {
  flex: 1;
}

.species-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark-secondary);
  border: none;
  border-radius: 100px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.species-selector-btn:hover {
  border: none;
}

.species-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(95%) sepia(2%) saturate(200%) hue-rotate(200deg) brightness(98%) contrast(95%);
  /* This filter approximates #E9EAF0 color */
}

.chevron-icon {
  width: 9.63px;
  height: 5.25px;
  margin-left: auto;
}

/* Select Styles */
.form-select-rounded {
  background: var(--bg-dark-secondary);
  border: none;
  border-radius: 100px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-select-rounded:hover {
  border: none;
}

.select-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  color: var(--text-2);
}

/* Dropdown Styles */
.species-selector-section,
.form-field {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-dark-secondary);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-item {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  color: var(--text-1);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Characteristics Input */
.characteristics-input {
  margin-bottom: 0;
}

.characteristics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.characteristic-chip {
  background: rgba(78, 105, 244, 0.1);
  color: #4e5579;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  padding: 6px 10px;
  border-radius: 100px;
}

/* Checkbox Styles */
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  flex: 1;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #677FF9;
  background: #677FF9;
  cursor: pointer;
  appearance: none;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.form-checkbox:checked {
  background: #677FF9;
  border-color: #677FF9;
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-field label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  color: var(--text-1);
  cursor: pointer;
}

/* History Section */
.history-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: #7d7f8b;
  margin: 0;
}

.history-inputs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.history-inputs-row .form-field {
  flex: 1;
  min-width: 120px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.btn-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #E6E9FD;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  padding: 4px 6px;
  transition: all var(--transition-fast);
}

.btn-reset:hover {
  opacity: 0.8;
}

.reset-icon {
  width: 14px;
  height: 14px;
}

/* Preview Card Styles - Glassmorphism */
.creator-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  height: 100%;
}

.pet-card-glass {
  background: transparent;
  backdrop-filter: blur(41px);
  -webkit-backdrop-filter: blur(41px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px 24px 24px 18px;
  padding: 24px 28px 28px 28px;
  box-shadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - 20px);
  overflow-y: auto;
  box-sizing: border-box;
}

.card-menu-btn {
  position: absolute;
  top: 8px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color var(--transition-fast);
}

.card-menu-btn:hover {
  color: var(--text-1);
}

.card-menu-btn i {
  font-size: 20px;
}

/* Pet Info Header */
.pet-info-header {
  display: flex;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pet-detail-item-inline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pet-img-container {
  position: relative;
}

.pet-img-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  background: #ffcaaf;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-img-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  object-fit: cover;
}

.pet-name-gender {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px 0 8px;
  position: relative;
}

.pet-name-display {
  display: flex;
  flex-direction: column;
}

.pet-name-first,
.pet-name-last {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text-1);
}

.pet-gender-icon {
  position: absolute;
  top: -16px;
  right: -8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.pet-gender-icon i {
  font-size: 20px;
}

.pet-status-badges {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-left: auto;
  flex-direction: row;
  justify-content: flex-start;
}

.status-badge-general {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  background: rgba(155, 232, 11, 0.4);
  padding: 6px 16px 6px 12px;
  border-radius: 100px;
  height: 28px;
}

.status-badge-general .status-icon {
  font-size: 16px;
  color: inherit;
}

.status-badge-general span {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  color: var(--text-1);
}

.status-badge-prognosis {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 186, 9, 0.25);
  width: 16px;
  height: 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  color: #ffffff;
  align-self: flex-start;
}

/* Pet Info Details */
.pet-info-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.pet-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.detail-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-1);
}

.detail-value-with-icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-value-with-icon img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(95%) sepia(2%) saturate(200%) hue-rotate(200deg) brightness(98%) contrast(95%);
  /* This filter approximates #E9EAF0 color */
}

.detail-value-with-icon span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-1);
}

.age-weight {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
}

.age-display,
.weight-display {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
}

.age-value {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.age-number {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-1);
}

.age-unit {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  color: var(--text-1);
}

.age-unit-small {
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 10px;
  color: var(--text-1);
}

.weight-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.weight-number {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-1);
}

.weight-unit {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-1);
}

/* Characteristics */
.pet-characteristics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.characteristics-label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}

.characteristics-chips-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.characteristic-chip {
  background: rgba(78, 105, 244, 0.1);
  color: var(--text-4);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  padding: 6px 10px;
  border-radius: 100px;
}

/* Contact Info */
.pet-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.contact-item img {
  width: 18px;
  height: 18px;
}

.contact-item span {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  color: var(--text-3);
}

/* Preventive Timeline */
.pet-preventive-timeline {
  display: flex;
  gap: 16px 28px;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}

.timeline-card {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
}

.timeline-card.warning {
  background: rgba(217, 200, 12, 0.25);
}

.timeline-card.success {
  background: rgba(195, 241, 109, 0.2);
}

.timeline-month {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
  color: var(--text-1);
}

.timeline-day {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.1;
  color: var(--text-1);
}

.timeline-year {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
  color: var(--text-1);
}

/* Death Info */
.pet-death-info {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}

.death-date {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.death-label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}

.death-value {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  color: var(--text-4);
}

.death-reason {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.death-reason-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.death-reason-label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}

.pending-notes-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.pending-notes-icon i {
  font-size: 14px;
}

.badge-dot-small {
  position: absolute;
  top: -4px;
  right: -3px;
  width: 4px;
  height: 4px;
  background: #4e69f4;
  border-radius: 100px;
}

.death-reason-chip {
  background: rgba(78, 105, 244, 0.1);
  padding: 6px 10px;
  border-radius: 100px;
  width: auto;
}

.death-reason-chip span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  color: var(--text-4);
}

/* Save Button */
.btn-save-disabled {
  width: 100%;
  background: rgba(211, 213, 222, 0.5);
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: #b7b9c2;
  cursor: not-allowed;
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.search-container {
  max-width: 624px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #222535;
  border: none;
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.search-bar:focus-within {
  box-shadow: none;
}

.search-icon {
  color: #e6e9fd;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.search-input {
  flex: 1;
  background: transparent;
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #e6e9fd;
  padding: 0;
}

.search-input::placeholder {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #e6e9fd;
}

.search-btn {
  display: none;
}

.search-suggestions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
  background: rgba(34, 37, 53, 0.2);
  backdrop-filter: blur(41px);
  -webkit-backdrop-filter: blur(41px);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0px 8px 14px 8px rgba(0, 0, 0, 0.2);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #222535;
  border: none;
  border-radius: 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.suggestion-item:hover {
  background: rgba(78, 105, 244, 0.2);
  transform: translateX(4px);
}

.suggestion-item:active {
  background: rgba(78, 105, 244, 0.3);
  transform: translateX(2px);
}

.suggestion-item i {
  flex-shrink: 0;
  font-size: 14px;
  color: #e9eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #e9eaf0;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.features-title {
  font-family: var(--font-headline);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-light);
  text-align: center;
  margin: 0;
  width: 100%;
}

.features-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  color: #ffffff;
  text-align: center;

  width: 100%;
}

.features-subtitle p {
  margin: 0 auto 8px auto;
  max-width: 624px;
}

.features-subtitle p:last-child {
  margin-bottom: 0;
}

.features-cta-btn {
  width: 100%;
  max-width: 405px;
  height: 48px;
  padding: 0 24px;
  background: #677FF9;
  font-family: 'Work Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 0;
  align-self: center;
}

/* ============================================
   Features Tabs & Tags Section
   ============================================ */
.features-tabs-section {
  background: var(--bg-dark);
  padding: 40px 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-tabs-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-tabs {
  display: flex;
  justify-content: center;
}

.feature-tab {
  padding: 0;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 24px;
}

.feature-tag {
  padding: 10px 28px;
  background: transparent;
  border: 1.25px solid #677ff9;
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #e6e9fd;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.feature-tag:hover {
  opacity: 0.8;
}

/* ============================================
   Agenda Section
   ============================================ */
.agenda-section {
  background: var(--bg-dark);
  padding: 40px 80px;
  text-align: center;
}

.agenda-container {
  max-width: 1000px;
  margin: 0 auto;
}

.agenda-title {
  font-family: var(--font-headline);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: var(--spacing-2xl);
}

.agenda-stack-image {
  display: block;
  margin: 0 auto var(--spacing-xl);
  object-fit: contain;
}

.agenda-stack-desktop {
  width: 844px;
  height: 480px;
  display: block;
}

.agenda-stack-mobile {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.agenda-pets {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.agenda-pet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 100px;
}

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

.agenda-pet-card.active {
  border-width: 2px;
}

.agenda-pet-card img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.agenda-pet-name {
  font-weight: 500;
  color: var(--text-1);
  font-size: var(--font-size-sm);
}

.agenda-pet-time {
  font-size: var(--font-size-xs);
  color: var(--text-2);
}

.agenda-description {
  font-size: var(--font-size-md);
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   AI Assistant Section
   ============================================ */
.assistant-section {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) 80px;
}

.assistant-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  position: relative;
}

/* Left Column */
.assistant-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  max-width: 800px;
}

.assistant-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: var(--font-size-4xl); /* Changed to match section titles (42px) */
  line-height: 1.1;
  color: var(--text-light);
  margin: 0;
}

.assistant-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-left: -80px;
  margin-right: -80px;
  padding-left: 80px;
  padding-right: 80px;
}

.assistant-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: transparent;
  border-radius: 10px;
  width: 100%;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container {
  width: 100%;
  height: 100%;
  color: var(--color-primary); /* Sets fill/stroke color for embedded SVGs */
}

.feature-svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Styling for specific SVGs if needed */
/* The embedded SVGs use fill="currentColor" on paths now */

.feature-description {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: var(--text-light);
  margin: 0;
}

/* Right Column - Sidebar Interface */
.assistant-sidebar-wrapper {
  flex-shrink: 0;
}

.assistant-sidebar {
  width: 380px;
  height: 800px;
  background: #222535; /* Dark Theme Background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Sidebar Header */
.assistant-header {
  background: rgba(34, 37, 53, 0.8); /* Semi-transparent dark header */
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-box {
  width: 32px;
  height: 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 20px;
}

.header-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.header-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #FFFFFF;
}

.header-subtitle {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #FFFFFF;
  opacity: 0.8;
}

.header-close-btn {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
}

.header-close-btn:hover {
  color: #FFFFFF;
}

/* Assistant Content */
.assistant-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Suggestions History */
.suggestions-history {
  background: rgba(34, 37, 53, 0.6);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.history-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: #FFFFFF;
  margin: 0;
}

.history-header i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.status-icon-box.info {
  background: rgba(78, 105, 244, 0.2);
  color: #4E69F4;
}

.status-icon-box.error {
  background: rgba(245, 100, 98, 0.2);
  color: #F56462;
}

.history-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
}

.history-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.history-divider {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.divider-line {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

/* Main Area */
.assistant-main-area {
  padding: 0 16px 24px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  gap: 16px;
}

.welcome-header {
  text-align: center;
  margin-bottom: 8px;
}

.welcome-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: #FFFFFF;
  margin: 0;
}

.highlight-name {
  color: var(--color-primary);
}

.welcome-card {
  background: #1E202B;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-card-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
}

.card-close-btn {
  color: rgba(255, 255, 255, 0.5);
}

.card-close-btn:hover {
  color: #FFFFFF;
}

.terms-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.terms-text a {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  text-decoration: underline;
  color: #FFFFFF;
}

/* Input Area */
.assistant-input-area {
  background: #2A2D3D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-placeholder {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  padding: 0 4px;
}

.input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-buttons-left {
  display: flex;
  gap: 8px;
}

.action-btn, .send-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.action-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.send-btn {
  width: 28px;
  height: 28px;
}

.send-btn:hover {
  color: var(--color-primary);
  background: rgba(78, 105, 244, 0.1);
}

.input-actions i {
  font-size: 18px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-icon {
  width: 32px;
  height: 32px;
}

/* Mobile Menu Overlay - shown only on mobile when menu is open */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #0a0c14;
  z-index: 1000;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 40px 28px 40px;
}

.mobile-menu-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close-icon {
  width: 32px;
  height: 32px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-link {
  color: var(--text-light);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 12px 0;
  transition: color var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-link:hover {
  color: var(--color-primary);
}

.mobile-menu-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

@media (max-width: 1000px) {
  .mobile-menu-overlay {
    display: flex;
  }
}

/* Mobile Show Card Button */
.mobile-show-card-btn-wrapper {
  display: none;
}

.btn-show-card {
  max-width: 332px;
  width: auto;
  height: 32px;
  border: 1px solid #677FF980;
  border-radius: 10px;
  background: transparent;
  color: #677FF9;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0 16px;
  box-sizing: border-box;
}

.btn-show-card:hover {
  background: rgba(103, 127, 249, 0.1);
}

/* Mobile Save Card Button */
.mobile-save-card-btn-wrapper {
  display: none;
}

.btn-save-card {
  max-width: 332px;
  width: auto;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: #677FF9;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0 16px;
  box-sizing: border-box;
}

.btn-save-card:hover {
  background: var(--color-primary-hover);
}

/* Responsive - Mobile (hide nav when container touches logo) */
@media (max-width: 1000px) {
  /* Header - Hide nav, show mobile menu button */
  .header {
    padding: 32px 40px 28px 40px;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Hero Section - Adjust font sizes */
  .hero-main-title {
    font-size: 32px !important;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 18px !important;
    line-height: 1.4;
  }

  /* Role Cards - Change to column */
  .role-cards {
    flex-direction: column;
    align-items: center;
  }

  /* Pet Card Creator - Change to column layout */
  .creator-container {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Add Pet Container - Change to column layout */
  .add-pet-container {
    grid-template-columns: 1fr !important;
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 32px var(--spacing-md) var(--spacing-2xl);
  }

  /* Hide preview card in add-pet-container on mobile */
  .add-pet-container .creator-preview {
    display: none !important;
  }

  /* Ensure form takes full width in add-pet-container on mobile */
  .add-pet-container .creator-form {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }

  /* Reduce padding on login-step for add-pet on mobile */
  .login-step[data-step="add-pet"] {
    padding: var(--spacing-2xl) 0 !important;
  }

  /* Remove side padding from add-pet-container on mobile */
  .add-pet-container {
    padding-left: var(--spacing-md) !important;
    padding-right: var(--spacing-md) !important;
  }

  /* Remove sticky effect from pet-card-glass */
  .pet-card-glass {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Hide pet-card-glass by default on mobile */
  .creator-preview {
    display: none;
  }

  .creator-preview.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .creator-preview.show .pet-card-glass {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-margin-top: calc(var(--header-height) + 16px);
  }

  /* Ensure form is visible on mobile */
  .creator-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-margin-top: calc(var(--header-height) + 16px);
  }

  /* Gap between form sections - override parent gap to 16px */
  .creator-form .form-section + .form-section {
    margin-top: -16px; /* Compensate: 32px parent gap - 16px desired = -16px */
  }

  .creator-form .form-section {
    gap: 16px; /* Internal gap within form section */
  }

  /* Show mobile buttons */
  .mobile-show-card-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    width: 100%;
  }

  .mobile-show-card-btn-wrapper .btn-show-card {
    width: 100%;
    max-width: 332px;
    min-width: 0;
  }

  .mobile-show-card-btn-wrapper .btn-reset {
    width: 100%;
    max-width: 332px;
    min-width: 0;
    height: 24px;
    justify-content: center;
  }

  .mobile-save-card-btn-wrapper {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    width: 100%;
  }

  .mobile-save-card-btn-wrapper .btn-save-card {
    width: 100%;
    max-width: 332px;
    min-width: 0;
  }

  /* Adjust form actions spacing */
  .form-actions {
    padding: 12px 0;
  }

  /* Form actions inside mobile-show-card-btn-wrapper should not have padding */
  .mobile-show-card-btn-wrapper .form-actions {
    padding: 0;
  }

  /* Override parent gap (32px) to 8px for form actions */
  .creator-form .form-actions.mobile-show-card-btn-wrapper {
    margin-bottom: -24px; /* Compensate: 32px parent gap - 8px desired = -24px */
  }

  /* Adjust section padding for mobile */
  .hero {
    padding: 148px 24px 80px;
  }

  .hero.visible {
    padding-bottom: 0px;
  }

  .hero-container {
    gap: 24px;
  }

  .role-cards {
    gap: 48px;
  }

  /* Mascotas 2 Hero - Responsive */
  .mascotas2-hero-section {
    padding: 60px 24px 32px;
  }

  .mascotas2-hero-title {
    font-size: 32px;
  }

  .mascotas2-hero-subtitle {
    font-size: 14px;
  }

  .pet-card-creator {
    padding: var(--spacing-3xl) 24px;
  }

  .pet-card-creator.visible {
    padding-top: 0;
  }

  /* Gap between hero and pet-card-creator sections */
  .hero.visible + .pet-card-creator.visible,
  .hero.visible ~ .pet-card-creator.visible {
    margin-top: 48px;
  }

  /* Search Section - Responsive */
  .search-section {
    padding: var(--spacing-3xl) 24px;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
  }

  .search-bar {
    width: 100%;
  }

  .search-suggestions {
    width: 100%;
  }

  /* Agenda Stack Image - Show mobile version, hide desktop */
  .agenda-stack-desktop {
    display: none !important;
  }

  .agenda-stack-mobile {
    display: block !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto var(--spacing-xl);
  }

  /* Form Row - Maintain same behavior on all mobile sizes */
  .form-row {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
  }

  .form-row .form-field {
    flex: 1;
    min-width: 0;
  }

  /* Profile Upload Section - Row layout on mobile */
  .profile-upload-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-upload-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
  }

  .profile-upload-text {
    width: auto;
  }

  .btn-upload {
    width: auto;
    min-width: 105px;
  }

  /* Color Species Row - Stack on mobile */
  .color-species-row {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .species-selector-section {
    width: 100%;
  }

  /* History Inputs Row - Better wrapping on mobile */
  .history-inputs-row {
    flex-direction: column;
    gap: 12px;
  }

  .history-inputs-row .form-field {
    min-width: 100%;
    width: 100%;
  }

  /* Gap between history sections is already handled by .form-inputs-group gap: 16px */

  /* Form inputs - Ensure they don't overflow */
  .form-input-rounded,
  .form-select-rounded,
  .species-selector-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Form hints - Better wrapping */
  .form-hints {
    flex-direction: column;
    gap: 4px;
  }

  .form-hint {
    min-width: auto;
    width: 100%;
  }

  /* Checkbox field - Better layout */
  .checkbox-field {
    padding: 0;
    min-width: auto;
  }

  /* Ensure form sections don't overflow */
  .form-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-inputs-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Profile upload section - Full width */
  .profile-upload-section {
    width: 100%;
    max-width: 100%;
  }

  /* Ensure all inputs are responsive */
  .form-input-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Characteristics chips - Better wrapping */
  .characteristics-chips {
    width: 100%;
  }

  /* Dropdown menus - Full width on mobile */
  .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
  }

  /* Text elements - Ensure they wrap properly */
  .form-title,
  .form-section-title {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Profile upload text - Better wrapping */
  .profile-upload-title,
  .profile-upload-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* History label - Better wrapping */
  .history-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Ensure no horizontal overflow */
  .creator-form * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Input suffix - Better positioning */
  .input-suffix {
    position: absolute;
    right: 16px;
    white-space: nowrap;
  }

  /* Features Section - Mobile styles */
  .features-section {
    padding: 48px 24px 0;
  }

  .features-container {
    gap: 36px;
  }

  .features-title {
    font-size: 36px;
    font-weight: 600;
  }

  .features-subtitle p {
    font-size: 20px;
    font-weight: 400;
  }

  .features-cta-btn {
    height: 40px;
  }

  .feature-tab {
    font-size: 24px;
  }

  .agenda-title {
    font-size: 40px;
  }

  .feature-tag {
    font-size: 12px;
    padding: 10px 20px;
  }

  .feature-tags {
    gap: 14px;
  }

  /* Assistant Section - Mobile styles */
  .assistant-section {
    padding: var(--spacing-3xl) 24px;
  }

  .assistant-title {
    font-size: 32px;
  }

  .assistant-features-list {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .feature-icon-wrapper {
    display: none;
  }

  .feature-description {
    font-size: 16px;
    text-align: left;
  }

  /* CTA Section - Mobile styles */
  .cta-title {
    font-size: 32px;
  }

  .cta-subtitle {
    font-size: 16px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .assistant-section {
    padding: var(--spacing-3xl) 24px;
  }

  .assistant-container {
    flex-direction: column;
    align-items: center;
  }
  
  .assistant-info {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .assistant-features-list {
    align-items: center;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .assistant-feature-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
  }
}

/* ============================================
   Alliances Section
   ============================================ */
.alliances-section {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) 80px;
  text-align: center;
}

.alliances-title {
  font-family: var(--font-headline);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-light-secondary);
  margin-bottom: var(--spacing-xl);
}

.alliances-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.alliance-logo {
  display: flex;
  justify-content: center;
  flex: 1;
}

.alliance-logo img {
  width: 175px;
  height: auto;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) 80px 0; /* Removing bottom padding to let image flush if needed, or adjust */
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
}

.cta-title {
  font-family: 'Figtree', sans-serif;
  font-size: 64px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 0;
}

.cta-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.4;
  margin: 0;
}

.cta-image-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
  /* Optional: border radius if screenshot suggests it, looks standard rectangle */
}

.cta-full-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Adjust focus on cat face */
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #11131A; /* Slightly darker or different shade */
  padding: 64px 80px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Top Row */
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.logo-suffix {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-footer-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 153px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s ease;
}

.btn-footer-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-footer-ghost.active {
  color: #677FF9;
  border-color: #677FF9;
}

.btn-footer-ghost.active:hover {
  border-color: rgba(103, 127, 249, 0.4);
}

.btn-footer-ghost.active i,
.btn-footer-ghost.active .ph {
  color: #677FF9;
}

.btn-footer-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 153px;
  padding: 10px 14px;
  background: #7B93FF; /* Lighter blue from screenshot */
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s ease;
}

.btn-footer-primary:hover {
  background: #677FF9;
}

/* Middle Row */
.footer-middle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-description {
  max-width: 403px;
  text-align: right;
}

.footer-description p {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
}

/* Bottom Row */
.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  color: #7B93FF; /* Link color */
  text-decoration: underline;
}

.separator {
  color: #FFFFFF;
  opacity: 0.2;
}

.footer-copyright {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright p {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-section {
    padding: var(--spacing-3xl) 40px 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cta-container {
    max-width: 100%;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-subtitle {
    font-size: 16px;
  }
  
  .cta-image-wrapper {
    height: 300px;
  }

  .footer {
    padding: 32px 40px 16px;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  
  .footer-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .footer-actions .btn-footer-ghost,
  .footer-actions .btn-footer-primary {
    width: 100%;
    min-height: 43px;
    border-radius: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
  }
  
  .footer-middle-row {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-description {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 32px;
  }

  .role-selector-title {
    font-size: 24px;
    line-height: 32px;
  }
  
  /* Note: creator-form padding is handled in the 860px media query */
  
  .cta-actions {
    flex-direction: column;
  }
  
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-main-title,
.hero-subtitle,
.role-selector-title {
  animation: fadeIn 0.8s ease-out;
}

.role-selector {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.badge-dot {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Utility Classes
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   SPA View System
   ============================================ */
.view-container {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

.view-container.active {
  display: block;
}

/* ============================================
   Login View
   ============================================ */
.login-step {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: var(--bg-dark);
}

.login-step.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-view {
  max-width: 730px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin-bottom: 24px;
}

.login-title {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-light);
  margin: 0;
  text-align: left;
}

.info-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.info-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-1);
}

.info-icon-btn i {
  font-size: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-fields-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 270px;
}

.login-actions-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  display: block;
}

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

.password-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.password-toggle {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--text-1);
}

.password-toggle i {
  font-size: 18px;
}

.login-btn {
  width: 100%;
  padding: 16px 24px;
  background: rgba(211, 213, 222, 0.5);
  border: none;
  border-radius: 100px;
  color: #b7b9c2;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: not-allowed;
  transition: all var(--transition-fast);
}

.login-btn:enabled {
  background: var(--color-primary);
  color: var(--text-light);
  cursor: pointer;
}

.login-btn:enabled:hover {
  background: var(--color-primary-hover);
}

.login-footer-links {
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-3);
}

.link-primary {
  color: var(--color-primary);
  text-decoration: none;
  margin-left: 4px;
  transition: color var(--transition-fast);
}

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

/* ============================================
   Verification SMS View
   ============================================ */
.verification-header-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
}

.verification-code-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 187px;
}

.verification-actions-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verification-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.verification-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
  text-align: center;
  margin: 0;
}

.verification-text span {
  color: var(--text-1);
  font-weight: 500;
}

.verification-code-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.code-input {
  width: 56px;
  height: 56px;
  background: var(--bg-dark-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-1);
  transition: all var(--transition-fast);
}

.code-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(78, 105, 244, 0.1);
}

.verification-footer-links {
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-3);
}

.btn-outline {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.verification-alternative {
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================================
   Pets List View
   ============================================ */
.pets-list-view {
  padding: 64px var(--spacing-lg) 0;
  background: var(--bg-dark);
  min-height: calc(100vh - var(--header-height));
}

.pets-list-header {
  text-align: center;
  margin-bottom: 48px;
}

.pets-list-title {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}

.pet-cards-carousel {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  margin-bottom: 32px;
  align-items: flex-start;
}

.pet-cards-carousel::-webkit-scrollbar {
  height: 8px;
}

.pet-cards-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.pet-cards-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.pet-cards-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pet-card-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
}

.pet-card-item .pet-card-glass {
  position: relative;
  top: 0;
  max-height: none;
  overflow-y: visible;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

.pet-edit-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.pet-edit-btn:hover {
  color: var(--text-1);
}

.pet-edit-btn i {
  font-size: 18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--color-primary);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================
   Add Pet View
   ============================================ */
.add-pet-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: stretch;
  padding: 64px var(--spacing-lg) var(--spacing-2xl);
}

.login-step[data-step="add-pet"].active {
  align-items: flex-start;
}

/* Save button outside form in add-pet-container */
.add-pet-container > .btn-show-card {
  width: 100%;
  max-width: 100%;
  margin-top: var(--spacing-2xl);
  grid-column: 1 / -1;
}

/* ============================================
   Placeholder Views
   ============================================ */
.placeholder-view {
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-3xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-dark);
}

.placeholder-view h2 {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}

.placeholder-view p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-3);
  margin: 0;
}

/* ============================================
   Contacto Page Styles
   ============================================ */
.contacto-section {
  background: var(--bg-dark);
  padding: var(--spacing-3xl) var(--spacing-lg);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.contacto-container {
  max-width: 830px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto-title {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
  margin: 0;
}

.contacto-description {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto-textarea-wrapper {
  min-height: 90px;
  padding: 12px 12px;
  align-items: flex-start;
  border-radius: 14px;
}

.contacto-textarea {
  width: 100%;
  min-height: 66px;
  resize: none;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.contacto-textarea::placeholder {
  color: var(--text-3);
}

.contacto-form .form-row {
  gap: 24px;
}

.btn-enviar {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background: #677FF9;
  color: var(--text-light);
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-enviar:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-enviar:active {
  transform: translateY(0);
}

.btn-enviar i {
  font-size: 20px;
}

/* Contacto Form - Responsive */
@media (max-width: 860px) {
  .contacto-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .contacto-container {
    gap: 32px;
  }

  .contacto-title {
    font-size: 24px;
  }

  .contacto-description {
    font-size: var(--font-size-sm);
  }

  .contacto-form .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .contacto-form .form-row .form-field {
    width: 100%;
  }
}

/* ============================================
   Nosotros Page Styles
   ============================================ */
#view-nosotros {
  background: var(--bg-dark);
  padding: 0;
  /* Only visible when navigated to via Nosotros link */
  display: none !important;
}

#view-nosotros.active {
  display: flex !important;
  flex-direction: column;
}

/* Hero Branding Section */
.nosotros-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--spacing-lg) var(--spacing-4xl);
  margin-top: 96px;
  min-height: 300px;
}

.nosotros-brand-logo {
  max-width: 405px;
  height: 73.92px;
  object-fit: contain;
}

/* Misión Central Section */
.nosotros-mission {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nosotros-mission h2 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  margin: 0;
  line-height: 1.3;
}

.nosotros-mission p {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

/* Narrativa con Kanji Section */
.nosotros-narrative {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 var(--spacing-lg);
  max-width: 1200px;
  margin: 96px auto;
  gap: 24px;
}

.narrative-left,
.narrative-right {
  flex: 0 0 45%;
  max-width: 45%;
}

.narrative-left {
  text-align: left;
}

.narrative-right {
  text-align: right;
  margin-left: auto;
}

.narrative-left p,
.narrative-right p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--text-3);
  line-height: 1.6;
  margin: 0;
}

.nosotros-kanji-deco {
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 500px;
  width: auto;
  opacity: 0.08;
  z-index: 0;
  object-fit: contain;
  pointer-events: none;
}

.narrative-left,
.narrative-right {
  position: relative;
  z-index: 1;
}

/* Valores + Ilustración Section */
.nosotros-values {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto 96px;
}

.values-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.values-text p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--text-3);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.values-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.values-illustration img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Compromiso Section */
.nosotros-commitment {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 96px;
  padding: 0 var(--spacing-lg);
  background: unset;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nosotros-commitment h2 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  margin: 0;
  line-height: 1.3;
}

.nosotros-commitment p {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

/* Nosotros Page - Responsive Styles */
@media (max-width: 1024px) {
  .nosotros-narrative {
    flex-direction: column;
    gap: var(--spacing-2xl);
  }

  .narrative-left,
  .narrative-right {
    flex: 1;
    max-width: 100%;
    text-align: left;
  }

  .nosotros-kanji-deco {
    display: none;
  }

  .nosotros-values {
    flex-direction: column;
    gap: var(--spacing-2xl);
  }

  .values-text {
    order: 1;
  }

  .values-illustration {
    order: 2;
  }
}

@media (max-width: 768px) {
  #view-nosotros {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 64px;
  }

  .nosotros-hero {
    padding: 80px var(--spacing-md) var(--spacing-3xl);
    min-height: 200px;
    margin: 0;
  }

  .nosotros-brand-logo {
    max-width: 80%;
    height: auto;
  }

  .nosotros-mission {
    padding: 0 var(--spacing-md);
    margin: 0;
  }

  .nosotros-mission h2 {
    font-size: var(--font-size-3xl);
  }

  .nosotros-mission p {
    font-size: var(--font-size-md);
  }

  .nosotros-narrative {
    padding: 0 var(--spacing-md);
    margin: 0;
  }

  .narrative-left p,
  .narrative-right p {
    font-size: var(--font-size-md);
  }

  .nosotros-values {
    padding: 0 var(--spacing-md);
    margin: 0;
  }

  .values-text p {
    font-size: var(--font-size-md);
  }

  .nosotros-commitment {
    padding: 0 var(--spacing-md);
    margin: 0;
  }

  .nosotros-commitment h2 {
    font-size: var(--font-size-2xl);
  }

  .nosotros-commitment p {
    font-size: var(--font-size-md);
  }
}

@media (max-width: 480px) {
  .nosotros-hero {
    padding: 60px var(--spacing-sm) var(--spacing-2xl);
  }

  .nosotros-brand-logo {
    max-width: 70%;
    height: auto;
  }

  .nosotros-mission h2 {
    font-size: var(--font-size-2xl);
  }

  .nosotros-commitment h2 {
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   Terminos y Condiciones Page Styles
   ============================================ */
#view-terminos {
  background: var(--bg-dark);
}

.terminos-section {
  background: var(--bg-dark);
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-3xl) var(--spacing-lg);
  display: flex;
  justify-content: center;
}

.terminos-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.terminos-title {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
  margin: 0;
}

.terminos-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.terminos-meta p {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-3);
  margin: 0;
}

.terminos-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.terminos-section-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
  margin: 0;
  text-transform: lowercase;
}

.terminos-subsection-title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
  margin: 0;
  text-transform: lowercase;
}

.terminos-subsubsection-title {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-1);
  margin: 0;
  text-transform: lowercase;
}

.terminos-paragraph {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-1);
  margin: 0;
}

.terminos-paragraph strong {
  font-weight: 700;
}

.terminos-bullets-label {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-1);
  margin: 0;
  margin-top: 8px;
}

.terminos-bullet-list {
  list-style-type: disc;
  margin: 8px 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminos-bullet-list li {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-1);
  padding-left: 4px;
}

/* ============================================
   FAQ Section - Preguntas Frecuentes
   ============================================ */
#view-faq {
  background: var(--bg-dark);
}

.faq-section {
  background: var(--bg-dark);
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-3xl) var(--spacing-lg);
  display: flex;
  justify-content: center;
}

.faq-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-title {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  min-height: 68px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.2s ease, border-radius 0.2s ease;
}

.faq-item.active {
  background: #22253533;
  border-radius: 16px;
  padding: 16px 20px;
  justify-content: flex-start;
}

.faq-question {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
}

.faq-question span {
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 20px;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-top: 12px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* FAQ Section - Responsive */
@media (max-width: 860px) {
  .faq-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .faq-title {
    font-size: 24px;
  }


  .faq-question {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

/* Terminos Page - Responsive Styles */
@media (max-width: 860px) {
  .terminos-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .terminos-container {
    gap: 20px;
  }

  .terminos-title {
    font-size: 24px;
  }

  .terminos-section-title {
    font-size: 18px;
  }

  .terminos-subsection-title {
    font-size: 16px;
  }

  .terminos-subsubsection-title {
    font-size: var(--font-size-sm);
  }

  .terminos-paragraph,
  .terminos-bullets-label,
  .terminos-bullet-list li {
    font-size: var(--font-size-sm);
  }
}

/* ============================================
   Footer Social Icons
   ============================================ */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-end;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--text-1);
  transform: translateY(-2px);
}

.social-icon i {
  font-size: 20px;
}

/* ============================================
   Campaña de Castración Form Styles
   ============================================ */
.campana-step {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: var(--bg-dark);
}

.campana-step.active {
  display: block;
}

.campana-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.campana-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campana-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.campana-title {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-light);
  margin: 0;
}

.campana-description {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* Ocultar descripción fuera del paso Datos básicos */
.campana-step[data-step="cita-castracion"] .campana-description,
.campana-step[data-step="confirmacion"] .campana-description {
  display: none;
}

/* Progress Bar */
.campana-progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
}

.progress-line {
  flex: 1;
  min-width: 0;
  max-width: 117.67px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: background var(--transition-fast);
}

.progress-line.active {
  background: var(--color-primary);
}

.campana-progress-bar .progress-line.active {
  background: #677FF9;
}

.progress-line:hover {
  background: rgba(78, 105, 244, 0.5);
  cursor: pointer;
}

.progress-line.active:hover {
  background: var(--color-primary-hover);
}

.campana-progress-bar .progress-line.active:hover {
  background: #677FF9;
}

/* Form Content */
.campana-form-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Campaña form fields - Desktop max width */
.campana-form-content .form-row:not(.campana-four-col) .form-field {
  max-width: 405px;
}

.campana-form-content .form-row .form-field .form-input-rounded,
.campana-form-content .form-row .form-field .form-select-rounded,
.campana-form-content .form-row .form-field .species-selector-btn {
  max-width: 100%;
  width: 100%;
}

.campana-four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Campaña especie and raza selectors - same width as campana-four-col fields */
.campana-especie-select,
.campana-raza-select {
  max-width: 405px;
}

.campana-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}

/* Characteristics Chips - multi-input layout */
.campana-caracteristicas-input {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px 16px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.campana-caracteristicas-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-3);
  margin: 0;
  display: block;
}

.campana-caracteristicas-text {
  width: 100%;
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
}

.campana-caracteristicas-text::placeholder {
  color: var(--text-3);
}

.campana-caracteristicas-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.campana-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.campana-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(78, 105, 244, 0.1);
  color: var(--text-4);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  padding: 6px 10px;
  border-radius: 100px;
}

.chip-remove {
  background: transparent;
  border: none;
  color: var(--text-4);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.chip-remove:hover {
  background: rgba(78, 105, 244, 0.2);
}

.chip-remove i {
  font-size: 12px;
}

.campana-add-chip-btn {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.campana-add-chip-btn:hover {
  background: rgba(78, 105, 244, 0.1);
}

/* Actions */
.campana-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.campana-next-btn,
.campana-agendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.campana-next-btn {
  background: transparent !important;
  border: none !important;
  font-family: var(--font-body);
}

.campana-next-btn:hover {
  background: transparent !important;
  border: none !important;
}

.campana-next-btn span {
  font-size: 18px;
  font-weight: 400;
}

.campana-next-btn i {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.campana-agendar-btn {
  background: #677FF9 !important;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
}

.campana-agendar-btn:hover {
  background: #5a71e6 !important;
}

.campana-agendar-btn span {
  font-size: 18px;
  font-weight: 400;
}

.campana-agendar-btn i {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Doctor Card */
.campana-doctor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
}

.doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctor-avatar i {
  font-size: 24px;
  color: var(--text-3);
}

.doctor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doctor-id {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-3);
}

.doctor-name {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.doctor-specialty {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-3);
}

/* Date Picker */
.campana-date-picker {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.campana-date-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.date-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.date-nav-item .campana-label {
  text-align: center;
}

.date-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.date-nav-btn:hover {
  color: var(--color-primary);
}

.date-nav-btn i {
  font-size: 16px;
}

.date-nav-value {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  min-width: 120px;
  text-align: center;
}

/* Calendar Grid */
.campana-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 32px;
  max-width: 843px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  vertical-align: bottom;
}

.calendar-day-cell {
  max-width: 254.33px;
  width: 100%;
  height: 72px;
  background: var(--bg-dark-secondary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 12px;
}

.calendar-day-cell:hover {
  background: rgba(78, 105, 244, 0.1);
  border: 1px solid var(--color-primary);
}

.calendar-day-cell.selected {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.calendar-day-number {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
}

.calendar-day-label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-3);
}

.calendar-day-cell.selected .calendar-day-number,
.calendar-day-cell.selected .calendar-day-label {
  color: var(--text-light);
}

/* Time Slots */
.campana-time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.time-slot-btn {
  padding: 12px 16px;
  background: var(--bg-dark-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
}

.time-slot-btn::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  background: transparent;
  transition: all var(--transition-fast);
}

.time-slot-btn:hover {
  border-color: #677FF9;
}

.time-slot-btn.active {
  border-color: #677FF9;
  color: var(--text-1);
}

.time-slot-btn.active::before {
  background: var(--text-1);
  border-color: #677FF9;
}

/* Consent Section */
.campana-consent-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.campana-consent-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  max-width: 843px;
  width: 100%;
  height: 160px;
  margin: 0 auto;
  background: #22253533;
  border-radius: 12px;
  box-sizing: border-box;
}

.consent-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consent-icon i {
  font-size: 24px;
  color: #677FF9;
}

.consent-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  text-align: center;
  align-items: center;
}

.consent-title {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
}

.consent-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

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

.consent-link i {
  font-size: 14px;
}

.campana-consent-question {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 843px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.consent-question-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.campana-consent-radio {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campana-consent-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #5E606B;
  background: #222535;
  cursor: pointer;
  appearance: none;
  position: relative;
  transition: all var(--transition-fast);
}

.campana-consent-radio input[type="radio"]:checked {
  border-color: var(--color-primary);
}

.campana-consent-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.campana-consent-radio label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
}

/* Confirmation Screen */
.campana-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 0;
}

.campana-confirmation-title {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin: 0;
}

.campana-confirmation-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campana-confirmation-text p {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.campana-download-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 843px;
  margin: 0 auto;
}

.campana-app-store-btn,
.campana-play-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  flex: 1;
  height: 48px;
  border-radius: 14px;
  box-sizing: border-box;
  font-family: 'Work Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.campana-app-store-btn {
  border: 1px solid #677FF980;
  color: #677FF9;
  background: transparent;
}

.campana-app-store-btn:hover {
  background: rgba(103, 127, 249, 0.08);
  border-color: #677FF9;
}

.campana-play-store-btn {
  background: #677FF9;
  color: var(--text-light);
  border: none;
}

.campana-play-store-btn:hover {
  background: #5a71e6;
}

.campana-app-store-btn i,
.campana-play-store-btn i {
  font-size: 20px;
}

/* Responsive - Login & Verification */
@media (max-width: 860px) {
  .login-view {
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }

  .login-title {
    font-size: 32px;
  }

  .verification-code-inputs {
    gap: 8px;
  }

  .code-input {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .pet-cards-carousel {
    gap: 16px;
  }

  .pet-card-item {
    max-width: 320px;
  }

  .pets-list-title {
    font-size: 32px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 24px;
  }

  .footer-description {
    text-align: left;
  }

  /* Campaña Form Responsive */
  .campana-step {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .campana-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .campana-header {
    max-width: 100%;
  }

  .campana-progress-bar {
    width: 100%;
    max-width: 100%;
    gap: 6px;
  }

  .progress-line {
    flex: 1;
    min-width: 20px;
  }

  .campana-title {
    font-size: 32px;
  }

  /* Campaña form fields - Mobile full width */
  .campana-form-content .form-row:not(.campana-four-col) .form-field {
    max-width: 100%;
    width: 100%;
  }
  
  .campana-form-content .form-row .form-field .form-input-rounded,
  .campana-form-content .form-row .form-field .form-select-rounded,
  .campana-form-content .form-row .form-field .species-selector-btn,
  .campana-especie-select,
  .campana-raza-select {
    max-width: 100%;
    width: 100%;
  }

  .campana-four-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .campana-four-col .form-field {
    max-width: 100%;
    width: 100%;
  }
  
  .campana-four-col .form-field .form-input-rounded {
    max-width: 100%;
    width: 100%;
  }

  .campana-date-nav {
    flex-direction: column;
    gap: 16px;
  }

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

  .campana-consent-card {
    padding: 24px 20px;
    height: auto;
    min-height: 120px;
  }

  .campana-time-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .campana-confirmation {
    padding: 32px 0;
  }

  .campana-confirmation-title {
    font-size: 32px;
  }

  .campana-download-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .campana-app-store-btn,
  .campana-play-store-btn {
    width: 100%;
    max-width: 332px;
    flex: none;
  }
}

/* ============================================
   Directorio Veterinario - Registration Form
   ============================================ */
.directorio-form-section {
  background: var(--bg-dark);
  padding: 80px 80px 80px;
}

.directorio-form-container {
  max-width: 1280px;
  margin: 0 auto;
}

.directorio-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.directorio-form-title-group {
  flex: 1;
}

.directorio-form-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  color: var(--text-light);
  margin: 0 0 16px 0;
}

.directorio-form-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
  max-width: 700px;
}

.directorio-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.directorio-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-1);
}

.directorio-info-btn i {
  font-size: 16px;
}

.directorio-register-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.directorio-form-row {
  display: flex;
  gap: 16px;
}

.directorio-fields-cedula-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.directorio-form-row-column.directorio-fields-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
}

.directorio-form-row-column .form-field {
  flex: 1 1 auto;
  min-width: 0;
}

.directorio-fields-cedula-row .directorio-cedula-section {
  flex: 2 1 0;
  min-width: 0;
  padding: 0;
}

.directorio-form-row-3 .form-field {
  flex: 1;
  min-width: 0;
}

.directorio-form-row-2 .form-field {
  flex: 1;
  min-width: 0;
}

.directorio-form-row-1 .form-field {
  flex: 1;
  min-width: 0;
}

.directorio-register-form .form-input-rounded,
.directorio-register-form .form-select-rounded {
  background: #222535;
  border-radius: 100px;
  padding: 12px 16px;
  min-height: 44px;
  height: 44px;
  border: 1px solid #4D4E57;
}

/* Agregar clínica - altura 58px, max-width 405px */
.directorio-clinica-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directorio-clinica-column .form-input-rounded.form-input-with-icon {
  min-height: 58px;
  height: 58px;
  max-width: 843px;
}

.directorio-lugares-form-column .form-select-rounded {
  min-height: 62px;
  height: 62px;
  max-width: 405px;
}

.directorio-register-form .form-input-rounded:focus-within,
.directorio-register-form .form-select-rounded:focus-within {
  border: 1px solid #4D4E57;
}

.form-input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-input-with-icon input {
  flex: 1;
  min-width: 0;
}

.input-icon-right {
  color: var(--text-3);
  font-size: 18px;
  flex-shrink: 0;
}

.directorio-password-requirements {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  row-gap: 0px;
  column-gap: 0px;
}

.directorio-password-hint {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-3);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.directorio-password-hint::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: #415AD8;
  margin-top: 6px;
}

.directorio-password-hint:last-child {
  grid-column: 1 / -1;
}

.directorio-password-error {
  margin-top: 8px;
  padding-left: 4px;
}

.directorio-password-error[aria-hidden="false"] {
  display: block;
}

.directorio-password-error[aria-hidden="true"] {
  display: none;
}

.directorio-error-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #EF4444;
  margin: 0;
}

.directorio-error-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-3);
  margin: 4px 0 0 0;
}

.directorio-maps-error-banner {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--text-1);
}
.directorio-maps-error-banner[hidden] {
  display: none;
}
.directorio-maps-error-banner i {
  font-size: 24px;
  color: #eab308;
  flex-shrink: 0;
}
.directorio-maps-error-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.directorio-maps-error-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.directorio-maps-error-banner code {
  font-size: 12px;
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.directorio-validation-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.directorio-validation-message[aria-hidden="true"],
.directorio-validation-message:empty {
  display: none;
}

.directorio-validation-message[aria-hidden="false"] {
  display: block;
}

.directorio-validation-message .directorio-validation-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #EF4444;
  margin: 0 0 8px 0;
}

.directorio-validation-message .directorio-validation-list {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  padding-left: 20px;
}

.directorio-validation-message .directorio-validation-list li {
  margin-bottom: 4px;
}

.directorio-validation-message .directorio-validation-list li:last-child {
  margin-bottom: 0;
}

/* Cédula de identidad */
.directorio-cedula-section {
  padding: 24px 0;
}

.directorio-cedula-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px;
  background: var(--bg-dark-secondary);
  border-radius: 16px;
  border: 1px solid rgba(103, 127, 249, 0.2);
  max-height: 154px;
  max-width: 642px;
  margin: 0 auto;
}

.directorio-cedula-icon {
  position: relative;
  z-index: 2;
  font-size: 40px;
  color: #A1A1FC;
  flex-shrink: 0;
}

.directorio-cedula-title {
  position: relative;
  z-index: 2;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
}

.directorio-cedula-selected {
  position: absolute;
  top: calc(32px + 40px - 8px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #22c55e;
  margin: 0;
  pointer-events: none;
}

.directorio-cedula-selected i {
  font-size: 16px;
}

.directorio-cedula-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -12px;
}

.directorio-cedula-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  height: 28px;
  max-height: 28px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  border: 1px solid transparent;
}

.directorio-cedula-btn i {
  font-size: 14px;
}

.directorio-cedula-btn-primary {
  width: 110px;
  background: #677FF9;
  color: var(--text-light);
  border-color: #677FF9;
}

.directorio-cedula-btn-primary:hover {
  background: #5a71e6;
  border-color: #5a71e6;
}

.directorio-cedula-btn-secondary {
  width: 148px;
  background: transparent;
  color: #677FF9;
  border-color: #677FF9;
}

.directorio-cedula-btn-secondary:hover {
  background: rgba(103, 127, 249, 0.1);
}

.directorio-profile-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.directorio-profile-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dark-secondary);
  flex-shrink: 0;
}

.directorio-profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directorio-profile-upload-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.directorio-profile-text-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.directorio-profile-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
  margin: 0;
}

.directorio-profile-specs {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-3);
  margin: 0;
}

.directorio-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 105px;
  height: 28px;
  background: #677FF9;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.directorio-upload-btn:hover {
  background: #5a71e6;
}

.directorio-lugares-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directorio-lugares-map-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.directorio-lugares-form-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 329px;
  min-width: 0;
}

.directorio-lugares-form-column .directorio-form-row-2 {
  flex-direction: column;
}

.directorio-lugares-form-column .directorio-form-row-2 .form-field {
  flex: 1 1 auto;
  min-width: 0;
}

.directorio-lugares-map {
  flex: 1;
  min-width: 0;
  aspect-ratio: 843 / 431;
  border-radius: 16px;
  overflow: hidden;
  background: #161822;
  margin-bottom: 24px;
}

.directorio-lugares-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-1);
  margin: 0 0 8px 0;
}

.directorio-add-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.directorio-add-link:hover {
  color: var(--color-primary-hover);
}

.directorio-saved-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.directorio-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--text-2);
}

.directorio-saved-chip-label {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directorio-saved-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.directorio-saved-chip-remove:hover {
  background: var(--status-grave);
  color: var(--text-1);
}

.directorio-domicilio-row {
  display: flex;
  align-items: center;
}

.directorio-domicilio-row .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.directorio-domicilio-row .form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.directorio-domicilio-row label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
}

.directorio-register-form .form-select-rounded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.directorio-register-form .form-select-rounded .select-text {
  color: var(--text-1);
}

.directorio-register-form .form-select-rounded .ph-caret-down {
  color: var(--text-3);
  font-size: 18px;
}

.directorio-register-form .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-dark-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.directorio-register-form .form-field {
  position: relative;
}

.directorio-register-form .form-field:has(.dropdown-menu.open) .dropdown-menu {
  display: block;
}

/* Clinic selector: vertical dropdown so it works on mobile (not datalist) */
.directorio-clinica-dropdown {
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 200;
}
.directorio-clinica-dropdown-empty {
  color: var(--text-3);
  pointer-events: none;
}

.btn-directorio-submit {
  height: 48px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  border-radius: 14px;
  margin-top: 16px;
  background: #677FF9;
}

.btn-directorio-submit:hover {
  background: #5a71e6;
}

/* Directorio Success Section */
.directorio-success-section {
  display: none;
  background: var(--bg-dark);
  padding: 80px 80px 120px;
}

.directorio-success-section.active {
  display: block;
}

.directorio-form-section.hidden {
  display: none;
}

.directorio-success-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.directorio-success-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
}

.directorio-success-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0;
}

.directorio-success-download-label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

.directorio-download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-directorio-playstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.btn-directorio-playstore:hover {
  background: var(--color-primary-hover);
}

.btn-directorio-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-directorio-appstore:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Directorio form responsive */
@media (max-width: 1024px) {
  .directorio-form-section,
  .directorio-success-section {
    padding: 48px 24px 60px;
  }

  .directorio-form-row-3 {
    flex-direction: column;
  }

  .directorio-form-row-2 {
    flex-direction: column;
  }

  .directorio-lugares-map-row {
    flex-direction: column;
  }

  .directorio-lugares-form-column {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .directorio-lugares-map {
    width: 100%;
  }

  .directorio-form-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .directorio-form-title {
    font-size: 32px;
  }

  .directorio-success-title {
    font-size: 36px;
  }

  .directorio-download-buttons {
    flex-direction: column;
  }

  .btn-directorio-playstore,
  .btn-directorio-appstore {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .directorio-cedula-actions {
    flex-direction: row;
  }

  .directorio-fields-cedula-row {
    flex-direction: column;
  }

  .directorio-fields-cedula-row .directorio-cedula-section {
    flex: 1 1 auto;
    width: 100%;
  }

  .directorio-fields-cedula-row .directorio-cedula-container {
    width: 100%;
    max-width: 100%;
  }

  .directorio-form-row-column.directorio-fields-column {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .directorio-fields-column .form-field,
  .directorio-fields-column .form-input-rounded,
  .directorio-fields-column .form-input-rounded.form-input-with-icon {
    width: 100%;
    max-width: 100%;
  }

  .directorio-fields-cedula-row .directorio-cedula-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .directorio-cedula-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .directorio-lugares-section .form-input-rounded.form-input-with-icon,
  .directorio-lugares-section .form-select-rounded {
    max-width: 100%;
    width: 100%;
  }

  /* Clinic dropdown: open above input on mobile so it stays visible above keyboard */
  .directorio-clinica-field .directorio-clinica-dropdown {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
    max-height: min(220px, 40vh);
  }

  /* Reorder: cedula section below first form row (Carné, Cédula, Especialidad) */
  .directorio-register-form {
    display: flex;
    flex-direction: column;
  }

  .directorio-register-form > *:nth-child(1) { order: 1; }  /* Row 1 */
  .directorio-register-form > *:nth-child(2) { order: 3; }  /* Row 2 */
  .directorio-register-form > *:nth-child(3) { order: 4; }  /* Row 3 */
  .directorio-register-form > .directorio-cedula-section { order: 2; }
  .directorio-register-form > .directorio-lugares-section { order: 5; }
  .directorio-register-form > .btn-directorio-submit { order: 6; }
}

@media (max-width: 768px) {
  .btn-directorio-submit {
    height: 32px;
    padding: 8px 16px;
    font-size: 16px;
  }
}

/* ============================================
   Directorio Home - Hero Section
   ============================================ */
.directorio-hero-section {
  background: var(--bg-dark);
  padding: 40px 80px;
}

.directorio-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directorio-hero-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
}

.directorio-hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
  max-width: 500px;
}

/* ============================================
   Directorio Home - Map Section
   ============================================ */
.directorio-map-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 285px);
  min-height: calc(100vh - 285px);
  overflow: hidden;
  background: #161822;
}

#directorio-map {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

/* Toolbar overlay */
.directorio-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 44px;
  flex-wrap: nowrap;
  background: transparent;
  text-align: left;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 20px;
}

.directorio-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #222535;
  border-radius: 100px;
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
}

.directorio-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #B5B7C1;
  padding: 0;
}

.directorio-search-input::placeholder {
  color: #B5B7C1;
}

.directorio-search-icon {
  color: #B5B7C1;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.directorio-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.directorio-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #161822;
  border: 1.5px solid rgba(103, 127, 249, 0.4);
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #B5B7C1;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.directorio-filter-tab svg {
  width: 14px;
  height: 14px;
  stroke: #B5B7C1;
  transition: stroke var(--transition-fast);
}

.directorio-filter-tab:hover {
  border-color: #677FF9;
  color: #E6E9FD;
}

.directorio-filter-tab:hover svg {
  stroke: #E6E9FD;
}

.directorio-filter-tab.active {
  background: #677FF9;
  border-color: #677FF9;
  color: #FFFFFF;
}

.directorio-filter-tab.active svg {
  stroke: #FFFFFF;
}

/* Search panel (Búsqueda) */
.directorio-search-panel {
  position: absolute;
  top: 64px;
  left: 16px;
  z-index: 10;
  width: 380px;
  padding: 24px;
  background: rgba(22, 24, 34, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  margin-top: 20px;
  margin-bottom: 20px;
}

.directorio-search-panel.active {
  display: block;
}

.directorio-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #B5B7C1;
  transition: all var(--transition-fast);
}

.directorio-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.directorio-panel-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.directorio-panel-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #B5B7C1;
  margin: 0;
}

/* Vet sidebar */
.directorio-vet-sidebar {
  position: absolute;
  top: 64px;
  left: 16px;
  z-index: 10;
  width: 380px;
  max-height: calc(100% - 80px);
  margin-top: 20px;
  margin-bottom: 20px;
  background: rgba(22, 24, 34, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.directorio-vet-sidebar.active {
  display: flex;
}

.directorio-vet-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.directorio-vet-sidebar-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
  margin: 0;
}

.directorio-vet-sidebar-close {
  background: transparent;
  border: none;
  color: #B5B7C1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.directorio-vet-sidebar-close:hover {
  color: #FFFFFF;
}

.directorio-vet-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.directorio-vet-list::-webkit-scrollbar {
  width: 4px;
}

.directorio-vet-list::-webkit-scrollbar-track {
  background: transparent;
}

.directorio-vet-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.directorio-vet-list-loading,
.directorio-vet-list-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.directorio-vet-list-loading p,
.directorio-vet-list-empty p {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.directorio-vet-list-overflow-note {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.directorio-vet-list-overflow-note p {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

/* Individual Vet Card */
.directorio-vet-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast);
}

.directorio-vet-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.directorio-vet-card-clickable {
  cursor: pointer;
}

.vet-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vet-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #333650;
}

.vet-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vet-card-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: flex-start;
}

.vet-card-name {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 0;
  width: 100%;
  flex-basis: 100%;
}

.vet-card-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.vet-card-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #7D7F8B;
}

.vet-card-value {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #E9EAF0;
}

.vet-card-menu-btn {
  background: transparent;
  border: none;
  color: #B5B7C1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.vet-card-menu-btn:hover {
  color: #FFFFFF;
}

.vet-card-menu-btn i {
  font-size: 18px;
}

.vet-card-clinic {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vet-card-clinic-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #677FF9;
}

.vet-card-clinic-name {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  color: #E9EAF0;
}

.vet-card-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vet-card-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vet-card-contact-item svg {
  flex-shrink: 0;
  stroke: #B5B7C1;
}

.vet-card-contact-item span {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  color: #B5B7C1;
}

.vet-card-schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vet-card-schedule-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}

.vet-card-days {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
  transition: all var(--transition-fast);
}

.day-pill.active {
  background: rgba(103, 127, 249, 0.15);
  border-color: rgba(103, 127, 249, 0.4);
}

.day-letter {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #B5B7C1;
  line-height: 1;
}

.day-pill.active .day-letter {
  color: #FFFFFF;
}

.day-hours {
  font-family: 'Work Sans', sans-serif;
  font-size: 8px;
  font-weight: 400;
  color: #B5B7C1;
  line-height: 1;
}

.day-pill.active .day-hours {
  color: #E6E9FD;
}

.directorio-horario-days {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vet-card-agendar-btn {
  width: 100%;
  padding: 10px 16px;
  background: #677FF9;
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vet-card-agendar-btn:hover {
  background: #5a71e6;
  transform: translateY(-1px);
}

.directorio-claim-message {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(103, 127, 249, 0.4);
  border-radius: 10px;
  background: rgba(103, 127, 249, 0.1);
}

.directorio-claim-message[aria-hidden="true"] {
  display: none;
}

.directorio-validation-subtitle {
  margin-top: 6px;
  color: #D0D4E8;
  font-size: 13px;
}

/* ============================================
   Directorio Home - Responsive
   ============================================ */
@media (max-width: 860px) {
  .directorio-hero-section {
    padding: 40px 24px;
  }

  .directorio-hero-title {
    font-size: 32px;
  }

  .directorio-hero-subtitle {
    font-size: 14px;
  }

  .directorio-map-section {
    height: calc(100vh - 343px);
    min-height: calc(100vh - 343px);
  }

  .directorio-toolbar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0 20px;
    height: auto;
    gap: 12px;
  }

  .directorio-search {
    flex: 0 0 auto;
    width: 100%;
  }

  .directorio-filters {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .directorio-filter-tab {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  .directorio-search-panel,
  .directorio-vet-sidebar {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .directorio-search-panel {
    top: 120px;
  }

  .directorio-vet-sidebar {
    top: 120px;
    bottom: 20px;
    max-height: none;
  }
}

/* Admin panel - Tabla de perfiles */
#view-admin .contacto-container {
  max-width: 1280px;
}

.admin-subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-subnav-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
}

.admin-subnav-btn.active {
  background: rgba(88, 212, 136, 0.16);
  border-color: rgba(88, 212, 136, 0.35);
  color: #58d488;
}

.admin-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0;
}

/* Match admin panel width with top header bar */
#view-admin .contacto-container {
  max-width: 1280px;
}

.admin-table-wrap .gridjs-wrapper,
.admin-table-wrap .gridjs-container {
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.admin-table-wrap .gridjs-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table-wrap .gridjs-search {
  float: none;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
}

.admin-table-wrap .gridjs-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-table-wrap .gridjs-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.admin-table-wrap .gridjs-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
}

.admin-table-wrap .gridjs-th,
.admin-table-wrap .gridjs-td {
  background: rgba(18, 22, 34, 0.98) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 14px 16px;
}

.admin-table-wrap .gridjs-th {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

.admin-table-wrap .gridjs-td {
  color: rgba(255, 255, 255, 0.9) !important;
}

.admin-table-wrap .gridjs-tr:hover .gridjs-td {
  background: rgba(32, 38, 58, 0.98) !important;
}

.admin-table-wrap .gridjs-tr:nth-child(odd) .gridjs-td,
.admin-table-wrap .gridjs-tr:nth-child(even) .gridjs-td {
  background: rgba(18, 22, 34, 0.98) !important;
}

.admin-table-wrap .gridjs-footer {
  background: transparent;
  border: 0;
  padding: 12px 16px;
}

.admin-table-wrap .gridjs-summary {
  color: rgba(255, 255, 255, 0.6);
}

.admin-table-wrap .gridjs-pagination .gridjs-pages button {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-table-wrap .gridjs-pagination .gridjs-pages button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-table-wrap .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
  background: rgba(88, 212, 136, 0.22);
  border-color: rgba(88, 212, 136, 0.45);
  color: #58d488;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
}

.admin-table thead {
  background: rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table td {
  color: rgba(255, 255, 255, 0.9);
}

.admin-table-name {
  font-weight: 500;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(88, 212, 136, 0.2);
  color: #58d488;
  font-size: 12px;
  font-weight: 600;
}

.admin-role-muted {
  color: rgba(255, 255, 255, 0.45);
}

.admin-image-link {
  display: inline-flex;
  align-items: center;
}

.admin-image-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.admin-image-cedula.admin-image-thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
}

.admin-toggle-visibility {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.admin-toggle-visibility.admin-toggle-visible {
  background: rgba(0, 210, 106, 0.2);
  color: #00D26A;
}

.admin-toggle-visibility.admin-toggle-visible:hover:not(:disabled) {
  background: rgba(0, 210, 106, 0.35);
}

.admin-toggle-visibility.admin-toggle-hidden {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.admin-toggle-visibility.admin-toggle-hidden:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.admin-toggle-visibility:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-clinica-edit-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.admin-clinica-edit-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.admin-pending-empty {
  margin-top: 16px;
  padding: 48px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: 'Work Sans', sans-serif;
}

.admin-pending-empty-icon {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
  display: block;
}

.admin-pending-empty-msg {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 4px 0;
}

.admin-pending-empty-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.admin-pending-error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff9e9e;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
}

.admin-loading {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
}

.admin-load-more-wrap {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-load-more-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.admin-load-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-load-more-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.admin-modal.open {
  display: block;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.admin-modal-card {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  margin: 32px auto;
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.admin-modal-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

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

.admin-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-modal-grid label.admin-modal-span-2 {
  grid-column: 1 / -1;
}

.admin-modal-grid input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}

.admin-modal-grid input:focus {
  outline: none;
  border-color: rgba(88, 212, 136, 0.55);
  box-shadow: 0 0 0 2px rgba(88, 212, 136, 0.18);
}

.admin-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-modal-btn {
  border-radius: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.admin-modal-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-modal-btn.primary {
  background: rgba(88, 212, 136, 0.18);
  border-color: rgba(88, 212, 136, 0.38);
  color: #58d488;
}
