/* css/perfil.css - TerreNet Vendor Profile Premium Styles */

/* ========================================
   PROFILE HERO
   ======================================== */
.profile-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 2.5rem 1.5rem 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.profile-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .profile-hero-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Avatar */
.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.profile-avatar-large.avatar-pro {
  border-color: #fbbf24;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.profile-avatar-large.avatar-premium {
  border-color: #f59e0b;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.profile-hero-info {
  flex: 1;
}

.profile-hero-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .profile-hero-name {
    justify-content: center;
  }
}

.profile-hero-empresa {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.profile-hero-tipo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

/* Stats Row */
.profile-hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .profile-hero-stats {
    justify-content: center;
  }
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Contact Buttons */
.profile-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .profile-hero-actions {
    justify-content: center;
  }
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-contact-wa {
  background: #22c55e;
  color: white;
}
.btn-contact-wa:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-contact-phone {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-contact-phone:hover {
  background: rgba(255,255,255,0.2);
}

.btn-contact-email {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-contact-email:hover {
  background: rgba(255,255,255,0.2);
}

/* ========================================
   PROFILE CONTENT
   ======================================== */
.profile-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Bio Section */
.profile-bio-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.profile-bio-title {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-bio-text {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   TERRENOS GRID
   ======================================== */
.profile-terrenos-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terrenos-count {
  background: #e2e8f0;
  color: #475569;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.terrenos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Terreno Card */
.terreno-card-mini {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.terreno-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.terreno-card-mini.is-destacado {
  border-color: #fbbf24;
}

.terreno-card-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.terreno-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terreno-destacado-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.terreno-card-body {
  padding: 1rem;
}

.terreno-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.terreno-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.terreno-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
}

.terreno-card-visitas {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.profile-reviews-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.profile-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.profile-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.profile-empty-text {
  font-size: 0.95rem;
}

/* ========================================
   SKELETON LOADING
   ======================================== */
.skeleton-profile {
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .profile-hero {
    padding: 2rem 1rem;
  }
  
  .profile-avatar-large {
    width: 100px;
    height: 100px;
  }
  
  .profile-hero-name {
    font-size: 1.35rem;
  }
  
  .terrenos-grid {
    grid-template-columns: 1fr;
  }
}
