﻿@charset "UTF-8";
:root {
  --tx-color: #0A0A0A;
  --tx-color-inv: #ECECEC;
  --bg-color: #FFFFFF;
  --bg-color2: #F8F9FA;
  --bg-color3: #E9ECEF;
  --bg-color4: #EFF4F5;
  --accent-color: #F65777;
  --border-color: #DDDDDD;
  --header-h: 50px;
  --nav-h: 70px;
  /* safe-area para iPhone con notch (fallback 0px en otros) */
  --safe: max(env(safe-area-inset-bottom), 0px);
}

[data-theme=Dark] {
  --tx-color: #ECECEC;
  --tx-color-inv: #0A0A0A;
  --bg-color: #1E1E1E;
  --bg-color2: #2C2C2C;
  --bg-color3: #3A3A3A;
  --bg-color4: #464A4B;
  --accent-color: #D81B60;
  --border-color: #444444;
}

/* ====================================
  PERFIL FORM — Diseño moderno y dinámico
======================================= */
.form-perfil {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 160px;
}

/* ====================================
   HEADER - Foto de perfil destacada
======================================= */
.perfil-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 2rem;
  border-radius: 0 0 24px 24px;
  margin-bottom: 1rem;
}

.perfil-header__avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 2rem;
}

.perfil-header__progress-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 5px;
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
}

.perfil-header__avatar {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-color2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.perfil-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perfil-header__edit-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #F65777;
  z-index: 5;
}
.perfil-header__edit-btn i {
  color: #F65777;
  font-size: 0.95rem;
}
.perfil-header__edit-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(246, 87, 119, 0.4);
  background: #F65777;
}
.perfil-header__edit-btn:hover i {
  color: #fff;
}

.perfil-header__change-text {
  font-size: 0.8rem;
  color: #F65777;
  font-weight: 500;
  margin-top: 0.5rem;
}

.perfil-header__progress-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #F65777;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(246, 87, 119, 0.3);
}

.perfil-header__info {
  text-align: center;
}

.perfil-header__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tx-color);
  margin: 0 0 0.25rem;
}

.perfil-header__email {
  font-size: 0.9rem;
  color: #858484;
  margin: 0;
}

.perfil-header__foto-nudge {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--tx-color);
  background: rgba(246, 87, 119, 0.1);
  border: 1px solid rgba(246, 87, 119, 0.28);
}

/* ====================================
   VALIDATION SUMMARY
======================================= */
.perfil-validation-summary {
  background: rgba(231, 76, 60, 0.08);
  border-left: 3px solid #e74c3c;
  padding: 0.75rem 1rem;
  margin: 0 1rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #c0392b;
}
.perfil-validation-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.perfil-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.perfil-card {
  background: var(--bg-color2);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.perfil-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.perfil-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.perfil-card__header:hover {
  background: rgba(246, 87, 119, 0.04);
}

.perfil-card__header-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.perfil-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(246, 87, 119, 0.12) 0%, rgba(216, 27, 96, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.perfil-card__icon i {
  font-size: 1.1rem;
  color: #F65777;
}
.perfil-card__icon.perfil-card__icon--accent {
  background: linear-gradient(135deg, #F65777 0%, #D81B60 100%);
}
.perfil-card__icon.perfil-card__icon--accent i {
  color: #fff;
}

.perfil-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tx-color);
  margin: 0;
  line-height: 1.2;
}

.perfil-card__subtitle {
  font-size: 0.8rem;
  color: #858484;
  margin: 0.15rem 0 0;
}

.perfil-card__chevron {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-color3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.2s;
}
.perfil-card__chevron i {
  font-size: 0.85rem;
  color: #858484;
  transition: transform 0.3s ease;
}

.perfil-card__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
}

.perfil-card__hint {
  font-size: 0.85rem;
  color: #858484;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.perfil-card--open .perfil-card__chevron i {
  transform: rotate(180deg);
}
.perfil-card--open .perfil-card__body {
  max-height: 1500px;
  padding: 0 1.25rem 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

/* ====================================
   CAMPOS DEL FORMULARIO
======================================= */
.perfil-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .perfil-form-grid {
    grid-template-columns: 1fr;
  }
}

