/* SmartBussinesWeb - estilos compartidos */

:root {
  --navy-dark: #0b1320;
  --navy-main: #142235;
  --navy-light: #1e3048;
  --gold-primary: #c5a059;
  --gold-light: #e0ca92;
  --gold-dark: #9a7632;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #edc967 50%, #a2792d 100%);
  --gold-hover: linear-gradient(135deg, #edc967 0%, #f7dc89 50%, #b88b35 100%);
  --bg-page: #05080c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle at center, #111a28 0%, var(--bg-page) 100%);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

.cursor-pointer {
  cursor: pointer;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

.py-2\.5 {
  padding-top: .625rem !important;
  padding-bottom: .625rem !important;
}

.w-90 {
  width: 90%;
  max-width: 90%;
}

/* Estructura general */
.app-card {
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-dark);
  background-image: radial-gradient(circle at top right, var(--navy-light) 0%, transparent 60%);
  border: 0;
  box-shadow: none;
}

.app-container {
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.app-container::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.header-bg {
  height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 20px 24px 0;
  background: radial-gradient(circle at top, var(--navy-light) 0%, var(--navy-dark) 100%);
  border-bottom-left-radius: 50% 20px;
  border-bottom-right-radius: 50% 20px;
}

.top-bar {
  position: relative;
  z-index: 2;
}

.top-bar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.top-bar i {
  padding: 6px;
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.top-bar i:hover,
.top-bar i:focus-visible {
  color: #fff;
  transform: scale(1.15);
}

.avatar-frame {
  width: 110px;
  height: 110px;
  padding: 3px;
  overflow: hidden;
  background: var(--gold-gradient);
  border-radius: 50%;
}

.avatar-edit-wrapper {
  width: 110px;
  height: 110px;
  position: relative;
  cursor: pointer;
}

.avatar-edit-wrapper.avatar-upload-trigger {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.avatar-edit-wrapper.avatar-upload-trigger:focus-visible {
  outline: 3px solid rgba(224, 202, 146, .7);
  outline-offset: 4px;
}

.avatar-edit-wrapper .avatar-frame {
  width: 100%;
  height: 100%;
}

.smartid-social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
}

.smartid-social-grid>a {
  grid-column: span 2;
}

.smartid-social-grid>a:first-child:last-child,
.smartid-social-grid>a:nth-child(3n + 1):last-child {
  grid-column: 3 / span 2;
}

.smartid-social-grid>a:first-child:nth-last-child(2),
.smartid-social-grid>a:nth-child(3n + 1):nth-last-child(2) {
  grid-column: 2 / span 2;
}

.camera-badge {
  width: 34px;
  height: 34px;
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: var(--navy-dark);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  font-size: .9rem;
  transition: all .2s ease;
}

.avatar-edit-wrapper:hover .camera-badge {
  color: #000;
  background: var(--gold-gradient);
  border-color: transparent;
  transform: scale(1.1);
}

/* Login */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: auto;
  height: 175px;
  max-width: 100%;
  object-fit: contain;
}

.input-custom-group {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  background: radial-gradient(circle at top left, var(--navy-light) 0%, var(--navy-main) 100%);
  border: 1px solid rgba(197, 160, 89, .25);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2);
  transition: all .3s ease;
}

.input-custom-group:focus-within {
  background: var(--navy-light);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .15), inset 0 2px 4px rgba(0, 0, 0, .2);
}

.input-custom-group i {
  width: 24px;
  color: var(--gold-primary);
  font-size: 1rem;
}

.input-custom-group input {
  min-width: 0;
  flex-grow: 1;
  padding: 12px 10px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  font: 600 1rem/1.4 "Plus Jakarta Sans", sans-serif;
}

.input-custom-group input::placeholder {
  color: #8c93a0;
  font-weight: 400;
}

.password-toggle {
  color: #8c93a0;
  cursor: pointer;
  transition: color .2s ease;
}

.password-toggle:hover {
  color: var(--gold-light);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: rgba(30, 48, 72, .4);
  border: 1px solid rgba(197, 160, 89, .2);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s ease;
}

.btn-social:hover,
.btn-social:focus-visible {
  color: var(--gold-light);
  background: rgba(197, 160, 89, .1);
  border-color: var(--gold-primary);
}

.divider {
  display: flex;
  align-items: center;
  color: #8c93a0;
  font-size: .8rem;
  text-align: center;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.divider::before {
  margin-right: .5em;
}

.divider::after {
  margin-left: .5em;
}

.fade-in-up {
  animation: fade-in-up .6s ease-out both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Módulos, perfil y selector */
.contact-module {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: inherit;
  background: radial-gradient(circle at top left, var(--navy-light) 0%, var(--navy-dark) 100%);
  border: 1px solid rgba(197, 160, 89, .25);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
  transition: all .2s ease-in-out;
}

.contact-module:hover,
.contact-module:active {
  color: inherit;
  background: var(--navy-light);
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  transform: translateX(4px);
}

.icon-box {
  width: 42px;
  height: 42px;
  color: var(--gold-light);
  background: rgba(197, 160, 89, .08);
  border: 1px solid rgba(197, 160, 89, .4);
}

.micro-text {
  color: var(--gold-primary);
  font-size: .7rem;
  letter-spacing: .5px;
  opacity: .8;
}

.text-gold {
  --bs-text-opacity: 1;
  color: var(--gold-light) !important;
}

a.text-gold:hover {
  color: #f1dda8 !important;
}

.text-dark-custom {
  color: var(--navy-dark) !important;
}

.footer-logo {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid rgba(197, 160, 89, .1);
}

.logo-img-small {
  width: auto;
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
}

/* Listados de SmartPoints, SmartHubs y tarjetas */
body:has(.fixed-action-bar) .app-container::-webkit-scrollbar {
  width: 4px;
}

body:has(.fixed-action-bar) .app-container::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, .3);
  border-radius: 10px;
}

body:has(.fixed-action-bar) .contact-module {
  padding: 14px 16px;
  color: var(--navy-dark);
  background: var(--gold-gradient);
  border-color: var(--gold-light);
  cursor: pointer;
}

body:has(.fixed-action-bar) .contact-module:hover {
  background: var(--gold-hover);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}

body:has(.fixed-action-bar) .icon-box {
  color: var(--navy-dark);
  background: rgba(11, 19, 32, .12);
  border-color: rgba(11, 19, 32, .2);
}

body:has(.fixed-action-bar) .micro-text {
  color: rgba(11, 19, 32, .8);
  opacity: 1;
}

.single-selection-list .contact-module {
  padding: 14px 16px;
  color: var(--navy-dark);
  background: var(--gold-gradient);
  border-color: var(--gold-light);
  cursor: pointer;
}

.single-selection-list .contact-module:hover {
  background: var(--gold-hover);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}

.single-selection-list .icon-box {
  color: var(--navy-dark);
  background: rgba(11, 19, 32, .12);
  border-color: rgba(11, 19, 32, .2);
}

.single-selection-list .micro-text {
  color: rgba(11, 19, 32, .8);
  opacity: 1;
}

.check-dark-theme .form-check-input,
.check-gold-theme .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  background-color: transparent;
  cursor: pointer;
}

