  /* --- ESTILOS DEL MODAL (SUAVE) --- */
  .modal-overlay {
    /* Usamos visibility en lugar de display para poder animar */
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex; /* Siempre flex, pero invisible al inicio */
    justify-content: center;
    align-items: center;
    /* Aumentamos el tiempo a 0.6s y añadimos un desenfoque inicial */
    transition: opacity 0.6s ease, visibility 0.6s ease, backdrop-filter 0.6s ease;
    padding: 20px;
    backdrop-filter: blur(0px); /* Inicia sin blur */
  }
  
  .modal-overlay.active {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(5px); /* Aparece con un desenfoque sutil en el fondo */
  }
  
  .modal-box {
    background-color: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* Empieza un poco más abajo y ligeramente ms pequeño */
    transform: translateY(30px) scale(0.98); 
    opacity: 0;
    /* Easing personalizado para un movimiento ms natural y lujoso */
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    transition-delay: 0.1s; /* Pequeo retraso para que primero aparezca el fondo oscuro */
  }
  
  .modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  .modal-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  .modal-content {
    padding: 30px;
    text-align: center;
  }
  .modal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #a6885f;
    margin-bottom: 10px;
  }
  .modal-title {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #222;
  }
  .modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
  }
  .modal-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    border-radius: 50%;
    width: 35px; height: 35px;
    transition: background 0.2s, transform 0.2s;
  }
  .modal-close:hover {
    background: #fff;
    transform: rotate(90deg); /* Gira un poco al pasar el mouse */
  }
  
  @media (max-width: 480px) {
    .modal-img { height: 150px; }
    .modal-content { padding: 20px; }
    .modal-title { font-size: 20px; }
  }
  /* --- FIN ESTILOS DEL MODAL --- */    
