/* ========================== */
/*         OVERLAY            */
/* ========================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    cursor: pointer;
    display: none;
  }
  
  /* ========================== */
  /*   SHARE & SUBSCRIBE POPUP  */
  /* ========================== */
  .share-popup,
  .subscribe-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem; /* <-- Padding uniforme */
    width: 90%;
    max-width: 400px; /* <-- Máximo ancho uniforme */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
    animation: fadeIn 0.3s ease;
  }
  
  /* Animación de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -45%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
  
  /* ========================== */
  /*        SHARE POPUP         */
  /* ========================== */
  .share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .share-header h3 {
    margin: 0;
  }
  
  .share-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
  }
  
  .share-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 75px;
    margin: 2px;
    border-radius: 9%;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  .share-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }
  
  .share-icon span {
    margin-top: 2px;
    font-size: 12px;
    text-align: center;
    width: 100%;
  }
  
  .share-icon:hover {
    background-color: #ddd;
    transform: scale(1.1);
  }
  
  /* ========================== */
  /*      SUBSCRIBE POPUP       */
  /* ========================== */
  .subscribe-content h2 {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .subscribe-content h2 .highlight {
    color: #e67e22;
  }
  
  .subscribe-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
  }
  
  .subscribe-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
  }
  
  #subscribeForm input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
  }
  
  .subscribe-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #c69741, #e8b559, #c69741);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .subscribe-btn:hover {
    background: linear-gradient(90deg, #e8b559, #f5d494, #e8b559);
  }
  
  .subscribe-content small {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #aaa;
  }
  
  .subscribe-content small a {
    color: #e67e22;
    text-decoration: none;
  }
  
  .subscribe-content small a:hover {
    text-decoration: underline;
  }
  
  /* ========================== */
  /*       TEXT GRADIENT        */
  /* ========================== */
  .text-gradient {
    background: linear-gradient(90deg, #c69741, #e8b559, #c69741);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }
  
  /* ========================== */
  /*       CLOSE BUTTON         */
  /* ========================== */
  .close-button {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }
  
  .close-button:hover {
    color: #333;
  }



  /***************
  /* Modal de Éxito */
  .modal-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; 
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-success.show {
    visibility: visible;
    opacity: 1;
}

.modal-content-success {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    max-width: 350px;
    width: 90%;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal-success.show .modal-content-success {
    transform: scale(1);
    opacity: 1;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content-success h2 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #c69741;
}

.modal-content-success p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-close-success {
    padding: 10px 20px;
    background: linear-gradient(90deg, #c69741, #e8b559, #c69741);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-close-success:hover {
    background: linear-gradient(90deg, #e8b559, #f5d494, #e8b559);
}