.check-dark-theme .form-check-input {
  border: 2px solid var(--gold-primary);
}

.check-dark-theme .form-check-input:checked {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.check-dark-theme .form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230b1320' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.check-gold-theme .form-check-input {
  border: 2px solid rgba(11, 19, 32, .5);
}

.check-gold-theme .form-check-input:checked {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.check-gold-theme .form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23c5a059' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.fixed-action-bar {
  z-index: 10;
  flex-shrink: 0;
  padding: 16px 20px;
  background-color: var(--navy-dark);
  border-top: 1px solid rgba(197, 160, 89, .2);
}

/* Formularios de edición */
.edit-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fdfaf3 0%, #f4ebd9 100%);
  border: 1px solid rgba(197, 160, 89, .3);
  border-radius: 14px;
  transition: all .3s ease;
}

.edit-card:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, .25);
  transform: translateY(-1px);
}

.edit-card-group {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 4px;
}

.edit-card-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(197, 160, 89, .2);
  border-radius: 10px;
  transition: background-color .2s ease;
}

.edit-card-item:last-child {
  border-bottom: 0;
}

.edit-card-item:focus-within {
  background-color: rgba(255, 255, 255, .45);
}

.edit-card.textarea-card {
  align-items: flex-start;
  padding-top: 14px;
}

.edit-icon {
  width: 24px;
  flex-shrink: 0;
  color: var(--gold-dark);
  font-size: 1.1rem;
  text-align: center;
}

.edit-content {
  min-width: 0;
  flex-grow: 1;
}

