:root {
  --primary-green: #2b8045;
  --dark-green: #1e5a31;
  --light-bg-green: #eaf3e8;
  --card-radius: 28px;
}

body, html {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #6c9e65;
}

.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px 15px; /* En PC le da un espacio arriba y abajo */
}

.bcard-container {
  width: 100%;
  max-width: 420px;
  /* Quitamos min-height de aquí para que en escritorio solo mida lo alto de su contenido */
  height: auto; 
  position: relative;

  border-radius: var(--card-radius) !important; /* En PC recupera las esquinas redondeadas */
  overflow: hidden;

  background-image: url('../assets/background.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 480px) {
  .main-wrapper {
    padding: 0; /* Sin espacios blancos a los lados ni arriba en móvil */
  }

  .bcard-container {
    max-width: 100% !important;
    min-height: 100vh; /* En móvil SÍ se estira al 100% de la altura de la pantalla */
    min-height: 100dvh;
    border-radius: 0 !important; /* Bordes rectos pegados a la pantalla del móvil */
    box-shadow: none;
  }

  .bcard-body {
    margin-left: 14px;
    margin-right: 14px;
  }
}

.bcard-header-bg {
  padding: 25px 20px 9px 20px;
  position: relative;
  text-align: center;
  background: transparent;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  margin-top: 4px;
}

.header-action-btn:active {
  transform: scale(0.92);
}

.header-action-btn img {
  width: 26px;
  height: 26px;
}

.header-logo img {
  max-width: 75px;
  height: auto;
}

.bcard-header-bg.no-profile-pic {
  padding-bottom: 16px;
}

.bcard-header-bg.no-profile-pic .header-actions {
  margin-bottom: 10px;
}

.header-logo-no-profile {
  text-align: center;
  padding: 10px 0 12px;
}

.header-logo-no-profile img {
  width: 132px;
  max-width: 100%;
  height: auto;
}

.profile-container {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 10px auto -80px auto;
  z-index: 10;
}

.profile_pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid var(--primary-green);
  object-fit: cover;
  box-shadow: none;
  background-color: #fff;
}

.bcard-body {
  background: #ffffff;
  border-radius: var(--card-radius);
  margin: 0px 18px 20px 18px;
  padding: 20px 20px 24px 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

.social-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-badges-floating {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
}

.social-badge {
  background-color: var(--primary-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-decoration: none;
}

.social-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-row-no-profile {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.social-badge-inline {
  position: static;
}

.bcard-body {
  background: #ffffff;
  border-radius: var(--card-radius);
  margin: 0px 18px 20px 18px;
  padding: 90px 20px 24px 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

.bcard-body.no-profile-pic {
  padding-top: 24px;
}

.profile-info {
  text-align: center;
  margin-bottom: 18px;
}

.contact-name {
  color: #111111;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 27px 0 2px 0;
  letter-spacing: 0.5px;
}

.contact-position {
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item {
  background-color: var(--light-bg-green);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.contact-item:hover {
  background-color: #dfebd9;
}

.contact-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}

.contact-item .icon img {
  width: 20px;
  height: 20px;
}

.contact-item span {
  color: var(--dark-green);
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-all;
}

#qr-container {
  display: none;
  text-align: center;
  padding: 14px;
  background-color: var(--light-bg-green);
  border-radius: 16px;
  margin: auto;
  margin-bottom: 19px;
  max-width: 180px;
}

#qr-code img, #qr-code canvas {
  margin: 0 auto;
  max-width: 100%;
  /*border-radius: 8px;*/
}

.btn-add-contact {
  width: 100%;
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(43, 128, 69, 0.3);
  transition: background-color 0.2s ease;
}

.btn-add-contact:hover {
  background-color: var(--dark-green);
}