.perfil-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.perfil-field.perfil-field--full {
  grid-column: 1/-1;
}
.perfil-field input, .perfil-field select, .perfil-field textarea {
  width: 100% !important;
  box-sizing: border-box !important;
}

.perfil-field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tx-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.perfil-field__label i {
  color: #F65777;
  font-size: 0.9rem;
}

.perfil-field__hint {
  font-size: 0.85rem;
  color: #6b6b5e;
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.perfil-field__input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--tx-color);
  background: var(--bg-color3);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: "Public Sans", sans-serif;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.perfil-field__input::placeholder {
  color: #858484;
}
.perfil-field__input:focus {
  outline: none;
  border-color: #F65777;
  box-shadow: 0 0 0 4px rgba(246, 87, 119, 0.1);
}
.perfil-field__input[type=date] {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.perfil-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.perfil-field__textarea-wrap {
  position: relative;
}

.perfil-field__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-bottom: 2rem;
  font-size: 1rem;
  color: var(--tx-color);
  background: var(--bg-color3);
  border: 2px solid transparent;
  border-radius: 12px;
  resize: none;
  font-family: "Public Sans", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.perfil-field__textarea::placeholder {
  color: #858484;
}
.perfil-field__textarea:focus {
  outline: none;
  border-color: #F65777;
  box-shadow: 0 0 0 4px rgba(246, 87, 119, 0.1);
}

.perfil-field__counter {
  position: absolute;
  bottom: 0.625rem;
  right: 1rem;
  font-size: 0.75rem;
  color: #858484;
  font-weight: 500;
}
.perfil-field__counter.perfil-field__counter--warning {
  color: #e67e22;
}

.validation-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ====================================
   REDES SOCIALES
======================================= */
.perfil-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
@media (max-width: 600px) {
  .perfil-social-grid {
    grid-template-columns: 1fr;
  }
}

.perfil-social-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-color3);
  border-radius: 12px;
  transition: box-shadow 0.2s;
}
.perfil-social-field:focus-within {
  box-shadow: 0 0 0 3px rgba(246, 87, 119, 0.1);
}

.perfil-social-field__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.perfil-social-field__icon i {
  font-size: 1.1rem;
  color: #fff;
}
.perfil-social-field__icon i:before {
  color: #fff;
}
.perfil-social-field__icon--instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.perfil-social-field__icon--facebook {
  background: #1877f2;
}
.perfil-social-field__icon--tiktok {
  background: #000;
}
.perfil-social-field__icon--x {
  background: #000;
}

.perfil-social-field__input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.perfil-social-field__prefix {
  font-size: 0.9rem;
  color: #858484;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.perfil-social-field__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  color: var(--tx-color);
  padding: 0.25rem 0;
}
.perfil-social-field__input::placeholder {
  color: rgb(171.093877551, 170.406122449, 170.406122449);
}
.perfil-social-field__input:focus {
  outline: none;
}

/* ====================================
   OPCIONES DE VISIBILIDAD
======================================= */
.perfil-visibility-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.perfil-visibility-option {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color3);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.perfil-visibility-option input[type=radio] {
  display: none;
}
.perfil-visibility-option:hover {
  background: rgba(246, 87, 119, 0.06);
}
.perfil-visibility-option--selected {
  background: rgba(246, 87, 119, 0.08);
  border-color: #F65777;
}

.perfil-visibility-option__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #858484;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: border-color 0.2s;
}
.perfil-visibility-option__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F65777;
  transform: scale(0);
  transition: transform 0.2s ease;
}
.perfil-visibility-option--selected .perfil-visibility-option__radio {
  border-color: #F65777;
}
.perfil-visibility-option--selected .perfil-visibility-option__radio::after {
  transform: scale(1);
}

.perfil-visibility-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.perfil-visibility-option__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tx-color);
}

.perfil-visibility-option__desc {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--tx-color);
  opacity: 0.72;
}

/* Toggle «mostrar box» — debajo de opciones de visibilidad */
.perfil-listado-box-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.perfil-listado-box-block__hint {
  margin: 0;
}

