@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0d0d0d;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: #60a5fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: #1e3a8a;
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #808080;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c0c0c0;
}

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: #b0b0b0; }

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* VCard Principal */
.vcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .vcard {
    margin: 2rem auto;
  }
}

/* Header */
.vcard-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.9) 0%, #1a1a1a 100%);
  text-align: center;
}

.vcard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/bg-pattern.png') center/cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.vcard-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.vcard-logo img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.vcard-slogan {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  font-style: italic;
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.vcard-brands {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.vcard-brands img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: all 300ms ease;
}

.vcard-brands img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Contact Info */
.vcard-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  border-bottom: none;
}

/* Mini Tarjeta de Contacto */
.contact-card {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(192, 192, 192, 0.1);
  transition: all 300ms ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(59, 130, 246, 0.3),
              0 0 20px rgba(59, 130, 246, 0.1);
}

.contact-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-logo {
  max-width: 120px;
  height: auto;
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-card-body {
  padding: 1.25rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-role {
  font-size: 1rem;
  color: #b0b0b0;
}

/* Actions Section (Share & Save) */
.vcard-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid rgba(192, 192, 192, 0.3);
  border-radius: 0.75rem;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms ease;
  background: transparent;
  color: #ffffff;
}

.btn-share:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-share:active {
  transform: translateY(0);
}

.btn-share svg {
  color: #3b82f6;
}

.btn-save-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms ease;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn-save-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-save-contact:active {
  transform: translateY(0);
}

/* Contact Section */
.vcard-contact {
  padding: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1e3a8a;
  display: inline-block;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(45, 45, 45, 0.5);
  border-radius: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 300ms ease;
}

.contact-item:hover {
  background: rgba(30, 58, 138, 0.2);
  transform: translateX(5px);
}

.contact-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.contact-item .icon svg {
  color: #ffffff;
}

.contact-item .info {
  display: flex;
  flex-direction: column;
}

.contact-item .info .label {
  font-size: 0.75rem;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item .info .value {
  font-size: 1rem;
  font-weight: 500;
}

/* CTA Section */
.vcard-cta {
  padding: 1.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms ease;
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.btn-whatsapp:hover {
  background-color: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
}

/* Features Section */
.vcard-features {
  padding: 1.5rem;
}

.vcard-features .section-title {
  text-align: center;
  display: block;
  border-bottom: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 300ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.75rem;
  color: #b0b0b0;
  margin-bottom: 0;
}

/* Footer */
.vcard-footer {
  padding: 1.5rem;
  text-align: center;
  background: rgba(13, 13, 13, 0.5);
  border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.copyright {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.copyright a {
  color: #b0b0b0;
}

.copyright a:hover {
  color: #3b82f6;
}

.powered-by {
  font-size: 0.75rem;
  color: #6b7280;
}

.powered-by a {
  color: #3b82f6;
}

/* Animations */
.vcard-header,
.vcard-contact-info,
.vcard-actions,
.vcard-contact,
.vcard-cta,
.vcard-features,
.vcard-footer {
  animation: slideUp 0.5s ease forwards;
}

.vcard-header { animation-delay: 0.1s; }
.vcard-contact-info { animation-delay: 0.2s; }
.vcard-actions { animation-delay: 0.3s; }
.vcard-contact { animation-delay: 0.4s; }
.vcard-cta { animation-delay: 0.5s; }
.vcard-features { animation-delay: 0.6s; }
.vcard-footer { animation-delay: 0.7s; }

.vcard > * {
  opacity: 0;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 300ms ease;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