.edit-label {
  display: block;
  margin-bottom: 2px;
  color: #6e7683;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.edit-input {
  width: 100%;
  padding: 0;
  color: var(--navy-dark);
  background: transparent;
  border: 0;
  outline: 0;
  font: 600 1rem/1.4 "Plus Jakarta Sans", sans-serif;
  text-overflow: ellipsis;
}

.edit-input::placeholder {
  color: #a0a6b1;
  font-weight: 500;
}

textarea.edit-input {
  resize: none;
  font-size: .95rem;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-input-group .edit-input {
  min-width: 0;
}

.country-select {
  position: relative;
  flex-shrink: 0;
}

.country-select-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--navy-dark);
  background: rgba(197, 160, 89, .08);
  border: 1px solid rgba(197, 160, 89, .3);
  border-radius: 9px;
  font: 600 .82rem/1.4 "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.country-select-trigger:hover,
.country-select.is-open .country-select-trigger {
  background: rgba(197, 160, 89, .14);
  border-color: rgba(154, 118, 50, .65);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .1);
}

.country-flag {
  width: 20px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 19, 32, .12);
}

.country-selected-code {
  min-width: 34px;
  text-align: left;
}

.country-select-chevron {
  color: var(--gold-dark);
  font-size: .65rem;
  transition: transform .2s ease;
}

.country-select.is-open .country-select-chevron {
  transform: rotate(180deg);
}

.country-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: 290px;
  overflow: hidden;
  background: #fdfaf3;
  border: 1px solid rgba(197, 160, 89, .45);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 19, 32, .28);
}

.country-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 8px 14px;
  color: var(--navy-dark);
  border-bottom: 1px solid rgba(197, 160, 89, .18);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .35px;
}

.country-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--gold-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.country-menu-close:hover {
  color: #b23a48;
  background: rgba(178, 58, 72, .08);
}

.country-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(197, 160, 89, .25);
}

.country-search-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--navy-dark);
  background: transparent;
  border: 0;
  outline: 0;
  font: 600 .82rem/1.4 "Plus Jakarta Sans", sans-serif;
}

.country-search-input::placeholder {
  color: #8c93a0;
  font-weight: 500;
}

.country-options {
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
}