.perfil-listado-box-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color3);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  margin: 0;
}
.perfil-listado-box-option:hover {
  background: rgba(246, 87, 119, 0.06);
}
.perfil-listado-box-option--on {
  background: rgba(246, 87, 119, 0.08);
  border-color: #F65777;
}

.perfil-listado-box-option__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(246, 87, 119, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.perfil-listado-box-option__icon i {
  font-size: 1.15rem;
  color: #F65777;
  transition: color 0.2s ease;
}
.perfil-listado-box-option--on .perfil-listado-box-option__icon {
  background: linear-gradient(135deg, #F65777 0%, #D81B60 100%);
}
.perfil-listado-box-option--on .perfil-listado-box-option__icon i {
  color: #fff;
}

.perfil-listado-box-option__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.perfil-listado-box-option__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tx-color);
  line-height: 1.25;
}

.perfil-listado-box-option__desc {
  font-size: 0.8rem;
  color: #858484;
  line-height: 1.4;
}

.perfil-listado-box-option__switch-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.perfil-listado-box-option__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.perfil-listado-box-option__switch {
  display: block;
  width: 48px;
  height: 28px;
  background: var(--border-color);
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.perfil-listado-box-option__switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.perfil-listado-box-option__input:checked + .perfil-listado-box-option__switch {
  background: #F65777;
}
.perfil-listado-box-option__input:checked + .perfil-listado-box-option__switch::before {
  transform: translateX(20px);
}

.perfil-listado-box-option__input:focus-visible + .perfil-listado-box-option__switch {
  outline: 2px solid #F65777;
  outline-offset: 2px;
}

/* ====================================
   SECCIÓN CUENTA (soporte + eliminar)
======================================= */
.perfil-card--cuenta-footer {
  background: var(--bg-color2);
  border: none;
  margin-top: 2.5rem;
  overflow: hidden;
}

.perfil-cuenta-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  text-decoration: none !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.perfil-cuenta-nav:link, .perfil-cuenta-nav:visited, .perfil-cuenta-nav:hover, .perfil-cuenta-nav:focus, .perfil-cuenta-nav:active {
  text-decoration: none !important;
  color: inherit !important;
}
.perfil-cuenta-nav:hover {
  background: rgba(246, 87, 119, 0.06);
}
.perfil-cuenta-nav:active {
  background: rgba(246, 87, 119, 0.1);
}
.perfil-cuenta-nav:focus-visible {
  outline: 2px solid #F65777;
  outline-offset: -2px;
}

.perfil-cuenta-nav__info {
  flex: 1;
  min-width: 0;
}

.perfil-cuenta-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tx-color);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}
.perfil-cuenta-nav__title i {
  flex-shrink: 0;
  font-size: 1rem;
  color: #F65777;
}
.perfil-cuenta-nav__title span {
  min-width: 0;
}

.perfil-cuenta-nav__hint {
  font-size: 0.8rem;
  color: #858484;
  margin: 0;
  line-height: 1.35;
  text-decoration: none;
}

.perfil-cuenta-nav__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-color3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.perfil-cuenta-nav__chevron i {
  font-size: 0.75rem;
  color: #858484;
}

.perfil-cuenta-footer__divider {
  height: 1px;
  margin: 0 1.25rem;
  background: var(--border-color);
  opacity: 0.65;
}

.perfil-card--danger {
  background: var(--bg-color2);
  border: none;
  margin-top: 2.5rem;
}

.perfil-delete-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.perfil-delete-info {
  flex: 1;
}

.perfil-delete-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tx-color);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.perfil-delete-title i {
  font-size: 1rem;
  color: #F65777;
}

.perfil-delete-hint {
  font-size: 0.8rem;
  color: #858484;
  margin: 0;
}

.perfil-delete-btn {
  background: transparent;
  color: #F65777;
  border: 2px solid #F65777;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.perfil-delete-btn:hover {
  background: #F65777;
  color: #fff;
}

