/* Special Gradients */
.instagram-gradient {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.theme-bg {
  background-color: var(--theme-color);
}

.theme-bg-light {
  background-color: var(--theme-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bg-gradient-radial {
  background-image: radial-gradient(circle at center, var(--tw-gradient-stops));
}

@keyframes flashIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-flash-in {
  animation: flashIn 0.3s ease-out forwards;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.theme-elegant {
  & .card-container {
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .content-bg {
    background-color: white;
    min-height: 600px;
  }

  & .font-script {
    font-family: "Great Vibes", cursive;
  }

  & .social-icon {
    transition: transform 0.2s;
  }

  & .social-icon:hover {
    transform: scale(1.1);
  }

  & .contact-links {
    & i {
      color: var(--theme-color);
    }

    & a:hover i {
      color: white !important;
    }
  }

  & .designation {
    color: white;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px;
  }
}

.theme-minimal {
  & .social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s;
  }

  & .social-icon:hover {
    transform: translateY(-2px);
  }

  & .social-icon img {
    opacity: 0.9;
    transition: opacity 0.2s;
  }

  & .social-icon:hover img {
    opacity: 1;
  }

  & .theme-icon-color {
    color: var(--theme-color);
  }

  /* Remove all platform-specific filters */
  & .instagram img,
  & .whatsapp img,
  & .tiktok img,
  & .linkedin img,
  & .youtube img,
  & .cashapp img {
    filter: none;
  }

  .bg-cover-container {
    min-height: 200px;
  }

  @media (max-width: 640px) {
    .bg-cover-container {
      height: auto;
    }
  }
}

.theme-classic {
  .social-link {
    transition: all 0.3s ease;
  }

  .social-link:hover {
    transform: translateY(-2px);
  }

  .bg-cover-container {
    min-height: 200px;
    height: auto;
  }

  /* Media queries para ajustar comportamiento responsivo */
  @media (max-width: 640px) {
    .bg-cover-container {
      height: auto;
      /* aspect-ratio: 4/3;  Mantiene proporción consistente */

      & img.cover-image {
        min-height: 200px;
      }
    }
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.theme-modern {
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  animation: gradientShift 20s ease-in-out infinite;

  .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--shadow-medium);
    padding: 36px 28px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 1s ease-out;
  }

  .glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  }

  .glass-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 70%
    );
    pointer-events: none;
  }

  /* Profile Section - Enhanced Glass */
  .profile-section {
    text-align: center;
    margin-bottom: 36px;
  }

  .profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    box-shadow: var(--shadow-subtle), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .profile-info {
    color: var(--text-primary);
  }

  .name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .profile-name {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
  }

  .verified-badge {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #007aff, #0056d6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  }

  .profile-title {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 500;
  }

  .profile-bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 400;
  }

  /* Contact Actions - iOS 26 Liquid Glass */
  .contact-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 36px;
  }

  .contact-btn {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 19px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .contact-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .contact-btn:hover::before {
    opacity: 1;
  }

  .contact-btn:active {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
  }

  /* Save Contact Button - iOS 26 Glass */
  .save-contact-section {
    margin-bottom: 36px;
  }

  .save-contact-btn {
    width: 100%;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
  }

  .save-contact-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .save-contact-btn:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
  }

  /* Social Media Grid - Liquid Glass */
  .social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
  }

  .social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .social-link:hover {
    transform: translateY(-5px);
    color: var(--text-primary);
  }

  .social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-subtle);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
  }

  .social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .social-link:hover .social-icon::before {
    opacity: 1;
  }

  .social-icon.instagram {
    background: linear-gradient(135deg, #e4405f, #f77737, #fcaf45);
  }

  .social-icon.facebook {
    background: #1877f2;
  }

  .social-icon.tiktok {
    background: #000000;
  }

  .social-icon.twitter {
    background: #000000;
  }

  .social-icon.telegram {
    background: #0088cc;
  }

  .social-icon.whatsapp {
    background: #25d366;
  }

  .social-icon.linkedin {
    background: #0077b5;
  }

  .social-icon.youtube {
    background: #ff0000;
  }

  .social-icon.paypal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .social-icon.zelle {
    background: #6B1BBF;
  }

  .social-icon.cashapp {
    background: #00d632;
  }

  .social-link span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
  }

  /* PayPal Logo Styling */
  .paypal-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  /* SVG Icons Styling */
  .social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  /* Featured Links - Enhanced Glass */
  .featured-links {
    margin-bottom: 36px;
  }

  .featured-title {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 22px;
    letter-spacing: -0.01em;
  }

  .links-container {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
  }

  .featured-link {
    display: flex;
    align-items: center;
    padding: 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
  }

  .featured-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .featured-link:last-child {
    border-bottom: none;
  }

  .featured-link:hover::before {
    opacity: 1;
  }

  .link-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .link-content {
    flex: 1;
  }

  .link-title {
    display: block;
    font-weight: 500;
    font-size: 17px;
    color: var(--text-primary);
  }

  .link-description {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
  }

  .link-arrow {
    color: var(--text-secondary);
    font-size: 15px;
    transition: transform 0.3s ease;
  }

  .featured-link:hover .link-arrow {
    transform: translateX(4px);
  }

  /* Message Section - iOS 26 Glass */
  .message-section {
    margin-bottom: 36px;
  }

  .message-btn {
    width: 100%;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
  }

  .message-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .message-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .message-btn:hover::before {
    opacity: 1;
  }

  .message-btn:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
  }

  /* Background Selector - iOS 26 Glass */
  .background-section {
    text-align: center;
  }

  .background-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }

  .background-picker {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    position: relative;
  }

  .background-picker::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
  }

  /* Tab Navigation - Enhanced Glass */
  .bg-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 24px;
    gap: 3px;
  }

  .bg-tab {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
  }

  .bg-tab.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .bg-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
  }

  .bg-tab i {
    font-size: 13px;
  }

  /* Tab Content - Smooth Transitions */
  .bg-content {
    position: relative;
  }

  .bg-tab-panel {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .bg-tab-panel.active {
    display: block;
  }

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

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

  .background-option {
    width: 100%;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
  }

  .background-option:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .background-option.active {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
      inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
  }

  .background-option.active::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
    background: rgba(0, 122, 255, 0.9);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
  }

  .bg-preview {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    position: relative;
  }

  .bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: background 0.3s ease;
  }

  .pet-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .pet-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;

    /* Advanced Liquid Glass Effect */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 100%
      ),
      linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Enhanced Border with Gradient */
    border: 1.5px solid transparent;
    background-clip: padding-box;
    position: relative;

    /* Multi-layer Shadows for Depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08),
      0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 0 rgba(255, 255, 255, 0.2);

    /* Enhanced Text Visibility */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 8px rgba(0, 0, 0, 0.4),
      0 0 12px rgba(0, 0, 0, 0.3), 1px 1px 0 rgba(0, 0, 0, 0.7),
      -1px -1px 0 rgba(0, 0, 0, 0.7);

    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
  }
}
