/* Reset y fuente base */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Bricolage Grotesque', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #333;
}

/* Contenedor principal */
.container {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  background: #F8F9FA;
  border-radius: 36px;
}

/* Encabezado */
header {
  text-align: center;
  margin-bottom: 30px;
}
header img {
  max-width: 64px;
  margin-bottom: 10px;
}
header h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
header p {
  font-size: 1rem;
  color: #666;
}

/* Formularios */
form .form-group {
  margin-bottom: 20px;
}
form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}
form input:focus,
form textarea:focus,
form select:focus {
  border-color: #00cc66;
  outline: none;
}

/* Grupos específicos */
.phone-group {
  display: flex;
  gap: 10px;
}
.country-code {
  flex: 1;
}
.phone-number {
  flex: 2;
}

/* Botones */
button,
.button-primary,
.button-secondary {
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.button-primary {
  background: #00cc66;
  color: #fff;
}
.button-primary:hover {
  background: #00994D;
}
.button-purple {
  background: #6600CC;
  color: #fff;
}
.button-purple:hover {
  background: #4C0099;
}
.button-gray {
  background: #F0F0F0;
  color: #000;
}
.button-gray:hover {
  background: #E0E0E0;
}
.button-secondary {
  background: transparent;
  color: #00CC66;
  border: 2px solid #00CC66;
  text-decoration: none;
}
.button-secondary:hover {
  background: #00994D;
  border: 2px solid #00994D;
  color: #fff;
}
button#emoji-trigger {
  background: #eee;
  padding: 10px;
  font-size: 1.2rem;
}

/* Grupo de enlace generado */
#result {
  margin-top: 30px;
}
.link-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.link-group input {
  flex: 1;
}
.link-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.button-reset {
  margin-top: 32px;
  text-align: center;
}

/* QR */
.qr-container {
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #777;
}
footer img {
  max-width: 180px;
  margin-bottom: 10px;
}

/* Animación de fade-in */
.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.button-row button {
  flex: 1 1 45%;
  min-width: 140px;
}

#genLink {
  width: 100%;
  padding: 10px;
  border: 1px solid #B1F2B4;
  background-color: #E5FFE7;
  border-radius: 50px;
  font-size: 16px;
  color: #333;
  cursor: default;
  margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 640px) {
  .phone-group {
    flex-direction: column;
  }
  .link-group {
    flex-direction: column;
  }
  .link-buttons {
    justify-content: center;
    width: 100%;
  }
}


