/* Shared profile-home skin based on Victor Rangel's page. */

.p-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: #07090f;
  overflow: hidden;
}

.p-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.p-hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.p-hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 9, 15, 0.4) 0%,
      rgba(7, 9, 15, 0.1) 30%,
      rgba(7, 9, 15, 0.6) 70%,
      rgba(7, 9, 15, 0.95) 100%
    ),
    radial-gradient(
      ellipse 800px 600px at 25% 40%,
      var(--prof-primary-glow),
      transparent
    ),
    radial-gradient(
      ellipse 600px 500px at 75% 60%,
      var(--prof-accent-glow),
      transparent
    );
}

.p-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.p-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-3xl);
  align-items: end;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
}

@media (max-width: 900px) {
  .p-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }
}

.p-photo-frame {
  position: relative;
}

.p-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 80px var(--prof-primary-glow);
}

.p-initials-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--prof-primary), var(--prof-primary-mid));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 80px var(--prof-primary-glow);
}

.p-initials-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.2), transparent 50%);
  pointer-events: none;
}

.p-initials-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.p-initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 0, 0, 0.15);
  user-select: none;
}

@media (max-width: 900px) {
  .p-initials-avatar {
    aspect-ratio: 1;
    max-width: 240px;
    margin: 0 auto;
    border-radius: 50%;
  }

  .p-initials {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

.p-photo-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--prof-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.p-photo-badge i {
  font-size: 1.1rem;
}

.p-photo-glow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: var(--prof-primary-mid);
  filter: blur(40px);
  opacity: 0.2;
  border-radius: 50%;
}

.p-hero-info {
  padding-bottom: var(--space-xl);
}

.p-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: var(--prof-primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.p-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.p-name span {
  background: linear-gradient(135deg, var(--prof-primary-light), var(--prof-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

@media (max-width: 900px) {
  .p-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.p-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .p-specialties {
    justify-content: center;
  }
}

.p-specialty {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.p-specialty:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.p-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.p-location i {
  color: var(--prof-primary-light);
}

.p-hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .p-hero-actions {
    justify-content: center;
  }
}

.p-hero-actions .btn-whatsapp {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.25),
    0 12px 32px rgba(37, 211, 102, 0.1);
}

.p-hero-actions .btn-ghost {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.p-hero-actions .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.p-stats {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.p-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--prof-primary-light),
    var(--prof-accent-light),
    transparent
  );
}

.p-stats-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  padding: var(--space-xl) 0;
}

@media (max-width: 640px) {
  .p-stats-inner {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }
}

.p-stat {
  text-align: center;
}

.p-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--prof-primary-mid), var(--prof-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.p-stat-label {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  margin-top: 4px;
  font-weight: 500;
}

.p-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}

.p-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}

.p-nav-inner::-webkit-scrollbar {
  display: none;
}

.p-nav-link {
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray-400);
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.p-nav-link:hover {
  color: var(--color-gray-600);
  background: var(--color-gray-50);
}

.p-nav-link.active {
  color: var(--prof-primary-mid);
  background: var(--prof-surface-warm);
}

.p-section {
  padding: var(--space-4xl) 0;
  scroll-margin-top: calc(var(--header-height) + 60px);
}

.p-section-alt {
  background: var(--prof-surface);
}

.p-section-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #07090f, #0f172a 40%, #1e293b 100%);
}

.p-section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 20% 50%, var(--prof-primary-glow), transparent),
    radial-gradient(ellipse 400px 300px at 80% 50%, var(--prof-accent-glow), transparent);
}

.p-section-dark .container {
  position: relative;
  z-index: 2;
}

.p-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--prof-primary-mid);
  margin-bottom: var(--space-sm);
}

.p-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.p-section-dark .p-label {
  color: var(--prof-primary-light);
}

.p-section-dark .p-title {
  color: #fff;
}

.p-about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .p-about-grid {
    grid-template-columns: 1fr;
  }
}

.p-about-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-xl);
}

.p-bio {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-gray-500);
}

.p-bio p + p {
  margin-top: var(--space-lg);
}

.p-bio strong {
  color: var(--color-gray-700);
}

.p-info-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: var(--space-2xl);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 8px 32px rgba(0, 0, 0, 0.04);
}

.p-info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.p-info-row:last-child {
  border-bottom: none;
}

.p-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--prof-primary-mid), var(--prof-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--prof-primary-glow);
}

.p-info-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-400);
  margin-bottom: 2px;
}

.p-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

.p-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 860px) {
  .p-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .p-services-grid {
    grid-template-columns: 1fr;
  }
}

.p-service {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border-radius: 20px;
  padding: var(--space-2xl);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.p-service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--prof-primary-mid), var(--prof-primary-light));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.p-service:hover {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-6px);
}

.p-service:hover::after {
  opacity: 1;
}

.p-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.p-service h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.p-service p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-gray-500);
}

.p-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 860px) {
  .p-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .p-method-grid {
    grid-template-columns: 1fr;
  }
}

.p-method-step {
  text-align: center;
  padding: var(--space-xl);
}

.p-method-num {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background: linear-gradient(135deg, var(--prof-primary-mid), var(--prof-primary));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 16px var(--prof-primary-glow);
}

.p-section-dark .p-method-step h4 {
  color: #fff;
}

.p-section-dark .p-method-step p {
  color: rgba(255, 255, 255, 0.5);
}

.p-method-step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.p-method-step p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.p-cta-section {
  padding: var(--space-4xl);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #07090f, #0f172a 50%, #1e293b);
}

.p-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px at 30% 50%, var(--prof-primary-glow), transparent),
    radial-gradient(ellipse 300px at 70% 50%, var(--prof-accent-glow), transparent);
}

.p-cta-section h2 {
  color: #fff;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.p-cta-section p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.0625rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.p-cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.p-float-wa {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 100px;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.3),
    0 16px 40px rgba(37, 211, 102, 0.15);
  transition: all 0.3s ease;
  animation: waFloat 3s ease-in-out infinite;
}

.p-float-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.4),
    0 20px 48px rgba(37, 211, 102, 0.2);
  color: #fff;
}

.p-float-wa i {
  font-size: 1.25rem;
}

@keyframes waFloat {
  0%,
  100% {
    box-shadow:
      0 4px 16px rgba(37, 211, 102, 0.3),
      0 16px 40px rgba(37, 211, 102, 0.15);
  }

  50% {
    box-shadow:
      0 4px 16px rgba(37, 211, 102, 0.45),
      0 16px 40px rgba(37, 211, 102, 0.25);
  }
}

@media (max-width: 640px) {
  .p-float-wa span {
    display: none;
  }

  .p-float-wa {
    padding: 16px;
  }
}

.p-breadcrumb {
  padding-top: calc(var(--header-height) + var(--space-sm));
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.p-breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.p-breadcrumb a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.p-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.p-breadcrumb .current {
  color: var(--prof-primary-light);
  font-weight: 600;
}
