/* Botón para abrir el modal (simulación) */
.open-modal-btn {
  background: linear-gradient(135deg, #e53935, #99282e);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
  transition: all 0.3s ease;
}

.open-modal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
}

/* OVERLAY DEL MODAL */
.casagoytia-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  opacity: 0;
}

.casagoytia-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* MODAL PRINCIPAL */
.casagoytia-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  padding: 40px 30px 30px;
  position: relative;
  text-align: center;
  animation: slideUp 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ICONO DE CONFIRMACIÓN */
.casagoytia-modal-icon {
  width: 80px;
  height: 80px;
  background-color: #233731;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--secondary-gold);
  font-size: 36px;
}

/* TÍTULOS Y TEXTOS */
.casagoytia-modal-title {
  color: #1e293b;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.casagoytia-modal-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 500;
}

.casagoytia-modal-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* BLOQUE INFORMATIVO */
.casagoytia-modal-next-steps {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
  border-left: 4px solid var(--secondary-gold);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.casagoytia-modal-next-title {
  color: var(--secondary-gold);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.casagoytia-modal-next-title:before {
  content: "→";
  color: var(--secondary-gold);
  margin-right: 8px;
  font-weight: 700;
}

.casagoytia-modal-list {
  color: #555;
  padding-left: 20px;
  margin-bottom: 0;
}

.casagoytia-modal-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.casagoytia-modal-list li:last-child {
  margin-bottom: 0;
}

/* TEXTO FINAL PEQUEÑO */
.casagoytia-modal-help {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 30px;
  font-style: italic;
}

/* CONTENEDOR DE BOTONES */
.casagoytia-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BOTONES */
.casagoytia-btn {
  flex: 1;
  background-color: var(--primary-dark);
  border: 2px solid var(--border-light);
  color: "white";
  padding: 0.7rem 0.4rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  min-height: 48px;
  text-decoration: none;
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
  .casagoytia-modal-overlay {
    padding: 10px;
  }

  .casagoytia-modal {
    padding: 30px 20px 25px;
    width: 100%;
    max-width: 100%;
  }

  .casagoytia-modal-title {
    font-size: 1.5rem;
  }

  .casagoytia-modal-subtitle {
    font-size: 1rem;
  }

  .casagoytia-modal-actions {
    flex-direction: column;
    align-items: center;
  }

  .casagoytia-btn {
    width: 100%;
    max-width: 280px;
  }

  .casagoytia-modal-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  .open-modal-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
  }
}