/* ====================================
   FOOTER STICKY
======================================= */
.perfil-footer {
  position: fixed;
  bottom: 80px;
  right: 1rem;
  padding: 0.5rem;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@supports not (bottom: env(safe-area-inset-bottom)) {
  .perfil-footer {
    bottom: 90px;
  }
}
.perfil-footer__inner {
  display: flex;
  justify-content: flex-end;
}

.perfil-footer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: "Public Sans", sans-serif;
}
.perfil-footer__btn i {
  font-size: 0.85rem;
}
.perfil-footer__btn--primary {
  background: linear-gradient(135deg, #F65777 0%, #D81B60 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(246, 87, 119, 0.3);
}
.perfil-footer__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(246, 87, 119, 0.35);
}
.perfil-footer__btn--primary:active {
  transform: translateY(0);
}
.perfil-footer__btn--danger {
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
  flex: 0 0 auto;
}
.perfil-footer__btn--danger:hover {
  background: #e74c3c;
  color: #fff;
}

/* ====================================
   GALERÍA DE IMÁGENES (heredado)
======================================= */
.image-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.image-box-edit {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 10px;
}
.image-box-edit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icono-basura-centrado {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}
.icono-basura-centrado:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.icono-basura-centrado i {
  color: #e74c3c;
  font-size: 1.25rem;
}

.add-button-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
  border: 2px dashed rgba(246, 87, 119, 0.35);
  background: linear-gradient(135deg, rgba(246, 87, 119, 0.03) 0%, rgba(216, 27, 96, 0.02) 100%);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.add-button-edit:hover {
  border-color: #F65777;
  background: linear-gradient(135deg, rgba(246, 87, 119, 0.08) 0%, rgba(216, 27, 96, 0.04) 100%);
}
.add-button-edit .icon-plus-solid {
  color: #F65777;
  font-size: 1.25rem;
}

.add-button-edit__label {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
}

.add-button-edit__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.add-button-edit__text {
  font-size: 0.65rem;
  font-weight: 600;
  color: #F65777;
  text-align: center;
}

.orden-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 3px 8px;
  font-size: 0.7rem;
  border-radius: 6px;
  font-weight: 600;
}

.dragging {
  opacity: 0.8;
  transform: scale(1.02);
}

.sortable-ghost {
  opacity: 0.5;
  border: 2px dashed #F65777;
}

/* ====================================
   INTERESES (heredado)
======================================= */
.interest-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  display: inline-block;
  background-color: rgba(246, 87, 119, 0.12);
  border-radius: 20px;
  border: 1px solid rgba(246, 87, 119, 0.4);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #D81B60;
  font-weight: 600;
  line-height: 1.25;
  cursor: default;
  transition: none;
}

[data-theme=Dark] .interest-tag {
  background-color: rgba(246, 87, 119, 0.22);
  border-color: rgba(255, 176, 192, 0.45);
  color: #ffc2d0;
}

/* ====================================
   BARRA DE PROGRESO UPLOAD
======================================= */
.upload-progress {
  width: 100%;
  max-width: 300px;
  margin: 1rem auto 0;
  height: 8px;
  border-radius: 8px;
  background-color: var(--bg-color3);
  overflow: hidden;
}
.upload-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F65777, #D81B60);
  transition: width 0.2s ease;
}
.upload-progress .progress-text {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #858484;
  font-weight: 500;
}

/* ====================================
   ANIMACIONES
======================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.perfil-card {
  animation: fadeIn 0.3s ease forwards;
}
.perfil-card:nth-child(1) {
  animation-delay: 0.05s;
}
.perfil-card:nth-child(2) {
  animation-delay: 0.1s;
}
.perfil-card:nth-child(3) {
  animation-delay: 0.15s;
}
.perfil-card:nth-child(4) {
  animation-delay: 0.2s;
}
.perfil-card:nth-child(5) {
  animation-delay: 0.25s;
}

/* ====================================
   RESPONSIVE
======================================= */
@media (max-width: 480px) {
  .perfil-header {
    padding: 1.25rem 1rem 1.75rem;
  }
  .perfil-header__avatar-wrapper {
    width: 110px;
    height: 110px;
  }
  .perfil-header__name {
    font-size: 1.25rem;
  }
  .perfil-card__header {
    padding: 0.875rem 1rem;
  }
  .perfil-card__icon {
    width: 38px;
    height: 38px;
  }
  .perfil-card__title {
    font-size: 0.95rem;
  }
  .perfil-footer__btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
/* ====================================
   ESTILOS LEGACY (compatibilidad)
======================================= */
.content-detalles-para-info {
  width: 100%;
  border-radius: 15px;
  background-color: var(--bg-color3);
  padding: 15px;
  box-sizing: border-box;
}

.columnas-perfil-redes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .columnas-perfil-redes {
    grid-template-columns: 1fr;
  }
}

