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

:root {
  --bg: #f0f2f5;
  --card-bg: #fff;
  --primary: #106EBE;
  --accent: #0FFCBE;
  --dark: #01257D;
  --text: #343a40;
  --text-light: #6c757d;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --radius: 20px;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: 20px;
  padding: 48px 20px 36px;
  margin: -36px -24px 20px;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,252,190,0.12), transparent 70%);
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,110,190,0.2), transparent 70%);
  bottom: -20px;
  left: -20px;
  pointer-events: none;
}

.hero-section .header { margin-bottom: 0; }

.hero-section .header h1 { color: #fff; }

.hero-section .header .title { color: var(--accent); }

/* ===== CARD ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  padding: 40px 24px 24px;
  text-align: center;
}

/* ===== HEADER ===== */
.header { margin-bottom: 32px; }

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(15,252,190,0.3);
}

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

.header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.header .title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* ===== ICON ROW ===== */
.icon-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.icon-btn i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.icon-btn::after {
  content: attr(data-label);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
}

.icon-btn:active { transform: scale(0.92); }
.icon-btn:active i { transform: scale(0.9); }

/* Icon colors */
.instagram i { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.facebook i { background: #1877f2; }
.whatsapp i { background: #25d366; }
.location i { background: #e74c3c; }
.gallery i { background: #9b59b6; }


/* ===== ACTION BARS ===== */
.action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 12px;
  text-align: left;
}

.action-bar i:first-child {
  font-size: 1.2rem;
  color: var(--accent);
}

.action-bar .fa-chevron-right {
  margin-left: auto;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.action-bar:active { transform: scale(0.97); opacity: 0.9; }

/* ===== QR CODE ===== */
.qr-section {
  display: flex;
  justify-content: center;
  margin: 20px 0 16px;
}

.qr-code {
  border-radius: 6px;
  display: block;
}

/* ===== BOTTOM SECTION ===== */
.bottom-section {
  background: var(--primary);
  margin: 0 -24px -24px;
  padding: 16px 24px 0;
  border-radius: 0 0 20px 20px;
}

/* ===== SHARE ROW ===== */
.share-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.share-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 800;
}

.share-icons {
  display: flex;
  gap: 16px;
}

.share-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: 0.2s ease;
}

.share-circle i {
  font-size: 1.4rem;
  color: #fff;
  transition: 0.2s ease;
}

.share-circle:active { transform: scale(0.85); }

.share-circle[data-label="Instagram"]:hover i { color: #e1306c; }
.share-circle[data-label="Facebook"]:hover i { color: #1877f2; }
.share-circle[data-label="WhatsApp"]:hover i { color: #25d366; }
.share-circle[data-label="Telegram"]:hover i { color: #0088cc; }

/* ===== FOOTER ===== */
.footer {
  font-size: 0.72rem;
  color: #fff;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}




/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade 0.2s ease;
}

.modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  animation: slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}

.modal-content-mapa {
  max-height: 90vh;
}

.modal-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: 0.2s;
}

.modal-close:active { background: #ddd; transform: scale(0.9); }

.modal-body {
  padding: 8px 24px 24px;
  clear: both;
}

.modal-body h2 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Serviços Modal */
.bpc-text {
  text-align: center;
  font-size: 0.95rem;
}

.bpc-bold {
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 16px;
}

.bpc-valor {
  background: var(--primary);
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.bpc-lista {
  list-style: none;
  padding: 0;
}

.bpc-lista li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.bpc-lista li:last-child { border-bottom: none; }

.bpc-lista li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.modal-body ul {
  list-style: none;
  padding: 0;
}

.modal-body ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-light);
  font-size: 0.88rem;
  border-bottom: 1px solid #eee;
}

.modal-body ul li:last-child { border-bottom: none; }

.modal-body ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* Gallery grid inside modal */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg);
}

.gallery-item:active { opacity: 0.7; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Map */
.map-container {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.map-container iframe { display: block; }

.map-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.map-address i { color: var(--accent); }

/* Lightbox */
.modal-lightbox {
  align-items: center;
  padding: 20px;
}

.modal-content-lightbox {
  background: transparent;
  box-shadow: none;
  border-radius: 14px;
  max-width: 500px;
  max-height: unset;
  animation: fade 0.2s ease;
}

.modal-content-lightbox .modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
}

#lightbox-img {
  width: 100%;
  border-radius: 14px;
}

/* Scrollbar */
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Animations */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== TABLET+ ===== */
@media (min-width: 500px) {
  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    border-radius: 20px;
    max-height: 80vh;
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-content-mapa { max-height: 85vh; }

  @keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    float: none;
    margin: 0;
  }
}