.country-option {
  display: grid;
  grid-template-columns: 20px 50px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  color: var(--navy-dark);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option[aria-selected="true"] {
  background: rgba(197, 160, 89, .12);
}

.country-option-code {
  color: var(--gold-dark);
  font-size: .8rem;
  font-weight: 700;
}

.country-option-name {
  overflow: hidden;
  color: #5f6875;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.additional-link-item {
  padding-right: 80px;
  transition: opacity .2s ease, transform .2s ease;
}

.additional-link-fields {
  display: grid;
  gap: 9px;
}

.additional-link-field+.additional-link-field {
  padding-top: 8px;
  border-top: 1px solid rgba(197, 160, 89, .2);
}

.additional-link-actions {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.additional-link-actions .btn-delete-field,
.btn-delete-link {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  color: var(--gold-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transform: none;
  transition: all .2s ease;
}

.btn-delete-link:hover {
  color: #b23a48;
  background-color: rgba(178, 58, 72, .08);
}

.btn-delete-field {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  color: var(--gold-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all .2s ease;
}

.btn-delete-field:hover {
  color: #b23a48;
  background-color: rgba(178, 58, 72, .08);
}

.edit-card:has(> .btn-delete-field),
.edit-card-item:has(> .btn-delete-field) {
  padding-right: 48px;
}

.field-checkbox-wrapper {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 4px;
}

.form-check-input {
  background-color: var(--navy-dark);
  border-color: rgba(197, 160, 89, .4);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.form-check-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 .25rem rgba(212, 175, 55, .25);
}

.field-checkbox-wrapper .form-check-input {
  width: 1.3em;
  height: 1.3em;
  margin-top: 0;
}

.edit-card.disabled-card,
.edit-card-item.disabled-card {
  background: #e2e2e2 !important;
  border-color: rgba(0, 0, 0, .1) !important;
  opacity: .5;
}

.edit-card.disabled-card:focus-within,
.edit-card-item.disabled-card:focus-within {
  background: #e2e2e2 !important;
  border-color: rgba(0, 0, 0, .1) !important;
  box-shadow: none;
  transform: none;
}

.disabled-card .edit-icon,
.disabled-card .edit-label {
  color: #6c757d;
}

.disabled-card .edit-input {
  color: #777 !important;
}

.edit-input:disabled {
  background-color: transparent !important;
  cursor: not-allowed;
}

.select-all-container {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 15px;
  padding: 12px 30px;
  background-color: rgba(11, 19, 32, .9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(197, 160, 89, .15);
}

/* Botones y acciones */
.btn {
  min-height: 44px;
}

.btn-gold {
  color: #1a1305;
  background: var(--gold-gradient);
  border: 0;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(197, 160, 89, .3);
  transition: all .2s ease;
}

.btn-gold:hover,
.btn-gold:active,
.btn-gold:focus-visible {
  color: #000;
  background: var(--gold-hover);
  box-shadow: 0 6px 18px rgba(197, 160, 89, .4);
  transform: translateY(-2px);
}

.btn-gold:disabled {
  color: rgba(255, 255, 255, .5);
  background: rgba(197, 160, 89, .3);
  box-shadow: none;
  transform: none;
}

.btn-outline-gold {
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--gold-primary);
  transition: all .2s ease;
}

.btn-outline-gold:hover,
.btn-outline-gold:active,
.btn-outline-gold:focus-visible {
  color: #fff;
  background: rgba(197, 160, 89, .15);
  border-color: var(--gold-light);
}

#btnAddSocial.btn-outline-gold {
  border-style: dashed;
}

.footer-actions {
  flex-shrink: 0;
  background: rgba(11, 19, 32, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.edit-feedback {
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.5;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease;
}

.edit-feedback-success {
  color: #d5f5df;
  background: rgba(40, 167, 69, .14);
  border-color: rgba(72, 190, 104, .35);
}

.edit-feedback-error {
  color: #ffd5d9;
  background: rgba(178, 58, 72, .14);
  border-color: rgba(220, 83, 97, .35);
}

.edit-feedback.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* Vista de error */
.error-view .app-container {
  background:
    radial-gradient(circle at 50% 30%, rgba(197, 160, 89, .12) 0%, transparent 34%),
    radial-gradient(circle at top right, var(--navy-light) 0%, transparent 60%);
}

.error-content {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.error-icon-ring {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: rgba(197, 160, 89, .08);
  border: 1px solid rgba(197, 160, 89, .35);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(197, 160, 89, .12), inset 0 0 20px rgba(197, 160, 89, .06);
  font-size: 2rem;
}

.error-status {
  color: var(--gold-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.error-message {
  max-width: 300px;
  color: #a0a6b1;
  line-height: 1.7;
}

.error-back-button {
  min-width: 190px;
  min-height: 44px;
  padding-right: 20px;
  padding-left: 20px;
  text-decoration: none;
}

/* Recuperación de contraseña */
.recovery-content {
  width: 100%;
  max-width: 350px;
}

.recovery-logo .logo-img {
  height: 125px;
}

.recovery-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: rgba(197, 160, 89, .08);
  border: 1px solid rgba(197, 160, 89, .35);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(197, 160, 89, .1);
  font-size: 1.65rem;
}

.recovery-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  color: #b7bdc7;
  background: rgba(30, 48, 72, .45);
  border: 1px solid rgba(197, 160, 89, .2);
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.55;
}

.recovery-notice i {
  margin-top: 2px;
  color: var(--gold-primary);
}

/* Ajustes por pantalla según su contenido */
body:has(.footer-logo) .app-card {
  width: 100%;
  max-width: 410px;
  height: 780px;
  max-height: 95dvh;
  background-image: none;
  border: 1px solid rgba(212, 175, 55, .15);
}

body:has(.footer-logo) .header-bg {
  height: 170px;
  padding: 24px 24px 0;
}

body:has(.footer-logo) .avatar-frame {
  width: 115px;
  height: 115px;
}

body:has(#editSmartHubForm) .header-bg {
  height: 110px;
  justify-content: flex-start;
  padding: 24px 24px 0;
  border-bottom-left-radius: 50% 25px;
  border-bottom-right-radius: 50% 25px;
}

body:has(#editSmartHubForm) .edit-card {
  margin-bottom: 12px;
}

/* Autocompletado del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:autofill {
  color: #fff !important;
  caret-color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 999999s ease-in-out 0s !important;
}

.edit-input:-webkit-autofill,
.edit-input:autofill {
  color: var(--navy-dark) !important;
  caret-color: var(--navy-dark) !important;
  -webkit-text-fill-color: var(--navy-dark) !important;
}

/* Contacto flotante */
.smart-floating-contact {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.12rem;
  line-height: 1;
  z-index: 30;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.smart-floating-contact:hover,
.smart-floating-contact:focus {
  color: #fff !important;
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.smart-floating-contact:focus-visible {
  outline: 3px solid rgba(224, 202, 146, 0.75);
  outline-offset: 4px;
}

.smart-floating-contact--email,
.smart-floating-contact--whatsapp {
  left: max(16px, env(safe-area-inset-left));
  background: linear-gradient(135deg, #d4af37 0%, #c5a059 48%, #9a7632 100%);
  color: #0b1320 !important;
}

.smart-floating-contact--email:hover,
.smart-floating-contact--email:focus,
.smart-floating-contact--whatsapp:hover,
.smart-floating-contact--whatsapp:focus {
  color: #0b1320 !important;
}

.smart-floating-contact--whatsapp {
  left: auto;
  right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 576px) {
  body {
    padding: 20px 0;
  }

  .app-card {
    max-width: 430px;
    height: 920px;
    max-height: 92dvh;
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 28px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 30px rgba(197, 160, 89, .1);
  }

  body:has(.input-custom-group) .app-card {
    height: 860px;
  }

  body:has(.footer-logo) .app-card {
    max-width: 410px;
    height: 780px;
    max-height: 95dvh;
  }
}

@media (max-width: 575.98px) {
  body:has(.footer-logo) {
    padding: 0 !important;
  }

  body:has(#editCardForm) {
    overflow: hidden;
  }

  body:has(#editCardForm) .app-card {
    height: 100dvh;
    max-height: none;
  }

  body:has(#editCardForm) .header-bg {
    height: calc(150px + env(safe-area-inset-top));
    padding-top: calc(20px + env(safe-area-inset-top));
  }

  body:has(#editCardForm) .edit-card-group:focus-within {
    transform: none;
  }

  body:has(#editCardForm) .footer-actions {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  }

  .country-select-trigger {
    min-width: 94px;
    min-height: 44px;
  }

  .country-select-menu {
    position: fixed;
    z-index: 100;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: #fdfaf3;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .country-select-menu[hidden] {
    display: none;
  }

  .country-search-box {
    flex-shrink: 0;
    margin: 0 12px 8px;
    padding: 12px 14px;
    background: rgba(197, 160, 89, .08);
    border: 1px solid rgba(197, 160, 89, .28);
    border-radius: 12px;
  }

  .country-menu-header {
    min-height: calc(60px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 10px 10px 18px;
    font-size: 1rem;
  }

  .country-menu-close {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .country-search-input {
    min-height: 24px;
    font-size: 1rem;
  }

  .country-options {
    min-height: 0;
    max-height: none;
    padding: 4px 12px calc(12px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .country-option {
    min-height: 46px;
    padding: 10px 12px;
  }

  .country-option-code {
    font-size: .88rem;
  }

  .country-option-name {
    font-size: .86rem;
  }

  .btn-delete-field,
  .additional-link-actions .btn-delete-field,
  .btn-delete-link {
    width: 44px;
    height: 44px;
    padding: 12px;
  }

  .edit-card:has(> .btn-delete-field),
  .edit-card-item:has(> .btn-delete-field) {
    padding-right: 48px;
  }

  .additional-link-item {
    padding-right: 92px;
  }

  .additional-link-actions {
    right: 0;
  }

  body:has(.footer-logo) .app-card {
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0 !important;
  }

  .smart-floating-contact {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Tamaño unificado de las vistas públicas, basado en la tarjeta del login. */
body,
body.py-4 {
  min-height: 100dvh;
  padding: 0 !important;
}

.app-card,
body:has(.input-custom-group) .app-card,
body:has(.footer-logo) .app-card {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.app-card > .app-container {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 576px) {
  body,
  body.py-4 {
    padding: 20px 0 !important;
  }

  .app-card,
  body:has(.input-custom-group) .app-card,
  body:has(.footer-logo) .app-card {
    width: 100%;
    max-width: 430px;
    height: 860px;
    max-height: calc(100dvh - 40px);
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 28px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 30px rgba(197, 160, 89, .1) !important;
  }
}

/* Evita que el contenido centrado quede recortado en pantallas bajas. */
@media (max-height: 700px) {
  .app-container.justify-content-center {
    justify-content: flex-start !important;
  }
}