.field-perfil, .field1-perfil {
  width: 100%;
  border-radius: 10px;
  background-color: var(--bg-color2);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 0.75rem;
}

.form-control {
  width: 100%;
  font-size: 1rem;
  color: var(--tx-color);
  background-color: transparent;
  border: none;
  font-family: "Public Sans", sans-serif;
}
.form-control:focus {
  outline: none;
}

.nombre-editar {
  color: var(--tx-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.titleEditRedes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.titleEditRedes b {
  color: var(--tx-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.titleEditRedes b i {
  font-size: 1.1rem;
}

.field-perfil-prefix {
  color: #858484;
  font-size: 0.9rem;
  margin-right: 0.25rem;
}

.char-counter {
  color: #858484;
  font-size: 0.8rem;
}

.contenido-perfil-edit {
  background-color: var(--bg-color3);
  border-radius: 15px;
  padding: 1rem;
}

.content-detalles {
  padding: 0;
}

/* ====================================
   PERFIL TABS
======================================= */
.tab-select-btn-edit-perfil {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  font-family: "Public Sans";
}

.tab-select-btn1s {
  width: 100%;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  margin: 0 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color4);
  color: var(--tx-color);
}
.tab-select-btn1s:hover {
  background-color: #FBB6C4;
}
.tab-select-btn1s.active {
  background-color: #F65777;
  color: white;
}

.tab-content12 {
  display: none;
  margin-top: 25px;
}
.tab-content12.active {
  display: block;
}

/* ====================================
   PERFIL VIEW
======================================= */
.perfil-view {
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.imagen-pv {
  width: stretch;
  margin-bottom: 1rem;
}

.card-template-pv {
  position: relative;
  width: 100%;
  min-height: 550px;
  border-radius: 20px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  font-size: 12px;
  margin-bottom: 1rem;
}

.contador-imagenes-pv {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
}

.nombre-cards {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.content-detalles-pv {
  width: 100%;
  background-color: var(--bg-color);
  padding: 0.5rem;
}

.section-container-pv {
  background-color: var(--bg-color2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.section-header-pv {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.section-header-pv i {
  font-size: 20px;
  color: #D81B60;
  margin-right: 10px;
}

.section-title-pv {
  font-size: 16px;
  font-weight: bold;
  color: var(--tx-color);
  margin-right: 10px;
  white-space: nowrap;
}

.section-content-pv {
  font-size: 14px;
  color: var(--tx-color);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 0.1rem;
}
.section-content-pv ul {
  list-style: none;
  padding-left: 0;
}
.section-content-pv ul li {
  margin-bottom: 5px;
}
.section-content-pv p, .section-content-pv ul {
  margin: 0;
}

.icono-red-social-pv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: var(--bg-color4);
  border-radius: 10px;
}
.icono-red-social-pv i {
  color: #D81B60;
}
.icono-red-social-pv a {
  text-decoration: none;
  color: var(--tx-color);
  font-size: 14px;
  font-weight: bold;
}

.info-item-pv {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--tx-color);
  padding: 10px 0;
}
.info-item-pv.bordered {
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
}
.info-item-pv i {
  margin-right: 5px;
  font-size: 1.2rem;
  color: #D81B60;
}
.info-item-pv span {
  color: var(--tx-color);
}

.contenido-aviso-publico {
  background: rgba(246, 87, 119, 0.08);
  color: var(--tx-color);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.icon-info-circle.infoperfil {
  color: #F65777;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ====================================
   PERFIL DETALLE (MODAL)
======================================= */
.card-template-punches-info {
  position: relative;
  width: 100%;
  min-height: 550px;
  border-radius: 20px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  font-size: 12px;
  margin-bottom: 1rem;
}

.contador-imagenes {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
  border-radius: 6px;
}

.section-title,
.section-title-box {
  font-size: 16px;
  font-weight: bold;
  color: var(--tx-color);
}

.botones-basura {
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 19.5px);
  border-radius: 10px;
  border: 1px solid #F52F57;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.icon-plus-solid {
  color: #999;
}

/* ====================================
   ESTILOS LEGACY ADICIONALES
======================================= */
.form-perfil__intro {
  margin: 0 0 1.25rem 0;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--tx-color);
  text-align: center;
  line-height: 1.45;
}

.form-perfil__block {
  margin-bottom: 1.75rem;
}

.form-perfil__block-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tx-color);
}

.form-perfil__block-hint {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: #858484;
  line-height: 1.4;
}

.form-perfil__block--photo .porcentaje-completado {
  background: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-perfil__block--gallery .form-perfil__gallery-wrap {
  margin-top: 0;
}

.form-perfil__campo--center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-perfil__block--intereses .form-perfil__block-hint {
  margin-bottom: 1rem;
}

.usuario-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 15px;
  margin-top: 10px;
}

.foto-usuario-progreso-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto-usuario-container {
  position: relative;
  width: 120px;
  height: 120px;
  z-index: 2;
}

.foto-usuario {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.porcentaje-completado {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F65777;
  color: white;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 15px;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
}

.editar-icono {
  position: absolute;
  right: 1px;
  background-color: #fff;
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}
.editar-icono:hover {
  box-shadow: 0 2px 10px rgba(246, 87, 119, 0.25);
}
.editar-icono img {
  width: 20px;
  height: 20px;
}

.progress-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.nombre-mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  color: var(--tx-color);
}

.columnas-perfil {
  align-self: stretch;
  flex-direction: row;
  justify-content: space-between;
  gap: 25px;
}

.title4 {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 0px;
  display: block;
  width: 100%;
}

.title4-info b, .title5-info b {
  color: #333;
  font-weight: 600;
  display: block;
}

.columnas-perfil > .title4 + .title4 {
  margin-top: 1.5rem;
}

.title4 hr {
  margin-bottom: 1rem;
}

.title4 > .nombre-editar:first-of-type {
  margin-top: 0.5rem;
}

.seccion-visibilidad {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tx-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.seccion-visibilidad i {
  font-size: 1.2rem;
  color: #f65777;
}

.form-perfil__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  background-color: var(--bg-color);
}

.form-perfil__btn {
  font-family: "Public Sans", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 0.6rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
}

.form-perfil__btn--primario {
  background-color: #f65777;
  color: #fff;
  box-shadow: 0 3px 8px rgba(246, 87, 119, 0.25);
}
.form-perfil__btn--primario:hover {
  background-color: #e04d6a;
  box-shadow: 0 3px 10px rgba(246, 87, 119, 0.35);
}

.form-perfil__btn--secundario {
  background-color: var(--tx-color-inv);
  color: #f65777;
  border: 2px solid #f65777;
}
.form-perfil__btn--secundario:hover {
  background-color: #f65777;
  color: #fff;
  box-shadow: 0 3px 10px rgba(246, 87, 119, 0.25);
}

.btn-block {
  width: 100%;
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.btn-block:hover {
  background-color: #e04547;
}

.icono-imagen {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
}

.warning-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.2rem;
}

@keyframes latido {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.animacion-latido {
  animation: latido 1.4s infinite ease-in-out;
}

@media (max-width: 768px) {
  .form-perfil__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form-perfil__btn {
    width: 100%;
    text-align: center;
  }
}
.columnas-perfil-intereses {
  width: 100%;
}

.estilo-textarea {
  resize: none;
}

.textarea-container {
  position: relative;
  width: 100%;
}

.field-dropdown {
  position: relative;
  border-radius: 10px;
  background-color: #eff4f5;
  align-items: center;
  padding: 10px 15px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 15px;
  margin-top: 25px;
}

.field1-perfil .field-dropdown-ubicacion {
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  min-height: unset;
}

.field1-perfil .field-dropdown-ubicacion input {
  padding: 0.375rem 0.75rem;
  height: calc(1.5em + 0.75rem);
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.3rem;
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
}
