@font-face {
  font-family: "Vend Sans";
  src: url("../fonts/Vend_Sans/VendSans-VariableFont_wght.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ===================== */
/* Animaciones */
/* ===================== */

/* Fade-in general */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zoom-in foto */
@keyframes zoomIn {
  from {
    transform: scale(0.8) rotate(2deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(2deg);
    opacity: 1;
  }
}

/* Latido suave */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1) rotate(2deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
}

/* Slide desde la izquierda */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bounce entrada íconos */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1; /* 👈 mantenemos visible al final */
  }
}

body {
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  font-family: "Montserrat", Arial, sans-serif;
  padding: 10px 15px 15px 15px;
  overflow: hidden;
}

.href {
  text-decoration: none;
}

/* Contenedor */
.credential-container {
  width: 100%;
  max-width: 360px;
  background: url("../img/back con logo.png") no-repeat bottom center / cover;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  padding: 25px 20px 120px; /* 👈 padding-bottom para despejar el logo */
  margin: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  opacity: 0; /* 👈 oculto inicial */
  animation: fadeInUp 0.8s ease forwards;
}

/* Tablet/Desktop */
@media (min-width: 768px) {
  .credential-container {
    max-width: 400px;
  }
}

/* Foto */
.credential-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #ff5722;
  overflow: hidden;
  margin: 0 auto 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: zoomIn 1s ease forwards, pulse 4s ease-in-out infinite;
}
.credential-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(2deg);
}

/* Nombre y puesto */
.employee-name {
  font-size: clamp(24px, 6vw, 28px);
  font-weight: 700;
  color: #ff5722;
  margin-bottom: 4px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}
.employee-role {
  font-size: clamp(16px, 4.5vw, 18px);
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}

/* Contacto */
.credential-contact {
  text-align: left;
}
.credential-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.9s;
}
/* Teléfono */
.credential-contact p.telefono {
  font-size: clamp(18px, 5vw, 22px); /* 👈 más balanceado */
  font-family: "Vend Sans";
  font-weight: bold;
  color: #444;
}
.credential-contact p.telefono .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
/* Email */
.credential-contact p.email {
  font-size: clamp(13px, 4vw, 18px);
  font-weight: bold;

  color: #444;
}
.credential-contact p.email .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.credential-contact p.vcf {
  font-size: clamp(13px, 4vw, 18px);
  font-weight: bold;

  color: #444;
}

/* Redes sociales */
.social-text {
  font-size: 16px;
  margin: 10px 0 6px;
  text-align: center;
  color: #000;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.3s;
}
.credential-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.credential-socials a {
  opacity: 0;
  animation-name: bounceIn;
  animation-duration: 0.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards; /* 👈 mantiene el último estado */
  animation-iteration-count: 1; /* 👈 solo una vez */
}
.credential-socials a:nth-child(1) {
  animation-delay: 1.2s;
}
.credential-socials a:nth-child(2) {
  animation-delay: 1.4s;
}
.credential-socials a:nth-child(3) {
  animation-delay: 1.6s;
}
.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-btn svg,
.social-btn img {
  width: 30px;
  height: 30px;
}
.social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 🔧 Móviles pequeños */
@media (max-width: 400px) {
  .credential-container {
    max-width: 300px;
    padding: 20px 15px 90px; /* 👈 menos padding inferior */
  }
  .credential-photo {
    width: 100px;
    height: 100px;
  }
  .employee-name {
    font-size: 25px;
  }
  .employee-role {
    font-size: 12px;
  }
  .credential-contact p.telefono {
    font-size: 20px;
  }
  .credential-contact p.email {
    font-size: 15px;
  }
  .social-text {
    font-size: 16px;
    margin: 0px 0 0px;
  }
  .social-btn {
    width: 40px;
    height: 40px;
    margin-top: 10px;
  }
  .social-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===================== */
/* Burbujas animadas */
/* ===================== */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  bottom: -50px;
  width: 10px;
  height: 10px;
  background: rgba(255, 87, 34, 0.6);
  border-radius: 50%;
  animation: bubble 12s linear infinite;
}

/* Variaciones: muchas más burbujas con diferentes tamaños */
.bubbles span:nth-child(1) {
  left: 5%;
  width: 8px;
  height: 8px;
  animation-duration: 8s;
}
.bubbles span:nth-child(2) {
  left: 15%;
  width: 12px;
  height: 12px;
  animation-duration: 10s;
  animation-delay: 2s;
}
.bubbles span:nth-child(3) {
  left: 25%;
  width: 10px;
  height: 10px;
  animation-duration: 9s;
  animation-delay: 1s;
}
.bubbles span:nth-child(4) {
  left: 35%;
  width: 14px;
  height: 14px;
  animation-duration: 11s;
  animation-delay: 3s;
}
.bubbles span:nth-child(5) {
  left: 45%;
  width: 16px;
  height: 16px;
  animation-duration: 13s;
  animation-delay: 5s;
}
.bubbles span:nth-child(6) {
  left: 55%;
  width: 9px;
  height: 9px;
  animation-duration: 12s;
  animation-delay: 4s;
}
.bubbles span:nth-child(7) {
  left: 65%;
  width: 11px;
  height: 11px;
  animation-duration: 14s;
  animation-delay: 6s;
}
.bubbles span:nth-child(8) {
  left: 75%;
  width: 13px;
  height: 13px;
  animation-duration: 10s;
  animation-delay: 2s;
}
.bubbles span:nth-child(9) {
  left: 85%;
  width: 12px;
  height: 12px;
  animation-duration: 15s;
  animation-delay: 7s;
}
.bubbles span:nth-child(10) {
  left: 95%;
  width: 8px;
  height: 8px;
  animation-duration: 9s;
  animation-delay: 1s;
}

/* Animación */
@keyframes bubble {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50vh) scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) scale(0.9);
    opacity: 0;
  }
}
